מידע על משתמש
public final class UserInfo
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.UserInfo |
בדומה לשיעור UserInfo מהפלטפורמה.
זה נועד להיות דומה ל-android.content.pm.UserInfo.
מאחסן נתונים והיגיון בסיסי סביב המידע עבור משתמש אחד.
סיכום
כיתות מקוננות | |
---|---|
enum | UserInfo.UserType גרסאות נתמכות מסוג משתמש בממשקי API חיצוניים. |
קבועים | |
---|---|
int | FLAGS_NOT_SECONDARY |
int | FLAG_EPHEMERAL |
int | FLAG_GUEST |
int | FLAG_MANAGED_PROFILE |
int | FLAG_PRIMARY |
int | FLAG_RESTRICTED |
int | USER_SYSTEM
|
בנאים ציבוריים | |
---|---|
UserInfo (int userId, String userName, int flag, boolean isRunning) |
שיטות ציבוריות | |
---|---|
int | flag () |
boolean | isEphemeral () |
boolean | isGuest () |
boolean | isManagedProfile () |
boolean | isPrimary () |
boolean | isRunning () |
boolean | isSecondary () |
boolean | isSystem () |
boolean | isUserType ( UserInfo.UserType userType, int currentUserId) החזר אם מופע זה הוא מהסוג שצוין. |
int | userId () |
String | userName () |
קבועים
FLAGS_NOT_SECONDARY
public static final int FLAGS_NOT_SECONDARY
ערך קבוע: 45 (0x0000002d)
FLAG_EPHEMERAL
public static final int FLAG_EPHEMERAL
ערך קבוע: 256 (0x00000100)
FLAG_GUEST
public static final int FLAG_GUEST
ערך קבוע: 4 (0x00000004)
FLAG_MANAGED_PROFILE
public static final int FLAG_MANAGED_PROFILE
ערך קבוע: 32 (0x00000020)
FLAG_PRIMARY
public static final int FLAG_PRIMARY
ערך קבוע: 1 (0x00000001)
FLAG_RESTRICTED
public static final int FLAG_RESTRICTED
ערך קבוע: 8 (0x00000008)
USER_SYSTEM
public static final int USER_SYSTEM
ערך קבוע: 0 (0x00000000)
בנאים ציבוריים
מידע על משתמש
public UserInfo (int userId, String userName, int flag, boolean isRunning)
פרמטרים | |
---|---|
userId | int |
userName | String |
flag | int |
isRunning | boolean |
שיטות ציבוריות
דֶגֶל
public int flag ()
החזרות | |
---|---|
int |
היא ארעית
public boolean isEphemeral ()
החזרות | |
---|---|
boolean |
isGuest
public boolean isGuest ()
החזרות | |
---|---|
boolean |
isManagedProfile
public boolean isManagedProfile ()
החזרות | |
---|---|
boolean |
isPrimary
public boolean isPrimary ()
החזרות | |
---|---|
boolean |
רץ
public boolean isRunning ()
החזרות | |
---|---|
boolean |
הוא משני
public boolean isSecondary ()
החזרות | |
---|---|
boolean |
isSystem
public boolean isSystem ()
החזרות | |
---|---|
boolean |
isUserType
public boolean isUserType (UserInfo.UserType userType, int currentUserId)
החזר אם מופע זה הוא מהסוג שצוין.
פרמטרים | |
---|---|
userType | UserInfo.UserType |
currentUserId | int |
החזרות | |
---|---|
boolean |
תעודת זהות של המשתמש
public int userId ()
החזרות | |
---|---|
int |
שם משתמש
public String userName ()
החזרות | |
---|---|
String |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2022-08-15 (שעון UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"חסרים לי מידע או פרטים"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"התוכן מורכב מדי או עם יותר מדי שלבים"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"התוכן לא עדכני"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"בעיה בתרגום"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"בעיה בדוגמאות/בקוד"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"סיבה אחרת"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"התוכן קל להבנה"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"התוכן עזר לי לפתור בעיה"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"סיבה אחרת"
}]