Home
last modified time | relevance | path

Searched refs:getUserProfiles (Results 1 – 25 of 87) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserFeatureProviderImplTest.java58 public void getUserProfiles() { in getUserProfiles() method in UserFeatureProviderImplTest
61 when(mUserManager.getUserProfiles()).thenReturn(expected); in getUserProfiles()
62 final List<UserHandle> userProfiles = mFeatureProvider.getUserProfiles(); in getUserProfiles()
/packages/apps/Settings/src/com/android/settings/users/
DUserFeatureProviderImpl.java33 public List<UserHandle> getUserProfiles() { in getUserProfiles() method in UserFeatureProviderImpl
34 return mUm.getUserProfiles(); in getUserProfiles()
DUserFeatureProvider.java30 List<UserHandle> getUserProfiles(); in getUserProfiles() method
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DUserAdapterTest.java110 when(mUserManager.getUserProfiles()).thenReturn( in createUserSpinnerAdapter_singleProfile_returnsNull()
121 when(mUserManager.getUserProfiles()).thenReturn( in createUserSpinnerAdapter_twoProfiles_succeed()
138 when(mUserManager.getUserProfiles()).thenReturn( in createUserSpinnerAdapter_withWorkAndPrivateProfiles_shouldSucceed()
159 when(mUserManager.getUserProfiles()).thenReturn( in createUserSpinnerAdapter_withWorkAndQuietPrivateProfile_shouldShowTwoProfiles()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
DManageMicPermissionsPreferenceControllerTest.java130 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1)); in getSummary_whenLocationAppCountIsOne_shouldShowSingularString()
148 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1)); in getSummary_whenLocationAppCountIsGreaterThanOne_shouldShowPluralString()
166 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1, mUserHandle2)); in getSummary_multipleUsers_addsAppCounts()
191 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1)); in getSummary_initializeTwiceBeforeCallbacksReturn_callbacksOnlyCalledOnce()
DManageCameraPermissionsPreferenceControllerTest.java130 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1)); in getSummary_whenCameraAppCountIsOne_shouldShowSingularString()
148 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1)); in getSummary_whenCameraAppCountIsGreaterThanOne_shouldShowPluralString()
166 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1, mUserHandle2)); in getSummary_multipleUsers_addsAppCounts()
191 when(mUserManager.getUserProfiles()).thenReturn(List.of(mUserHandle1)); in getSummary_initializeTwiceBeforeCallbacksReturn_callbacksOnlyCalledOnce()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
DUtilsTest.java63 when(mUserManager.getUserProfiles()) in testGetManagedProfile()
74 when(mUserManager.getUserProfiles()) in testGetManagedProfile_notPresent()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DUserProfileManager.java74 mUserCache.getUserProfiles() in setQuietMode()
99 return mUserCache.getUserProfiles().stream() in getProfileUser()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DUserUtils.java49 List<UserHandle> profiles = userManager.getUserProfiles(); in getWorkProfile()
80 List<UserHandle> profiles = context.getSystemService(UserManager.class).getUserProfiles(); in getPrivateProfile()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DUserIdManagerTest.java135 when(mockUserManager.getUserProfiles()).thenReturn(Arrays.asList(systemUser, managedUser1)); in testGetUserIds_deviceNotSupported()
148 when(mockUserManager.getUserProfiles()).thenReturn( in testGetUserIds_deviceWithoutPermission()
192 when(mockUserManager.getUserProfiles()).thenReturn(usersOnDevice); in initializeUserIdManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java120 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in testMultipleAppsForOneTypeOfDefault()
152 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in isAvailable()
165 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in getPreferenceKey()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DContentProtectionPreferenceUtilsTest.java177 when(mMockUserManager.getUserProfiles()).thenReturn(List.of()); in getManagedProfile_noProfiles()
187 when(mMockUserManager.getUserProfiles()).thenReturn(List.of(USER_HANDLE)); in getManagedProfile_notManaged()
200 when(mMockUserManager.getUserProfiles()).thenReturn(List.of(USER_HANDLE)); in getManagedProfile_managed()
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/
DRecentAppStatsMixinTest.java105 when(mUserManager.getUserProfiles()) in setUp()
352 when(mUserManager.getUserProfiles()) in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeSortedByLastTimeUse()
404 when(mUserManager.getUserProfiles()) in loadDisplayableRecentApps_usePersonalAndWorkApps_shouldBeUniquePerProfile()
459 when(mUserManager.getUserProfiles()) in loadDisplayableRecentApps_multipleProfileApps_shouldBeSortedByLastTimeUse()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DUserManagerState.java42 for (UserHandle user : userManager.getUserProfiles()) { in init()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
DDeviceAdminListPreferenceController.java133 final List<UserHandle> profiles = mUm.getUserProfiles(); in updateState()
165 final List<UserHandle> profiles = mUm.getUserProfiles(); in refreshData()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java64 for (UserHandle user : mUserFeatureProvider.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java74 for (UserHandle user : mUserManager.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java79 for (UserHandle user : mUserManager.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskUtils.java106 List<UserHandle> allUsers = UserCache.INSTANCE.get(context).getUserProfiles(); in checkCurrentOrManagedUserId()
/packages/apps/Settings/src/com/android/settings/vpn2/
DVpnSettings.java595 for (UserHandle profile : mUserManager.getUserProfiles()) { in getConnectedAppVpns()
610 for (UserHandle profile : mUserManager.getUserProfiles()) { in getAlwaysOnAppVpnInfos()
638 for (UserHandle profile : userManager.getUserProfiles()) { in getVpnApps()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DWorkModePreferenceControllerTest.java88 when(mUserManager.getUserProfiles()).thenReturn(Collections.singletonList(mManagedUser)); in setUp()
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/
DStylusDevicesController.java217 List<UserHandle> users = getUserProfiles(); in onPreferenceClick()
314 private List<UserHandle> getUserProfiles() { in getUserProfiles() method in StylusDevicesController
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/ui/
DActivityAllAppsContainerViewTest.java79 when(mUserCache.getUserProfiles()) in setUp()
/packages/apps/Settings/src/com/android/settings/location/
DTopLevelLocationPreferenceController.java85 UserManager.class).getUserProfiles(); in updateState()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipUtils.java53 final List<UserHandle> userHandles = userManager.getUserProfiles(); in getRestrictedAppsList()

1234