Home
last modified time | relevance | path

Searched refs:UserManager (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java26 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/
DUserManagerService.java43 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/
DSettingsHelper.java29 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()
DSettingsProvider.java51 import android.os.UserManager;
103 private UserManager mUserManager;
329 mUserManager = UserManager.get(getContext()); in onCreate()
/frameworks/base/core/java/android/os/
DUserManager.java33 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/
DSettingsProviderTest.java30 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/
DEnableAccessibilityController.java32 import android.os.UserManager;
86 private final UserManager mUserManager;
102 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in EnableAccessibilityController()
DGlobalActions.java46 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/
DActivityTestMain.java35 import android.os.UserManager;
132 UserManager um = (UserManager)getSystemService(Context.USER_SERVICE); in onCreate()
/frameworks/base/services/java/com/android/server/search/
DSearchManagerService.java39 import android.os.UserManager;
85 boolean userExists = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)) in getSearchables()
/frameworks/base/services/java/com/android/server/
DLockSettingsService.java35 import android.os.UserManager;
107 final UserManager um = (UserManager) mContext.getSystemService(USER_SERVICE); in migrateOldData()
DWallpaperManagerService.java57 import android.os.UserManager;
611 users = ((UserManager) mContext.getSystemService(Context.USER_SERVICE)).getUsers(); in hasNamedWallpaper()
DNotificationManagerService.java61 import android.os.UserManager;
136 final UserManager mUserManager;
1284 mUserManager = (UserManager)context.getSystemService(Context.USER_SERVICE); in NotificationManagerService()
/frameworks/base/core/java/android/accounts/
DChooseTypeAndAccountActivity.java28 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/
DQuickSettings.java59 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/
DKeyguardViewMediator.java43 import android.os.UserManager;
169 private UserManager mUserManager;
495 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in KeyguardViewMediator()
DKeyguardHostView.java44 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/
DContext.java36 import android.os.UserManager;
/frameworks/base/services/java/com/android/server/accessibility/
DAccessibilityManagerService.java60 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/
DAccountManagerService.java67 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/
DNetworkPolicyManagerService.java117 import android.os.UserManager;
1761 final UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in updateRulesForRestrictBackgroundLocked()
/frameworks/base/services/java/com/android/server/content/
DSyncManager.java66 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/
DPm.java46 import android.os.UserManager;
1051 System.out.println("Maximum supported users: " + UserManager.getMaxSupportedUsers()); in runGetMaxUsers()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java42 import android.os.UserManager;
567 UserManager um = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in assertNotInstalled()
/frameworks/base/core/java/android/app/
DContextImpl.java91 import android.os.UserManager;
530 return new UserManager(ctx, service); in registerService()

12