Home
last modified time | relevance | path

Searched refs:getUserManager (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/core/tests/packagemanagertests/src/android/content/pm/
DKernelPackageMappingTests.java57 private UserManager getUserManager() { in getUserManager() method in KernelPackageMappingTests
102 mSecondaryUser = getUserManager().createUser("Secondary", 0); in testNotInstalledSecondary()
112 getUserManager().removeUser(mSecondaryUser.id); in shutDown()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DNotificationFilter.java88 private NotificationLockscreenUserManager getUserManager() { in getUserManager() method in NotificationFilter
110 if (getUserManager().isLockscreenPublicMode(sbn.getUserId()) in shouldFilterOut()
112 || getUserManager().shouldHideNotifications(sbn.getUserId()) in shouldFilterOut()
113 || getUserManager().shouldHideNotifications(sbn.getKey()))) { in shouldFilterOut()
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java257 mInjector.getUserManager().getEnabledProfileIds(mInjector.getCallingUserId()); in canRequestInteractAcrossProfilesUnchecked()
313 mInjector.getUserManager().getEnabledProfileIds(userId); in getTargetUserProfilesUnchecked()
424 mInjector.getUserManager()
580 final int[] profileIds = mInjector.getUserManager().getProfileIds(
623 mInjector.getUserManager().getProfileIds(userId, /* enabledOnly= */ false);
673 mInjector.getUserManager().isSameProfileGroup(callerUserId, userId));
778 public UserManager getUserManager() {
855 UserManager getUserManager();
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java348 List<UserInfo> relatedUsers = mInjector.getUserManager().getProfiles(UserHandle.myUserId()); in getManagedProfile()
362 UserInfo parent = mInjector.getUserManager().getProfileParent(UserHandle.myUserId()); in getProfileParent()
400 public UserManager getUserManager() { in getUserManager() method in IntentForwarderActivity.InjectorImpl
426 UserManager getUserManager(); in getUserManager() method
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java510 if (!mInjector.getUserManager().isPreCreated(userId)) { in finishUserBoot()
527 if (mInjector.getUserManager().isProfile(userId)) { in finishUserBoot()
528 final UserInfo parent = mInjector.getUserManager().getProfileParent(userId); in finishUserBoot()
573 mInjector.getUserManager().onBeforeUnlockUser(userId); in finishUserUnlocking()
629 UserInfo parent = mInjector.getUserManager().getProfileParent(userId); in finishUserUnlocked()
681 mInjector.getUserManager().onUserLoggedIn(userId); in finishUserUnlockedCompleted()
696 mInjector.getUserManager().makeInitialized(userInfo.id); in finishUserUnlockedCompleted()
1021 mInjector.getUserManager().removeUserEvenWhenDisallowed(userId);
1173 List<UserInfo> profiles = mInjector.getUserManager().getProfiles(
1407 mInjector.getUserManager().onBeforeStartUser(userId);
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java252 private UserManager getUserManager() { in getUserManager() method in LockPatternUtils
596 UserInfo userInfo = getUserManager().getUserInfo(userId); in isLockScreenDisabled()
925 && !getUserManager().hasUserRestriction( in isSeparateProfileChallengeAllowedToUnify()
940 final UserInfo info = getUserManager().getUserInfo(userHandle); in isManagedProfile()
1345 if (!(getUserManager().isSystemUser() || getUserManager().isPrimaryUser())) { in setCredentialRequiredToDecrypt()
/frameworks/base/services/core/java/com/android/server/locksettings/
DRebootEscrowManager.java127 public UserManager getUserManager() { in getUserManager() method in RebootEscrowManager.Injector
166 mUserManager = injector.getUserManager(); in RebootEscrowManager()
DLockSettingsService.java455 public UserManager getUserManager() { in getUserManager() method in LockSettingsService.Injector
495 return new SyntheticPasswordManager(getContext(), storage, getUserManager(), in getSyntheticPasswordManager()
547 return new ManagedProfilePasswordCache(ks, getUserManager()); in getManagedProfilePasswordCache()
579 mUserManager = injector.getUserManager(); in LockSettingsService()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/users/
DAppRestrictionsHelper.java77 mUserManager = mInjector.getUserManager(); in AppRestrictionsHelper()
417 UserManager getUserManager() { in getUserManager() method in AppRestrictionsHelper.Injector
/frameworks/base/services/backup/java/com/android/server/backup/
DBackupManagerService.java306 protected UserManager getUserManager() { in getUserManager() method in BackupManagerService
417 || getUserManager().getUserInfo(userId).isManagedProfile(); in enforcePermissionsOnUser()
475 if (getUserManager().isUserUnlocked(userId)) { in setBackupServiceActive()
1409 userIds = getUserManager().getProfileIds(callingUserId, false); in getUserForAncestralSerialNumber()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DAuthContainerView.java199 UserManager getUserManager(Context context) { in getUserManager() method in AuthContainerView.Injector
259 mEffectiveUserId = mInjector.getUserManager(mContext) in AuthContainerView()
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java161 UserManager getUserManager() { in getUserManager() method in ApplicationPackageManager
1580 getUserManager().getUserIconBadgeResId(user.getIdentifier()), in getUserBadgedIcon()
1603 return getUserManager().getUserBadgeDarkColor(user.getIdentifier()); in getUserBadgeColor()
1605 return getUserManager().getUserBadgeColor(user.getIdentifier()); in getUserBadgeColor()
1617 getUserManager().getUserBadgeResId(user.getIdentifier()), density); in getUserBadgeForDensity()
1632 getUserManager().getUserBadgeNoBackgroundResId(user.getIdentifier()), density); in getUserBadgeForDensityNoBackground()
1655 return getUserManager().getBadgedLabelForUser(label, user); in getUserBadgedLabel()
3015 return getUserManager().hasBadge(userId); in hasUserBadge()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/
DAuthContainerViewTest.java279 public UserManager getUserManager(Context context) { in getUserManager() method in AuthContainerViewTest.MockInjector
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DCertificateMonitor.java140 if (!mInjector.getUserManager().isUserUnlocked(userHandle.getIdentifier())) { in updateInstalledCertificates()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DWifiP2pServiceImplTest.java763 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in setUpWifiP2pServiceImpl()
3235 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in testFactoryResetSuccessWhenP2pEnabled()
3245 verify(mWifiInjector).getUserManager(); in testFactoryResetSuccessWhenP2pEnabled()
3264 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()
3273 verify(mWifiInjector).getUserManager(); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()
3288 verify(mWifiInjector, times(2)).getUserManager(); in testFactoryResetSuccessWhenP2pFromDisabledToEnabled()
3309 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in testFactoryResetFailureWithoutNetworkSettingPermission()
3313 verify(mWifiInjector).getUserManager(); in testFactoryResetFailureWithoutNetworkSettingPermission()
3330 when(mWifiInjector.getUserManager()).thenReturn(mUserManager); in testFactoryResetFailureWhenNetworkResetDisallow()
3336 verify(mWifiInjector).getUserManager(); in testFactoryResetFailureWhenNetworkResetDisallow()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java291 UserManager getUserManager() { in getUserManager() method in AppRestrictionsHelperTest.TestInjector
/frameworks/base/services/core/java/com/android/server/display/
DDisplayManagerService.java421 final int userSerial = getUserManager().getUserSerialNumber(newUserId); in onSwitchUser()
1184 final int userSerial = getUserManager().getUserSerialNumber(userId); in setBrightnessConfigurationForUserInternal()
1222 final int userSerial = getUserManager().getUserSerialNumber(mCurrentUserId); in loadBrightnessConfiguration()
1680 private UserManager getUserManager() { in getUserManager() method in DisplayManagerService
2369 final int userSerial = getUserManager().getUserSerialNumber(userId); in getBrightnessConfigurationForUser()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java1084 private UserManager getUserManager() { in getUserManager() method in AccountManagerService
1312 if (!getUserManager().removeUserEvenWhenDisallowed(userId)) { in getUserAccounts()
1456 ? getUserManager().getUserInfo(userId).restrictedProfileParentId in syncSharedAccounts()
1471 UserInfo user = getUserManager().getUserInfo(userId); in onServiceChanged()
1866 if (getUserManager().getUserInfo(accounts.userId).canHaveProfile()) { in addAccountInternal()
1890 List<UserInfo> users = getUserManager().getUsers(); in addAccountToLinkedRestrictedUsers()
2108 List<UserInfo> users = getUserManager().getUsers(true); in renameAccountInternal()
2128 final UserInfo userInfo = getUserManager().getUserInfo(parentUserId); in canHaveProfile()
2364 List<UserInfo> users = getUserManager().getUsers(true); in removeAccountInternal()
4255 final List<UserInfo> users = getUserManager().getUsers(true);
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerServiceTestable.java142 UserManager getUserManager() { in getUserManager() method in DevicePolicyManagerServiceTestable.MockInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowManagerTests.java110 public UserManager getUserManager() { in getUserManager() method in RebootEscrowManagerTests.MockInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DCrossProfileAppsServiceImplTest.java648 public UserManager getUserManager() { in getUserManager() method in CrossProfileAppsServiceImplTest.TestInjector
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DBackupManagerServiceTest.java594 protected UserManager getUserManager() { in getUserManager() method in BackupManagerServiceTest.BackupManagerServiceTestable
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServicesTestRule.java480 doReturn(ums).when(this).getUserManager();
/frameworks/base/services/robotests/src/com/android/server/pm/
DCrossProfileAppsServiceImplRoboTest.java689 public UserManager getUserManager() { in getUserManager() method in CrossProfileAppsServiceImplRoboTest.TestInjector
/frameworks/base/services/core/java/com/android/server/wm/
DRecentTasks.java851 int[] profileIds = mService.getUserManager().getProfileIds(userId, false /* enabledOnly */); in getProfileIds()
860 return mService.getUserManager().getUserInfo(userId); in getUserInfo()

12