デバイス クリーナー
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 |