Home | History | Annotate | Download | only in os

Lines Matching defs:UserHandle

29 public final class UserHandle implements Parcelable {
41 public static final UserHandle ALL = new UserHandle(USER_ALL);
47 public static final UserHandle CURRENT = new UserHandle(USER_CURRENT);
57 public static final UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
64 * @deprecated Consider using either {@link UserHandle#USER_SYSTEM} constant or
72 * @deprecated Consider using either {@link UserHandle#SYSTEM} constant or
76 public static final UserHandle OWNER = new UserHandle(USER_OWNER);
86 public static final UserHandle SYSTEM = new UserHandle(USER_SYSTEM);
173 * @return A {@link UserHandle} for that user.
175 public static UserHandle getUserHandleForUid(int uid) {
187 return UserHandle.USER_SYSTEM;
203 public static UserHandle of(@UserIdInt int userId) {
204 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId);
344 userId = UserHandle.USER_ALL;
346 userId = UserHandle.USER_CURRENT;
368 * Returns true if this UserHandle refers to the owner user; false otherwise.
369 * @return true if this UserHandle refers to the owner user; false otherwise.
382 * @return true if this UserHandle refers to the system user; false otherwise.
391 public UserHandle(int h) {
396 * Returns the userId stored in this UserHandle.
407 return "UserHandle{" + mHandle + "}";
414 UserHandle other = (UserHandle)obj;
436 * Write a UserHandle to a Parcel, handling null pointers. Must be
439 * @param h The UserHandle to be written.
440 * @param out The Parcel in which the UserHandle will be placed.
444 public static void writeToParcel(UserHandle h, Parcel out) {
453 * Read a UserHandle from a Parcel that was previously written
454 * with {@link #writeToParcel(UserHandle, Parcel)}, returning either
457 * @param in The Parcel from which to read the UserHandle
458 * @return Returns a new UserHandle matching the previously written
461 * @see #writeToParcel(UserHandle, Parcel)
463 public static UserHandle readFromParcel(Parcel in) {
465 return h != USER_NULL ? new UserHandle(h) : null;
468 public static final Parcelable.Creator<UserHandle> CREATOR
469 = new Parcelable.Creator<UserHandle>() {
470 public UserHandle createFromParcel(Parcel in) {
471 return new UserHandle(in);
474 public UserHandle[] newArray(int size) {
475 return new UserHandle[size];
480 * Instantiate a new UserHandle from the data in a Parcel that was
483 * {@link #writeToParcel(UserHandle, Parcel)} since it is not possible
484 * to handle a null UserHandle here.
486 * @param in The Parcel containing the previously written UserHandle,
489 public UserHandle(Parcel in) {