SwitchUserTargetPreparer

public class SwitchUserTargetPreparer
extends BaseSwitchUserTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.BaseSwitchUserTargetPreparer
       ↳ com.android.tradefed.targetprep.SwitchUserTargetPreparer


BaseSwitchUserTargetPreparer 的默认实现 - 如需了解详情,请参阅该类的 javadoc。

摘要

常量

String OPTION_USER_TYPE

String OPTION_USER_TYPE_MODE

公共构造函数

SwitchUserTargetPreparer()

公共方法

void setUp(TestInformation testInformation)
void setUserType(UserInfo.UserType userType)
void tearDown(TestInformation testInformation, Throwable e)

常量

OPTION_USER_TYPE

public static final String OPTION_USER_TYPE

常量值: "user-type"

OPTION_USER_TYPE_MODE

public static final String OPTION_USER_TYPE_MODE

常量值: “user-type-mode”

公共构造函数

SwitchUserTargetPreparer

public SwitchUserTargetPreparer ()

公共方法

setUp

public void setUp (TestInformation testInformation)

参数
testInformation TestInformation

抛出
DeviceNotAvailableException
TargetSetupError

setUserType

public void setUserType (UserInfo.UserType userType)

参数
userType UserInfo.UserType

tearDown

public void tearDown (TestInformation testInformation, 
                Throwable e)

参数
testInformation TestInformation

e Throwable

抛出
DeviceNotAvailableException