DeviceCleaner

public class DeviceCleaner
extends BaseTargetPreparer

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


在测试后执行重新启动或格式化作为清理操作,并可选择关闭屏幕

摘要

嵌套类

enum DeviceCleaner.CleanupAction

 

enum DeviceCleaner.PostCleanupAction

 

公共构造函数

DeviceCleaner()

公共方法

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

受保护的方法

void clean(ITestDevice device)

执行清理操作,然后执行清理后操作

公共构造函数

DeviceCleaner

public DeviceCleaner ()

公共方法

setUp

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

抛出
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

参数
testInfo TestInformation

e Throwable

抛出
DeviceNotAvailableException

受保护的方法

清洁 # 干净

protected void clean (ITestDevice device)

执行清理操作,然后执行清理后操作

参数
device ITestDevice

抛出
DeviceNotAvailableException