Home
last modified time | relevance | path

Searched refs:mPackageInfoUtils (Results 1 – 2 of 2) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java110 @Mock private PackageInfoUtils mPackageInfoUtils; field in HealthDataCategoryPriorityHelperTest
140 when(PackageInfoUtils.getInstance()).thenReturn(mPackageInfoUtils); in setUp()
355 when(mPackageInfoUtils.getPackageInfoWithPermissionsAsUser(any(), any(), any())) in testUpdateHealthDataPriority_ifWritePermissionsForApp_doesNotRemoveApp()
384 when(mPackageInfoUtils.getPackageInfoWithPermissionsAsUser(any(), any(), any())) in testNewUpdateHealthDataPriority_ifDataForApp_doesNotRemoveApp()
412 when(mPackageInfoUtils.getPackageInfoWithPermissionsAsUser(any(), any(), any())) in testNewUpdateHealthDataPriority_ifNoDataForApp_removesApp()
445 when(mPackageInfoUtils.getPackageInfoWithPermissionsAsUser(any(), any(), any())) in testOldUpdateHealthDataPriority_ifNoWritePermissionsForApp_removesApp()
782 when(mPackageInfoUtils.getPackagesHoldingHealthPermissions(any(), any())) in testOldReSyncHealthDataPriorityTable_maintainsExistingOrdering()
854 when(mPackageInfoUtils.getPackagesHoldingHealthPermissions(any(), any())) in testOldReSyncHealthDataPriorityTable_addsNewApps_withWritePermission()
919 when(mPackageInfoUtils.getPackagesHoldingHealthPermissions(any(), any())) in testOldReSyncHealthDataPriorityTable_removesApps_withoutWritePermissionAndData()
987 when(mPackageInfoUtils.getPackagesHoldingHealthPermissions(any(), any())) in testNewReSyncHealthDataPriorityTable_emptyListAndNoContributingApps_remainsEmpty()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/permission/
DFirstGrantTimeUnitTest.java86 @Mock private PackageInfoUtils mPackageInfoUtils; field in FirstGrantTimeUnitTest
129 PackageInfoUtils.setInstanceForTest(mPackageInfoUtils); in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
137 when(mPackageInfoUtils.getPackageUid( in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
140 when(mPackageInfoUtils.getPackageNameFromUid(eq(uid))) in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()
143 when(mPackageInfoUtils.getPackagesHoldingHealthPermissions( in testSetFirstGrantTimeForAnApp_expectOtherAppsGrantTimesRemained()