Home
last modified time | relevance | path

Searched refs:getUserHandles (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Permission/service/java/com/android/permission/util/
DUserUtils.java68 return getUserHandles(context).contains(UserHandle.of(userId)); in isUserExistent()
73 public static List<UserHandle> getUserHandles(@NonNull Context context) { in getUserHandles() method in UserUtils
78 return userManager.getUserHandles(true); in getUserHandles()
/packages/services/Car/car-builtin-lib/src/android/car/builtin/os/
DUserManagerHelper.java70 public static List<UserHandle> getUserHandles(@NonNull UserManager userManager, in getUserHandles() method in UserManagerHelper
72 return userManager.getUserHandles(excludeDying); in getUserHandles()
82 public static List<UserHandle> getUserHandles(@NonNull UserManager userManager, in getUserHandles() method in UserManagerHelper
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/
DUidPackageMapperTest.java85 when(mMockUserManager.getUserHandles(anyBoolean())).thenReturn(List.of(sUserHandle1)); in setUp()
184 when(mMockUserManager.getUserHandles(anyBoolean())) in testOnUserAdded()
/packages/services/Car/tests/RailwayReferenceApp/src/com/google/android/car/networking/railway/
DUidToPackageNameConverter.java36 final List<UserHandle> users = userManager.getUserHandles(true); in convertToUids()
/packages/services/Car/service/src/com/android/car/user/
DUserHandleHelper.java47 List<UserHandle> users = UserManagerHelper.getUserHandles(mUserManager, in getExistingUserHandle()
DExperimentalCarUserService.java444 List<UserHandle> users = UserManagerHelper.getUserHandles(mUserManager, in getUsersHandle()
465 List<UserHandle> users = UserManagerHelper.getUserHandles(mUserManager, in getNumberOfManagedProfiles()
DInitialUserSetter.java825 return UserManagerHelper.getUserHandles(mUm, /* excludeDying= */ false); in getAllUsers()
835 List<UserHandle> users = UserManagerHelper.getUserHandles(mUm, /* excludeDying= */ false); in getAllUsersExceptSystemUserAndSpecifiedUser()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DHealthPermissionIntentAppsTrackerTest.java56 when(mUserManager.getUserHandles(anyBoolean())).thenReturn(List.of(CURRENT_USER)); in setUp()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DSatelliteAccessControllerTest.kt104 doReturn(emptyList<UserHandle>()).`when`(userManager).getUserHandles(true) in setup()
304 ).`when`(userManager).getUserHandles(true) in testOnStartUpCallbackSatelliteFallbackUidWithExistingUsers()
DPermissionMonitorTest.java183 doReturn(List.of(MOCK_USER1)).when(mUserManager).getUserHandles(eq(true)); in setUp()
879 doReturn(List.of(MOCK_USER1, MOCK_USER2)).when(mUserManager).getUserHandles(eq(true)); in doTestUidFilteringDuringPackageInstallAndUninstall()
1080 doReturn(List.of(MOCK_USER1, MOCK_USER2)).when(mUserManager).getUserHandles(eq(true)); in testLockdownUidFilteringWithInstallAndUnInstall()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DUserHandleHelperUnitTest.java146 () -> UserManagerHelper.getUserHandles(mUserManager, excludeDying)); in mockGetUserHandles()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DHealthPermissionIntentAppsTracker.java134 .getUserHandles(/* excludeDying= */ true); in initPerUserMapping()
/packages/modules/Permission/service/java/com/android/safetycenter/notifications/
DSafetyCenterNotificationChannels.java118 List<UserHandle> users = UserUtils.getUserHandles(context); in createAllChannelsForAllUsers()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/cardemulation/
DPreferredServicesTest.java166 when(mUserManager.getEnabledProfiles()).thenReturn(getUserHandles()); in setUp()
553 when(mUserManager.getEnabledProfiles()).thenReturn(getUserHandles()); in testOnUserSwitchedWithNoChange()
643 private ArrayList<UserHandle> getUserHandles() { in getUserHandles() method in PreferredServicesTest
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DSatelliteAccessController.java242 List<UserHandle> existingUsers = userManager.getUserHandles(true /*excludeDying*/); in updateAllUserRoleSmsUids()
/packages/services/Car/service/src/com/android/car/telemetry/
DUidPackageMapper.java208 List<UserHandle> users = um.getUserHandles(/* excludeDying= */ true); in refetchAllAppInfo()
/packages/modules/Permission/service/java/com/android/safetycenter/
DUserProfileGroup.java94 List<UserHandle> userHandles = UserUtils.getUserHandles(context); in getAllUserProfileGroups()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTestHelpers.kt96 doReturn(listOf(handle)).`when`(it).getUserHandles(ArgumentMatchers.anyBoolean()) in <lambda>()
/packages/services/Car/tests/UserSwitchMonitorApp/src/com/google/android/car/userswitchmonitor/
DUserSwitchMonitorService.java90 List<UserHandle> users = um.getUserHandles(/* excludeDying= */ false); in onCarReady()
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/
DAndroidMockitoHelperTest.java317 assertThat(mMockedUserManager.getUserHandles(true)).containsExactly(user1, user2).inOrder(); in testMockUmGetUserHandles()
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/
DAndroidMockitoHelper.java307 when(um.getUserHandles(excludeDying)).thenReturn(users); in mockUmGetUserHandles()
/packages/services/Car/service/src/com/android/car/hal/
DUserHalHelper.java595 List<UserHandle> users = UserManagerHelper.getUserHandles(um, /* excludeDying= */ false); in newUsersInfo()
/packages/modules/Media/apex/service/java/com/android/server/media/
DMediaCommunicationService.java198 List<UserHandle> allUsers = manager.getUserHandles(/*excludeDying=*/false); in updateUser()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsCompanionService.java211 final List<UserHandle> users = um.getUserHandles(true); in informAllUids()
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java618 List<UserHandle> users = userManager.getUserHandles(/* excludeDying= */ false); in notifyAllUserStates()

12