사용자 정보
public
final
class
UserInfo
extends Object
java.lang.Object | |
↳ | com.android.tradefed.device.UserInfo |
플랫폼의 UserInfo 클래스와 유사합니다.
이는 android.content.pm.UserInfo와 유사합니다.
한 사용자의 정보에 관한 데이터와 기본 로직을 저장합니다.
요약
상수 | |
---|---|
int |
FLAGS_
|
int |
FLAG_
|
int |
FLAG_
|
int |
FLAG_
|
int |
FLAG_
|
int |
FLAG_
|
int |
FLAG_
|
int |
FLAG_
|
int |
FLAG_
|
int |
USER_
|
필드 | |
---|---|
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
공개 생성자
사용자 정보
public UserInfo (int userId, String userName, int flag, boolean isRunning)
매개변수 | |
---|---|
userId |
int |
userName |
String |
flag |
int |
isRunning |
boolean |
사용자 정보
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 |