Home
last modified time | relevance | path

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

123

/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/Launcher3/src/com/android/launcher3/pm/
DUserCache.java84 List<UserHandle> users = mUserManager.getUserProfiles(); in enableAndResetCache()
136 public List<UserHandle> getUserProfiles() { in getUserProfiles() method in UserCache
143 List<UserHandle> users = mUserManager.getUserProfiles(); in getUserProfiles()
DShortcutConfigActivityInfo.java159 users = UserCache.INSTANCE.get(context).getUserProfiles(); in queryList()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
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()
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()
/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/enterprise/
DEnterpriseSetDefaultAppsListPreferenceControllerTest.java111 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in testMultipleAppsForOneTypeOfDefault()
142 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in isAvailable()
155 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in getPreferenceKey()
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
DUtilsTest.java62 when(mUserManager.getUserProfiles()) in testGetManagedProfile()
73 when(mUserManager.getUserProfiles()) in testGetManagedProfile_notPresent()
/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/dashboard/profileselector/
DUserAdapterTest.java83 when(mUserManager.getUserProfiles()).thenReturn( in createUserSpinnerAdapter_singleProfile_returnsNull()
94 when(mUserManager.getUserProfiles()).thenReturn( in createUserSpinnerAdapter_twoProfiles_succeed()
/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/vpn2/
DVpnSettings.java489 for (UserHandle profile : mUserManager.getUserProfiles()) { in getConnectedAppVpns()
501 for (UserHandle profile : mUserManager.getUserProfiles()) { in getAlwaysOnAppVpnInfos()
517 for (UserHandle profile : UserManager.get(context).getUserProfiles()) { in getVpnApps()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DUserManagerState.java39 for (UserHandle user : userManager.getUserProfiles()) { in init()
/packages/apps/Settings/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java63 for (UserHandle user : mUserFeatureProvider.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
DUserUtils.java64 List<UserHandle> profiles = userManager.getUserProfiles(); in getWorkProfile()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceController.java79 for (UserHandle user : mUserManager.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/Launcher3/quickstep/src/com/android/quickstep/
DTaskUtils.java104 List<UserHandle> allUsers = UserCache.INSTANCE.get(context).getUserProfiles(); in checkCurrentOrManagedUserId()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetManagerHelper.java125 .getUserProfiles() in allWidgetsSteam()
/packages/apps/Settings/src/com/android/settings/location/
DAppLocationPermissionPreferenceController.java87 UserManager.class).getUserProfiles(); in updateState()
DTopLevelLocationPreferenceController.java84 UserManager.class).getUserProfiles(); in updateState()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/
DRecentlyAccessedByUtils.java61 UserManager.class).getUserProfiles(); in getAppList()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DUserIdManager.java167 final List<UserHandle> userProfiles = userManager.getUserProfiles(); in getUserIdsInternal()
/packages/apps/Car/Settings/src/com/android/car/settings/privacy/
DManageMicPermissionsPreferenceController.java112 List<UserHandle> users = mUserManager.getUserProfiles(); in updateState()

123