/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | UserFeatureProviderImplTest.java | 58 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/ |
D | UserFeatureProviderImpl.java | 33 public List<UserHandle> getUserProfiles() { in getUserProfiles() method in UserFeatureProviderImpl 34 return mUm.getUserProfiles(); in getUserProfiles()
|
D | UserFeatureProvider.java | 30 List<UserHandle> getUserProfiles(); in getUserProfiles() method
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/ |
D | UserAdapterTest.java | 110 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/ |
D | ManageMicPermissionsPreferenceControllerTest.java | 130 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()
|
D | ManageCameraPermissionsPreferenceControllerTest.java | 130 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/ |
D | UtilsTest.java | 63 when(mUserManager.getUserProfiles()) in testGetManagedProfile() 74 when(mUserManager.getUserProfiles()) in testGetManagedProfile_notPresent()
|
/packages/apps/Launcher3/src/com/android/launcher3/allapps/ |
D | UserProfileManager.java | 74 mUserCache.getUserProfiles() in setQuietMode() 99 return mUserCache.getUserProfiles().stream() in getProfileUser()
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/ |
D | UserUtils.java | 49 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/ |
D | UserIdManagerTest.java | 135 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/ |
D | EnterpriseSetDefaultAppsListPreferenceControllerTest.java | 120 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/ |
D | ContentProtectionPreferenceUtilsTest.java | 177 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/ |
D | RecentAppStatsMixinTest.java | 105 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/ |
D | UserManagerState.java | 42 for (UserHandle user : userManager.getUserProfiles()) { in init()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/ |
D | DeviceAdminListPreferenceController.java | 133 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/ |
D | EnterpriseSetDefaultAppsPreferenceController.java | 64 for (UserHandle user : mUserFeatureProvider.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/ |
D | EnterpriseSetDefaultAppsPreferenceController.java | 74 for (UserHandle user : mUserManager.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/ |
D | EnterpriseSetDefaultAppsPreferenceController.java | 79 for (UserHandle user : mUserManager.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TaskUtils.java | 106 List<UserHandle> allUsers = UserCache.INSTANCE.get(context).getUserProfiles(); in checkCurrentOrManagedUserId()
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | VpnSettings.java | 595 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/ |
D | WorkModePreferenceControllerTest.java | 88 when(mUserManager.getUserProfiles()).thenReturn(Collections.singletonList(mManagedUser)); in setUp()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/stylus/ |
D | StylusDevicesController.java | 217 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/ |
D | ActivityAllAppsContainerViewTest.java | 79 when(mUserCache.getUserProfiles()) in setUp()
|
/packages/apps/Settings/src/com/android/settings/location/ |
D | TopLevelLocationPreferenceController.java | 85 UserManager.class).getUserProfiles(); in updateState()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipUtils.java | 53 final List<UserHandle> userHandles = userManager.getUserProfiles(); in getRestrictedAppsList()
|