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 ()
公開方法
建立
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.