用户信息.用户类型

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


外部 API 中支持的用户类型变体。

概括

枚举值

UserInfo.UserType CLONE_PROFILE

克隆配置文件用户

UserInfo.UserType COMMUNAL_PROFILE

公共资料用户

UserInfo.UserType CURRENT

设备当前的前台用户

UserInfo.UserType GUEST

来宾用户。

UserInfo.UserType MAIN

用户被标记为设备上的主用户;在非 hsum 主用户上 = 系统用户 = 用户 0 在 hsum 主用户上 = 第一个人类用户。

UserInfo.UserType MANAGED_PROFILE

受管理的配置文件用户,例如工作配置文件。

UserInfo.UserType PRIMARY

用户在设备上被标记为主要用户;最常见的是主要 = 系统用户 = 用户 0

UserInfo.UserType SECONDARY

次要用户,即

UserInfo.UserType SYSTEM

系统用户=用户0

公共方法

boolean isCloneProfile ()
boolean isCurrent ()
boolean isGuest ()
boolean isMain ()
boolean isManagedProfile ()
boolean isPrimary ()
boolean isProfile ()

返回此实例是否属于配置文件类型。

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

枚举值

克隆_配置文件

public static final UserInfo.UserType CLONE_PROFILE

克隆配置文件用户

公共资料

public static final UserInfo.UserType COMMUNAL_PROFILE

公共资料用户

当前的

public static final UserInfo.UserType CURRENT

设备当前的前台用户

客人

public static final UserInfo.UserType GUEST

来宾用户。一次只能存在一个,可能是短暂的并且有更多的限制。

主要的

public static final UserInfo.UserType MAIN

用户被标记为设备上的主用户;在非 hsum 主用户上 = 系统用户 = 用户 0 在 hsum 主用户上 = 第一个人类用户。

托管_配置文件

public static final UserInfo.UserType MANAGED_PROFILE

受管理的配置文件用户,例如工作配置文件。

基本的

public static final UserInfo.UserType PRIMARY

用户在设备上被标记为主要用户;最常见的是主要 = 系统用户 = 用户 0

中学

public static final UserInfo.UserType SECONDARY

次要用户,即非主要、非系统。

系统

public static final UserInfo.UserType SYSTEM

系统用户=用户0

公共方法

是克隆配置文件

public boolean isCloneProfile ()

退货
boolean

是当前

public boolean isCurrent ()

退货
boolean

是客人

public boolean isGuest ()

退货
boolean

是主

public boolean isMain ()

退货
boolean

是托管配置文件

public boolean isManagedProfile ()

退货
boolean

是主要的

public boolean isPrimary ()

退货
boolean

是个人资料

public boolean isProfile ()

返回此实例是否属于配置文件类型。

退货
boolean

是次要的

public boolean isSecondary ()

退货
boolean

是系统

public boolean isSystem ()

退货
boolean

的价值

public static UserInfo.UserType valueOf (String name)

参数
name String

退货
UserInfo.UserType

价值观

public static final UserType[] values ()

退货
UserType[]