Home
last modified time | relevance | path

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

12

/packages/apps/Settings/src/com/android/settings/users/
DUserDetailsSettings.java60 private UserManager mUserManager; field in UserDetailsSettings
78 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in onCreate()
92 mUserInfo = mUserManager.getUserInfo(userId); in onCreate()
93 mPhonePref.setChecked(!mUserManager.hasUserRestriction( in onCreate()
101 mDefaultGuestRestrictions = mUserManager.getDefaultGuestRestrictions(); in onCreate()
105 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_REMOVE_USER)) { in onCreate()
139 mUserManager.setDefaultGuestRestrictions(mDefaultGuestRestrictions); in enableCallsAndSms()
141 List<UserInfo> users = mUserManager.getUsers(true); in enableCallsAndSms()
145 Bundle userRestrictions = mUserManager.getUserRestrictions(userHandle); in enableCallsAndSms()
147 mUserManager.setUserRestrictions(userRestrictions, userHandle); in enableCallsAndSms()
[all …]
DUserSettings.java140 private UserManager mUserManager; field in UserSettings
201 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in onCreate()
278 String nickname = mUserManager.getUserName(); in onCreateOptionsMenu()
329 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); in loadProfile()
342 Bitmap b = mUserManager.getUserIcon(myUserId); in finishLoadProfile()
403 UserInfo newUserInfo = mUserManager.createSecondaryUser( in createLimitedUser()
408 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); in createLimitedUser()
413 mUserManager.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user); in createLimitedUser()
427 UserInfo newUserInfo = mUserManager.createSecondaryUser( in createTrustedUser()
444 UserInfo info = mUserManager.getUserInfo(userId); in onManageUserClicked()
[all …]
DEditUserInfoController.java55 private UserManager mUserManager; field in EditUserInfoController
107 if (mUserManager == null) { in createDialog()
108 mUserManager = UserManager.get(activity); in createDialog()
113 UserInfo info = mUserManager.getUserInfo(mUser.getIdentifier()); in createDialog()
125 drawable = Utils.getUserIcon(activity, mUserManager, info); in createDialog()
147 mUserManager.setUserName(mUser.getIdentifier(), in createDialog()
162 mUserManager.setUserIcon(mUser.getIdentifier(), in createDialog()
DAppRestrictionsFragment.java84 protected UserManager mUserManager; field in AppRestrictionsFragment
250 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in init()
251 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in init()
326 if (!mUserManager.getUserInfo(userId).isRestricted() && userId != UserHandle.myUserId()) { in applyUserAppsStates()
632 if (Utils.getExistingUser(mUserManager, mUser) == null) { in populateApps()
844 mUserManager.setApplicationRestrictions(packageName, in onPreferenceChange()
884 mUserManager.getApplicationRestrictions(packageName, mUser); in requestRestrictionsForApp()
918 mUserManager.setApplicationRestrictions(packageName, in onReceive()
1049 mUserManager.setApplicationRestrictions(packageName, in onActivityResult()
1053 mUserManager.setApplicationRestrictions(packageName, bundle, mUser); in onActivityResult()
DRestrictedProfileSettings.java83 UserInfo info = Utils.getExistingUser(mUserManager, mUser); in onResume()
89 Utils.getUserIcon(getActivity(), mUserManager, info)); in onResume() local
141 mUserManager.removeUser(mUser.getIdentifier()); in removeUser()
/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java90 @Thunk final UserManagerCompat mUserManager; field in IconCache
116 mUserManager = UserManagerCompat.getInstance(mContext); in IconCache()
182 Drawable d = mUserManager.getBadgedDrawableForUser(unbadged, user); in makeDefaultIcon()
224 long userSerial = mUserManager.getSerialNumberForUser(user); in updateIconsForPkg()
239 long userSerial = mUserManager.getSerialNumberForUser(user); in removeIconsForPkg()
250 for (UserHandleCompat user : mUserManager.getUserProfiles()) { in updateDbIcons()
273 long userSerial = mUserManager.getSerialNumberForUser(user); in updateDBIcons()
386 entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, app.getUser()); in updateCacheAndGetContentValues()
568 entry.contentDescription = mUserManager.getBadgedLabelForUser(entry.title, user); in cacheLocked()
626 Drawable drawable = mUserManager.getBadgedDrawableForUser( in getEntryForPackageLocked()
[all …]
DWidgetPreviewLoader.java67 private final UserManagerCompat mUserManager; field in WidgetPreviewLoader
79 mUserManager = UserManagerCompat.getInstance(context); in WidgetPreviewLoader()
173 values.put(CacheDb.COLUMN_USER, mUserManager.getSerialNumberForUser(key.user)); in writeToDb()
189 removePackage(packageName, user, mUserManager.getSerialNumberForUser(user)); in removePackage()
229 final long userId = mUserManager.getSerialNumberForUser(user); in removeObsoletePreviews()
271 UserHandleCompat user = mUserManager.getUserForSerialNumber(userId); in removeObsoletePreviews()
297 Long.toString(mUserManager.getSerialNumberForUser(key.user)), in readFromDb()
/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.java55 List<UserHandle> users = mUserManager.getUserProfiles(); in enableAndResetCache()
58 long serial = mUserManager.getSerialNumberForUser(user); in enableAndResetCache()
77 List<UserHandle> users = mUserManager.getUserProfiles(); in getUserProfiles()
105 return mUserManager.getUserCreationTime(user.getUser()); in getUserCreationTime()
DAppWidgetManagerCompatVL.java50 private final UserManager mUserManager; field in AppWidgetManagerCompatVL
56 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in AppWidgetManagerCompatVL()
62 for (UserHandle user : mUserManager.getUserProfiles()) { in getAllProviders()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfileDialogFragment.java84 private UserManager mUserManager; field in RestrictedProfileDialogFragment
101 UserInfo restrictedUserInfo = mUserManager.createUser(
110 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user);
112 mUserManager.setUserIcon(userId, bitmap);
146 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreate()
147 mRestrictedUserInfo = findRestrictedUser(mUserManager); in onCreate()
434 mUserManager.removeUser(mRestrictedUserInfo.id); in removeRestrictedUser()
DAppRestrictionsManager.java67 private final UserManager mUserManager; field in AppRestrictionsManager
103 mUserManager = userManager; in AppRestrictionsManager()
247 mUserManager.setApplicationRestrictions(mPackageName, in onActivityResult()
251 mUserManager.setApplicationRestrictions(mPackageName, bundle, mUserHandle); in onActivityResult()
275 Bundle oldEntries = mUserManager.getApplicationRestrictions(mPackageName, mUserHandle); in requestRestrictionsForApp()
395 mUserManager.setApplicationRestrictions(mPackageName, bundle, mUserHandle); in saveRestrictions()
/packages/services/Telephony/src/com/android/phone/
DNotificationMgr.java97 private UserManager mUserManager; field in NotificationMgr
122 mUserManager = (UserManager) app.getSystemService(Context.USER_SERVICE); in NotificationMgr()
419 List<UserInfo> users = mUserManager.getUsers(true); in updateMwi()
423 if (!mUserManager.hasUserRestriction( in updateMwi()
489 List<UserInfo> users = mUserManager.getUsers(true); in updateCfi()
531 List<UserInfo> users = mUserManager.getUsers(true); in showDataDisconnectedRoaming()
579 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/
DRestrictedSettingsFragment.java54 private UserManager mUserManager; field in RestrictedSettingsFragment
85 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
161 return mUserManager.hasUserRestriction(mRestrictionKey) in isRestrictedAndNotProviderProtected()
177 || mUserManager.hasUserRestriction(mRestrictionKey); in shouldBeProviderProtected()
DTrustedCredentialsSettings.java68 private UserManager mUserManager; field in TrustedCredentialsSettings
180 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); in onCreate()
224 if (mUserManager.getUserProfiles().size() > 1) { in addTab()
334 final UserInfo userInfo = mUserManager.getUserInfo(profile.getIdentifier()); in getGroupView()
433 List<UserHandle> profiles = mUserManager.getUserProfiles(); in doInBackground()
619 holder.mSwitch.setEnabled(!mUserManager.hasUserRestriction( in getViewForCertificate()
682 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_CREDENTIALS, in showCertDialog()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java52 private final UserManager mUserManager; field in AppStateAppOpsBridge
64 mUserManager = UserManager.get(context); in AppStateAppOpsBridge()
65 mProfiles = mUserManager.getUserProfiles(); in AppStateAppOpsBridge()
268 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(mUserManager in getNumPackagesDeclaredPermission()
283 final ArrayMap<String, PermissionState> entriesForProfile = entries.get(mUserManager in getNumPackagesAllowedByAppOps()
DAppInfoBase.java66 protected UserManager mUserManager; field in AppInfoBase
83 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in onCreate()
95 mAppControlRestricted = mUserManager.hasUserRestriction(UserManager.DISALLOW_APPS_CONTROL); in onResume()
DInstalledAppDetails.java194 && mUserManager.getUsers().size() >= 2) { in initUninstallButtons()
248 List<UserInfo> userInfos = mUserManager.getUsers(); in isProfileOrDeviceOwner()
396 } else if (mUserManager.getUsers().size() < 2) { in onPrepareOptionsMenu()
759 BatteryEntry entry = new BatteryEntry(getActivity(), null, mUserManager, mSipper);
890 mUserManager.getUserProfiles());
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java87 private UserManager mUserManager; field in VpnSettings
108 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
109 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN)) { in onCreate()
249 for (UserHandle profile : mUserManager.getUserProfiles()) { in handleMessage()
358 for (UserHandle profile : mUserManager.getUserProfiles()) { in getVpnApps()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DProfileOwnerProvisioningService.java106 private UserManager mUserManager; field in ProfileOwnerProvisioningService
154 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); in onCreate()
502 mManagedProfileUserInfo = mUserManager.createProfileForUser(profileName, in createProfile()
594 mUserManager.setUserRestriction(UserManager.DISALLOW_WALLPAPER, true, in setDefaultUserRestrictions()
615 mUserManager.removeUser(mManagedProfileUserInfo.id); in cleanupUserProfile()
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DPackageInstallerActivity.java80 UserManager mUserManager; field in PackageInstallerActivity
369 if (mUserManager.hasUserRestriction(UserManager.ENSURE_VERIFY_APPS)) {
397 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES);
444 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE);
550 final boolean isManagedProfile = mUserManager.isManagedProfile();
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DUsbBackend.java40 private UserManager mUserManager; field in UsbBackend
52 mUserManager = UserManager.get(context); in UsbBackend()
55 mRestricted = mUserManager.hasUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER); in UsbBackend()
DPrivateVolumeSettings.java102 private UserManager mUserManager; field in PrivateVolumeSettings
136 mUserManager = context.getSystemService(UserManager.class); in onCreate()
157 mCurrentUser = mUserManager.getUserInfo(UserHandle.myUserId()); in onCreate()
182 List<UserInfo> allUsers = mUserManager.getUsers(); in update()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DComponentContextFixture.java153 return mUserManager; in getSystemService()
317 private final UserManager mUserManager = mock(UserManager.class);
359 when(mUserManager.getSerialNumberForUser(any(UserHandle.class))).thenReturn(-1L);

12