AdbStopServerPreparer

public class AdbStopServerPreparer
extends BaseTargetPreparer

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


Przygotowanie docelowe do zatrzymania serwera adb na hoście przed i po uruchomieniu testów adb.

Z tego narzędzia należy korzystać ostrożnie, ponieważ zatrzymuje i ponownie uruchamia adb na hostach. Zwykle powinien być on krótki, aby uniknąć przeprowadzania innych testów w tym samym czasie.SemaphoreTokenTargetPreparer

Podsumowanie

Stałe

String ADB_BINARY_KEY

Publiczne konstruktory

AdbStopServerPreparer()

Metody publiczne

void setUp(TestInformation testInfo)

void tearDown(TestInformation testInfo, Throwable e)

Metody chronione

File findAdbLog()

Stałe

ADB_BINARY_KEY

public static final String ADB_BINARY_KEY

Stała wartość: „adb_path”

Publiczne konstruktory

AdbStopServerPreparer

public AdbStopServerPreparer ()

Metody publiczne

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Zgłasza
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Zgłasza
DeviceNotAvailableException

Metody chronione

findAdbLog

protected File findAdbLog ()

Zwroty
File