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 ()

公用方法

setUp

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

擲回
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

參數
testInfo TestInformation

e Throwable

擲回
DeviceNotAvailableException

受保護的方法

findAdbLog

protected File findAdbLog ()

傳回
File