Home
last modified time | relevance | path

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

1234

/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
H A 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()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/pm/
H A 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()
/aosp12/packages/apps/Settings/src/com/android/settings/users/
H A DUserFeatureProviderImpl.java33 public List<UserHandle> getUserProfiles() { in getUserProfiles() method in UserFeatureProviderImpl
34 return mUm.getUserProfiles(); in getUserProfiles()
H A DUserFeatureProvider.java30 List<UserHandle> getUserProfiles(); in getUserProfiles() method
/aosp12/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/privacy/
H A 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()
/aosp12/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DBugreportProgressServiceTest.java114 when(mTestContext.userManager.getUserProfiles()).thenReturn( in findSendToAccount_noWorkProfile()
177 when(mTestContext.userManager.getUserProfiles()).thenReturn( in findSendToAccount_withWorkProfile_noAccounts()
245 when(mTestContext.userManager.getUserProfiles()).thenReturn( in findSendToAccount_withWorkProfile_1account()
312 when(mTestContext.userManager.getUserProfiles()).thenReturn( in findSendToAccount_withWorkProfile_mixedDomains()
/aosp12/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/
H A DUtilsTest.java62 when(mUserManager.getUserProfiles()) in testGetManagedProfile()
73 when(mUserManager.getUserProfiles()) in testGetManagedProfile_notPresent()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
H A DEnterpriseSetDefaultAppsListPreferenceControllerTest.java111 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in testMultipleAppsForOneTypeOfDefault()
142 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in isAvailable()
155 when(mFeatureFactory.userFeatureProvider.getUserProfiles()) in getPreferenceKey()
/aosp12/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
H A 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()
/aosp12/frameworks/opt/tv/tvsystem/api/
H A Dcurrent.txt51 method @NonNull public java.util.List<android.os.UserHandle> getUserProfiles(boolean);
62 method @NonNull public java.util.List<android.os.UserHandle> getUserProfiles(boolean);
/aosp12/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
H A DITvUserManager.java42 List<UserHandle> getUserProfiles(boolean enabledOnly); in getUserProfiles() method
H A DTvUserManager.java89 public List<UserHandle> getUserProfiles(boolean enabledOnly) { in getUserProfiles() method in TvUserManager
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DUserManagerState.java39 for (UserHandle user : userManager.getUserProfiles()) { in init()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
H A DEnterpriseSetDefaultAppsPreferenceController.java69 for (UserHandle user : mUserManager.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/role/utils/
H A DUserUtils.java61 List<UserHandle> profiles = userManager.getUserProfiles(); in getWorkProfile()
/aosp12/packages/apps/Settings/src/com/android/settings/enterprise/
H A DEnterpriseSetDefaultAppsPreferenceController.java63 for (UserHandle user : mUserFeatureProvider.getUserProfiles()) { in getNumberOfEnterpriseSetDefaultApps()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/deviceadmin/
H A DDeviceAdminListPreferenceController.java133 final List<UserHandle> profiles = mUm.getUserProfiles(); in updateState()
165 final List<UserHandle> profiles = mUm.getUserProfiles(); in refreshData()
/aosp12/packages/apps/Settings/src/com/android/settings/applications/specialaccess/deviceadmin/
H A DDeviceAdminListPreferenceController.java134 final List<UserHandle> profiles = mUm.getUserProfiles(); in updateState()
156 final List<UserHandle> profiles = mUm.getUserProfiles(); in refreshData()
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
H A DTaskUtils.java84 List<UserHandle> allUsers = UserCache.INSTANCE.get(context).getUserProfiles(); in checkCurrentOrManagedUserId()
/aosp12/packages/apps/Settings/src/com/android/settings/vpn2/
H A 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()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/
H A DWidgetManagerHelper.java125 .getUserProfiles() in allWidgetsSteam()
/aosp12/packages/apps/Settings/src/com/android/settings/location/
H A DAppLocationPermissionPreferenceController.java87 UserManager.class).getUserProfiles(); in updateState()
H A DTopLevelLocationPreferenceController.java84 UserManager.class).getUserProfiles(); in updateState()
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/allapps/
H A DWorkProfileManager.java93 for (UserHandle userProfile : mUserManager.getUserProfiles()) { in setWorkProfileEnabled()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/privacy/
H A DRecentlyAccessedByUtils.java61 UserManager.class).getUserProfiles(); in getAppList()

1234