SwitchUserTargetPreparer

public class SwitchUserTargetPreparer
extends BaseSwitchUserTargetPreparer

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


Default implementation of BaseSwitchUserTargetPreparer - see that class' javadoc for more info.

Summary

Constants

String OPTION_USER_TYPE

String OPTION_USER_TYPE_MODE

Public constructors

SwitchUserTargetPreparer()

Public methods

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

Constants

OPTION_USER_TYPE

public static final String OPTION_USER_TYPE

Constant Value: "user-type"

OPTION_USER_TYPE_MODE

public static final String OPTION_USER_TYPE_MODE

Constant Value: "user-type-mode"

Public constructors

SwitchUserTargetPreparer

public SwitchUserTargetPreparer ()

Public methods

setUp

public void setUp (TestInformation testInformation)

Parameters
testInformation TestInformation

Throws
DeviceNotAvailableException
TargetSetupError

setUserType

public void setUserType (UserInfo.UserType userType)

Parameters
userType UserInfo.UserType

tearDown

public void tearDown (TestInformation testInformation, 
                Throwable e)

Parameters
testInformation TestInformation

e Throwable

Throws
DeviceNotAvailableException