UserInfo
public
final
class
UserInfo
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.UserInfo |
यह प्लैटफ़ॉर्म की UserInfo क्लास से मिलती-जुलती है.
यह android.content.pm.UserInfo जैसा ही है.
किसी उपयोगकर्ता की जानकारी के बारे में डेटा और बुनियादी लॉजिक सेव करती है.
खास जानकारी
कॉन्स्टेंट | |
---|---|
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
|
फ़ील्ड्स की फ़िल्में | |
---|---|
public
static
final
String |
CLONE_PROFILE_TYPE
|
public
static
final
String |
COMMUNAL_PROFILE_TYPE
|
public
static
final
String |
PRIVATE_PROFILE_TYPE
|
पब्लिक कंस्ट्रक्टर | |
---|---|
UserInfo(int userId, String userName, int flag, boolean isRunning)
|
|
UserInfo(int userId, String userName, int flag, boolean isRunning, String userType)
|
सार्वजनिक तरीके | |
---|---|
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)
यह बताता है कि यह इंस्टेंस, तय किए गए टाइप का है या नहीं. |
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_FOR_TESTING
public static final int FLAG_FOR_TESTING
कॉन्स्टेंट वैल्यू: 32768 (0x00008000)
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)
USER_SYSTEM
public static final int USER_SYSTEM
कॉन्स्टेंट वैल्यू: 0 (0x00000000)
फ़ील्ड्स की फ़िल्में
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
पब्लिक कंस्ट्रक्टर
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 |
isCloneProfile
public boolean isCloneProfile ()
रिटर्न | |
---|---|
boolean |
isCommunalProfile
public boolean isCommunalProfile ()
रिटर्न | |
---|---|
boolean |
isEphemeral
public boolean isEphemeral ()
रिटर्न | |
---|---|
boolean |
isFlagForTesting
public boolean isFlagForTesting ()
रिटर्न | |
---|---|
boolean |
isGuest
public boolean isGuest ()
रिटर्न | |
---|---|
boolean |
isMain
public boolean isMain ()
रिटर्न | |
---|---|
boolean |
isManagedProfile
public boolean isManagedProfile ()
रिटर्न | |
---|---|
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 |
userId
public int userId ()
रिटर्न | |
---|---|
int |
userName
public String userName ()
रिटर्न | |
---|---|
String |