设备清理器
public class DeviceCleaner
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.DeviceCleaner |
在测试后执行重启或格式化作为清理操作,并可选择关闭屏幕
概括
公共构造函数 | |
---|---|
DeviceCleaner () |
公共方法 | |
---|---|
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
受保护的方法 | |
---|---|
void | clean ( ITestDevice device) 执行清理操作,然后执行清理后操作 |
公共构造函数
设备清理器
public DeviceCleaner ()
公共方法
设置
public void setUp (TestInformation testInfo)
参数 | |
---|---|
testInfo | TestInformation |
投掷 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
参数 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投掷 | |
---|---|
DeviceNotAvailableException |
受保护的方法
干净的
protected void clean (ITestDevice device)
执行清理操作,然后执行清理后操作
参数 | |
---|---|
device | ITestDevice |
投掷 | |
---|---|
DeviceNotAvailableException |