ข้อมูลผู้ใช้

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_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

ผู้สร้างสาธารณะ

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 isEphemeral ()
boolean isGuest ()
boolean isMain ()
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_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

วิธีการสาธารณะ

ธง

public int flag ()

ส่งคืน
int

isCloneProfile

public boolean isCloneProfile ()

ส่งคืน
boolean

เป็นชั่วคราว

public boolean isEphemeral ()

ส่งคืน
boolean

คือแขก

public boolean isGuest ()

ส่งคืน
boolean

คือหลัก

public boolean isMain ()

ส่งคืน
boolean

isManagedProfile

public boolean isManagedProfile ()

ส่งคืน
boolean

คือประถมศึกษา

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