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 ()

パブリック メソッド

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