ข้อมูลผู้ใช้
public final class UserInfo
extends Object
java.lang.Object |
↳ | com.android.tradefed.device.UserInfo |
คล้ายกับคลาส UserInfo จากแพลตฟอร์ม
สิ่งนี้ตั้งใจให้คล้ายกับ android.content.pm.UserInfo
เก็บข้อมูลและตรรกะพื้นฐานเกี่ยวกับข้อมูลสำหรับผู้ใช้หนึ่งราย
สรุป
ผู้สร้างสาธารณะ |
---|
UserInfo (int userId, String userName, int flag, boolean isRunning) |
UserInfo (int userId, String userName, int flag, boolean isRunning, String userType) |
ค่าคงที่
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_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
ผู้สร้างสาธารณะ
ข้อมูลผู้ใช้
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 |
วิธีการสาธารณะ
isCloneProfile
public boolean isCloneProfile ()
เป็นชั่วคราว
public boolean isEphemeral ()
คือแขก
public boolean isGuest ()
คือหลัก
public boolean isMain ()
isManagedProfile
public boolean isManagedProfile ()
คือประถมศึกษา
public boolean isPrimary ()
กำลังวิ่ง
public boolean isRunning ()
เป็นรอง
public boolean isSecondary ()
isSystem
public boolean isSystem ()
isUserType
public boolean isUserType (UserInfo.UserType userType,
int currentUserId)
ส่งคืนว่าอินสแตนซ์นี้เป็นประเภทที่ระบุหรือไม่
พารามิเตอร์ |
---|
userType | UserInfo.UserType |
currentUserId | int |
รหัสผู้ใช้
public int userId ()
ชื่อผู้ใช้
public String userName ()