Benutzerinformation

public final class UserInfo
extends Object

java.lang.Object
com.android.tradefed.device.UserInfo


Ähnlich wie die UserInfo-Klasse von der Plattform.

Dies soll android.content.pm.UserInfo ähneln.

Speichert Daten und grundlegende Logik rund um die Informationen für einen Benutzer.

Zusammenfassung

Konstanten

int FLAGS_NOT_SECONDARY

int FLAG_EPHEMERAL

int FLAG_GUEST

int FLAG_MAIN

int FLAG_MANAGED_PROFILE

int FLAG_PRIMARY

int FLAG_PROFILE

int FLAG_RESTRICTED

int USER_SYSTEM

Felder

public static final String CLONE_PROFILE_TYPE

Öffentliche Konstrukteure

UserInfo (int userId, String userName, int flag, boolean isRunning)
UserInfo (int userId, String userName, int flag, boolean isRunning, String userType)

Öffentliche Methoden

int flag ()
boolean isCloneProfile ()
boolean isEphemeral ()
boolean isGuest ()
boolean isMain ()
boolean isManagedProfile ()
boolean isPrimary ()
boolean isRunning ()
boolean isSecondary ()
boolean isSystem ()
boolean isUserType ( UserInfo.UserType userType, int currentUserId)

Gibt zurück, ob diese Instanz vom angegebenen Typ ist.

int userId ()
String userName ()

Konstanten

FLAGS_NOT_SECONDARY

public static final int FLAGS_NOT_SECONDARY

Konstanter Wert: 45 (0x0000002d)

FLAG_EPHEMERAL

public static final int FLAG_EPHEMERAL

Konstanter Wert: 256 (0x00000100)

FLAG_GUEST

public static final int FLAG_GUEST

Konstanter Wert: 4 (0x00000004)

FLAG_MAIN

public static final int FLAG_MAIN

Konstanter Wert: 16384 (0x00004000)

FLAG_MANAGED_PROFILE

public static final int FLAG_MANAGED_PROFILE

Konstanter Wert: 32 (0x00000020)

FLAG_PRIMARY

public static final int FLAG_PRIMARY

Konstanter Wert: 1 (0x00000001)

FLAG_PROFILE

public static final int FLAG_PROFILE

Konstanter Wert: 4096 (0x00001000)

FLAG_RESTRICTED

public static final int FLAG_RESTRICTED

Konstanter Wert: 8 (0x00000008)

BENUTZER_SYSTEM

public static final int USER_SYSTEM

Konstanter Wert: 0 (0x00000000)

Felder

CLONE_PROFILE_TYPE

public static final String CLONE_PROFILE_TYPE

Öffentliche Konstrukteure

Benutzerinformation

public UserInfo (int userId, 
                String userName, 
                int flag, 
                boolean isRunning)

Parameter
userId int

userName String

flag int

isRunning boolean

Benutzerinformation

public UserInfo (int userId, 
                String userName, 
                int flag, 
                boolean isRunning, 
                String userType)

Parameter
userId int

userName String

flag int

isRunning boolean

userType String

Öffentliche Methoden

Flagge

public int flag ()

Kehrt zurück
int

isCloneProfile

public boolean isCloneProfile ()

Kehrt zurück
boolean

ist vergänglich

public boolean isEphemeral ()

Kehrt zurück
boolean

istGast

public boolean isGuest ()

Kehrt zurück
boolean

istMain

public boolean isMain ()

Kehrt zurück
boolean

isManagedProfile

public boolean isManagedProfile ()

Kehrt zurück
boolean

istPrimär

public boolean isPrimary ()

Kehrt zurück
boolean

läuft

public boolean isRunning ()

Kehrt zurück
boolean

istSekundär

public boolean isSecondary ()

Kehrt zurück
boolean

istSystem

public boolean isSystem ()

Kehrt zurück
boolean

istBenutzertyp

public boolean isUserType (UserInfo.UserType userType, 
                int currentUserId)

Gibt zurück, ob diese Instanz vom angegebenen Typ ist.

Parameter
userType UserInfo.UserType

currentUserId int

Kehrt zurück
boolean

Benutzer-ID

public int userId ()

Kehrt zurück
int

Nutzername

public String userName ()

Kehrt zurück
String