/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 26 import android.os.UserManager; 35 UserManager mUserManager = null; 40 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in setUp() 70 restrictions.getBoolean(UserManager.DISALLOW_CONFIG_WIFI)); in testAddUser() 124 int N = UserManager.getMaxSupportedUsers(); in testMaxUsers() 150 restrictions.putBoolean(UserManager.DISALLOW_INSTALL_APPS, true); in testRestrictions() 151 restrictions.putBoolean(UserManager.DISALLOW_CONFIG_WIFI, false); in testRestrictions() 154 assertEquals(stored.getBoolean(UserManager.DISALLOW_CONFIG_WIFI), false); in testRestrictions() 155 assertEquals(stored.getBoolean(UserManager.DISALLOW_UNINSTALL_APPS), false); in testRestrictions() 156 assertEquals(stored.getBoolean(UserManager.DISALLOW_INSTALL_APPS), true); in testRestrictions()
|
/frameworks/base/services/java/com/android/server/pm/ |
D | UserManagerService.java | 43 import android.os.UserManager; 394 return nUsers >= UserManager.getMaxSupportedUsers(); in isUserLimitReachedLocked() 621 writeBoolean(serializer, restrictions, UserManager.DISALLOW_CONFIG_WIFI); in writeUserLocked() 622 writeBoolean(serializer, restrictions, UserManager.DISALLOW_MODIFY_ACCOUNTS); in writeUserLocked() 623 writeBoolean(serializer, restrictions, UserManager.DISALLOW_INSTALL_APPS); in writeUserLocked() 624 writeBoolean(serializer, restrictions, UserManager.DISALLOW_UNINSTALL_APPS); in writeUserLocked() 625 writeBoolean(serializer, restrictions, UserManager.DISALLOW_SHARE_LOCATION); in writeUserLocked() 627 UserManager.DISALLOW_INSTALL_UNKNOWN_SOURCES); in writeUserLocked() 628 writeBoolean(serializer, restrictions, UserManager.DISALLOW_CONFIG_BLUETOOTH); in writeUserLocked() 629 writeBoolean(serializer, restrictions, UserManager.DISALLOW_USB_FILE_TRANSFER); in writeUserLocked() [all …]
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsHelper.java | 29 import android.os.UserManager; 100 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in setGpsLocation() 101 if (um.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION)) { in setGpsLocation()
|
D | SettingsProvider.java | 51 import android.os.UserManager; 103 private UserManager mUserManager; 329 mUserManager = UserManager.get(getContext()); in onCreate()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 33 public class UserManager { class 143 private static UserManager sInstance = null; 146 public synchronized static UserManager get(Context context) { in get() 148 sInstance = (UserManager) context.getSystemService(Context.USER_SERVICE); in get() 154 public UserManager(Context context, IUserManager service) { in UserManager() method in UserManager
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | SettingsProviderTest.java | 30 import android.os.UserManager; 136 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testSettingsChangeForOtherUser() 240 private boolean findUser(UserManager um, int userHandle) { in findUser() 251 UserManager um = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in testPerUserSettings()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
D | EnableAccessibilityController.java | 32 import android.os.UserManager; 86 private final UserManager mUserManager; 102 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in EnableAccessibilityController()
|
D | GlobalActions.java | 46 import android.os.UserManager; 353 List<UserInfo> users = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)) in addUsersToMenu()
|
/frameworks/base/tests/ActivityTests/src/com/google/android/test/activity/ |
D | ActivityTestMain.java | 35 import android.os.UserManager; 132 UserManager um = (UserManager)getSystemService(Context.USER_SERVICE); in onCreate()
|
/frameworks/base/services/java/com/android/server/search/ |
D | SearchManagerService.java | 39 import android.os.UserManager; 85 boolean userExists = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)) in getSearchables()
|
/frameworks/base/services/java/com/android/server/ |
D | LockSettingsService.java | 35 import android.os.UserManager; 107 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in migrateOldData()
|
D | WallpaperManagerService.java | 57 import android.os.UserManager; 611 users = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)).getUsers(); in hasNamedWallpaper()
|
D | NotificationManagerService.java | 61 import android.os.UserManager; 136 final UserManager mUserManager; 1284 mUserManager = (UserManager)context.getSystemService(Context.USER_SERVICE); in NotificationManagerService()
|
/frameworks/base/core/java/android/accounts/ |
D | ChooseTypeAndAccountActivity.java | 28 import android.os.UserManager; 147 Bundle restrictions = UserManager.get(this) in onCreate() 150 restrictions.getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS, false); in onCreate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | QuickSettings.java | 59 import android.os.UserManager; 208 final UserManager um = UserManager.get(mContext); in queryForUserInformation() 297 final UserManager um = UserManager.get(mContext); in addUserTiles()
|
/frameworks/base/policy/src/com/android/internal/policy/impl/keyguard/ |
D | KeyguardViewMediator.java | 43 import android.os.UserManager; 169 private UserManager mUserManager; 495 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in KeyguardViewMediator()
|
D | KeyguardHostView.java | 44 import android.os.UserManager; 1531 if (!UserManager.supportsMultipleUsers()) { in enableUserSelectorIfNecessary() 1534 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in enableUserSelectorIfNecessary()
|
/frameworks/base/core/java/android/content/ |
D | Context.java | 36 import android.os.UserManager;
|
/frameworks/base/services/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 60 import android.os.UserManager; 792 UserManager userManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in switchUser() 1626 UserManager userManager = (UserManager) mContext.getSystemService( in announceNewUserIfNeeded()
|
/frameworks/base/services/java/com/android/server/accounts/ |
D | AccountManagerService.java | 67 import android.os.UserManager; 114 private UserManager mUserManager; 275 private UserManager getUserManager() { in getUserManager() 277 mUserManager = UserManager.get(mContext); in getUserManager() 2652 .getBoolean(UserManager.DISALLOW_MODIFY_ACCOUNTS)) { in canUserModifyAccounts()
|
/frameworks/base/services/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 117 import android.os.UserManager; 1761 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in updateRulesForRestrictBackgroundLocked()
|
/frameworks/base/services/java/com/android/server/content/ |
D | SyncManager.java | 66 import android.os.UserManager; 246 private final UserManager mUserManager; 439 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in SyncManager() 498 UserInfo userInfo = UserManager.get(mContext).getUserInfo(userId); in getIsSyncable()
|
/frameworks/base/cmds/pm/src/com/android/commands/pm/ |
D | Pm.java | 46 import android.os.UserManager; 1051 System.out.println("Maximum supported users: " + UserManager.getMaxSupportedUsers()); in runGetMaxUsers()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 42 import android.os.UserManager; 567 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in assertNotInstalled()
|
/frameworks/base/core/java/android/app/ |
D | ContextImpl.java | 91 import android.os.UserManager; 530 return new UserManager(ctx, service); in registerService()
|