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