Home
last modified time | relevance | path

Searched refs:mAppInfoHelper (Results 1 – 6 of 6) sorted by relevance

/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelperTest.java107 @Mock private AppInfoHelper mAppInfoHelper; field in HealthDataCategoryPriorityHelperTest
123 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in setUp()
124 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME), any())) in setUp()
126 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME_2), any())) in setUp()
128 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME_3), any())) in setUp()
130 when(mAppInfoHelper.getOrInsertAppInfoId(eq(APP_PACKAGE_NAME_4), any())) in setUp()
132 when(mAppInfoHelper.getAppInfoId(APP_PACKAGE_NAME)).thenReturn(APP_PACKAGE_ID); in setUp()
133 when(mAppInfoHelper.getAppInfoId(APP_PACKAGE_NAME_2)).thenReturn(APP_PACKAGE_ID_2); in setUp()
134 when(mAppInfoHelper.getAppInfoId(APP_PACKAGE_NAME_3)).thenReturn(APP_PACKAGE_ID_3); in setUp()
135 when(mAppInfoHelper.getAppInfoId(APP_PACKAGE_NAME_4)).thenReturn(APP_PACKAGE_ID_4); in setUp()
[all …]
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DPriorityMigrationTest.java74 @Mock AppInfoHelper mAppInfoHelper; field in PriorityMigrationTest
105 mAppInfoHelper, in setUp()
139 when(mAppInfoHelper.getPackageNames(List.of(APP_PACKAGE_ID_4, APP_PACKAGE_ID_3))) in testMigratePriority_preMigrationPriorityNewAppsInPayload_priorityMigrated()
175 when(mAppInfoHelper.getPackageNames( in testMigratePriority_preMigrationPriorityWithChangedOrderInPayload_priorityMigrated()
218 when(mAppInfoHelper.getPackageNames( in testMigratePriority_preMigrationPriorityNewAppChangedOrderInPayload_priorityMigrated()
252 when(mAppInfoHelper.getPackageNames( in testMigratePriority_preMigrationPriorityWithNoAppsInPayload_priorityNotMigrated()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DDataMigrationManager.java67 private final AppInfoHelper mAppInfoHelper; field in DataMigrationManager
85 mAppInfoHelper = appInfoHelper; in DataMigrationManager()
151 mAppInfoHelper.populateAppInfoId(record, mUserContext, false); in parseRecord()
203 mAppInfoHelper.addOrUpdateAppInfoIfNotInstalled( in migrateAppInfo()
282 mAppInfoHelper.getPackageNames( in migratePriority()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DAutoDeleteServiceTest.java117 @Mock private AppInfoHelper mAppInfoHelper; field in AutoDeleteServiceTest
136 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in testStartAutoDelete_getPreferenceReturnNull()
150 verify(mAppInfoHelper).syncAppInfoRecordTypesUsed(); in testStartAutoDelete_getPreferenceReturnNull()
159 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in testStartAutoDelete_getPreferenceReturnNonNull()
181 verify(mAppInfoHelper).syncAppInfoRecordTypesUsed(); in testStartAutoDelete_getPreferenceReturnNonNull()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java214 private final AppInfoHelper mAppInfoHelper; field in HealthConnectServiceImpl
249 mAppInfoHelper = AppInfoHelper.getInstance(); in HealthConnectServiceImpl()
447 mAppInfoHelper.updateAppInfoRecordTypesUsedOnInsert( in postInsertTasks()
1475 mAppInfoHelper.getApplicationInfosWithRecordTypes(); in getContributorApplicationsInfo()
1692 mAppInfoHelper.syncAppInfoRecordTypesUsed(); in finishMigration()
2391 mAppInfoHelper, in getDataMigrationManager()
2480 mAppInfoHelper.getRecordTypesToContributingPackagesMap(); in getPopulatedRecordTypeInfoResponses()
2593 mAppInfoHelper.syncAppInfoRecordTypesUsed(new HashSet<>(recordTypeIdsToDelete)); in postDeleteTasks()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/backuprestore/
DBackupRestoreTest.java129 @Mock private AppInfoHelper mAppInfoHelper; field in BackupRestoreTest
152 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in setUp()