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 |
FULL
表示“完整”用户,即非个人资料人类用户。 |
UserInfo.UserType |
GUEST
访客用户。 |
UserInfo.UserType |
MAIN
此字段已弃用。 请改用 FULL。 |
UserInfo.UserType |
MANAGED_PROFILE
受管理资料用户,例如工作资料。 |
UserInfo.UserType |
NULL
未定义的用户 ID |
UserInfo.UserType |
PRIMARY
设备上标记为主要的用户;通常情况下,主要用户 = 系统用户 = 用户 0 |
UserInfo.UserType |
PRIVATE_PROFILE
不公开的个人资料用户 |
UserInfo.UserType |
SECONDARY
次要用户,即 |
UserInfo.UserType |
SYSTEM
系统用户 = 用户 0 |
公共方法 | |
|---|---|
boolean
|
isCloneProfile()
|
boolean
|
isCurrent()
|
boolean
|
isFull()
|
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
此字段已弃用。
请改用 FULL。
表示“主要”用户,即设备上指定的首要用户,由 ERROR(/UserManager#getMainUser()) 定义。
公共方法
isCloneProfile
public boolean isCloneProfile ()
| 返回 | |
|---|---|
boolean |
|
isCurrent
public boolean isCurrent ()
| 返回 | |
|---|---|
boolean |
|
isFull
public boolean isFull ()
| 返回 | |
|---|---|
boolean |
|
isGuest
public boolean isGuest ()
| 返回 | |
|---|---|
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 |
|