/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/request/ |
D | ReadTableRequest.java | 43 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 …]
|
D | UpsertTableRequest.java | 156 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()
|
D | ReadTransactionRequest.java | 48 private final List<ReadTableRequest> mReadTableRequests; 102 public List<ReadTableRequest> getReadRequests() { in getReadRequests()
|
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/ |
D | RecordHelperTest.java | 44 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 …]
|
D | TransactionTestUtils.java | 47 import com.android.server.healthconnect.storage.request.ReadTableRequest; 182 ReadTableRequest readChangeLogsRequest = in getAllDeletedUuids() 183 new ReadTableRequest(ChangeLogsHelper.TABLE_NAME).setWhereClause(whereClauses); in getAllDeletedUuids()
|
D | MedicalResourceHelperTest.java | 40 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/ |
D | ExerciseSessionRecordHelper.java | 69 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 …]
|
D | AccessLogsHelper.java | 39 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()
|
D | ActivityDateHelper.java | 35 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()
|
D | RecordHelper.java | 64 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 …]
|
D | DeriveTotalCaloriesBurnedHelper.java | 34 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()
|
D | DeriveBasalCaloriesBurnedHelper.java | 37 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()
|
D | ChangeLogsRequestHelper.java | 40 import com.android.server.healthconnect.storage.request.ReadTableRequest; 128 ReadTableRequest readTableRequest = in getRequest() 129 new ReadTableRequest(TABLE_NAME) in getRequest()
|
D | MedicalResourceHelper.java | 50 import com.android.server.healthconnect.storage.request.ReadTableRequest; 125 public static ReadTableRequest getReadTableRequest( in getReadTableRequest() 127 return new ReadTableRequest(getMainTableName()) in getReadTableRequest()
|
D | PreferenceHelper.java | 32 import com.android.server.healthconnect.storage.request.ReadTableRequest; 143 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populatePreferences()
|
D | ChangeLogsHelper.java | 49 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()
|
D | DeviceInfoHelper.java | 37 import com.android.server.healthconnect.storage.request.ReadTableRequest; 131 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populateDeviceInfoMap()
|
D | PlannedExerciseSessionRecordHelper.java | 77 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()
|
D | HealthDataCategoryPriorityHelper.java | 48 import com.android.server.healthconnect.storage.request.ReadTableRequest; 326 try (Cursor cursor = transactionManager.read(new ReadTableRequest(TABLE_NAME))) { in populateDataCategoryToAppIdPriorityMap()
|
D | AppInfoHelper.java | 59 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/ |
D | NoMockAutoDeleteServiceTest.java | 33 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/ |
D | DatabaseMerger.java | 49 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/ |
D | TransactionManager.java | 60 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/ |
D | WhereClauses.java | 19 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/ |
D | PriorityMigrationHelper.java | 36 import com.android.server.healthconnect.storage.request.ReadTableRequest; 110 transactionManager.read(new ReadTableRequest(PRE_MIGRATION_TABLE_NAME))) { in cachePreMigrationTable()
|