使用者資訊.使用者類型
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 | 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 boolean isCloneProfile ()
退貨 | |
---|---|
boolean |
是目前
public boolean isCurrent ()
退貨 | |
---|---|
boolean |
是客人
public boolean isGuest ()
退貨 | |
---|---|
boolean |
是主
public boolean isMain ()
退貨 | |
---|---|
boolean |
是託管設定檔
public boolean isManagedProfile ()
退貨 | |
---|---|
boolean |
是主要的
public boolean isPrimary ()
退貨 | |
---|---|
boolean |
是個人資料
public boolean isProfile ()
傳回此實例是否屬於設定檔類型。
退貨 | |
---|---|
boolean |
是次要的
public boolean isSecondary ()
退貨 | |
---|---|
boolean |
是系統
public boolean isSystem ()
退貨 | |
---|---|
boolean |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-12-04 (世界標準時間)。
[]
[]