UserInfo

public final class UserInfo
extends Object

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


مشابه لفئة UserInfo من النظام الأساسي

من المفترض أن يكون هذا الإجراء مشابهًا لـ android.content.pm.UserInfo.

يخزِّن البيانات والمنطق الأساسي حول معلومات مستخدم واحد.

ملخّص

الثوابت

String CLONE_PROFILE_TYPE

String COMMUNAL_PROFILE_TYPE

int FLAGS_NOT_SECONDARY

int FLAG_ADMIN

int FLAG_EPHEMERAL

int FLAG_FOR_TESTING

int FLAG_FULL

int FLAG_GUEST

int FLAG_MAIN

int FLAG_MANAGED_PROFILE

int FLAG_PRIMARY

int FLAG_PROFILE

int FLAG_RESTRICTED

int PER_USER_RANGE

String PRIVATE_PROFILE_TYPE

int USER_ALL

int USER_CURRENT

int USER_CURRENT_OR_SELF

int USER_NULL

int USER_SYSTEM

String USER_TYPE_FULL_SECONDARY

String USER_TYPE_SHORT_SECONDARY

طُرق وضع التصميم العامة

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

الإجراءات العامة

int flag()
boolean isAdmin()
boolean isCloneProfile()
boolean isCommunalProfile()
boolean isEphemeral()
boolean isFlagForTesting()
boolean isFull()
boolean isGuest()
boolean isMain()

تم إيقاف هذه الطريقة نهائيًا. يمكن استخدام isFull() كبديل.

boolean isManagedProfile()
boolean isNull()
boolean isPrimary()
boolean isPrivateProfile()
boolean isRunning()
boolean isSecondary()
boolean isSystem()
boolean isUserType(UserInfo.UserType userType, int currentUserId)

لعرض ما إذا كان هذا العنصر من النوع المحدّد.

String toString()
int userId()
String userName()

الثوابت

CLONE_PROFILE_TYPE

public static final String CLONE_PROFILE_TYPE

Constant Value: "profile.CLONE"

COMMUNAL_PROFILE_TYPE

public static final String COMMUNAL_PROFILE_TYPE

Constant Value: "profile.COMMUNAL"

FLAGS_NOT_SECONDARY

public static final int FLAGS_NOT_SECONDARY

القيمة الثابتة: 45 (0x0000002d)

FLAG_ADMIN

public static final int FLAG_ADMIN

Constant Value: 2 (0x00000002)

FLAG_EPHEMERAL

public static final int FLAG_EPHEMERAL

القيمة الثابتة: 256 (0x00000100)

FLAG_FOR_TESTING

public static final int FLAG_FOR_TESTING

Constant Value: 32768 (0x00008000)

FLAG_FULL

public static final int FLAG_FULL

القيمة الثابتة: 1024 (0x00000400)

FLAG_GUEST

public static final int FLAG_GUEST

القيمة الثابتة: 4 (0x00000004)

FLAG_MAIN

public static final int FLAG_MAIN

القيمة الثابتة: 16384 (0x00004000)

FLAG_MANAGED_PROFILE

public static final int FLAG_MANAGED_PROFILE

Constant Value: 32 (0x00000020)

FLAG_PRIMARY

public static final int FLAG_PRIMARY

القيمة الثابتة: 1 (0x00000001)

FLAG_PROFILE

public static final int FLAG_PROFILE

القيمة الثابتة: 4096 (0x00001000)

FLAG_RESTRICTED

public static final int FLAG_RESTRICTED

Constant Value: 8 (0x00000008)

PER_USER_RANGE

public static final int PER_USER_RANGE

Constant Value: 100000 (0x000186a0)

PRIVATE_PROFILE_TYPE

public static final String PRIVATE_PROFILE_TYPE

Constant Value: "profile.PRIVATE"

USER_ALL

public static final int USER_ALL

القيمة الثابتة: -1 (0xffffffff)

USER_CURRENT

public static final int USER_CURRENT

القيمة الثابتة: -2 (0xfffffffe)

USER_CURRENT_OR_SELF

public static final int USER_CURRENT_OR_SELF

القيمة الثابتة: -3 (0xfffffffd)

USER_NULL

public static final int USER_NULL

القيمة الثابتة: -10000 (0xffffd8f0)

USER_SYSTEM

public static final int USER_SYSTEM

القيمة الثابتة: 0 (0x00000000)

USER_TYPE_FULL_SECONDARY

public static final String USER_TYPE_FULL_SECONDARY

القيمة الثابتة: "android.os.usertype.full.SECONDARY"

USER_TYPE_SHORT_SECONDARY

public static final String USER_TYPE_SHORT_SECONDARY

القيمة الثابتة: "full.SECONDARY"

طُرق وضع التصميم العامة

UserInfo

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

المعلَمات
userId int

userName String

flag int

isRunning boolean

UserInfo

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

المعلَمات
userId int

userName String

flag int

isRunning boolean

userType String

الإجراءات العامة

علامة

public int flag ()

المرتجعات
int

isAdmin

public boolean isAdmin ()

المرتجعات
boolean

isCloneProfile

public boolean isCloneProfile ()

المرتجعات
boolean

isCommunalProfile

public boolean isCommunalProfile ()

المرتجعات
boolean

isEphemeral

public boolean isEphemeral ()

المرتجعات
boolean

isFlagForTesting

public boolean isFlagForTesting ()

المرتجعات
boolean

isFull

public boolean isFull ()

المرتجعات
boolean

isGuest

public boolean isGuest ()

المرتجعات
boolean

isMain

public boolean isMain ()

تم إيقاف هذا الإجراء نهائيًا.
استخدِم isFull() بدلاً من ذلك.

المرتجعات
boolean

isManagedProfile

public boolean isManagedProfile ()

المرتجعات
boolean

isNull

public boolean isNull ()

المرتجعات
boolean

isPrimary

public boolean isPrimary ()

المرتجعات
boolean

isPrivateProfile

public boolean isPrivateProfile ()

المرتجعات
boolean

isRunning

public boolean isRunning ()

المرتجعات
boolean

isSecondary

public boolean isSecondary ()

المرتجعات
boolean

isSystem

public boolean isSystem ()

المرتجعات
boolean

isUserType

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

لعرض ما إذا كان هذا العنصر من النوع المحدّد.

المعلَمات
userType UserInfo.UserType

currentUserId int

المرتجعات
boolean

toString

public String toString ()

المرتجعات
String

userId

public int userId ()

المرتجعات
int

userName

public String userName ()

المرتجعات
String