用戶信息.用戶類型
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 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-04-28 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]