Home
last modified time | relevance | path

Searched refs:mUserManager (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java35 private UserManager mUserManager = null; field in UserManagerTest
41 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in setUp()
65 List<UserInfo> list = mUserManager.getUsers(); in removeExistingUsers()
81 List<UserInfo> list = mUserManager.getUsers(); in testAddUser()
89 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser()
132 assertFalse(mUserManager.isManagedProfile()); in testAddManagedProfile()
141 assertEquals(profile.creationTime, mUserManager.getUserCreationTime( in testGetUserCreationTime()
144 long ownerCreationTime = mUserManager.getUserInfo(UserHandle.USER_OWNER).creationTime; in testGetUserCreationTime()
145 assertEquals(ownerCreationTime, mUserManager.getUserCreationTime( in testGetUserCreationTime()
150 mUserManager.getUserCreationTime(new UserHandle(noSuchUserId)); in testGetUserCreationTime()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DMultiUserSwitch.java45 final UserManager mUserManager; field in MultiUserSwitch
53 mUserManager = UserManager.get(getContext()); in MultiUserSwitch()
84 if (UserSwitcherController.isUserSwitcherAvailable(mUserManager) && mUserListener == null) { in registerListener()
106 if (UserSwitcherController.isUserSwitcherAvailable(mUserManager)) { in onClick()
138 if (UserSwitcherController.isUserSwitcherAvailable(mUserManager) in refreshContentDescription()
145 if (UserSwitcherController.isUserSwitcherAvailable(mUserManager)) { in refreshContentDescription()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java64 private final UserManager mUserManager; field in SecurityControllerImpl
80 mUserManager = (UserManager) in SecurityControllerImpl()
119 for (UserInfo profile : mUserManager.getProfiles(mCurrentUserId)) { in getProfileOwnerName()
140 for (UserInfo profile : mUserManager.getProfiles(mVpnUserId)) { in getProfileVpnName()
154 for (UserInfo profile : mUserManager.getProfiles(mVpnUserId)) { in isVpnEnabled()
179 if (mUserManager.getUserInfo(newUserId).isRestricted()) { in onUserSwitched()
214 for (UserInfo user : mUserManager.getUsers()) { in updateState()
DUserSwitcherController.java80 private final UserManager mUserManager; field in UserSwitcherController
102 mUserManager = UserManager.get(context); in UserSwitcherController()
167 List<UserInfo> infos = mUserManager.getUsers(true); in refreshUsers()
186 picture = mUserManager.getUserIcon(info.id); in refreshUsers()
199 boolean ownerCanCreateUsers = !mUserManager.hasUserRestriction( in refreshUsers()
207 && mUserManager.canAddMoreUsers(); in refreshUsers()
268 UserInfo guest = mUserManager.createGuest( in switchTo()
321 UserInfo info = mUserManager.getUserInfo(mLastNonGuestUser); in exitGuest()
327 mUserManager.removeUser(id); in exitGuest()
343 UserInfo userInfo = mUserManager.getUserInfo(currentUser);
[all …]
DAccessPointControllerImpl.java58 private final UserManager mUserManager; field in AccessPointControllerImpl
64 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in AccessPointControllerImpl()
70 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_WIFI, in canConfigWifi()
DZenModeControllerImpl.java61 private final UserManager mUserManager; field in ZenModeControllerImpl
89 mUserManager = context.getSystemService(UserManager.class); in ZenModeControllerImpl()
94 return mUserManager.hasUserRestriction(UserManager.DISALLOW_ADJUST_VOLUME, in isVolumeRestricted()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraService.java69 private UserManager mUserManager; field in CameraService
130 mUserManager = UserManager.get(mContext); in onStart()
131 if (mUserManager == null) { in onStart()
175 List<UserInfo> userProfiles = mUserManager.getEnabledProfiles(currentUserHandle); in getEnabledUserHandles()
/frameworks/base/services/core/java/com/android/server/policy/
DEnableAccessibilityController.java87 private final UserManager mUserManager; field in EnableAccessibilityController
104 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in EnableAccessibilityController()
228 final boolean hasMoreThanOneUser = mUserManager.getUsers().size() > 1; in enableAccessibility()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java112 private final UserManager mUserManager; field in TrustManagerService
130 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in TrustManagerService()
183 List<UserInfo> userInfos = mUserManager.getUsers(true /* excludeDying */); in updateTrustAll()
217 userInfos = mUserManager.getUsers(true /* excludeDying */); in refreshAgentList()
220 userInfos.add(mUserManager.getUserInfo(userId)); in refreshAgentList()
307 userInfos = mUserManager.getUsers(true /* excludeDying */); in refreshDeviceLockedForUser()
310 userInfos.add(mUserManager.getUserInfo(userId)); in refreshDeviceLockedForUser()
771 final List<UserInfo> userInfos = mUserManager.getUsers(true /* excludeDying */);
839 UserInfo parent = mUserManager.getProfileParent(userId); in resolveProfileParent()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java268 final UserManager mUserManager; field in DevicePolicyManagerService
1045 mUserManager = UserManager.get(mContext); in DevicePolicyManagerService()
1348 List<UserInfo> profiles = mUserManager.getProfiles(userHandle); in sendAdminCommandToSelfAndProfilesLocked()
1792 List<UserInfo> users = mUserManager.getUsers(true); in systemReady()
1814 List<UserInfo> allUsers = mUserManager.getUsers(); in cleanUpOldUsers()
1831 List<UserInfo> profiles = mUserManager.getProfiles(userHandle); in handlePasswordExpirationNotification()
1859 for (UserInfo userInfo : mUserManager.getUsers()) { in doInBackground()
1869 if (!mUserManager.isUserRunning(userHandle)) { in manageNotification()
2138 List<UserInfo> profiles = mUserManager.getProfiles(userHandle); in getPasswordQuality()
2185 List<UserInfo> profiles = mUserManager.getProfiles(userHandle); in getPasswordMinimumLength()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java63 private final UserManager mUserManager; field in PermissionMonitor
76 mUserManager = UserManager.get(context); in PermissionMonitor()
141 List<UserInfo> users = mUserManager.getUsers(true); // exclude dying users in startMonitoring()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsProvider.java208 private volatile UserManager mUserManager; field in SettingsProvider
216 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in onCreate()
486 List<UserInfo> users = mUserManager.getUsers(true); in dump()
972 && mUserManager.hasUserRestriction(UserManager.DISALLOW_SHARE_LOCATION, in isLocationProvidersAllowedRestricted()
984 return mUserManager.hasUserRestriction(restriction, new UserHandle(userId)); in isGlobalOrSecureSettingRestrictedForUser()
1074 UserInfo userInfo = mUserManager.getProfileParent(userId); in getGroupParentLocked()
1552 List<UserInfo> users = mUserManager.getUsers(true); in migrateAllLegacySettingsIfNeeded()
1567 if (!mUserManager.isUserRunning(new UserHandle(userId))) { in migrateAllLegacySettingsIfNeeded()
1671 user = mUserManager.getUserInfo(userId); in ensureSecureSettingAndroidIdSetLocked()
1747 List<UserInfo> profiles = mUserManager.getProfiles(userId); in maybeNotifyProfiles()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiServiceImpl.java141 private final UserManager mUserManager; field in WifiServiceImpl
328 mUserManager = UserManager.get(mContext); in WifiServiceImpl()
618 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) { in setWifiApEnabled()
1024 List<UserInfo> profiles = mUserManager.getProfiles(currentUser); in isCurrentProfile()
1046 List<UserInfo> profiles = mUserManager.getProfiles(ownerUser); in isOwner()
1940 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_NETWORK_RESET)) { in factoryReset()
1944 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) { in factoryReset()
1949 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_WIFI)) { in factoryReset()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java106 private final UserManager mUserManager; field in PrintManagerService.PrintManagerImpl
112 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in PrintManagerImpl()
670 UserInfo parent = mUserManager.getProfileParent(userId); in resolveCallingProfileParentLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DInboundSmsHandler.java192 private UserManager mUserManager; field in InboundSmsHandler
221 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in InboundSmsHandler()
858 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_SMS, targetUser)) { in dispatchIntent()
862 UserInfo info = mUserManager.getUserInfo(users[i]); in dispatchIntent()
DIccSmsInterfaceManager.java83 final private UserManager mUserManager; field in IccSmsInterfaceManager
132 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in IccSmsInterfaceManager()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java256 private final UserManager mUserManager; field in NetworkPolicyManagerService
349 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in NetworkPolicyManagerService()
2094 final List<UserInfo> users = mUserManager.getUsers(); in updateRulesForDeviceIdleLocked()
2135 final List<UserInfo> users = mUserManager.getUsers(); in updateRulesForAppIdleLocked()
2175 final List<UserInfo> users = mUserManager.getUsers(); in updateRulesForGlobalChangeLocked()
2198 final List<UserInfo> users = mUserManager.getUsers(); in updateRulesForTempWhitelistChangeLocked()
2584 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_NETWORK_RESET)) { in factoryReset()
2603 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_APPS_CONTROL)) { in factoryReset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DBaseStatusBar.java202 private UserManager mUserManager; field in BaseStatusBar
397 UserInfo user = mUserManager.getUserInfo(recentTask.get(0).userId);
533 if (mUserManager != null) { in updateCurrentProfilesCache()
534 for (UserInfo user : mUserManager.getProfiles(mCurrentUserId)) { in updateCurrentProfilesCache()
587 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in start()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsService.java130 UserManager mUserManager; field in UsageStatsService
163 mUserManager = (UserManager) getContext().getSystemService(Context.USER_SERVICE); in onStart()
284 final List<UserInfo> users = mUserManager.getUsers(true); in cleanUpRemovedUsersLocked()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java106 private UserManager mUserManager; field in ApplicationPackageManager
118 if (mUserManager == null) { in getUserManager()
119 mUserManager = UserManager.get(mContext); in getUserManager()
121 return mUserManager; in getUserManager()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java297 private final UserManager mUserManager; field in SyncManager
302 return mUserManager.getUsers(); in getAllUsers()
340 for (UserInfo user : mUserManager.getUsers(true)) { in doDatabaseCleanup()
503 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in SyncManager()
2596 final UserInfo userInfo = mUserManager.getUserInfo(op.target.userId); in maybeStartNextSyncH()
2643 if (mUserManager.getUserInfo(user) == null) { in maybeStartNextSyncH()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java127 private UserManager mUserManager; field in AccountManagerService
344 if (mUserManager == null) { in getUserManager()
345 mUserManager = UserManager.get(mContext); in getUserManager()
347 return mUserManager; in getUserManager()
1185 List<UserInfo> users = mUserManager.getUsers(true); in renameAccountInternal()
1390 List<UserInfo> users = mUserManager.getUsers(true); in removeAccountInternal()
4054 UserInfo user = mUserManager.getUserInfo(userAccounts.userId); in filterSharedAccounts()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java390 private UserManager mUserManager; field in ConnectivityService
766 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in ConnectivityService()
2617 && !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING); in isTetheringSupported()
4717 if (mUserManager.hasUserRestriction(UserManager.DISALLOW_NETWORK_RESET)) { in factoryReset()
4726 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_TETHERING)) { in factoryReset()
4733 if (!mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN)) { in factoryReset()
DLocationManagerService.java158 private UserManager mUserManager; field in LocationManagerService
284 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in systemRunning()
333 List<UserInfo> profiles = mUserManager.getProfiles(currentUserId); in updateUserProfiles()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java185 private final UserManager mUserManager; field in AppWidgetServiceImpl
204 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in AppWidgetServiceImpl()
3130 profiles = mUserManager.getProfiles(parentId); in getEnabledGroupProfileIds()
3282 UserInfo parent = mUserManager.getProfileParent(profileId); in getProfileParent()
3318 UserInfo userInfo = mUserManager.getUserInfo(profileId); in isProfileEnabled()

12