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 | |
外部 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 |
PRIVATE_PROFILE
不公开个人资料用户 |
UserInfo.UserType |
SECONDARY
次要用户,即 |
UserInfo.UserType |
SYSTEM
系统用户 = 用户 0 |
公共方法 | |
|---|---|
boolean
|
isCloneProfile()
|
boolean
|
isCurrent()
|
boolean
|
isGuest()
|
boolean
|
isMain()
|
boolean
|
isManagedProfile()
|
boolean
|
isPrimary()
|
boolean
|
isPrivateProfile()
|
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 设备上,主要用户 = 第一个人类用户。
公共方法
isCloneProfile
public boolean isCloneProfile ()
| 返回 | |
|---|---|
boolean |
|
isCurrent
public boolean isCurrent ()
| 返回 | |
|---|---|
boolean |
|
isGuest
public boolean isGuest ()
| 返回 | |
|---|---|
boolean |
|
isMain
public boolean isMain ()
| 返回 | |
|---|---|
boolean |
|
isManagedProfile
public boolean isManagedProfile ()
| 返回 | |
|---|---|
boolean |
|
isPrimary
public boolean isPrimary ()
| 返回 | |
|---|---|
boolean |
|
isPrivateProfile
public boolean isPrivateProfile ()
| 返回 | |
|---|---|
boolean |
|
isProfile
public boolean isProfile ()
返回此实例是否为配置文件类型。
| 返回 | |
|---|---|
boolean |
|
isSecondary
public boolean isSecondary ()
| 返回 | |
|---|---|
boolean |
|
isSystem
public boolean isSystem ()
| 返回 | |
|---|---|
boolean |
|