Home
last modified time | relevance | path

Searched refs:recordHelper (Results 1 – 16 of 16) sorted by relevance

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DDatabaseStatsCollector.java41 for (RecordHelper<?> recordHelper : RecordHelperProvider.getRecordHelpers().values()) { in getNumberOfIntervalRecordRows()
42 if (recordHelper instanceof IntervalRecordHelper in getNumberOfIntervalRecordRows()
43 && !(recordHelper instanceof SeriesRecordHelper)) { in getNumberOfIntervalRecordRows()
46 recordHelper.getMainTableName()); in getNumberOfIntervalRecordRows()
56 for (RecordHelper<?> recordHelper : RecordHelperProvider.getRecordHelpers().values()) { in getNumberOfSeriesRecordRows()
57 if (recordHelper instanceof SeriesRecordHelper) { in getNumberOfSeriesRecordRows()
60 recordHelper.getMainTableName()); in getNumberOfSeriesRecordRows()
70 for (RecordHelper<?> recordHelper : RecordHelperProvider.getRecordHelpers().values()) { in getNumberOfInstantRecordRows()
71 if (recordHelper instanceof InstantRecordHelper) { in getNumberOfInstantRecordRows()
74 recordHelper.getMainTableName()); in getNumberOfInstantRecordRows()
DActivityDateHelper.java159 RecordHelper<?> recordHelper; in fetchUpdatedDates() local
162 recordHelper = RecordHelperProvider.getRecordHelper(recordTypeId); in fetchUpdatedDates()
164 new ReadTableRequest(recordHelper.getMainTableName()) in fetchUpdatedDates()
165 .setColumnNames(List.of(recordHelper.getPeriodGroupByColumnName())) in fetchUpdatedDates()
171 getCursorLong(cursor, recordHelper.getPeriodGroupByColumnName()); in fetchUpdatedDates()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DDeleteTransactionRequest.java59 RecordHelper<?> recordHelper = in DeleteTransactionRequest() local
67 recordTypeToUuids.putIfAbsent(recordHelper, new ArrayList<>()); in DeleteTransactionRequest()
68 Objects.requireNonNull(recordTypeToUuids.get(recordHelper)).add(uuid); in DeleteTransactionRequest()
73 (recordHelper, uuids) -> in DeleteTransactionRequest()
74 mDeleteTableRequests.add(recordHelper.getDeleteTableRequest(uuids))); in DeleteTransactionRequest()
93 RecordHelper<?> recordHelper = RecordHelperProvider.getRecordHelper(recordType); in DeleteTransactionRequest() local
94 Objects.requireNonNull(recordHelper); in DeleteTransactionRequest()
97 recordHelper.getDeleteTableRequest( in DeleteTransactionRequest()
DUpsertTransactionRequest.java190 RecordHelper<?> recordHelper = in addRequest() local
192 Objects.requireNonNull(recordHelper); in addRequest()
195 recordHelper.getUpsertTableRequest(recordInternal, mExtraWritePermissionsToState); in addRequest()
196 request.setRecordType(recordHelper.getRecordIdentifier()); in addRequest()
DAggregateTransactionRequest.java69 RecordHelper<?> recordHelper = in AggregateTransactionRequest() local
72 recordHelper.getAggregateTableRequest( in AggregateTransactionRequest()
83 recordHelper.getDurationGroupByColumnName(), in AggregateTransactionRequest()
DReadTransactionRequest.java60 RecordHelper<?> recordHelper = in ReadTransactionRequest() local
64 recordHelper.getReadTableRequest( in ReadTransactionRequest()
DReadTableRequest.java69 public ReadTableRequest setRecordHelper(RecordHelper<?> recordHelper) { in setRecordHelper() argument
70 mRecordHelper = recordHelper; in setRecordHelper()
DUpsertTableRequest.java202 RecordHelper<?> recordHelper) { in setHelper() argument
203 mRecordHelper = recordHelper; in setHelper()
DAggregateTableRequest.java94 RecordHelper<?> recordHelper, in AggregateTableRequest() argument
101 mRecordHelper = recordHelper; in AggregateTableRequest()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDatabaseMerger.java168 RecordHelper<?> recordHelper = RecordHelperProvider.getRecordHelper(recordType); in mergeRecordsOfType() local
169 if (!StorageUtils.checkTableExists(stagedDatabase, recordHelper.getMainTableName())) { in mergeRecordsOfType()
183 recordHelper); in mergeRecordsOfType()
223 RecordHelper<?> recordHelper = RecordHelperProvider.getRecordHelper(recordType); in deleteRecordsOfType() local
224 if (!StorageUtils.checkTableExists(stagedDatabase, recordHelper.getMainTableName())) { in deleteRecordsOfType()
233 recordHelper.getDeleteTableRequest( in deleteRecordsOfType()
247 RecordHelper<?> recordHelper) { in getRecordsToMerge() argument
255 Set.copyOf(recordHelper.getExtraReadPermissions()); in getRecordsToMerge()
276 recordHelper.getNextInternalRecordsPageAndToken( in getRecordsToMerge()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/permission/
DDataPermissionEnforcer.java136 RecordHelper<?> recordHelper = RecordHelperProvider.getRecordHelper(recordTypeId); in enforceRecordsWritePermissions() local
142 recordHelper.checkRecordOperationsAreEnabled(recordInternal); in enforceRecordsWritePermissions()
145 .addAll(recordHelper.getRequiredExtraWritePermissions(recordInternal)); in enforceRecordsWritePermissions()
198 .flatMap(recordHelper -> recordHelper.getExtraReadPermissions().stream()) in collectGrantedExtraReadPermissions()
209 RecordHelper<?> recordHelper = RecordHelperProvider.getRecordHelper(recordTypeId); in collectExtraWritePermissionStateMapping() local
211 for (String permName : recordHelper.getExtraWritePermissions()) { in collectExtraWritePermissionStateMapping()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DDatabaseUpgradeHelper.java182 PlannedExerciseSessionRecordHelper recordHelper = in applyPlannedExerciseDatabaseUpgrade() local
184 HealthConnectDatabase.createTable(db, recordHelper.getCreateTableRequest()); in applyPlannedExerciseDatabaseUpgrade()
186 recordHelper in applyPlannedExerciseDatabaseUpgrade()
DAutoDeleteService.java95 (recordHelper) -> { in deleteStaleRecordEntries()
97 recordHelper.getDeleteRequestForAutoDelete( in deleteStaleRecordEntries()
DTransactionManager.java279 final RecordHelper<?> recordHelper = in deleteAll() local
310 recordHelper.getReadRequestsForRecordsModifiedByDeletion( in deleteAll()
611 RecordHelper<?> recordHelper = RecordHelperProvider.getRecordHelper(recordType); in getDistinctPackageNamesForRecordsTable() local
616 recordHelper in getDistinctPackageNamesForRecordsTable()
923 final RecordHelper<?> recordHelper = in addChangelogsForOtherModifiedRecords() local
926 recordHelper.getReadRequestsForRecordsModifiedByUpsertion( in addChangelogsForOtherModifiedRecords()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DAutoDeleteServiceTest.java309 (recordHelper) -> { in getDeleteTableRequests()
311 recordHelper.getDeleteRequestForAutoDelete( in getDeleteTableRequests()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java2540 RecordHelper<?> recordHelper = in logRecordTypeSpecificUpsertMetrics() local
2542 recordHelper.logUpsertMetrics(recordTypeToRecordInternalsEntry.getValue(), packageName); in logRecordTypeSpecificUpsertMetrics()
2554 RecordHelper<?> recordHelper = in logRecordTypeSpecificReadMetrics() local
2556 recordHelper.logReadMetrics(recordTypeToRecordInternalsEntry.getValue(), packageName); in logRecordTypeSpecificReadMetrics()