Informacje użytkownika

public final class UserInfo
extends Object

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


Podobny do klasy UserInfo z platformy.

Ma to być podobne do android.content.pm.UserInfo.

Przechowuje dane i podstawową logikę wokół informacji dla jednego użytkownika.

Streszczenie

Stałe

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

Pola

public static final String CLONE_PROFILE_TYPE

Konstruktory publiczne

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

Metody publiczne

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)

Zwraca, czy ta instancja jest określonego typu.

int userId ()
String userName ()

Stałe

FLAGS_NOT_SECONDARY

public static final int FLAGS_NOT_SECONDARY

Stała wartość: 45 (0x0000002d)

FLAG_EPHEMERAL

public static final int FLAG_EPHEMERAL

Stała wartość: 256 (0x00000100)

FLAGA_GOŚĆ

public static final int FLAG_GUEST

Stała wartość: 4 (0x00000004)

FLAGA_GŁÓWNA

public static final int FLAG_MAIN

Stała wartość: 16384 (0x00004000)

FLAG_MANAGED_PROFILE

public static final int FLAG_MANAGED_PROFILE

Stała wartość: 32 (0x00000020)

FLAGA_PODSTAWOWA

public static final int FLAG_PRIMARY

Stała wartość: 1 (0x00000001)

FLAGA_PROFIL

public static final int FLAG_PROFILE

Stała wartość: 4096 (0x00001000)

FLAG_RESTRICTED

public static final int FLAG_RESTRICTED

Stała wartość: 8 (0x00000008)

SYSTEM_UŻYTKOWNIKA

public static final int USER_SYSTEM

Stała wartość: 0 (0x00000000)

Pola

CLONE_PROFILE_TYPE

public static final String CLONE_PROFILE_TYPE

Konstruktory publiczne

Informacje użytkownika

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

Parametry
userId int

userName String

flag int

isRunning boolean

Informacje użytkownika

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

Parametry
userId int

userName String

flag int

isRunning boolean

userType String

Metody publiczne

flaga

public int flag ()

Zwroty
int

isCloneProfil

public boolean isCloneProfile ()

Zwroty
boolean

jest efemeryczny

public boolean isEphemeral ()

Zwroty
boolean

jest Gość

public boolean isGuest ()

Zwroty
boolean

jest głównym

public boolean isMain ()

Zwroty
boolean

jest zarządzanym profilem

public boolean isManagedProfile ()

Zwroty
boolean

jest podstawowym

public boolean isPrimary ()

Zwroty
boolean

biegnie

public boolean isRunning ()

Zwroty
boolean

jest drugorzędny

public boolean isSecondary ()

Zwroty
boolean

jestSystem

public boolean isSystem ()

Zwroty
boolean

jestTypUżytkownika

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

Zwraca, czy ta instancja jest określonego typu.

Parametry
userType UserInfo.UserType

currentUserId int

Zwroty
boolean

identyfikator użytkownika

public int userId ()

Zwroty
int

nazwa użytkownika

public String userName ()

Zwroty
String