/packages/apps/PackageInstaller/src/com/android/packageinstaller/ |
D | UninstallAppProgress.java | 73 private boolean isProfileOfOrSame(UserManager userManager, int userId, int profileId) { in isProfileOfOrSame() argument 77 UserInfo parentUser = userManager.getProfileParent(profileId); in isProfileOfOrSame() 121 UserManager userManager = 128 for (UserInfo user : userManager.getUsers()) { 131 if (isProfileOfOrSame(userManager, myUserId, user.id)) continue; 159 UserManager userManager = 163 List<UserInfo> users = userManager.getUsers(); 179 if (isProfileOfOrSame(userManager, myUserId, blockingUserId)) { 226 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate() local 227 List<UserHandle> profiles = userManager.getUserProfiles(); in onCreate()
|
D | UninstallerActivity.java | 80 UserManager userManager = UserManager.get(getActivity()); in onCreateDialog() local 81 if (dialogInfo.allUsers && userManager.getUserCount() >= 2) { in onCreateDialog() 84 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateDialog()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | ManagedProfileHeuristic.java | 94 UserManagerCompat userManager = UserManagerCompat.getInstance(context); in ManagedProfileHeuristic() local 95 mUserSerial = userManager.getSerialNumberForUser(user); in ManagedProfileHeuristic() 96 mUserCreationTime = userManager.getUserCreationTime(user); in ManagedProfileHeuristic() 302 UserManagerCompat userManager = UserManagerCompat.getInstance(context); in processAllUsers() local 305 addAllUserKeys(userManager.getSerialNumberForUser(user), validKeys); in processAllUsers() 330 UserManagerCompat userManager = UserManagerCompat.getInstance(context); in markExistingUsersForNoFolderCreation() local 334 for (UserHandleCompat user : userManager.getUserProfiles()) { in markExistingUsersForNoFolderCreation() 344 String folderIdKey = USER_FOLDER_ID_PREFIX + userManager.getSerialNumberForUser(user); in markExistingUsersForNoFolderCreation()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 733 public static UserHandle getManagedProfile(UserManager userManager) { in getManagedProfile() argument 734 List<UserHandle> userProfiles = userManager.getUserProfiles(); in getManagedProfile() 738 if (profile.getIdentifier() == userManager.getUserHandle()) { in getManagedProfile() 741 final UserInfo userInfo = userManager.getUserInfo(profile.getIdentifier()); in getManagedProfile() 752 public static boolean isManagedProfile(UserManager userManager) { in isManagedProfile() argument 753 UserInfo currentUser = userManager.getUserInfo(userManager.getUserHandle()); in isManagedProfile() 765 public static UserAdapter createUserSpinnerAdapter(UserManager userManager, in createUserSpinnerAdapter() argument 767 List<UserHandle> userProfiles = userManager.getUserProfiles(); in createUserSpinnerAdapter() 777 return createUserAdapter(userManager, context, userProfiles); in createUserSpinnerAdapter() 780 public static UserAdapter createUserAdapter(UserManager userManager, in createUserAdapter() argument [all …]
|
D | CredentialStorage.java | 133 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in onResume() local 134 if (!userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in onResume() 445 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in checkCallerIsCertInstallerOrSelfInProfile() local 446 UserInfo parentInfo = userManager.getProfileParent(launchedFromUserId); in checkCallerIsCertInstallerOrSelfInProfile()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | CallLogProvider.java | 462 private void syncEntriesFromPrimaryUser(UserManager userManager) { in syncEntriesFromPrimaryUser() argument 463 final int userHandle = userManager.getUserHandle(); in syncEntriesFromPrimaryUser() 465 || userManager.getUserInfo(userHandle).isManagedProfile()) { in syncEntriesFromPrimaryUser() 620 final UserManager userManager = UserUtils.getUserManager(context); in performBackgroundTask() local 621 if (userManager != null && in performBackgroundTask() 622 !userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS)) { in performBackgroundTask() 623 syncEntriesFromPrimaryUser(userManager); in performBackgroundTask()
|
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/ |
D | ProfileOwnerPreProvisioningActivity.java | 193 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in isMaximumManagedProfilesLimitReached() local 194 return !userManager.canAddMoreManagedProfiles(); in isMaximumManagedProfilesLimitReached() 295 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in onRemoveProfileApproval() local 296 userManager.removeUser(existingManagedProfileUserId); in onRemoveProfileApproval()
|
D | Utils.java | 303 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfile() local 304 int currentUserId = userManager.getUserHandle(); in getManagedProfile() 305 List<UserInfo> userProfiles = userManager.getProfiles(currentUserId); in getManagedProfile()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherProvider.java | 513 UserManagerCompat userManager = UserManagerCompat.getInstance(mContext); in onCreate() local 514 long userSerialNumber = userManager.getSerialNumberForUser( in onCreate() 887 UserManagerCompat userManager = UserManagerCompat.getInstance(mContext); in addProfileColumn() local 890 long userSerialNumber = userManager.getSerialNumberForUser( in addProfileColumn() 1153 UserManagerCompat userManager = UserManagerCompat.getInstance(mContext); in migrateLauncher2Shortcuts() local 1158 userHandle = userManager.getUserForSerialNumber(userSerialNumber); in migrateLauncher2Shortcuts() 1163 userSerialNumber = userManager.getSerialNumberForUser(userHandle); in migrateLauncher2Shortcuts()
|
D | UninstallDropTarget.java | 42 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in supportsDrop() local 43 Bundle restrictions = userManager.getUserRestrictions(); in supportsDrop()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | OsUtil.java | 138 final UserManager userManager = in isSecondaryUser() local 140 if (userManager != null) { in isSecondaryUser() 141 final long userSerialNumber = userManager.getSerialNumberForUser(uh); in isSecondaryUser()
|
D | BugleActivityUtil.java | 69 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in checkHasSmsPermissionsForUser() local 70 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS)) { in checkHasSmsPermissionsForUser()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/ |
D | RestrictedProfileDialogFragment.java | 277 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in isRestrictedProfileInEffect() local 278 UserInfo userInfo = userManager.getUserInfo(UserHandle.myUserId()); in isRestrictedProfileInEffect() 294 /* package */ static UserInfo findRestrictedUser(UserManager userManager) { in findRestrictedUser() argument 295 for (UserInfo userInfo : userManager.getUsers()) { in findRestrictedUser()
|
D | AppRestrictionsManager.java | 99 AppRestrictionsManager(Fragment fragment, UserHandle userHandle, UserManager userManager, in AppRestrictionsManager() argument 103 mUserManager = userManager; in AppRestrictionsManager()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | DownloadRequest.java | 209 final UserManager userManager = in notifyOfDownload() local 218 if (userManager.hasUserRestriction(UserManager.DISALLOW_SMS, targetUser)) { in notifyOfDownload() 222 UserInfo info = userManager.getUserInfo(users[i]); in notifyOfDownload()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/util/ |
D | DevicePolicyUtils.java | 33 final UserManager userManager = (UserManager) context in isBluetoothWorkContactSharingDisabled() local 36 final List<UserInfo> userInfoList = userManager.getProfiles(myUserId); in isBluetoothWorkContactSharingDisabled()
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallActivity.java | 59 final UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate() local 60 final UserHandle userHandle = new UserHandle(userManager.getUserHandle()); in onCreate()
|
D | UserCallIntentProcessor.java | 100 final UserManager userManager = in processOutgoingCallIntent() local 102 if (userManager.hasUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, mUserHandle) in processOutgoingCallIntent()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | DeleteDropTarget.java | 157 UserManager userManager = (UserManager) in onDragStart() local 159 if (userManager.hasUserRestriction(UserManager.DISALLOW_APPS_CONTROL) in onDragStart() 160 || userManager.hasUserRestriction(UserManager.DISALLOW_UNINSTALL_APPS)) { in onDragStart()
|
/packages/apps/Dialer/src/com/android/dialer/settings/ |
D | DialerSettingsActivity.java | 127 final UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in isPrimaryUser() local 128 return userManager.isSystemUser(); in isPrimaryUser()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | PhoneAccountRegistrar.java | 1339 UserManager userManager = UserManager.get(context); 1341 userManager.getSerialNumberForUser(o.getUserHandle()), serializer); 1357 UserManager userManager = UserManager.get(context); 1376 userHandle = userManager.getUserForSerialNumber(serialNumber);
|
/packages/apps/CertInstaller/src/com/android/certinstaller/ |
D | CertInstallerMain.java | 74 UserManager userManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate() local 75 if (userManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS)) { in onCreate()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | P2pLinkManager.java | 494 UserManager userManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isBeamDisabled() local 495 UserInfo userInfo = userManager.getUserInfo(UserHandle.getUserId(uid)); in isBeamDisabled() 496 return userManager.hasUserRestriction( in isBeamDisabled()
|
/packages/apps/Settings/src/com/android/settings/accounts/ |
D | AuthenticatorHelper.java | 71 public AuthenticatorHelper(Context context, UserHandle userHandle, UserManager userManager, in AuthenticatorHelper() argument 74 mUm = userManager; in AuthenticatorHelper()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserSettings.java | 1036 UserManager userManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in create() local 1043 final boolean disallowAddUser = userManager.hasUserRestriction( in create() 1057 caps.mIsGuest = userManager.getUserInfo(myUserId).isGuest(); in create()
|