SwitchUserTargetPreparer
public class SwitchUserTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.SwitchUserTargetPreparer |
setUp で指定されたユーザーの種類に切り替えるITargetPreparer
。デフォルトでは、現在のユーザーのままであり、切り替えは実行されません。
実行前の現在のユーザーに戻すことにより、デバイスのユーザー状態の復元を試みます。
まとめ
パブリック コンストラクター | |
---|---|
SwitchUserTargetPreparer () |
公開メソッド | |
---|---|
void | setUp ( TestInformation testInformation) |
void | tearDown ( TestInformation testInformation, Throwable e) |
パブリック コンストラクター
SwitchUserTargetPreparer
public SwitchUserTargetPreparer ()
公開メソッド
設定
public void setUp (TestInformation testInformation)
パラメーター | |
---|---|
testInformation | TestInformation |
スロー | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
取り壊す
public void tearDown (TestInformation testInformation, Throwable e)
パラメーター | |
---|---|
testInformation | TestInformation |
e | Throwable |
スロー | |
---|---|
DeviceNotAvailableException |