Methods Summary |
---|
public int | describeContents()
return 0;
|
public android.os.UserHandle | getUserHandle()
return new UserHandle(id);
|
public boolean | isAdmin()
return (flags & FLAG_ADMIN) == FLAG_ADMIN;
|
public boolean | isEnabled()
return (flags & FLAG_DISABLED) != FLAG_DISABLED;
|
public boolean | isGuest()
return (flags & FLAG_GUEST) == FLAG_GUEST;
|
public boolean | isManagedProfile()
return (flags & FLAG_MANAGED_PROFILE) == FLAG_MANAGED_PROFILE;
|
public boolean | isPrimary()
return (flags & FLAG_PRIMARY) == FLAG_PRIMARY;
|
public boolean | isRestricted()
return (flags & FLAG_RESTRICTED) == FLAG_RESTRICTED;
|
public boolean | supportsSwitchTo()
// TODO remove fw.show_hidden_users when we have finished developing managed profiles.
return !isManagedProfile() || SystemProperties.getBoolean("fw.show_hidden_users", false);
|
public java.lang.String | toString()
return "UserInfo{" + id + ":" + name + ":" + Integer.toHexString(flags) + "}";
|
public void | writeToParcel(android.os.Parcel dest, int parcelableFlags)
dest.writeInt(id);
dest.writeString(name);
dest.writeString(iconPath);
dest.writeInt(flags);
dest.writeInt(serialNumber);
dest.writeLong(creationTime);
dest.writeLong(lastLoggedInTime);
dest.writeInt(partial ? 1 : 0);
dest.writeInt(profileGroupId);
dest.writeInt(guestToRemove ? 1 : 0);
|