Lines Matching refs:UserHandle

27 public final class UserHandle implements Parcelable {
37 public static final UserHandle ALL = new UserHandle(USER_ALL);
43 public static final UserHandle CURRENT = new UserHandle(USER_CURRENT);
53 public static final UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
62 public static final UserHandle OWNER = new UserHandle(USER_OWNER);
72 private static final SparseArray<UserHandle> userHandles = new SparseArray<UserHandle>();
133 public static final UserHandle getCallingUserHandle() {
135 UserHandle userHandle = userHandles.get(userId);
138 userHandle = new UserHandle(userId);
266 * Returns true if this UserHandle refers to the owner user; false otherwise.
267 * @return true if this UserHandle refers to the owner user; false otherwise.
276 public UserHandle(int h) {
281 * Returns the userId stored in this UserHandle.
291 return "UserHandle{" + mHandle + "}";
298 UserHandle other = (UserHandle)obj;
320 * Write a UserHandle to a Parcel, handling null pointers. Must be
323 * @param h The UserHandle to be written.
324 * @param out The Parcel in which the UserHandle will be placed.
328 public static void writeToParcel(UserHandle h, Parcel out) {
337 * Read a UserHandle from a Parcel that was previously written
338 * with {@link #writeToParcel(UserHandle, Parcel)}, returning either
341 * @param in The Parcel from which to read the UserHandle
342 * @return Returns a new UserHandle matching the previously written
345 * @see #writeToParcel(UserHandle, Parcel)
347 public static UserHandle readFromParcel(Parcel in) {
349 return h != USER_NULL ? new UserHandle(h) : null;
352 public static final Parcelable.Creator<UserHandle> CREATOR
353 = new Parcelable.Creator<UserHandle>() {
354 public UserHandle createFromParcel(Parcel in) {
355 return new UserHandle(in);
358 public UserHandle[] newArray(int size) {
359 return new UserHandle[size];
364 * Instantiate a new UserHandle from the data in a Parcel that was
367 * {@link #writeToParcel(UserHandle, Parcel)} since it is not possible
368 * to handle a null UserHandle here.
370 * @param in The Parcel containing the previously written UserHandle,
373 public UserHandle(Parcel in) {