UserInfo

public final class UserInfo
extends Object

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


Mirip dengan class UserInfo dari platform.

Hal ini dimaksudkan agar mirip dengan android.content.pm.UserInfo.

Menyimpan data dan logika dasar seputar informasi untuk satu pengguna.

Ringkasan

Konstanta

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

Kolom

public static final String CLONE_PROFILE_TYPE

public static final String COMMUNAL_PROFILE_TYPE

public static final String PRIVATE_PROFILE_TYPE

Konstruktor publik

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

Metode publik

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)

Menampilkan apakah instance ini dari jenis yang ditentukan.

int userId()
String userName()

Konstanta

FLAGS_NOT_SECONDARY

public static final int FLAGS_NOT_SECONDARY

Nilai Konstanta: 45 (0x0000002d)

FLAG_EPHEMERAL

public static final int FLAG_EPHEMERAL

Nilai Konstanta: 256 (0x00000100)

FLAG_FOR_TESTING

public static final int FLAG_FOR_TESTING

Nilai Konstanta: 32768 (0x00008000)

FLAG_GUEST

public static final int FLAG_GUEST

Nilai Konstanta: 4 (0x00000004)

FLAG_MAIN

public static final int FLAG_MAIN

Nilai Konstanta: 16384 (0x00004000)

FLAG_MANAGED_PROFILE

public static final int FLAG_MANAGED_PROFILE

Nilai Konstanta: 32 (0x00000020)

FLAG_PRIMARY

public static final int FLAG_PRIMARY

Nilai Konstanta: 1 (0x00000001)

FLAG_PROFILE

public static final int FLAG_PROFILE

Nilai Konstanta: 4096 (0x00001000)

FLAG_RESTRICTED

public static final int FLAG_RESTRICTED

Nilai Konstanta: 8 (0x00000008)

USER_SYSTEM

public static final int USER_SYSTEM

Nilai Konstanta: 0 (0x00000000)

Kolom

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

Konstruktor publik

UserInfo

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

Parameter
userId int

userName String

flag int

isRunning boolean

UserInfo

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

Parameter
userId int

userName String

flag int

isRunning boolean

userType String

Metode publik

tandai

public int flag ()

Hasil
int

isCloneProfile

public boolean isCloneProfile ()

Hasil
boolean

isCommunalProfile

public boolean isCommunalProfile ()

Hasil
boolean

isEphemeral

public boolean isEphemeral ()

Hasil
boolean

isFlagForTesting

public boolean isFlagForTesting ()

Hasil
boolean

isGuest

public boolean isGuest ()

Hasil
boolean

isMain

public boolean isMain ()

Hasil
boolean

isManagedProfile

public boolean isManagedProfile ()

Hasil
boolean

isPrimary

public boolean isPrimary ()

Hasil
boolean

isPrivateProfile

public boolean isPrivateProfile ()

Hasil
boolean

isRunning

public boolean isRunning ()

Hasil
boolean

isSecondary

public boolean isSecondary ()

Hasil
boolean

isSystem

public boolean isSystem ()

Hasil
boolean

isUserType

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

Menampilkan apakah instance ini dari jenis yang ditentukan.

Parameter
userType UserInfo.UserType

currentUserId int

Hasil
boolean

userId

public int userId ()

Hasil
int

userName

public String userName ()

Hasil
String