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
69 * @deprecated Consider using either {@link UserHandle#SYSTEM} constant or
72 public static final UserHandle OWNER = new UserHandle(USER_OWNER);
81 public static final UserHandle SYSTEM = new UserHandle(USER_SYSTEM);
135 * @return A {@link UserHandle} for that user.
137 public static UserHandle getUserHandleForUid(int uid) {
149 return UserHandle.USER_SYSTEM;
160 public static UserHandle of(@UserIdInt int userId) {
161 return userId == USER_SYSTEM ? SYSTEM : new UserHandle(userId);
280 userId = UserHandle.USER_ALL;
282 userId = UserHandle.USER_CURRENT;
304 * Returns true if this UserHandle refers to the owner user; false otherwise.
305 * @return true if this UserHandle refers to the owner user; false otherwise.
317 * @return true if this UserHandle refers to the system user; false otherwise.
326 public UserHandle(int h) {
331 * Returns the userId stored in this UserHandle.
341 return "UserHandle{" + mHandle + "}";
348 UserHandle other = (UserHandle)obj;
370 * Write a UserHandle to a Parcel, handling null pointers. Must be
373 * @param h The UserHandle to be written.
374 * @param out The Parcel in which the UserHandle will be placed.
378 public static void writeToParcel(UserHandle h, Parcel out) {
387 * Read a UserHandle from a Parcel that was previously written
388 * with {@link #writeToParcel(UserHandle, Parcel)}, returning either
391 * @param in The Parcel from which to read the UserHandle
392 * @return Returns a new UserHandle matching the previously written
395 * @see #writeToParcel(UserHandle, Parcel)
397 public static UserHandle readFromParcel(Parcel in) {
399 return h != USER_NULL ? new UserHandle(h) : null;
402 public static final Parcelable.Creator<UserHandle> CREATOR
403 = new Parcelable.Creator<UserHandle>() {
404 public UserHandle createFromParcel(Parcel in) {
405 return new UserHandle(in);
408 public UserHandle[] newArray(int size) {
409 return new UserHandle[size];
414 * Instantiate a new UserHandle from the data in a Parcel that was
417 * {@link #writeToParcel(UserHandle, Parcel)} since it is not possible
418 * to handle a null UserHandle here.
420 * @param in The Parcel containing the previously written UserHandle,
423 public UserHandle(Parcel in) {