Home
last modified time | relevance | path

Searched refs:mUserManager (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java61 private UserManager mUserManager; field in UserDetailsSettings
79 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in onCreate()
93 mUserInfo = mUserManager.getUserInfo(userId); in onCreate()
94 mPhonePref.setChecked(!mUserManager.hasUserRestriction( in onCreate()
102 mDefaultGuestRestrictions = mUserManager.getDefaultGuestRestrictions(); in onCreate()
116 if (!mUserManager.isAdminUser()) { in onPreferenceClick()
142 mUserManager.setDefaultGuestRestrictions(mDefaultGuestRestrictions); in enableCallsAndSms()
147 List<UserInfo> users = mUserManager.getUsers(true); in enableCallsAndSms()
152 mUserManager.setUserRestriction( in enableCallsAndSms()
159 mUserManager.setUserRestriction(UserManager.DISALLOW_OUTGOING_CALLS, !enabled, in enableCallsAndSms()
[all …]
DUserSettings.java147 private UserManager mUserManager; field in UserSettings
208 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in onCreate()
294 String nickname = mUserManager.getUserName(); in onCreateOptionsMenu()
332 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
346 Bitmap b = mUserManager.getUserIcon(myUserId); in finishLoadProfile()
407 UserInfo newUserInfo = mUserManager.createRestrictedProfile(mAddingUserName); in createRestrictedProfile()
413 UserInfo newUserInfo = mUserManager.createUser(mAddingUserName, 0); in createTrustedUser()
430 UserInfo info = mUserManager.getUserInfo(userId); in onManageUserClicked()
458 if (mUserManager.getUserInfo(userId).isRestricted()) { in onUserCreated()
634 mUserManager.removeUser(mRemovingUserId); in removeUserNow()
[all …]
DEditUserInfoController.java57 private UserManager mUserManager; field in EditUserInfoController
116 if (mUserManager == null) { in createDialog()
117 mUserManager = UserManager.get(activity); in createDialog()
122 UserInfo info = mUserManager.getUserInfo(mUser.getIdentifier()); in createDialog()
134 drawable = Utils.getUserIcon(activity, mUserManager, info); in createDialog()
156 mUserManager.setUserName(mUser.getIdentifier(), in createDialog()
171 mUserManager.setUserIcon(mUser.getIdentifier(), in createDialog()
DAppRestrictionsFragment.java80 protected UserManager mUserManager; field in AppRestrictionsFragment
231 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in init()
232 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in init()
353 if (Utils.getExistingUser(mUserManager, mUser) == null) { in populateApps()
556 mUserManager.setApplicationRestrictions(packageName, in onPreferenceChange()
596 mUserManager.getApplicationRestrictions(packageName, mUser); in requestRestrictionsForApp()
630 mUserManager.setApplicationRestrictions(packageName, in onReceive()
758 mUserManager.setApplicationRestrictions(packageName, in onActivityResult()
762 mUserManager.setApplicationRestrictions(packageName, bundle, mUser); in onActivityResult()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUtilsTest.java40 @Mock private UserManager mUserManager; field in UtilsTest
49 when(mUserManager.getUserHandle()).thenReturn(TEST_PRIMARY_USER_ID); in setUp()
52 when(mUserManager.getUserInfo(TEST_PRIMARY_USER_ID)).thenReturn(primaryUser); in setUp()
55 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
64 when(mUserManager.getUserProfiles()) in testGetManagedProfile()
67 Utils.getManagedProfile(mUserManager).getIdentifier()); in testGetManagedProfile()
75 when(mUserManager.getUserProfiles()) in testGetManagedProfile_notPresent()
77 assertNull(Utils.getManagedProfile(mUserManager)); in testGetManagedProfile_notPresent()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DSecurityFragment.java100 private UserManager mUserManager; field in SecurityFragment
114 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in onCreate()
140 if (isRestrictedProfileInEffect(mUserManager)) { in refresh()
404 mRestrictedUserInfo = findRestrictedUser(mUserManager); in getRestrictedUser()
420 mUserManager); in addRestrictedUser()
436 mUserManager.removeUser(restrictedUserHandle); in removeRestrictedUser()
456 private final UserManager mUserManager; field in SecurityFragment.CreateRestrictedProfileTask
460 mUserManager = userManager; in CreateRestrictedProfileTask()
465 UserInfo restrictedUserInfo = mUserManager.createProfileForUser( in doInBackground()
474 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); in doInBackground()
[all …]
/packages/apps/Settings/src/com/android/settings/accounts/
DManagedProfileSettings.java49 private UserManager mUserManager; field in ManagedProfileSettings
69 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
95 if (mUserManager.isManagedProfile(userHandle.getIdentifier())) { in getManagedUserFromArgument()
106 !mUserManager.isQuietModeEnabled(mManagedUser)); in loadDataAndPopulateUi()
130 mUserManager.trySetQuietModeDisabled(mManagedUser.getIdentifier(), null); in onPreferenceChange()
132 mUserManager.setQuietModeEnabled(mManagedUser.getIdentifier(), true); in onPreferenceChange()
164 !mUserManager.isQuietModeEnabled(mManagedUser)); in onReceive()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/uiflows/
DPreProvisioningController.java61 private final UserManager mUserManager; field in PreProvisioningController
93 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in PreProvisioningController()
371 mUi.startDeviceOwnerProvisioning(mUserManager.getUserHandle(), mParams); in maybeCreateUserAndStartDeviceOwnerProvisioning()
395 List<UserInfo> users = mUserManager.getUsers(); in isMeatUserCreationRequired()
436 UserInfo userInfo = mUserManager.createUser( in doInBackground()
459 UserInfo userInfo = mUserManager.getUserInfo(mUserManager.getUserHandle()); in showProvisioningError()
478 } else if (!mUserManager.canAddMoreManagedProfiles(UserHandle.myUserId(), in showProvisioningError()
/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java92 @Thunk final UserManagerCompat mUserManager; field in IconCache
118 mUserManager = UserManagerCompat.getInstance(mContext); in IconCache()
218 long userSerial = mUserManager.getSerialNumberForUser(user); in updateIconsForPkg()
233 long userSerial = mUserManager.getSerialNumberForUser(user); in removeIconsForPkg()
244 for (UserHandleCompat user : mUserManager.getUserProfiles()) { in updateDbIcons()
267 long userSerial = mUserManager.getSerialNumberForUser(user); in updateDBIcons()
387 entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, app.getUser()); in updateCacheAndGetContentValues()
570 entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, user); in cacheLocked()
631 … entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, user); in getEntryForPackageLocked()
639 mUserManager.getSerialNumberForUser(user)); in getEntryForPackageLocked()
[all …]
DWidgetPreviewLoader.java67 private final UserManagerCompat mUserManager; field in WidgetPreviewLoader
79 mUserManager = UserManagerCompat.getInstance(context); in WidgetPreviewLoader()
154 values.put(CacheDb.COLUMN_USER, mUserManager.getSerialNumberForUser(key.user)); in writeToDb()
164 removePackage(packageName, user, mUserManager.getSerialNumberForUser(user)); in removePackage()
200 final long userId = mUserManager.getSerialNumberForUser(user); in removeObsoletePreviews()
242 UserHandleCompat user = mUserManager.getUserForSerialNumber(userId); in removeObsoletePreviews()
268 Long.toString(mUserManager.getSerialNumberForUser(key.user)), in readFromDb()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DPreBootListener.java41 private UserManager mUserManager; field in PreBootListener
52 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in onReceive()
89 new DisallowAddUserTask(mUserManager, deviceOwnerUserId, splitSystemUser) in onReceive()
93 for (UserInfo userInfo : mUserManager.getUsers()) { in onReceive()
95 mUserManager.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true, in onReceive()
126 List<UserInfo> profiles = mUserManager.getProfiles(userId); in resetCrossProfileIntentFilters()
DProfileOwnerProvisioningService.java95 private UserManager mUserManager; field in ProfileOwnerProvisioningService
146 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
244 mManagedProfileOrUserInfo = mUserManager.getUserInfo(mUserManager.getUserHandle()); in startManagedProfileOrUserProvisioning()
463 mManagedProfileOrUserInfo = mUserManager.createProfileForUser(profileName, in createProfile()
565 mUserManager.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true, in setDefaultUserRestrictions()
586 mUserManager.removeUser(mManagedProfileOrUserInfo.id); in cleanupUserProfile()
/packages/apps/Settings/src/com/android/settings/
DRestrictedSettingsFragment.java64 private UserManager mUserManager; field in RestrictedSettingsFragment
101 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
102 mIsAdminUser = mUserManager.isAdminUser(); in onCreate()
185 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
201 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
254 return isUiRestricted() && !mUserManager.hasBaseUserRestriction(mRestrictionKey, in isUiRestrictedByOnlyAdmin()
DTrustedCredentialsSettings.java80 private UserManager mUserManager; field in TrustedCredentialsSettings
187 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreate()
282 final int profilesSize = mUserManager.getUserProfiles().size(); in addTab()
367 return mUserManager.getUserInfo(getUserIdByGroup(groupPosition)); in getUserInfoByGroup()
447 if (mUserManager.isQuietModeEnabled(groupUser)) { in checkGroupExpandableAndStartWarningActivity()
454 } else if (!mUserManager.isUserUnlocked(groupUser)) { in checkGroupExpandableAndStartWarningActivity()
488 holder.mSwitch.setEnabled(!mUserManager.hasUserRestriction( in getViewForCertificate()
659 List<UserHandle> profiles = mUserManager.getUserProfiles(); in AliasLoader()
666 return mUserManager.isQuietModeEnabled(userHandle) in shouldSkipProfile()
667 || !mUserManager.isUserUnlocked(userHandle.getIdentifier()); in shouldSkipProfile()
[all …]
DApnSettings.java101 private UserManager mUserManager; field in ApnSettings
176 mUserManager = UserManager.get(activity); in onCreate()
232 final UserHandle user = UserHandle.of(mUserManager.getUserHandle()); in getRestrictionEnforcedAdmin()
233 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, user) in getRestrictionEnforcedAdmin()
234 && !mUserManager.hasBaseUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, in getRestrictionEnforcedAdmin()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDisallowAddUserTask.java30 private final UserManager mUserManager; field in DisallowAddUserTask
36 mUserManager = userManager; in DisallowAddUserTask()
46 for (UserInfo userInfo : mUserManager.getUsers()) { in maybeDisallowAddUsers()
48 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER, userHandle)) { in maybeDisallowAddUsers()
49 mUserManager.setUserRestriction(UserManager.DISALLOW_ADD_USER, true, userHandle); in maybeDisallowAddUsers()
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DUserManagerCompatV17.java36 protected UserManager mUserManager; field in UserManagerCompatV17
39 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in UserManagerCompatV17()
49 return mUserManager.getSerialNumberForUser(user.getUser()); in getSerialNumberForUser()
58 return UserHandleCompat.fromUser(mUserManager.getUserForSerialNumber(serialNumber)); in getUserForSerialNumber()
67 long serial = mUserManager.getSerialNumberForUser(myUser.getUser()); in enableAndResetCache()
DUserManagerCompatVL.java53 List<UserHandle> users = mUserManager.getUserProfiles(); in enableAndResetCache()
56 long serial = mUserManager.getSerialNumberForUser(user); in enableAndResetCache()
75 List<UserHandle> users = mUserManager.getUserProfiles(); in getUserProfiles()
98 return mUserManager.getUserCreationTime(user.getUser()); in getUserCreationTime()
DAppWidgetManagerCompatVL.java53 private final UserManager mUserManager; field in AppWidgetManagerCompatVL
59 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in AppWidgetManagerCompatVL()
65 for (UserHandle user : mUserManager.getUserProfiles()) { in getAllProviders()
166 for (UserHandle user : mUserManager.getUserProfiles()) { in getAllProvidersMap()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DAppRestrictionsFragment.java83 protected UserManager mUserManager; field in AppRestrictionsFragment
262 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreate()
263 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in onCreate()
385 if (getExistingUser(mUserManager, mUser) == null) { in populateApps()
618 mUserManager.setApplicationRestrictions(packageName, in onPreferenceChange()
637 mUserManager.getApplicationRestrictions(packageName, mUser); in requestRestrictionsForApp()
668 mUserManager.setApplicationRestrictions(mPackageName, in onReceive()
778 mUserManager.setApplicationRestrictions(packageName, in onActivityResult()
782 mUserManager.setApplicationRestrictions(packageName, bundle, mUser); in onActivityResult()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java94 private UserManager mUserManager; field in NotificationMgr
117 mUserManager = (UserManager) app.getSystemService(Context.USER_SERVICE); in NotificationMgr()
328 List<UserInfo> users = mUserManager.getUsers(true); in updateMwi()
332 if (!mUserManager.hasUserRestriction( in updateMwi()
451 List<UserInfo> users = mUserManager.getUsers(true); in updateCfi()
493 List<UserInfo> users = mUserManager.getUsers(true); in showDataDisconnectedRoaming()
542 List<UserInfo> users = mUserManager.getUsers(true); in showNetworkSelection()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DAbstractUserComparator.java31 private final UserManagerCompat mUserManager; field in AbstractUserComparator
35 mUserManager = UserManagerCompat.getInstance(context); in AbstractUserComparator()
44 Long aUserSerial = mUserManager.getSerialNumberForUser(lhs.user); in compare()
45 Long bUserSerial = mUserManager.getSerialNumberForUser(rhs.user); in compare()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java50 private final UserManager mUserManager; field in AppStateAppOpsBridge
62 mUserManager = UserManager.get(context); in AppStateAppOpsBridge()
63 mProfiles = mUserManager.getUserProfiles(); in AppStateAppOpsBridge()
267 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(mUserManager in getNumPackagesDeclaredPermission()
282 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(mUserManager in getNumPackagesAllowedByAppOps()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsbBackend.java44 private UserManager mUserManager; field in UsbBackend
57 mUserManager = UserManager.get(context); in UsbBackend()
60 mRestricted = mUserManager.hasUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER); in UsbBackend()
61 mRestrictedBySystem = mUserManager.hasBaseUserRestriction( in UsbBackend()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageBase.java55 services.mUserManager = UserManager.get(context); in onCreate()
65 return services.mUserManager.isAdminUser(); in isAdmin()
73 return policy != null && isBandwidthControlEnabled() && services.mUserManager.isAdminUser() in isNetworkPolicyModifiable()

12