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 | |
Varianti supportate del tipo di utente nelle API esterne.
Riepilogo
Valori enum | |
|---|---|
UserInfo.UserType |
CLONE_PROFILE
utente del profilo clone |
UserInfo.UserType |
COMMUNAL_PROFILE
utente del profilo comune |
UserInfo.UserType |
CURRENT
utente corrente in primo piano del dispositivo |
UserInfo.UserType |
FULL
Indica un utente "completo", ovvero un utente umano non di profilo. |
UserInfo.UserType |
GUEST
ospite. |
UserInfo.UserType |
MAIN
Questo campo è obsoleto. Utilizza invece FULL. |
UserInfo.UserType |
MANAGED_PROFILE
utente del profilo gestito, ad es. profilo di lavoro. |
UserInfo.UserType |
NULL
ID utente non definito |
UserInfo.UserType |
PRIMARY
utente contrassegnato come principale sul dispositivo; il più delle volte principale = utente di sistema = utente 0 |
UserInfo.UserType |
PRIVATE_PROFILE
utente con profilo privato |
UserInfo.UserType |
SECONDARY
utente secondario, ovvero |
UserInfo.UserType |
SYSTEM
utente di sistema = utente 0 |
Metodi pubblici | |
|---|---|
boolean
|
isCloneProfile()
|
boolean
|
isCurrent()
|
boolean
|
isFull()
|
boolean
|
isGuest()
|
boolean
|
isMain()
Questo metodo è obsoleto.
Utilizza invece |
boolean
|
isManagedProfile()
|
boolean
|
isPrimary()
|
boolean
|
isPrivateProfile()
|
boolean
|
isProfile()
Restituisce un valore che indica se questa istanza è di tipo profilo. |
boolean
|
isSecondary()
|
boolean
|
isSystem()
|
static
UserInfo.UserType
|
valueOf(String name)
|
static
final
UserType[]
|
values()
|
Valori enum
MODELLO ATTUALE
public static final UserInfo.UserType CURRENT
l'utente corrente in primo piano del dispositivo
COMPLETO
public static final UserInfo.UserType FULL
Indica un utente "completo", ovvero un utente umano non di profilo.
OSPITE
public static final UserInfo.UserType GUEST
ospite. Può esistere solo un utente alla volta, può essere effimero e avere più limitazioni.
PRINCIPALE
public static final UserInfo.UserType MAIN
Questo campo è obsoleto.
Utilizza FULL.
Indica l'utente "principale", ovvero l'utente principale designato sul dispositivo, come definito
da ERROR(/UserManager#getMainUser()).
PROFILO_GESTITO
public static final UserInfo.UserType MANAGED_PROFILE
utente del profilo gestito, ad es. profilo di lavoro.
PRINCIPALE
public static final UserInfo.UserType PRIMARY
utente contrassegnato come principale sul dispositivo; il più delle volte principale = utente di sistema = utente 0
SECONDARIO
public static final UserInfo.UserType SECONDARY
utente secondario, ovvero non principale e non di sistema.
Metodi pubblici
isCloneProfile
public boolean isCloneProfile ()
| Ritorni | |
|---|---|
boolean |
|
isCurrent
public boolean isCurrent ()
| Ritorni | |
|---|---|
boolean |
|
isFull
public boolean isFull ()
| Ritorni | |
|---|---|
boolean |
|
isGuest
public boolean isGuest ()
| Ritorni | |
|---|---|
boolean |
|
isManagedProfile
public boolean isManagedProfile ()
| Ritorni | |
|---|---|
boolean |
|
isPrimary
public boolean isPrimary ()
| Ritorni | |
|---|---|
boolean |
|
isPrivateProfile
public boolean isPrivateProfile ()
| Ritorni | |
|---|---|
boolean |
|
isProfile
public boolean isProfile ()
Restituisce un valore che indica se questa istanza è di tipo profilo.
| Ritorni | |
|---|---|
boolean |
|
isSecondary
public boolean isSecondary ()
| Ritorni | |
|---|---|
boolean |
|
isSystem
public boolean isSystem ()
| Ritorni | |
|---|---|
boolean |
|
valueOf
public static UserInfo.UserType valueOf (String name)
| Parametri | |
|---|---|
name |
String |
| Ritorni | |
|---|---|
UserInfo.UserType |
|