Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/
DReadTableRequest.java43 public class ReadTableRequest { class
55 private List<ReadTableRequest> mExtraReadRequests;
56 private List<ReadTableRequest> mUnionReadRequests;
59 public ReadTableRequest(@NonNull String tableName) { in ReadTableRequest() method in ReadTableRequest
69 public ReadTableRequest setRecordHelper(RecordHelper<?> recordHelper) { in setRecordHelper()
74 public ReadTableRequest setColumnNames(@NonNull List<String> columnNames) { in setColumnNames()
81 public ReadTableRequest setWhereClause(WhereClauses whereClauses) { in setWhereClause()
88 public ReadTableRequest setJoinClause(SqlJoin joinClause) { in setJoinClause()
100 public ReadTableRequest setDistinctClause(boolean isDistinctValuesRequired) { in setDistinctClause()
133 for (ReadTableRequest unionReadRequest : mUnionReadRequests) { in getReadCommand()
[all …]
DUpsertTableRequest.java156 public ReadTableRequest getReadRequest() { in getReadRequest()
157 return new ReadTableRequest(getTable()).setWhereClause(getReadWhereClauses()); in getReadRequest()
160 public ReadTableRequest getReadRequestUsingUpdateClause() { in getReadRequestUsingUpdateClause()
161 return new ReadTableRequest(getTable()).setWhereClause(getUpdateWhereClauses()); in getReadRequestUsingUpdateClause()
DReadTransactionRequest.java48 private final List<ReadTableRequest> mReadTableRequests;
102 public List<ReadTableRequest> getReadRequests() { in getReadRequests()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/
DRecordHelperTest.java44 import com.android.server.healthconnect.storage.request.ReadTableRequest;
84 ReadTableRequest request = new ReadTableRequest(STEPS_TABLE_NAME); in getInternalRecords_insertThenRead_recordReturned()
104 ReadTableRequest request = new ReadTableRequest(STEPS_TABLE_NAME); in getInternalRecords_requestSizeMoreThanRecordNumber_recordsReturned()
123 ReadTableRequest request = new ReadTableRequest(STEPS_TABLE_NAME); in getInternalRecords_cursorHasTooManyData_throws()
158 ReadTableRequest request1 = in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
159 new ReadTableRequest(STEPS_TABLE_NAME) in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
175 ReadTableRequest request2 = in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
176 new ReadTableRequest(STEPS_TABLE_NAME) in getNextInternalRecordsPageAndToken_zeroOffsetDesc_correctResults()
244 ReadTableRequest request1 = in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
263 ReadTableRequest request2 = in getNextInternalRecordsPageAndToken_sameStartTimeAsc_correctResults()
[all …]
DTransactionTestUtils.java47 import com.android.server.healthconnect.storage.request.ReadTableRequest;
182 ReadTableRequest readChangeLogsRequest = in getAllDeletedUuids()
183 new ReadTableRequest(ChangeLogsHelper.TABLE_NAME).setWhereClause(whereClauses); in getAllDeletedUuids()
DMedicalResourceHelperTest.java40 import com.android.server.healthconnect.storage.request.ReadTableRequest;
99 ReadTableRequest readRequest = in getReadTableRequest_usingMedicalResourceId_correctQuery()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DExerciseSessionRecordHelper.java69 import com.android.server.healthconnect.storage.request.ReadTableRequest;
308 List<ReadTableRequest> getExtraDataReadRequests( in getExtraDataReadRequests()
380 List<ReadTableRequest> getExtraDataReadRequests( in getExtraDataReadRequests()
477 public List<ReadTableRequest> getReadRequestsForRecordsModifiedByUpsertion( in getReadRequestsForRecordsModifiedByUpsertion()
479 List<ReadTableRequest> result = new ArrayList<>(); in getReadRequestsForRecordsModifiedByUpsertion()
489 ReadTableRequest readRequest = in getReadRequestsForRecordsModifiedByUpsertion()
490 new ReadTableRequest(PLANNED_EXERCISE_SESSION_RECORD_TABLE_NAME) { in getReadRequestsForRecordsModifiedByUpsertion()
516 ReadTableRequest affectedTrainingPlanReadRequest = in getReadRequestsForRecordsModifiedByUpsertion()
517 new ReadTableRequest(PLANNED_EXERCISE_SESSION_RECORD_TABLE_NAME); in getReadRequestsForRecordsModifiedByUpsertion()
534 public List<ReadTableRequest> getReadRequestsForRecordsModifiedByDeletion( in getReadRequestsForRecordsModifiedByDeletion()
[all …]
DAccessLogsHelper.java39 import com.android.server.healthconnect.storage.request.ReadTableRequest;
72 final ReadTableRequest readTableRequest = new ReadTableRequest(TABLE_NAME); in queryAccessLogs()
101 final ReadTableRequest readTableRequest = in getLatestAccessLogTimeStamp()
102 new ReadTableRequest(TABLE_NAME) in getLatestAccessLogTimeStamp()
DActivityDateHelper.java35 import com.android.server.healthconnect.storage.request.ReadTableRequest;
98 new ReadTableRequest(TABLE_NAME) in getActivityDates()
158 ReadTableRequest request; in fetchUpdatedDates()
164 new ReadTableRequest(recordHelper.getMainTableName()) in fetchUpdatedDates()
195 private static List<LocalDate> readDates(@NonNull ReadTableRequest request) { in readDates()
DRecordHelper.java64 import com.android.server.healthconnect.storage.request.ReadTableRequest;
333 public ReadTableRequest getReadTableRequest( in getReadTableRequest()
340 return new ReadTableRequest(getMainTableName()) in getReadTableRequest()
383 public final ReadTableRequest getReadTableRequest( in getReadTableRequest()
389 return new ReadTableRequest(getMainTableName()) in getReadTableRequest()
411 List<ReadTableRequest> getExtraDataReadRequests( in getExtraDataReadRequests()
424 List<ReadTableRequest> getExtraDataReadRequests( in getExtraDataReadRequests()
437 public ReadTableRequest getReadTableRequestWithDistinctAppInfoIds() { in getReadTableRequestWithDistinctAppInfoIds()
438 return new ReadTableRequest(getMainTableName()) in getReadTableRequestWithDistinctAppInfoIds()
901 public List<ReadTableRequest> getReadRequestsForRecordsModifiedByDeletion( in getReadRequestsForRecordsModifiedByDeletion()
[all …]
DDeriveTotalCaloriesBurnedHelper.java34 import com.android.server.healthconnect.storage.request.ReadTableRequest;
85 new ReadTableRequest(ACTIVE_CALORIES_BURNED_RECORD_TABLE_NAME) in inititalizeCursors()
98 new ReadTableRequest(BASAL_METABOLIC_RATE_RECORD_TABLE_NAME) in inititalizeCursors()
DDeriveBasalCaloriesBurnedHelper.java37 import com.android.server.healthconnect.storage.request.ReadTableRequest;
149 new ReadTableRequest(BASAL_METABOLIC_RATE_RECORD_TABLE_NAME) in derivedBasalCaloriesViaReadBack()
320 new ReadTableRequest(tableName) in getReadCursorForDerivingBMR()
331 new ReadTableRequest(tableName) in getReadCursorForDerivingBMR()
DChangeLogsRequestHelper.java40 import com.android.server.healthconnect.storage.request.ReadTableRequest;
128 ReadTableRequest readTableRequest = in getRequest()
129 new ReadTableRequest(TABLE_NAME) in getRequest()
DMedicalResourceHelper.java50 import com.android.server.healthconnect.storage.request.ReadTableRequest;
125 public static ReadTableRequest getReadTableRequest( in getReadTableRequest()
127 return new ReadTableRequest(getMainTableName()) in getReadTableRequest()
DPreferenceHelper.java32 import com.android.server.healthconnect.storage.request.ReadTableRequest;
143 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populatePreferences()
DChangeLogsHelper.java49 import com.android.server.healthconnect.storage.request.ReadTableRequest;
124 final ReadTableRequest readTableRequest = in getChangeLogs()
125 new ReadTableRequest(TABLE_NAME).setWhereClause(whereClause).setLimit(pageSize + 1); in getChangeLogs()
DDeviceInfoHelper.java37 import com.android.server.healthconnect.storage.request.ReadTableRequest;
131 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populateDeviceInfoMap()
DPlannedExerciseSessionRecordHelper.java77 import com.android.server.healthconnect.storage.request.ReadTableRequest;
591 public List<ReadTableRequest> getReadRequestsForRecordsModifiedByDeletion( in getReadRequestsForRecordsModifiedByDeletion()
593 ReadTableRequest affectedExerciseSessionsReadRequest = in getReadRequestsForRecordsModifiedByDeletion()
594 new ReadTableRequest(EXERCISE_SESSION_RECORD_TABLE_NAME); in getReadRequestsForRecordsModifiedByDeletion()
DHealthDataCategoryPriorityHelper.java48 import com.android.server.healthconnect.storage.request.ReadTableRequest;
326 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populateDataCategoryToAppIdPriorityMap()
DAppInfoHelper.java59 import com.android.server.healthconnect.storage.request.ReadTableRequest;
302 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populateAppInfoMap()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/
DNoMockAutoDeleteServiceTest.java33 import com.android.server.healthconnect.storage.request.ReadTableRequest;
66 try (Cursor cursor = mTransactionManager.read(new ReadTableRequest(STEPS_TABLE_NAME))) { in startAutoDelete_changeLogsGenerated()
76 try (Cursor cursor = mTransactionManager.read(new ReadTableRequest(STEPS_TABLE_NAME))) { in startAutoDelete_changeLogsGenerated()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/
DDatabaseMerger.java49 import com.android.server.healthconnect.storage.request.ReadTableRequest;
95 try (Cursor cursor = read(stagedDatabase, new ReadTableRequest(AppInfoHelper.TABLE_NAME))) { in merge()
273 ReadTableRequest readTableRequest = readTransactionRequest.getReadRequests().get(0); in getRecordsToMerge()
284 for (ReadTableRequest extraDataRequest : readTableRequest.getExtraReadRequests()) { in getRecordsToMerge()
299 HealthConnectDatabase stagedDatabase, ReadTableRequest request) { in read()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DTransactionManager.java60 import com.android.server.healthconnect.storage.request.ReadTableRequest;
309 for (ReadTableRequest additionalChangelogUuidRequest : in deleteAll()
377 ReadTableRequest readTableRequest = in readMedicalResourcesByIds()
401 for (ReadTableRequest readTableRequest : request.getReadRequests()) { in readRecordsByIds()
436 ReadTableRequest readTableRequest = request.getReadRequests().get(0); in readRecordsAndPageToken()
517 public Cursor read(@NonNull ReadTableRequest request) { in read()
817 List<RecordInternal<?>> records, ReadTableRequest request) { in populateInternalRecordsWithExtraData()
821 for (ReadTableRequest extraDataRequest : request.getExtraReadRequests()) { in populateInternalRecordsWithExtraData()
925 for (ReadTableRequest additionalChangelogUuidRequest : in addChangelogsForOtherModifiedRecords()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/utils/
DWhereClauses.java19 import com.android.server.healthconnect.storage.request.ReadTableRequest;
169 public WhereClauses addWhereInSQLRequestClause(String columnName, ReadTableRequest inRequest) { in addWhereInSQLRequestClause()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/
DPriorityMigrationHelper.java36 import com.android.server.healthconnect.storage.request.ReadTableRequest;
110 transactionManager.read(new ReadTableRequest(PRE_MIGRATION_TABLE_NAME))) { in cachePreMigrationTable()