Lines Matching defs:UserHandle
22 public final class UserHandle implements Parcelable {
32 public static final UserHandle ALL = new UserHandle(USER_ALL);
38 public static final UserHandle CURRENT = new UserHandle(USER_CURRENT);
48 public static final UserHandle CURRENT_OR_SELF = new UserHandle(USER_CURRENT_OR_SELF);
57 public static final UserHandle OWNER = new UserHandle(USER_OWNER);
164 public UserHandle(int h) {
175 return "UserHandle{" + mHandle + "}";
182 UserHandle other = (UserHandle)obj;
204 * Write a UserHandle to a Parcel, handling null pointers. Must be
207 * @param h The UserHandle to be written.
208 * @param out The Parcel in which the UserHandle will be placed.
212 public static void writeToParcel(UserHandle h, Parcel out) {
221 * Read a UserHandle from a Parcel that was previously written
222 * with {@link #writeToParcel(UserHandle, Parcel)}, returning either
225 * @param in The Parcel from which to read the UserHandle
226 * @return Returns a new UserHandle matching the previously written
229 * @see #writeToParcel(UserHandle, Parcel)
231 public static UserHandle readFromParcel(Parcel in) {
233 return h != USER_NULL ? new UserHandle(h) : null;
236 public static final Parcelable.Creator<UserHandle> CREATOR
237 = new Parcelable.Creator<UserHandle>() {
238 public UserHandle createFromParcel(Parcel in) {
239 return new UserHandle(in);
242 public UserHandle[] newArray(int size) {
243 return new UserHandle[size];
248 * Instantiate a new UserHandle from the data in a Parcel that was
251 * {@link #writeToParcel(UserHandle, Parcel)} since it is not possible
252 * to handle a null UserHandle here.
254 * @param in The Parcel containing the previously written UserHandle,
257 public UserHandle(Parcel in) {