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 |