UserInfo.UserType

public static final enum UserInfo.UserType
extends Enum<UserInfo.UserType>

java.lang.Object
   ↳ java.lang.Enum<com.android.tradefed.device.UserInfo.UserType>
     ↳ com.android.tradefed.device.UserInfo.UserType


Supported variants of a user's type in external APIs.

Summary

Enum values

UserInfo.UserType  CURRENT

current foreground user of the device  

UserInfo.UserType  GUEST

guest user. 

UserInfo.UserType  PRIMARY

user flagged as primary on the device; most often primary = system user = user 0  

UserInfo.UserType  SECONDARY

secondary user, i.e. 

UserInfo.UserType  SYSTEM

system user = user 0  

Public methods

boolean isCurrent()
boolean isGuest()
boolean isPrimary()
boolean isSecondary()
boolean isSystem()
static UserInfo.UserType valueOf(String name)
static final UserType[] values()

Enum values

CURRENT

public static final UserInfo.UserType CURRENT

current foreground user of the device

GUEST

public static final UserInfo.UserType GUEST

guest user. Only one can exist at a time, may be ephemeral and have more restrictions.

PRIMARY

public static final UserInfo.UserType PRIMARY

user flagged as primary on the device; most often primary = system user = user 0

SECONDARY

public static final UserInfo.UserType SECONDARY

secondary user, i.e. non-primary and non-system.

SYSTEM

public static final UserInfo.UserType SYSTEM

system user = user 0

Public methods

isCurrent

public boolean isCurrent ()

Returns
boolean

isGuest

public boolean isGuest ()

Returns
boolean

isPrimary

public boolean isPrimary ()

Returns
boolean

isSecondary

public boolean isSecondary ()

Returns
boolean

isSystem

public boolean isSystem ()

Returns
boolean

valueOf

public static UserInfo.UserType valueOf (String name)

Parameters
name String

Returns
UserInfo.UserType

values

public static final UserType[] values ()

Returns
UserType[]