用户信息.用户类型
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 | CURRENT 设备的当前前台用户 |
UserInfo.UserType | GUEST 来宾用户。 |
UserInfo.UserType | MAIN 用户在设备上被标记为主要用户;在非 hsum 主用户 = 系统用户 = 用户 0 在 hsum 主用户 = 第一个人类用户。 |
UserInfo.UserType | MANAGED_PROFILE 受管理的配置文件用户,例如工作配置文件。 |
UserInfo.UserType | PRIMARY 用户在设备上被标记为主要用户;最常见的是 primary = system user = user 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 MAIN
用户在设备上被标记为主要用户;在非 hsum 主用户 = 系统用户 = 用户 0 在 hsum 主用户 = 第一个人类用户。
基本的
public static final UserInfo.UserType PRIMARY
用户在设备上被标记为主要用户;最常见的是 primary = system user = user 0
公共方法
isCloneProfile
public boolean isCloneProfile ()
退货 | |
---|---|
boolean |
是当前
public boolean isCurrent ()
退货 | |
---|---|
boolean |
是客人
public boolean isGuest ()
退货 | |
---|---|
boolean |
是主要的
public boolean isMain ()
退货 | |
---|---|
boolean |
isManagedProfile
public boolean isManagedProfile ()
退货 | |
---|---|
boolean |
是主要的
public boolean isPrimary ()
退货 | |
---|---|
boolean |
是简介
public boolean isProfile ()
返回此实例是否为配置文件类型。
退货 | |
---|---|
boolean |
是次要的
public boolean isSecondary ()
退货 | |
---|---|
boolean |
是系统
public boolean isSystem ()
退货 | |
---|---|
boolean |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-04-28。
[]
[]