Lines Matching defs:UserHandle

29 public final class UserHandle implements Parcelable {
39 public static final UserHandle ALL = new UserHandle(USER_ALL);
45 public static final UserHandle CURRENT = new UserHandle(USER_CURRENT);
55 public static final UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
62 * @deprecated Consider using either {@link UserHandle#USER_SYSTEM} constant or
70 * @deprecated Consider using either {@link UserHandle#SYSTEM} constant or
74 public static final UserHandle OWNER = new UserHandle(USER_OWNER);
83 public static final UserHandle SYSTEM = new UserHandle(USER_SYSTEM);
137 * @return A {@link UserHandle} for that user.
139 public static UserHandle getUserHandleForUid(int uid) {
151 return UserHandle.USER_SYSTEM;
162 public static UserHandle of(@UserIdInt int userId) {
163 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId);
291 userId = UserHandle.USER_ALL;
293 userId = UserHandle.USER_CURRENT;
315 * Returns true if this UserHandle refers to the owner user; false otherwise.
316 * @return true if this UserHandle refers to the owner user; false otherwise.
329 * @return true if this UserHandle refers to the system user; false otherwise.
338 public UserHandle(int h) {
343 * Returns the userId stored in this UserHandle.
354 return "UserHandle{" + mHandle + "}";
361 UserHandle other = (UserHandle)obj;
383 * Write a UserHandle to a Parcel, handling null pointers. Must be
386 * @param h The UserHandle to be written.
387 * @param out The Parcel in which the UserHandle will be placed.
391 public static void writeToParcel(UserHandle h, Parcel out) {
400 * Read a UserHandle from a Parcel that was previously written
401 * with {@link #writeToParcel(UserHandle, Parcel)}, returning either
404 * @param in The Parcel from which to read the UserHandle
405 * @return Returns a new UserHandle matching the previously written
408 * @see #writeToParcel(UserHandle, Parcel)
410 public static UserHandle readFromParcel(Parcel in) {
412 return h != USER_NULL ? new UserHandle(h) : null;
415 public static final Parcelable.Creator<UserHandle> CREATOR
416 = new Parcelable.Creator<UserHandle>() {
417 public UserHandle createFromParcel(Parcel in) {
418 return new UserHandle(in);
421 public UserHandle[] newArray(int size) {
422 return new UserHandle[size];
427 * Instantiate a new UserHandle from the data in a Parcel that was
430 * {@link #writeToParcel(UserHandle, Parcel)} since it is not possible
431 * to handle a null UserHandle here.
433 * @param in The Parcel containing the previously written UserHandle,
436 public UserHandle(Parcel in) {