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