AdbStopServerPreparer

public class AdbStopServerPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.adb.AdbStopServerPreparer


目標準備器在運行 adb 測試之前和之後停止主機上的 adb 服務器。

應謹慎使用此準備程序,因為它會在主機上停止並重新啟動 adb。它通常應該與SemaphoreTokenTargetPreparer緊密結合,以避免同時運行其他測試。

概括

字段

public static final String ADB_BINARY_KEY

公共構造函數

AdbStopServerPreparer ()

公共方法

void setUp ( TestInformation testInfo)

void tearDown ( TestInformation testInfo, Throwable e)

受保護的方法

File findAdbLog ()

字段

ADB_BINARY_KEY

public static final String ADB_BINARY_KEY

公共構造函數

AdbStopServerPreparer

public AdbStopServerPreparer ()

公共方法

設置

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

投擲
BuildError
DeviceNotAvailableException
TargetSetupError

拆除

public void tearDown (TestInformation testInfo, 
                Throwable e)

參數
testInfo TestInformation

e Throwable

投擲
DeviceNotAvailableException

受保護的方法

找到AdbLog

protected File findAdbLog ()

退貨
File