Home
last modified time | relevance | path

Searched refs:AppInfoHelper (Results 1 – 23 of 23) sorted by relevance

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDatabaseMerger.java46 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
95 try (Cursor cursor = read(stagedDatabase, new ReadTableRequest(AppInfoHelper.TABLE_NAME))) { in merge()
98 String packageName = getCursorString(cursor, AppInfoHelper.PACKAGE_COLUMN_NAME); in merge()
99 String appName = getCursorString(cursor, AppInfoHelper.APPLICATION_COLUMN_NAME); in merge()
100 byte[] icon = getCursorBlob(cursor, AppInfoHelper.APP_ICON_COLUMN_NAME); in merge()
105 AppInfoHelper.getInstance() in merge()
158 AppInfoHelper.getInstance().syncAppInfoRecordTypesUsed(); in merge()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DTransactionTestUtils.java23 import static com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper.PACKAGE_COLUMN…
24 import static com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper.UNIQUE_COLUMN_…
79 AppInfoHelper.TABLE_NAME, contentValues, UNIQUE_COLUMN_INFO)); in insertApp()
80 AppInfoHelper.getInstance().clearCache(); in insertApp()
81 assertThat(AppInfoHelper.getInstance().getAppInfoId(packageName)) in insertApp()
DMedicalDataSourceHelperTest.java53 AppInfoHelper.TABLE_NAME, in getCreateTableRequest_correctResult()
DHealthDataCategoryPriorityHelperTest.java97 .mockStatic(AppInfoHelper.class)
107 @Mock private AppInfoHelper mAppInfoHelper;
123 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in setUp()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DHealthDataCategoryPriorityHelper.java116 long appInfoId = AppInfoHelper.getInstance().getOrInsertAppInfoId(packageName, context); in appendToPriorityList()
223 return AppInfoHelper.getInstance().getPackageNames(getAppIdPriorityOrder(type)); in getPriorityOrder()
250 AppInfoHelper.getInstance().getAppInfoIds(packagePriorityOrder); in setPriorityOrder()
422 AppInfoHelper appInfoHelper = AppInfoHelper.getInstance(); in reSyncHealthDataPriorityTable()
488 newPriorityList.remove(AppInfoHelper.getInstance().getAppInfoId(packageName)); in maybeRemoveAppFromPriorityListInternal()
517 dataCategory, AppInfoHelper.getInstance().getPackageName(appInfoId)); in maybeRemoveAppsFromPriorityList()
648 AppInfoHelper.getInstance().getRecordTypesToContributingPackagesMap(); in getDataCategoriesWithDataForPackage()
670 AppInfoHelper.getInstance().getRecordTypesToContributingPackagesMap(); in getAllContributorApps()
DAccessLogsHelper.java75 final AppInfoHelper appInfoHelper = AppInfoHelper.getInstance(); in queryAccessLogs()
137 APP_ID_COLUMN_NAME, AppInfoHelper.getInstance().getAppInfoId(packageName)); in getUpsertTableRequest()
DRecordHelper.java139 AppInfoHelper appInfoHelper = AppInfoHelper.getInstance(); in getAggregateTableRequest()
229 AppInfoHelper.TABLE_NAME, in getCreateTableRequest()
564 : AppInfoHelper.getInstance().getPackageName(appInfoId); in getRecord()
601 AppInfoHelper.getInstance().getAppInfoIds(packageFilters)) in getDeleteTableRequest()
705 AppInfoHelper appInfoHelper = AppInfoHelper.getInstance(); in getReadTableWhereClause()
DAppInfoHelper.java84 public final class AppInfoHelper extends DatabaseHelper { class
96 private static volatile AppInfoHelper sAppInfoHelper;
114 private AppInfoHelper() {} in AppInfoHelper() method in AppInfoHelper
686 public static synchronized AppInfoHelper getInstance() { in getInstance()
688 sAppInfoHelper = new AppInfoHelper(); in getInstance()
DDatabaseHelper.java37 AppInfoHelper.getInstance(), in getDatabaseHelpers()
DMedicalDataSourceHelper.java64 AppInfoHelper.TABLE_NAME, in getCreateTableRequest()
DExerciseSessionRecordHelper.java401 long appId = AppInfoHelper.getInstance().getAppInfoId(packageName); in getExtraDataReadRequests()
504 + AppInfoHelper.getInstance() in getReadRequestsForRecordsModifiedByUpsertion()
600 long appId = AppInfoHelper.getInstance().getAppInfoId(packageName); in getExerciseRouteReadAccessType()
DChangeLogsHelper.java116 AppInfoHelper.getInstance() in getChangeLogs()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DAutoDeleteServiceTest.java37 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
109 .mockStatic(AppInfoHelper.class)
117 @Mock private AppInfoHelper mAppInfoHelper;
136 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in testStartAutoDelete_getPreferenceReturnNull()
159 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in testStartAutoDelete_getPreferenceReturnNonNull()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DAutoDeleteService.java25 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
71 AppInfoHelper.getInstance().syncAppInfoRecordTypesUsed(); in startAutoDelete()
DDatabaseUpgradeHelper.java34 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
155 requests.add(AppInfoHelper.getCreateTableRequest()); in getInitialCreateTableRequests()
DTransactionManager.java53 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
621 AppInfoHelper appInfoHelper = AppInfoHelper.getInstance(); in getDistinctPackageNamesForRecordsTable()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DDataMigrationManager.java39 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
67 private final AppInfoHelper mAppInfoHelper;
77 @NonNull AppInfoHelper appInfoHelper, in DataMigrationManager()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DDeleteTransactionRequest.java29 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
52 mRequestingPackageNameId = AppInfoHelper.getInstance().getAppInfoId(packageName); in DeleteTransactionRequest()
DUpsertTransactionRequest.java35 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
123 AppInfoHelper.getInstance() in UpsertTransactionRequest()
DAggregateTableRequest.java40 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
350 List<String> packageNames = AppInfoHelper.getInstance().getPackageNames(packageIds); in updateResultWithDataOriginPackageNames()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/migration/
DPriorityMigrationTest.java39 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
74 @Mock AppInfoHelper mAppInfoHelper;
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/backuprestore/
DBackupRestoreTest.java88 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
121 .mockStatic(AppInfoHelper.class)
129 @Mock private AppInfoHelper mAppInfoHelper;
152 when(AppInfoHelper.getInstance()).thenReturn(mAppInfoHelper); in setUp()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java154 import com.android.server.healthconnect.storage.datatypehelpers.AppInfoHelper;
214 private final AppInfoHelper mAppInfoHelper;
249 mAppInfoHelper = AppInfoHelper.getInstance(); in HealthConnectServiceImpl()