Lines Matching refs:um

202         UserManager um = UserManager.get(context);  in getUserManager()  local
203 if (um == null) { in getUserManager()
206 return um; in getUserManager()
355 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in copyMeProfilePhoto() local
357 um.setUserIcon(userId, icon); in copyMeProfilePhoto()
364 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in assignDefaultPhoto() local
366 um.setUserIcon(userId, bitmap); in assignDefaultPhoto()
629 public static int getManagedProfileId(UserManager um, int parentUserId) { in getManagedProfileId() argument
630 int[] profileIds = um.getProfileIdsWithDisabled(parentUserId); in getManagedProfileId()
663 UserManager um, @Nullable Bundle arguments, @Nullable Bundle intentExtras) { in getSecureTargetUser() argument
674 if (isProfileOf(um, launchedFromUser)) { in getSecureTargetUser()
682 if (launchedFromSettingsApp && isProfileOf(um, extrasUser)) { in getSecureTargetUser()
690 if (launchedFromSettingsApp && isProfileOf(um, argumentsUser)) { in getSecureTargetUser()
743 private static boolean isProfileOf(UserManager um, UserHandle otherUser) { in isProfileOf() argument
744 if (um == null || otherUser == null) return false; in isProfileOf()
746 || um.getUserProfiles().contains(otherUser); in isProfileOf()
1028 final UserManager um = getUserManager(context); in enforceSameOwner() local
1029 final int[] profileIds = um.getProfileIdsWithDisabled(UserHandle.myUserId()); in enforceSameOwner()
1048 UserManager um = getUserManager(context); in getCredentialOwnerUserId() local
1049 return um.getCredentialOwnerProfile(userId); in getCredentialOwnerUserId()
1118 public static boolean startQuietModeDialogIfNecessary(Context context, UserManager um, in startQuietModeDialogIfNecessary() argument
1120 if (um.isQuietModeEnabled(UserHandle.of(userId))) { in startQuietModeDialogIfNecessary()