/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 136 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testSettingsChangeForOtherUser() local 140 assertTrue(findUser(um, UserHandle.USER_OWNER)); in testSettingsChangeForOtherUser() 143 UserInfo otherUser = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testSettingsChangeForOtherUser() 166 um.removeUser(otherUser.id); in testSettingsChangeForOtherUser() 240 private boolean findUser(UserManager um, int userHandle) { in findUser() argument 241 for (UserInfo user : um.getUsers()) { in findUser() 251 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testPerUserSettings() local 255 assertTrue(findUser(um, UserHandle.USER_OWNER)); in testPerUserSettings() 258 UserInfo user = um.createUser("TestUser1", UserInfo.FLAG_GUEST); in testPerUserSettings() 283 um.removeUser(user.id); in testPerUserSettings()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 127 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); 128 final UserInfo parentInfo = um.getProfileParent(userHandle); 160 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in migrateOldData() local 162 List<UserInfo> users = um.getUsers(); in migrateOldData() 313 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in getUserParentOrSelfId() local 314 final UserInfo pi = um.getProfileParent(userId); in getUserParentOrSelfId() 365 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in maybeUpdateKeystore() local 368 final List<UserInfo> profiles = um.getProfiles(userHandle); in maybeUpdateKeystore() 517 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in removeUser() local 518 final UserInfo parentInfo = um.getProfileParent(userId); in removeUser() [all …]
|
D | MountService.java | 1283 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in hasUserRestriction() local 1284 return um.hasUserRestriction(restriction, Binder.getCallingUserHandle()); in hasUserRestriction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoController.java | 141 final UserManager um = UserManager.get(mContext); in queryForUserInformation() 147 Bitmap rawAvatar = um.getUserIcon(userId); in queryForUserInformation() 159 if (um.getUsers().size() <= 1) { in queryForUserInformation()
|
D | LocationControllerImpl.java | 144 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in isUserLocationRestricted() local 145 return um.hasUserRestriction( in isUserLocationRestricted()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | MultiUserSwitch.java | 125 UserManager um = UserManager.get(getContext()); in opensUserSwitcherWhenClicked() local 126 return UserManager.supportsMultipleUsers() && um.isUserSwitcherEnabled(); in opensUserSwitcherWhenClicked()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 153 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setGpsLocation() local 154 if (um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)) { in setGpsLocation()
|
/frameworks/base/core/java/android/os/ |
D | RecoverySystem.java | 391 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); in rebootWipeUserData() local 392 if (um.hasUserRestriction(UserManager.DISALLOW_FACTORY_RESET)) { in rebootWipeUserData()
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
D | KeyguardHostView.java | 1014 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in enableUserSelectorIfNecessary() local 1015 if (um == null) { in enableUserSelectorIfNecessary() 1023 if (!um.isUserSwitcherEnabled()) { in enableUserSelectorIfNecessary() 1036 mKeyguardMultiUserSelectorView.addUsers(um.getUsers(true)); in enableUserSelectorIfNecessary()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 151 UserManager um = (UserManager)getSystemService(Context.USER_SERVICE); in onCreate() local 152 List<UserInfo> users = um.getUsers(); in onCreate()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | GlobalActions.java | 479 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); 480 if (um.isUserSwitcherEnabled()) { 481 List<UserInfo> users = um.getUsers();
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 4174 final UndoManager um = mEditor.mUndoManager; 4175 if (um.isInUndo()) { 4180 um.beginUpdate("Edit text"); 4181 TextModifyOperation op = um.getLastOperation( 4194 um.endUpdate(); 4211 um.endUpdate(); 4221 um.commitState(null); 4222 um.setUndoLabel("Edit text"); 4238 um.addOperation(op, UndoManager.MERGE_MODE_NONE); 4239 um.endUpdate();
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 695 UserManager um = UserManager.get(mContext); in setWifiApEnabled() local 696 if (um.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) { in setWifiApEnabled()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 4861 UserManager um = UserManager.get(mContext); in enableSystemApp() local 4862 UserInfo primaryUser = um.getProfileParent(userId); in enableSystemApp() 4866 primaryUser = um.getUserInfo(userId); in enableSystemApp() 4901 UserManager um = UserManager.get(mContext); in enableSystemAppWithIntent() local 4902 UserInfo primaryUser = um.getProfileParent(userId); in enableSystemAppWithIntent() 4906 primaryUser = um.getUserInfo(userId); in enableSystemAppWithIntent()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1952 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in updateRulesForGlobalChangeLocked() local 1962 final List<UserInfo> users = um.getUsers(); in updateRulesForGlobalChangeLocked()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 570 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in assertNotInstalled() local 571 List<UserInfo> users = um.getUsers(); in assertNotInstalled()
|
/frameworks/base/docs/html/about/versions/ |
D | android-4.3.jd | 328 UserManager um = (UserManager) context.getSystemService(Context.USER_SERVICE); 329 Bundle restrictions = um.getUserRestrictions();
|