裝置清理器

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