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()
इस तरीके का इस्तेमाल बंद कर दिया गया है.
इसके बजाय, |
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
कॉन्स्टेंट वैल्यू: "profile.CLONE"
COMMUNAL_PROFILE_TYPE
public static final String COMMUNAL_PROFILE_TYPE
कॉन्स्टेंट वैल्यू: "profile.COMMUNAL"
FLAGS_NOT_SECONDARY
public static final int FLAGS_NOT_SECONDARY
कॉन्स्टेंट वैल्यू: 45 (0x0000002d)
FLAG_ADMIN
public static final int FLAG_ADMIN
कॉन्स्टेंट वैल्यू: 2 (0x00000002)
FLAG_EPHEMERAL
public static final int FLAG_EPHEMERAL
कॉन्स्टेंट वैल्यू: 256 (0x00000100)
FLAG_FOR_TESTING
public static final int FLAG_FOR_TESTING
कॉन्स्टेंट वैल्यू: 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
कॉन्स्टेंट वैल्यू: 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
कॉन्स्टेंट वैल्यू: 8 (0x00000008)
PER_USER_RANGE
public static final int PER_USER_RANGE
कॉन्स्टेंट वैल्यू: 100000 (0x000186a0)
PRIVATE_PROFILE_TYPE
public static final String PRIVATE_PROFILE_TYPE
कॉन्स्टेंट वैल्यू: "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 |
|