DeviceCleaner
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)
執行清理動作,接著執行清理後動作 |
公用建構函式
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 |
|