/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
UserManagerTest.java | 35 UserManager mUserManager = null; 40 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); 57 UserInfo userInfo = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST); 60 List<UserInfo> list = mUserManager.getUsers(); 68 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); 78 UserInfo user1 = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST); 79 UserInfo user2 = mUserManager.createUser("User 2", UserInfo.FLAG_ADMIN); 92 UserInfo userInfo = mUserManager.createUser("Guest 1", UserInfo.FLAG_GUEST); 99 List<UserInfo> list = mUserManager.getUsers(); 110 UserInfo user1 = mUserManager.createUser("User 1", UserInfo.FLAG_RESTRICTED) [all...] |
/packages/apps/Settings/src/com/android/settings/users/ |
UserSettings.java | 135 private UserManager mUserManager; 185 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); 189 mUserManager.isLinkedUser() ? null : this, null); 233 String nickname = mUserManager.getUserName(); 262 UserInfo user = mUserManager.getUserInfo(UserHandle.myUserId()); 279 Bitmap b = mUserManager.getUserIcon(myUserId); 340 UserInfo newUserInfo = mUserManager.createUser( 345 mUserManager.setUserRestriction(UserManager.DISALLOW_MODIFY_ACCOUNTS, true, user); 346 mUserManager.setUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, true, user); 352 mUserManager.setUserIcon(userId, bitmap) [all...] |
AppRestrictionsFragment.java | 111 private UserManager mUserManager; 289 mUserManager = (UserManager) getActivity().getSystemService(Context.USER_SERVICE); 328 UserInfo info = mUserManager.getUserInfo(mUser.getIdentifier()); 348 Bitmap userIcon = mUserManager.getUserIcon(mUser.getIdentifier()); 358 if (!mUserManager.getUserInfo(userId).isRestricted()) { 762 mUserManager.setApplicationRestrictions(packageName, [all...] |
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothSettings.java | 77 private UserManager mUserManager; 105 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); 174 if (mUserManager.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) return; 222 if (mUserManager.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) return; 269 if (! mUserManager.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) { 300 if (! mUserManager.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) { 369 if (mUserManager.hasUserRestriction(DISALLOW_CONFIG_BLUETOOTH)) return;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
EnableAccessibilityController.java | 86 private final UserManager mUserManager; 102 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); 226 final boolean hasMoreThanOneUser = mUserManager.getUsers().size() > 1;
|
/packages/apps/Settings/src/com/android/settings/wifi/ |
WifiSettings.java | 133 private UserManager mUserManager; 295 mUserManager = (UserManager) getSystemService(Context.USER_SERVICE); 452 if (mUserManager.hasUserRestriction(DISALLOW_CONFIG_WIFI)) return; 510 if (mUserManager.hasUserRestriction(DISALLOW_CONFIG_WIFI)) return false; 710 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_WIFI)) { [all...] |
/packages/apps/Settings/src/com/android/settings/deviceinfo/ |
StorageVolumePreferenceCategory.java | 60 private final UserManager mUserManager; 127 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); 475 final List<UserInfo> users = mUserManager.getUsers();
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
KeyguardViewMediator.java | 169 private UserManager mUserManager; 495 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); 688 && mUserManager.getUsers(true).size() == 1) { [all...] |
/frameworks/base/services/java/com/android/server/content/ |
SyncManager.java | 246 private final UserManager mUserManager; 252 return mUserManager.getUsers(); 290 for (UserInfo user : mUserManager.getUsers(true)) { 439 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); [all...] |
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
SettingsProvider.java | 103 private UserManager mUserManager; 329 mUserManager = UserManager.get(getContext()); 494 if (mUserManager.getUserInfo(userHandle).isRestricted()) { [all...] |
/packages/apps/Settings/src/com/android/settings/applications/ |
InstalledAppDetails.java | 105 private UserManager mUserManager; 362 && mUserManager.getUsers().size() >= 2) { 410 mUserManager = (UserManager)getActivity().getSystemService(Context.USER_SERVICE); 501 } else if (mUserManager.getUsers().size() < 2) { [all...] |
/frameworks/base/services/java/com/android/server/accounts/ |
AccountManagerService.java | 114 private UserManager mUserManager; 276 if (mUserManager == null) { 277 mUserManager = UserManager.get(mContext); 279 return mUserManager; [all...] |
/frameworks/base/services/java/com/android/server/ |
NotificationManagerService.java | 136 final UserManager mUserManager; [all...] |
/frameworks/base/services/java/com/android/server/am/ |
ActivityManagerService.java | 875 private UserManagerService mUserManager; [all...] |