Lines Matching refs:userHandle

1590      * @param userHandle the user handle of the user whose information is being requested.
1594 public UserInfo getUserInfo(@UserIdInt int userHandle) {
1596 return mService.getUserInfo(userHandle);
1607 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
1617 public int getUserRestrictionSource(String restrictionKey, UserHandle userHandle) {
1619 return mService.getUserRestrictionSource(restrictionKey, userHandle.getIdentifier());
1630 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
1636 String restrictionKey, UserHandle userHandle) {
1638 return mService.getUserRestrictionSources(restrictionKey, userHandle.getIdentifier());
1653 * Returns the user-wide restrictions imposed on the user specified by <code>userHandle</code>.
1654 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
1657 public Bundle getUserRestrictions(UserHandle userHandle) {
1659 return mService.getUserRestrictions(userHandle.getIdentifier());
1671 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
1673 public boolean hasBaseUserRestriction(String restrictionKey, UserHandle userHandle) {
1675 return mService.hasBaseUserRestriction(restrictionKey, userHandle.getIdentifier());
1697 public void setUserRestrictions(Bundle restrictions, UserHandle userHandle) {
1722 * @param userHandle the user whose restriction is to be changed.
1729 public void setUserRestriction(String key, boolean value, UserHandle userHandle) {
1731 mService.setUserRestriction(key, value, userHandle.getIdentifier());
1753 * @param userHandle the UserHandle of the user for whom to retrieve the restrictions.
1755 public boolean hasUserRestriction(String restrictionKey, UserHandle userHandle) {
1758 userHandle.getIdentifier());
1857 * @param userHandle new user will be a profile of this user.
1863 public UserInfo createProfileForUser(String name, int flags, @UserIdInt int userHandle) {
1864 return createProfileForUser(name, flags, userHandle, null);
1874 * @param userHandle new user will be a profile of this user.
1881 public UserInfo createProfileForUser(String name, int flags, @UserIdInt int userHandle,
1884 return mService.createProfileForUser(name, flags, userHandle, disallowedPackages);
1899 @UserIdInt int userHandle, String[] disallowedPackages) {
1901 return mService.createProfileForUserEvenWhenDisallowed(name, flags, userHandle,
2070 * @param userHandle
2073 public boolean markGuestForDeletion(@UserIdInt int userHandle) {
2075 return mService.markGuestForDeletion(userHandle);
2107 * @param userHandle the id of the user to become admin
2114 public void setUserAdmin(@UserIdInt int userHandle) {
2116 mService.setUserAdmin(userHandle);
2127 public void evictCredentialEncryptionKey(@UserIdInt int userHandle) {
2129 mService.evictCredentialEncryptionKey(userHandle);
2189 public @Nullable String getUserAccount(@UserIdInt int userHandle) {
2191 return mService.getUserAccount(userHandle);
2205 public void setUserAccount(@UserIdInt int userHandle, @Nullable String accountName) {
2207 mService.setUserAccount(userHandle, accountName);
2266 * Returns list of the profiles of userHandle including
2267 * userHandle itself.
2272 * @param userHandle profiles of this user will be returned.
2276 public List<UserInfo> getProfiles(@UserIdInt int userHandle) {
2278 return mService.getProfiles(userHandle, false /* enabledOnly */);
2300 * Returns list of the profiles of userHandle including
2301 * userHandle itself.
2305 * @param userHandle profiles of this user will be returned.
2309 public List<UserInfo> getEnabledProfiles(@UserIdInt int userHandle) {
2311 return mService.getProfiles(userHandle, true /* enabledOnly */);
2368 * which this method is called, or userHandle if called from a user that
2373 public int getCredentialOwnerProfile(@UserIdInt int userHandle) {
2375 return mService.getCredentialOwnerProfile(userHandle);
2387 public UserInfo getProfileParent(@UserIdInt int userHandle) {
2389 return mService.getProfileParent(userHandle);
2412 * @param userHandle user handle of the profile
2416 * @throws IllegalArgumentException if {@code userHandle} is not a managed profile
2420 public boolean requestQuietModeEnabled(boolean enableQuietMode, @NonNull UserHandle userHandle) {
2421 return requestQuietModeEnabled(enableQuietMode, userHandle, null);
2433 boolean enableQuietMode, @NonNull UserHandle userHandle, IntentSender target) {
2436 mContext.getPackageName(), enableQuietMode, userHandle.getIdentifier(), target);
2446 * @param userHandle The user handle of the profile to be queried.
2449 public boolean isQuietModeEnabled(UserHandle userHandle) {
2451 return mService.isQuietModeEnabled(userHandle.getIdentifier());
2546 * @param userHandle the integer handle of the user, where 0 is the primary user.
2549 public boolean removeUser(@UserIdInt int userHandle) {
2551 return mService.removeUser(userHandle);
2565 public boolean removeUserEvenWhenDisallowed(@UserIdInt int userHandle) {
2567 return mService.removeUserEvenWhenDisallowed(userHandle);
2577 * @param userHandle the user's integer handle
2581 public void setUserName(@UserIdInt int userHandle, String name) {
2583 mService.setUserName(userHandle, name);
2591 * @param userHandle the user for whom to change the photo.
2595 public void setUserIcon(@UserIdInt int userHandle, Bitmap icon) {
2597 mService.setUserIcon(userHandle, icon);
2605 * @param userHandle the user whose photo we want to read.
2610 public Bitmap getUserIcon(@UserIdInt int userHandle) {
2612 ParcelFileDescriptor fd = mService.getUserIcon(userHandle);
2690 * Returns a serial number on this device for a given userHandle. User handles can be recycled
2692 * @param userHandle
2693 * @return a serial number associated with that user, or -1 if the userHandle is not valid.
2696 public int getUserSerialNumber(@UserIdInt int userHandle) {
2698 return mService.getUserSerialNumber(userHandle);
2705 * Returns a userHandle on this device for a given user serial number. User handles can be
2709 * @return the userHandle associated with that user serial number, or -1 if the serial number
2815 * @param userHandle user handle of the user or a managed profile associated with the
2819 public long getUserCreationTime(UserHandle userHandle) {
2821 return mService.getUserCreationTime(userHandle.getIdentifier());