AdbStopServerPreparer
public
class
AdbStopServerPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.adb.AdbStopServerPreparer |
Target preparer to stop adb server on the host before and after running adb tests.
This preparer should be used with care as it stops and restart adb on the hosts. It should
usually be tight with SemaphoreTokenTargetPreparer
to avoid other tests from running at
the same time.
Summary
Fields | |
---|---|
public
static
final
String |
ADB_BINARY_KEY
|
Public constructors | |
---|---|
AdbStopServerPreparer()
|
Public methods | |
---|---|
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Protected methods | |
---|---|
File
|
findAdbLog()
|
Fields
ADB_BINARY_KEY
public static final String ADB_BINARY_KEY
Public constructors
AdbStopServerPreparer
public AdbStopServerPreparer ()
Public methods
setUp
public void setUp (TestInformation testInfo)
Parameters | |
---|---|
testInfo |
TestInformation |
Throws | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Parameters | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
Throws | |
---|---|
DeviceNotAvailableException |
Protected methods
findAdbLog
protected File findAdbLog ()
Returns | |
---|---|
File |