/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | UidDetailProvider.java | 132 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in buildUidDetail() local 137 final UserInfo info = um.getUserInfo(userHandle); in buildUidDetail() 140 detail.icon = Utils.getUserIcon(mContext, um, info); in buildUidDetail() 157 detail.icon = um.getBadgedIconForUser(info.loadIcon(pm), in buildUidDetail() 171 detail.detailContentDescriptions[i] = um.getBadgedLabelForUser( in buildUidDetail() 176 detail.icon = um.getBadgedIconForUser(appInfo.loadIcon(pm), userHandle); in buildUidDetail() 181 detail.contentDescription = um.getBadgedLabelForUser(detail.label, userHandle); in buildUidDetail()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceTest.java | 68 UserManager um = UserManager.get(mContext); in testAddUserWithAccount() local 69 UserInfo user = um.createUser("Test User", 0); in testAddUserWithAccount() 73 um.setUserAccount(tempUserId, accountName); in testAddUserWithAccount() 74 assertEquals(accountName, um.getUserAccount(tempUserId)); in testAddUserWithAccount()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 160 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testSettingsChangeForOtherUser() local 164 assertTrue(findUser(um, UserHandle.USER_SYSTEM)); in testSettingsChangeForOtherUser() 167 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser() 186 um.removeUser(otherUser.id); in testSettingsChangeForOtherUser() 270 private boolean findUser(UserManager um, int userHandle) { in findUser() argument 271 for (UserInfo user : um.getUsers()) { in findUser() 281 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testPerUserSettings() local 285 assertTrue(findUser(um, UserHandle.USER_SYSTEM)); in testPerUserSettings() 288 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings() 313 um.removeUser(user.id); in testPerUserSettings()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 84 final UserManager um = UserManager.get(context); in checkIfRestrictionEnforced() local 86 um.getUserRestrictionSources(userRestriction, UserHandle.of(userId)); in checkIfRestrictionEnforced() 105 final UserInfo parentUser = um.getProfileParent(adminUserId); in checkIfRestrictionEnforced() 123 final UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in hasBaseUserRestriction() local 124 return um.hasBaseUserRestriction(userRestriction, UserHandle.of(userId)); in hasBaseUserRestriction() 318 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in getManagedProfileId() local 319 List<UserInfo> userProfiles = um.getProfiles(userId); in getManagedProfileId() 440 final UserManager um = UserManager.get(context); in checkIfMaximumTimeToLockIsSet() local 441 final List<UserInfo> profiles = um.getProfiles(userId); in checkIfMaximumTimeToLockIsSet() 670 UserManager um = UserManager.get(context); in isCurrentUserOrProfile() local [all …]
|
D | Utils.java | 97 public static UserIconDrawable getUserIcon(Context context, UserManager um, UserInfo user) { in getUserIcon() argument 106 Bitmap icon = um.getUserIcon(user.id); in getUserIcon()
|
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/ |
D | RetailDemoModeService.java | 191 final UserManager um = mInjector.getUserManager(); in handleMessage() local 195 for (UserInfo user : um.getUsers()) { in handleMessage() 207 demoUser = um.createUser(DEMO_USER_NAME, flags); in handleMessage() 341 final UserManager um = mInjector.getUserManager(); in setupDemoUser() local 343 um.setUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, true, user); in setupDemoUser() 344 um.setUserRestriction(UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES, true, user); in setupDemoUser() 345 um.setUserRestriction(UserManager.DISALLOW_CONFIG_MOBILE_NETWORKS, true, user); in setupDemoUser() 346 um.setUserRestriction(UserManager.DISALLOW_USB_FILE_TRANSFER, true, user); in setupDemoUser() 347 um.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); in setupDemoUser() 348 um.setUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH, true, user); in setupDemoUser() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | UserAdapter.java | 53 public UserDetails(UserHandle userHandle, UserManager um, Context context) { in UserDetails() argument 55 UserInfo userInfo = um.getUserInfo(mUserHandle.getIdentifier()); in UserDetails() 64 if (um.getUserIcon(userId) != null) { in UserDetails() 65 icon = new BitmapDrawable(context.getResources(), um.getUserIcon(userId)); in UserDetails()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoControllerImpl.java | 145 final UserManager um = UserManager.get(mContext); in queryForUserInformation() 151 Bitmap rawAvatar = um.getUserIcon(userId); in queryForUserInformation() 162 if (um.getUsers().size() <= 1) { in queryForUserInformation() 180 String userAccount = um.getUserAccount(userId); in queryForUserInformation()
|
D | LocationControllerImpl.java | 138 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted() local 139 return um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, in isUserLocationRestricted()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/ |
D | TaskSnapshotPersisterTestBase.java | 58 final UserManager um = UserManager.get(InstrumentationRegistry.getContext()); in setUp() local 59 mTestUserId = um.getUserHandle(); in setUp()
|
/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/ |
D | KernelPackageMappingTests.java | 63 UserManager um = (UserManager) InstrumentationRegistry.getContext().getSystemService( in getUserManager() local 65 return um; in getUserManager()
|
/frameworks/base/core/java/android/util/ |
D | IconDrawableFactory.java | 96 public static int getUserBadgeColor(UserManager um, @UserIdInt int userId) { in getUserBadgeColor() argument 97 int badge = um.getManagedProfileBadge(userId); in getUserBadgeColor()
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 105 PackageManager pm, UserManager um, StorageStatsManager storageStatsManager) { in BackgroundHandler() argument 109 mUm = um; in BackgroundHandler()
|
D | CacheQuotaStrategy.java | 172 UserManager um = mContext.getSystemService(UserManager.class); in getUnfulfilledRequests() local 173 final List<UserInfo> users = um.getUsers(); in getUnfulfilledRequests()
|
/frameworks/base/services/core/java/com/android/server/search/ |
D | SearchManagerService.java | 120 final UserManager um = mContext.getSystemService(UserManager.class); in getSearchables() local 121 if (um.getUserInfo(userId) == null) { in getSearchables() 124 if (!um.isUserUnlockingOrUnlocked(userId)) { in getSearchables()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/location/ |
D | RecentLocationApps.java | 74 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in getAppList() local 75 final List<UserHandle> profiles = um.getUserProfiles(); in getAppList()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/ |
D | GlobalActionsDialog.java | 354 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onLongPress() local 355 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress() 386 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onLongPress() local 387 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress() 604 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); 605 if (um.isUserSwitcherEnabled()) { 606 List<UserInfo> users = um.getUsers();
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | LegacyGlobalActions.java | 355 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onLongPress() local 356 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress() 387 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in onLongPress() local 388 if (!um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in onLongPress() 605 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); 606 if (um.isUserSwitcherEnabled()) { 607 List<UserInfo> users = um.getUsers();
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 272 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setGpsLocation() local 273 if (um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)) { in setGpsLocation()
|
/frameworks/base/core/java/android/service/trust/ |
D | TrustAgentService.java | 547 UserManager um = (UserManager) getSystemService(Context.USER_SERVICE); in unlockUserWithToken() local 548 if (um.isUserUnlocked()) { in unlockUserWithToken()
|
/frameworks/base/services/core/java/com/android/server/fingerprint/ |
D | FingerprintService.java | 682 UserManager um = UserManager.get(mContext); in getEffectiveUserId() local 683 if (um != null) { in getEffectiveUserId() 685 userId = um.getCredentialOwnerProfile(userId); in getEffectiveUserId() 694 UserManager um = UserManager.get(mContext); in isCurrentUserOrProfile() local 695 if (um == null) { in isCurrentUserOrProfile() 703 for (int profileId : um.getEnabledProfileIds(ActivityManager.getCurrentUser())) { in isCurrentUserOrProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediator.java | 906 UserManager um = UserManager.get(mContext); in doKeyguardLaterForChildProfilesLocked() local 907 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardLaterForChildProfilesLocked() 928 UserManager um = UserManager.get(mContext); in doKeyguardForChildProfilesLocked() local 929 for (int profileId : um.getEnabledProfileIds(UserHandle.myUserId())) { in doKeyguardForChildProfilesLocked() 1622 final UserManager um = (UserManager) mContext.getSystemService( in sendUserPresentBroadcast() local 1625 … for (int profileId : um.getProfileIdsWithDisabled(currentUser.getIdentifier())) { in sendUserPresentBroadcast()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | ShutdownThread.java | 234 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in rebootSafeMode() local 235 if (um.hasUserRestriction(UserManager.DISALLOW_SAFE_BOOT)) { in rebootSafeMode()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsStorage.java | 473 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in removeUser() local 474 final UserInfo parentInfo = um.getProfileParent(userId); in removeUser()
|
/frameworks/base/media/java/android/media/ |
D | RingtoneManager.java | 453 final UserManager um = UserManager.get(mContext); in getParentProfileRingtones() local 454 final UserInfo parentInfo = um.getProfileParent(mContext.getUserId()); in getParentProfileRingtones()
|