Home
last modified time | relevance | path

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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java41 private UserManager mUserManager = null; field in UserManagerTest
48 mUserManager = UserManager.get(getContext()); in setUp()
72 List<UserInfo> list = mUserManager.getUsers(); in removeExistingUsers()
92 List<UserInfo> list = mUserManager.getUsers(); in testAddUser()
100 Bundle restrictions = mUserManager.getUserRestrictions(user.getUserHandle()); in testAddUser()
136 final int primaryUserId = mUserManager.getPrimaryUser().id; in testAddManagedProfile()
144 assertFalse(mUserManager.isManagedProfile()); in testAddManagedProfile()
148 final int primaryUserId = mUserManager.getPrimaryUser().id; in testGetUserCreationTime()
154 assertEquals(profile.creationTime, mUserManager.getUserCreationTime( in testGetUserCreationTime()
157 long ownerCreationTime = mUserManager.getUserInfo(primaryUserId).creationTime; in testGetUserCreationTime()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DConfirmUserCreationActivity.java50 private UserManager mUserManager; field in ConfirmUserCreationActivity
63 mUserManager = getSystemService(UserManager.class); in onCreate()
99 boolean cantCreateUser = mUserManager.hasUserRestriction(UserManager.DISALLOW_ADD_USER) in checkUserCreationRequirements()
100 || !mUserManager.isAdminUser(); in checkUserCreationRequirements()
102 boolean cantCreateAnyMoreUsers = !mUserManager.canAddMoreUsers(); in checkUserCreationRequirements()
107 | mUserManager.someUserHasSeedAccount(mAccountName, mAccountType)); in checkUserCreationRequirements()
129 UserInfo user = mUserManager.createUser(mUserName, 0); in onClick()
135 mUserManager.setSeedAccountData(user.id, mAccountName, mAccountType, mAccountOptions); in onClick()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java66 private final UserManager mUserManager; field in SecurityControllerImpl
84 mUserManager = (UserManager) in SecurityControllerImpl()
123 for (int profileId : mUserManager.getProfileIdsWithDisabled(mCurrentUserId)) { in getProfileOwnerName()
144 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in getProfileVpnName()
163 for (int profileId : mUserManager.getProfileIdsWithDisabled(mVpnUserId)) { in isVpnEnabled()
174 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted()
175 || mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_VPN, currentUser); in isVpnRestricted()
214 final UserInfo newUserInfo = mUserManager.getUserInfo(newUserId); in onUserSwitched()
252 for (UserInfo user : mUserManager.getUsers()) { in updateState()
DUserSwitcherController.java89 private final UserManager mUserManager; field in UserSwitcherController
115 mUserManager = UserManager.get(context); in UserSwitcherController()
190 List<UserInfo> infos = mUserManager.getUsers(true); in refreshUsers()
196 boolean canSwitchUsers = mUserManager.canSwitchUsers(); in refreshUsers()
216 picture = mUserManager.getUserIcon(info.id); in refreshUsers()
233 boolean systemCanCreateUsers = !mUserManager.hasBaseUserRestriction( in refreshUsers()
243 && mUserManager.canAddMoreUsers(); in refreshUsers()
336 if (mUserManager.removeUser(userId)) { in removeUserId()
345 UserInfo guest = mUserManager.createGuest( in switchTo()
423 UserInfo info = mUserManager.getUserInfo(mLastNonGuestUser); in exitGuest()
[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()
DBluetoothControllerImpl.java44 private final UserManager mUserManager; field in BluetoothControllerImpl
62 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in BluetoothControllerImpl()
68 return !mUserManager.hasUserRestriction(UserManager.DISALLOW_CONFIG_BLUETOOTH, in canConfigBluetooth()
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/tests/servicestests/src/com/android/server/am/
DTaskPersisterTest.java37 private UserManager mUserManager; field in TaskPersisterTest
42 mUserManager = UserManager.get(getContext()); in setUp()
73 UserInfo user = mUserManager.createUser(name, flags); in createUser()
81 if (!mUserManager.removeUser(userId)) { in removeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileController.java36 private final UserManager mUserManager; field in ManagedProfileController
43 mUserManager = UserManager.get(mContext); in ManagedProfileController()
65 if (!mUserManager.trySetQuietModeDisabled(ui.id, null)) { in setWorkModeEnabled()
71 mUserManager.setQuietModeEnabled(ui.id, true); in setWorkModeEnabled()
83 for (UserInfo ui : mUserManager.getEnabledProfiles(user)) { in reloadManagedProfiles()
DMultiUserSwitch.java48 final UserManager mUserManager; field in MultiUserSwitch
56 mUserManager = UserManager.get(getContext()); in MultiUserSwitch()
94 if (mUserManager.isUserSwitcherEnabled() && mUserListener == null) { in registerListener()
116 if (mUserManager.isUserSwitcherEnabled()) { in onClick()
150 if (mUserManager.isUserSwitcherEnabled() in refreshContentDescription()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStartInterceptor.java56 private UserManager mUserManager; field in ActivityStartInterceptor
99 mUserManager = UserManager.get(mService.mContext); in intercept()
123 if (!mUserManager.isQuietModeEnabled(UserHandle.of(mUserId))) { in interceptQuietProfileIfNeeded()
137 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptQuietProfileIfNeeded()
160 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptSuspendPackageIfNeed()
198 final UserInfo parent = mUserManager.getProfileParent(mUserId); in interceptWorkProfileChallengeIfNeeded()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DConfigurationMap.java29 private final UserManager mUserManager; field in ConfigurationMap
34 mUserManager = userManager; in ConfigurationMap()
42 mUserManager.getProfiles(mCurrentUserId))) { in put()
95 final List<UserInfo> previousUserProfiles = mUserManager.getProfiles(mCurrentUserId); in handleUserSwitch()
97 final List<UserInfo> currentUserProfiles = mUserManager.getProfiles(mCurrentUserId); in handleUserSwitch()
/frameworks/base/services/core/java/com/android/server/
DLockSettingsService.java132 private UserManager mUserManager; field in LockSettingsService
238 final int parentId = mUserManager.getProfileParent(managedUserId).id; in tieManagedProfileLockIfNecessary()
300 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in LockSettingsService()
311 final List<UserInfo> users = mUserManager.getUsers(); in maybeShowEncryptionNotifications()
316 if (isSecure && !mUserManager.isUserUnlockingOrUnlocked(userHandle)) { in maybeShowEncryptionNotifications()
322 UserInfo parent = mUserManager.getProfileParent(user.id); in maybeShowEncryptionNotifications()
324 mUserManager.isUserUnlockingOrUnlocked(parent.getUserHandle()) && in maybeShowEncryptionNotifications()
325 !mUserManager.isQuietModeEnabled(userHandle)) { in maybeShowEncryptionNotifications()
394 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in onUnlockUser()
407 List<UserInfo> profiles = mUserManager.getProfiles(userId); in onUnlockUser()
[all …]
/frameworks/base/cmds/telecom/src/com/android/commands/telecom/
DTelecom.java58 private IUserManager mUserManager; field in Telecom
95 mUserManager = IUserManager.Stub in onRun()
97 if (mUserManager == null) { in onRun()
202 userHandle = UserHandle.of(mUserManager.getUserHandle(userSn)); in getPhoneAccountHandleFromArgs()
/frameworks/base/services/print/java/com/android/server/print/
DPrintManagerService.java105 private final UserManager mUserManager; field in PrintManagerService.PrintManagerImpl
111 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in PrintManagerImpl()
730 if (!mUserManager.isUserUnlockingOrUnlocked(getChangingUserId())) return; in registerBroadcastReceivers()
745 if (!mUserManager.isUserUnlockingOrUnlocked(getChangingUserId())) return; in registerBroadcastReceivers()
760 if (!mUserManager.isUserUnlockingOrUnlocked(getChangingUserId())) return false; in registerBroadcastReceivers()
798 if (!mUserManager.isUserUnlockingOrUnlocked(getChangingUserId())) return; in registerBroadcastReceivers()
815 if (!mUserManager.isUserUnlockingOrUnlocked(userId)) { in getOrCreateUserStateLocked()
839 if (!mUserManager.isUserUnlockingOrUnlocked(userId)) return; in handleUserUnlocked()
875 UserInfo parent = mUserManager.getProfileParent(userId); in resolveCallingProfileParentLocked()
/frameworks/base/services/core/java/com/android/server/camera/
DCameraService.java77 private UserManager mUserManager; field in CameraService
160 mUserManager = UserManager.get(mContext); in onStart()
161 if (mUserManager == null) { in onStart()
224 int[] userProfiles = mUserManager.getEnabledProfileIds(currentUserHandle); in getEnabledUserHandles()
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
DVpnTest.java87 @Mock private UserManager mUserManager; field in VpnTest
97 when(mContext.getSystemService(eq(Context.USER_SERVICE))).thenReturn(mUserManager); in setUp()
284 }).when(mUserManager).getUsers(anyBoolean()); in setMockedUsers()
289 }).when(mUserManager).getUserInfo(anyInt()); in setMockedUsers()
294 }).when(mUserManager).canHaveRestrictedProfile(anyInt()); in setMockedUsers()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DConfigurationMapTest.java72 @Mock UserManager mUserManager; field in ConfigurationMapTest
84 when(mUserManager.getProfiles(anyInt())) in setUp()
90 mConfigs = new ConfigurationMap(mUserManager); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java55 private final UserManager mUserManager; field in AppRestrictionsHelper
68 mUserManager = (UserManager) context.getSystemService(Context.USER_SERVICE); in AppRestrictionsHelper()
69 mRestrictedProfile = mUserManager.getUserInfo(mUser.getIdentifier()).isRestricted(); in AppRestrictionsHelper()
90 if (!mUserManager.getUserInfo(userId).isRestricted() && userId != UserHandle.myUserId()) { in applyUserAppsStates()
/frameworks/base/services/core/java/com/android/server/trust/
DTrustManagerService.java117 private final UserManager mUserManager; field in TrustManagerService
137 mUserManager = (UserManager) mContext.getSystemService(Context.USER_SERVICE); in TrustManagerService()
192 List<UserInfo> userInfos = mUserManager.getUsers(true /* excludeDying */); in updateTrustAll()
243 userInfos = mUserManager.getUsers(true /* excludeDying */); in refreshAgentList()
246 userInfos.add(mUserManager.getUserInfo(userIdOrAll)); in refreshAgentList()
334 userInfos = mUserManager.getUsers(true /* excludeDying */); in refreshDeviceLockedForUser()
337 userInfos.add(mUserManager.getUserInfo(userId)); in refreshDeviceLockedForUser()
758 final List<UserInfo> userInfos = mUserManager.getUsers(true /* excludeDying */);
879 UserInfo parent = mUserManager.getProfileParent(userId); in resolveProfileParent()
/frameworks/base/core/java/android/app/
DKeyguardManager.java48 private IUserManager mUserManager; field in KeyguardManager
215 mUserManager = IUserManager.Stub.asInterface( in KeyguardManager()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java64 private final UserManager mUserManager; field in PermissionMonitor
77 mUserManager = UserManager.get(context); in PermissionMonitor()
142 List<UserInfo> users = mUserManager.getUsers(true); // exclude dying users in startMonitoring()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java62 private final UserManager mUserManager; field in KeyguardIndicationController
91 mUserManager = context.getSystemService(UserManager.class); in KeyguardIndicationController()
164 if (!mUserManager.isUserUnlocked(ActivityManager.getCurrentUser())) { in updateIndication()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java354 private UserManager mUserManager; field in AccountManagerServiceTest.MyMockContext
360 this.mUserManager = mock(UserManager.class); in MyMockContext()
363 when(mUserManager.getUserInfo(eq(ui.id))).thenReturn(ui); in MyMockContext()
381 return mUserManager; in getSystemService()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/
DSettingsDrawerActivity.java80 private UserManager mUserManager; field in SettingsDrawerActivity
119 mUserManager = UserManager.get(this); in onCreate()
325 if (mUserManager.getUserInfo(userHandles.get(i).getIdentifier()) == null) { in updateUserHandlesIfNeeded()

123