public static enum ShadowUserManager.UserState extends Enum<ShadowUserManager.UserState>
Describes the current state of the user. State can be set using ShadowUserManager.setUserState(UserHandle, UserState)
.
Enum Constant and Description |
---|
STATE_BOOTING |
STATE_RUNNING_LOCKED |
STATE_RUNNING_UNLOCKED |
STATE_RUNNING_UNLOCKING |
STATE_SHUTDOWN |
STATE_STOPPING |
Modifier and Type | Method and Description |
---|---|
static ShadowUserManager.UserState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ShadowUserManager.UserState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ShadowUserManager.UserState STATE_BOOTING
public static final ShadowUserManager.UserState STATE_RUNNING_LOCKED
public static final ShadowUserManager.UserState STATE_RUNNING_UNLOCKING
public static final ShadowUserManager.UserState STATE_RUNNING_UNLOCKED
public static final ShadowUserManager.UserState STATE_STOPPING
public static final ShadowUserManager.UserState STATE_SHUTDOWN
public static ShadowUserManager.UserState[] values()
for (ShadowUserManager.UserState c : ShadowUserManager.UserState.values()) System.out.println(c);
public static ShadowUserManager.UserState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null