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