Lines Matching refs:user

30  * Manages users and user details on a multi-user system.
46 * @return true if multiple users can be created, false if it is a single user device.
54 * Returns the user handle for the user that this application is running for.
55 * @return the user handle of the user making this call.
63 * Returns the user name of the user making this call. This call is only
66 * @return the user name
72 Log.w(TAG, "Could not get user name", re);
78 * Used to determine whether the user making this call is subject to
80 * @return whether the user making this call is a goat
87 * Return whether the given user is actively running. This means that
88 * the user is in the "started" state, not "stopped" -- it is currently
90 * etc. A started user may be either the current foreground user or a
91 * background user; the result here does not distinguish between the two.
92 * @param user The user to retrieve the running state for.
94 public boolean isUserRunning(UserHandle user) {
97 user.getIdentifier(), false);
104 * Return whether the given user is actively running <em>or</em> stopping.
106 * true if the user had been running but is in the process of being stopped
108 * @param user The user to retrieve the running state for.
110 public boolean isUserRunningOrStopping(UserHandle user) {
113 user.getIdentifier(), true);
120 * Returns the UserInfo object describing a specific user.
122 * @param userHandle the user handle of the user whose information is being requested.
123 * @return the UserInfo object for a specific user.
130 Log.w(TAG, "Could not get user info", re);
136 * Return the serial number for a user. This is a device-unique
137 * number assigned to that user; if the user is deleted and then a new
138 * user created, the new users will not be given the same serial number.
139 * @param user The user whose serial number is to be retrieved.
140 * @return The serial number of the given user; returns -1 if the
144 public long getSerialNumberForUser(UserHandle user) {
145 return getUserSerialNumber(user.getIdentifier());
149 * Return the user associated with a serial number previously
151 * @param serialNumber The serial number of the user that is being
153 * @return Return the user associated with the serial number, or null
163 * Creates a user with the specified name and options.
166 * @param name the user's name
167 * @param flags flags that identify the type of user and other properties.
170 * @return the UserInfo object for the created user, or null if the user could not be created.
177 Log.w(TAG, "Could not create a user", re);
200 Log.w(TAG, "Could not get user list", re);
216 Log.w(TAG, "Could not get user list", re);
222 * Removes a user and all associated data.
224 * @param userHandle the integer handle of the user, where 0 is the primary user.
231 Log.w(TAG, "Could not remove user ", re);
237 * Updates the user's name.
240 * @param userHandle the user's integer handle
241 * @param name the new name for the user
248 Log.w(TAG, "Could not set the user name ", re);
253 * Sets the user's photo.
254 * @param userHandle the user for whom to change the photo.
262 Log.w(TAG, "Could not set the user icon ", re);
267 * Returns a file descriptor for the user's photo. PNG data can be read from this file.
268 * @param userHandle the user whose photo we want to read.
269 * @return a {@link Bitmap} of the user's photo, or null if there's no photo.
276 Log.w(TAG, "Could not get the user icon ", re);
297 * Checks if a guest user is enabled for this device.
299 * @return whether a guest user is enabled
312 * Wipes all the data for a user, but doesn't remove the user.
321 Log.w(TAG, "Could not wipe user " + userHandle);
327 * of 1 means that it is a single user device.
342 * @return a serial number associated with that user, or -1 if the userHandle is not valid.
349 Log.w(TAG, "Could not get serial number for user " + userHandle);
355 * Returns a userHandle on this device for a given user serial number. User handles can be
359 * @return the userHandle associated with that user serial number, or -1 if the serial number
367 Log.w(TAG, "Could not get userHandle for user " + userSerialNumber);