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