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
clone profile user |
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()
|
列挙値
MAIN
public static final UserInfo.UserType MAIN
このフィールドは非推奨になりました。
代わりに FULL を使用してください。
ERROR(/UserManager#getMainUser()) で定義されている、デバイスの指定されたプライマリ ユーザーである「メイン」ユーザーを示します。
メイン
public static final UserInfo.UserType PRIMARY
デバイスでプライマリとしてフラグが設定されたユーザー。通常、プライマリ = システム ユーザー = ユーザー 0
パブリック メソッド
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 |
|
valueOf
public static UserInfo.UserType valueOf (String name)
| パラメータ | |
|---|---|
name |
String |
| 戻り値 | |
|---|---|
UserInfo.UserType |
|