DeviceCleaner

public class DeviceCleaner
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.DeviceCleaner


Po zakończeniu testu wykonuje ponowne uruchomienie lub formatowanie jako działanie czyszczące, a opcjonalnie wyłącza ekran.

Podsumowanie

Zagnieżdżone klasy

enum DeviceCleaner.CleanupAction

 

enum DeviceCleaner.PostCleanupAction

 

Konstruktory publiczne

DeviceCleaner()

Metody publiczne

void setUp(TestInformation testInfo)
void tearDown(TestInformation testInfo, Throwable e)

Chronione metody

void clean(ITestDevice device)

Wykonaj działanie sprzątania, a następnie działanie po sprzątaniu

Konstruktory publiczne

DeviceCleaner

public DeviceCleaner ()

Metody publiczne

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Rzuty
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Rzuty
DeviceNotAvailableException

Chronione metody

czyste

protected void clean (ITestDevice device)

Wykonaj działanie sprzątania, a następnie działanie po sprzątaniu

Parametry
device ITestDevice

Rzuty
DeviceNotAvailableException