UserInfo
  public
  
  final
  
  class
  UserInfo
  
    extends Object
  
  
  
  
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.device.UserInfo | 
Simile alla classe UserInfo della piattaforma.
Deve essere simile ad android.content.pm.UserInfo.
Memorizza i dati e la logica di base relativi alle informazioni di un utente.
Riepilogo
| Costanti | |
|---|---|
| int | FLAGS_NOT_SECONDARY
 | 
| int | FLAG_EPHEMERAL
 | 
| int | FLAG_FOR_TESTING
 | 
| int | FLAG_GUEST
 | 
| int | FLAG_MAIN
 | 
| int | FLAG_MANAGED_PROFILE
 | 
| int | FLAG_PRIMARY
 | 
| int | FLAG_PROFILE
 | 
| int | FLAG_RESTRICTED
 | 
| int | USER_SYSTEM
 | 
| Campi | |
|---|---|
| 
    public
    static
    final
    String | CLONE_PROFILE_TYPE
 | 
| 
    public
    static
    final
    String | COMMUNAL_PROFILE_TYPE
 | 
| 
    public
    static
    final
    String | PRIVATE_PROFILE_TYPE
 | 
| Costruttori pubblici | |
|---|---|
| 
      UserInfo(int userId, String userName, int flag, boolean isRunning)
       | |
| 
      UserInfo(int userId, String userName, int flag, boolean isRunning, String userType)
       | |
| Metodi pubblici | |
|---|---|
| 
        
        
        
        
        
        int | 
      flag()
       | 
| 
        
        
        
        
        
        boolean | 
      isCloneProfile()
       | 
| 
        
        
        
        
        
        boolean | 
      isCommunalProfile()
       | 
| 
        
        
        
        
        
        boolean | 
      isEphemeral()
       | 
| 
        
        
        
        
        
        boolean | 
      isFlagForTesting()
       | 
| 
        
        
        
        
        
        boolean | 
      isGuest()
       | 
| 
        
        
        
        
        
        boolean | 
      isMain()
       | 
| 
        
        
        
        
        
        boolean | 
      isManagedProfile()
       | 
| 
        
        
        
        
        
        boolean | 
      isPrimary()
       | 
| 
        
        
        
        
        
        boolean | 
      isPrivateProfile()
       | 
| 
        
        
        
        
        
        boolean | 
      isRunning()
       | 
| 
        
        
        
        
        
        boolean | 
      isSecondary()
       | 
| 
        
        
        
        
        
        boolean | 
      isSystem()
       | 
| 
        
        
        
        
        
        boolean | 
      isUserType(UserInfo.UserType userType, int currentUserId)
      Restituisce se questa istanza è del tipo specificato. | 
| 
        
        
        
        
        
        int | 
      userId()
       | 
| 
        
        
        
        
        
        String | 
      userName()
       | 
Costanti
FLAGS_NOT_SECONDARY
public static final int FLAGS_NOT_SECONDARY
Valore costante: 45 (0x0000002d)
FLAG_EPHEMERAL
public static final int FLAG_EPHEMERAL
Valore costante: 256 (0x00000100)
FLAG_FOR_TESTING
public static final int FLAG_FOR_TESTING
Valore costante: 32768 (0x00008000)
FLAG_GUEST
public static final int FLAG_GUEST
Valore costante: 4 (0x00000004)
FLAG_MAIN
public static final int FLAG_MAIN
Valore costante: 16384 (0x00004000)
FLAG_MANAGED_PROFILE
public static final int FLAG_MANAGED_PROFILE
Valore costante: 32 (0x00000020)
FLAG_PRIMARY
public static final int FLAG_PRIMARY
Valore costante: 1 (0x00000001)
FLAG_PROFILE
public static final int FLAG_PROFILE
Valore costante: 4096 (0x00001000)
FLAG_RESTRICTED
public static final int FLAG_RESTRICTED
Valore costante: 8 (0x00000008)
USER_SYSTEM
public static final int USER_SYSTEM
Valore costante: 0 (0x00000000)
Campi
CLONE_PROFILE_TYPE
public static final String CLONE_PROFILE_TYPE
COMMUNAL_PROFILE_TYPE
public static final String COMMUNAL_PROFILE_TYPE
PRIVATE_PROFILE_TYPE
public static final String PRIVATE_PROFILE_TYPE
Costruttori pubblici
UserInfo
public UserInfo (int userId, 
                String userName, 
                int flag, 
                boolean isRunning)| Parametri | |
|---|---|
| userId | int | 
| userName | String | 
| flag | int | 
| isRunning | boolean | 
UserInfo
public UserInfo (int userId, 
                String userName, 
                int flag, 
                boolean isRunning, 
                String userType)| Parametri | |
|---|---|
| userId | int | 
| userName | String | 
| flag | int | 
| isRunning | boolean | 
| userType | String | 
Metodi pubblici
flag
public int flag ()
| Ritorni | |
|---|---|
| int | |
isCloneProfile
public boolean isCloneProfile ()
| Ritorni | |
|---|---|
| boolean | |
isCommunalProfile
public boolean isCommunalProfile ()
| Ritorni | |
|---|---|
| boolean | |
isEphemeral
public boolean isEphemeral ()
| Ritorni | |
|---|---|
| boolean | |
isFlagForTesting
public boolean isFlagForTesting ()
| Ritorni | |
|---|---|
| boolean | |
isGuest
public boolean isGuest ()
| Ritorni | |
|---|---|
| boolean | |
isMain
public boolean isMain ()
| Ritorni | |
|---|---|
| boolean | |
isManagedProfile
public boolean isManagedProfile ()
| Ritorni | |
|---|---|
| boolean | |
isPrimary
public boolean isPrimary ()
| Ritorni | |
|---|---|
| boolean | |
isPrivateProfile
public boolean isPrivateProfile ()
| Ritorni | |
|---|---|
| boolean | |
isRunning
public boolean isRunning ()
| Ritorni | |
|---|---|
| boolean | |
isSecondary
public boolean isSecondary ()
| Ritorni | |
|---|---|
| boolean | |
isSystem
public boolean isSystem ()
| Ritorni | |
|---|---|
| boolean | |
isUserType
public boolean isUserType (UserInfo.UserType userType, int currentUserId)
Restituisce se questa istanza è del tipo specificato.
| Parametri | |
|---|---|
| userType | UserInfo.UserType | 
| currentUserId | int | 
| Ritorni | |
|---|---|
| boolean | |
userId
public int userId ()
| Ritorni | |
|---|---|
| int | |
userName
public String userName ()
| Ritorni | |
|---|---|
| String | |
