Lines Matching refs:user

31  * Manages users and user details on a multi-user system.
40 * Key for user restrictions. Specifies if a user is disallowed from adding and removing
51 * Key for user restrictions. Specifies if a user is disallowed from changing Wi-Fi
62 * Key for user restrictions. Specifies if a user is disallowed from installing applications.
72 * Key for user restrictions. Specifies if a user is disallowed from uninstalling applications.
82 * Key for user restrictions. Specifies if a user is disallowed from toggling location sharing.
93 * Key for user restrictions. Specifies if a user is disallowed from enabling the
104 * Key for user restrictions. Specifies if a user is disallowed from configuring bluetooth.
114 * Key for user restrictions. Specifies if a user is disallowed from transferring files over
124 * Key for user restrictions. Specifies if a user is disallowed from configuring user
134 * Key for user restrictions. Specifies if a user is disallowed from removing users.
168 * @return true if multiple users can be created, false if it is a single user device.
176 * Returns the user handle for the user that this application is running for.
177 * @return the user handle of the user making this call.
185 * Returns the user name of the user making this call. This call is only
188 * @return the user name
194 Log.w(TAG, "Could not get user name", re);
200 * Used to determine whether the user making this call is subject to
202 * @return whether the user making this call is a goat
209 * Used to check if the user making this call is linked to another user. Linked users may have
211 * @return whether the user making this call is a linked user
218 Log.w(TAG, "Could not check if user is limited ", re);
224 * Return whether the given user is actively running. This means that
225 * the user is in the "started" state, not "stopped" -- it is currently
227 * etc. A started user may be either the current foreground user or a
228 * background user; the result here does not distinguish between the two.
229 * @param user The user to retrieve the running state for.
231 public boolean isUserRunning(UserHandle user) {
234 user.getIdentifier(), false);
241 * Return whether the given user is actively running <em>or</em> stopping.
243 * true if the user had been running but is in the process of being stopped
245 * @param user The user to retrieve the running state for.
247 public boolean isUserRunningOrStopping(UserHandle user) {
250 user.getIdentifier(), true);
257 * Returns the UserInfo object describing a specific user.
259 * @param userHandle the user handle of the user whose information is being requested.
260 * @return the UserInfo object for a specific user.
267 Log.w(TAG, "Could not get user info", re);
273 * Returns the user-wide restrictions imposed on this user.
281 * Returns the user-wide restrictions imposed on the user specified by <code>userHandle</code>.
282 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
289 Log.w(TAG, "Could not get user restrictions", re);
295 * Sets all the user-wide restrictions for this user.
304 * Sets all the user-wide restrictions for the specified user.
307 * @param userHandle the UserHandle of the user for whom to set the restrictions.
313 Log.w(TAG, "Could not set user restrictions", re);
331 * Sets the value of a specific restriction on a specific user.
335 * @param userHandle the user whose restriction is to be changed.
345 * Returns whether the current user has been disallowed from performing certain actions
355 * Returns whether the given user has been disallowed from performing certain actions
358 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
365 * Return the serial number for a user. This is a device-unique
366 * number assigned to that user; if the user is deleted and then a new
367 * user created, the new users will not be given the same serial number.
368 * @param user The user whose serial number is to be retrieved.
369 * @return The serial number of the given user; returns -1 if the
373 public long getSerialNumberForUser(UserHandle user) {
374 return getUserSerialNumber(user.getIdentifier());
378 * Return the user associated with a serial number previously
380 * @param serialNumber The serial number of the user that is being
382 * @return Return the user associated with the serial number, or null
392 * Creates a user with the specified name and options.
395 * @param name the user's name
396 * @param flags flags that identify the type of user and other properties.
399 * @return the UserInfo object for the created user, or null if the user could not be created.
406 Log.w(TAG, "Could not create a user", re);
429 Log.w(TAG, "Could not get user list", re);
445 Log.w(TAG, "Could not get user list", re);
451 * Removes a user and all associated data.
453 * @param userHandle the integer handle of the user, where 0 is the primary user.
460 Log.w(TAG, "Could not remove user ", re);
466 * Updates the user's name.
469 * @param userHandle the user's integer handle
470 * @param name the new name for the user
477 Log.w(TAG, "Could not set the user name ", re);
482 * Sets the user's photo.
483 * @param userHandle the user for whom to change the photo.
491 Log.w(TAG, "Could not set the user icon ", re);
496 * Returns a file descriptor for the user's photo. PNG data can be read from this file.
497 * @param userHandle the user whose photo we want to read.
498 * @return a {@link Bitmap} of the user's photo, or null if there's no photo.
505 Log.w(TAG, "Could not get the user icon ", re);
526 * Checks if a guest user is enabled for this device.
528 * @return whether a guest user is enabled
541 * Wipes all the data for a user, but doesn't remove the user.
550 Log.w(TAG, "Could not wipe user " + userHandle);
556 * of 1 means that it is a single user device.
571 * @return a serial number associated with that user, or -1 if the userHandle is not valid.
578 Log.w(TAG, "Could not get serial number for user " + userHandle);
584 * Returns a userHandle on this device for a given user serial number. User handles can be
588 * @return the userHandle associated with that user serial number, or -1 if the serial number
596 Log.w(TAG, "Could not get userHandle for user " + userSerialNumber);
602 * Returns a Bundle containing any saved application restrictions for this user, for the
621 public Bundle getApplicationRestrictions(String packageName, UserHandle user) {
623 return mService.getApplicationRestrictionsForUser(packageName, user.getIdentifier());
625 Log.w(TAG, "Could not get application restrictions for user " + user.getIdentifier());
634 UserHandle user) {
636 mService.setApplicationRestrictions(packageName, restrictions, user.getIdentifier());
638 Log.w(TAG, "Could not set application restrictions for user " + user.getIdentifier());
660 * allowing the user to enter the PIN.
677 * Checks whether the user has restrictions that are PIN-protected. An application that