Informacje użytkownika

public final class UserInfo
extends Object

Obiekt Java.lang.Object
com.android.tradefed.device.UserInfo


Podobna 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_FOR_TESTING

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

public static final String COMMUNAL_PROFILE_TYPE

Konstruktorzy publiczni

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 isCommunalProfile ()
boolean isEphemeral ()
boolean isFlagForTesting ()
boolean isGuest ()
boolean isMain ()
boolean isManagedProfile ()
boolean isPrimary ()
boolean isRunning ()
boolean isSecondary ()
boolean isSystem ()
boolean isUserType ( UserInfo.UserType userType, int currentUserId)

Zwróć informację, czy to wystąpienie jest określonego typu.

int userId ()
String userName ()

Stałe

FLAGS_NOT_SECONDARY

public static final int FLAGS_NOT_SECONDARY

Wartość stała: 45 (0x0000002d)

FLAG_EPHEMERAL

public static final int FLAG_EPHEMERAL

Wartość stała: 256 (0x00000100)

FLAG_FOR_TESTING

public static final int FLAG_FOR_TESTING

Wartość stała: 32768 (0x00008000)

FLAG_GOŚĆ

public static final int FLAG_GUEST

Wartość stała: 4 (0x00000004)

FLAG_MAIN

public static final int FLAG_MAIN

Wartość stała: 16384 (0x00004000)

FLAG_MANAGED_PROFILE

public static final int FLAG_MANAGED_PROFILE

Wartość stała: 32 (0x00000020)

FLAG_PRIMARY

public static final int FLAG_PRIMARY

Wartość stała: 1 (0x00000001)

FLAG_PROFILE

public static final int FLAG_PROFILE

Wartość stała: 4096 (0x00001000)

FLAG_RESTRICTED

public static final int FLAG_RESTRICTED

Wartość stała: 8 (0x00000008)

USER_SYSTEM

public static final int USER_SYSTEM

Wartość stała: 0 (0x00000000)

Pola

CLONE_PROFILE_TYPE

public static final String CLONE_PROFILE_TYPE

COMMUNAL_PROFILE_TYPE

public static final String COMMUNAL_PROFILE_TYPE

Konstruktorzy publiczni

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

jestCloneProfile

public boolean isCloneProfile ()

Zwroty
boolean

isCommunalProfile

public boolean isCommunalProfile ()

Zwroty
boolean

jest efemeryczny

public boolean isEphemeral ()

Zwroty
boolean

isFlagForTesting

public boolean isFlagForTesting ()

Zwroty
boolean

jest Gość

public boolean isGuest ()

Zwroty
boolean

jestGłówny

public boolean isMain ()

Zwroty
boolean

isManagedProfile

public boolean isManagedProfile ()

Zwroty
boolean

jest Podstawowy

public boolean isPrimary ()

Zwroty
boolean

biegnie

public boolean isRunning ()

Zwroty
boolean

jest drugorzędne

public boolean isSecondary ()

Zwroty
boolean

jestSystem

public boolean isSystem ()

Zwroty
boolean

jestTypUżytkownika

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

Zwróć informację, czy to wystąpienie 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