/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | BloodGlucoseRecordTest.java | 171 BloodGlucoseRecord insertedRecord = in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() local 184 assertThat(newRecord.equals(insertedRecord)).isTrue(); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() 185 assertThat(newRecord.getSpecimenSource()).isEqualTo(insertedRecord.getSpecimenSource()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() 186 assertThat(newRecord.getLevel()).isEqualTo(insertedRecord.getLevel()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() 187 assertThat(newRecord.getRelationToMeal()).isEqualTo(insertedRecord.getRelationToMeal()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() 188 assertThat(newRecord.getMealType()).isEqualTo(insertedRecord.getMealType()); in testReadBloodGlucoseRecordUsingFilters_dataFilter_correct() 204 private void readBloodGlucoseRecordUsingClientId(List<Record> insertedRecord) in readBloodGlucoseRecordUsingClientId() argument 208 for (Record record : insertedRecord) { in readBloodGlucoseRecordUsingClientId() 212 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readBloodGlucoseRecordUsingClientId() 213 assertThat(result).containsExactlyElementsIn(insertedRecord); in readBloodGlucoseRecordUsingClientId()
|
D | SleepSessionRecordTest.java | 227 SleepSessionRecord insertedRecord = in testReadById_insertAndReadByIdOne_recordsAreEqual() local 232 request.addId(insertedRecord.getMetadata().getId()); in testReadById_insertAndReadByIdOne_recordsAreEqual() 235 assertThat(readRecord.getMetadata()).isEqualTo(insertedRecord.getMetadata()); in testReadById_insertAndReadByIdOne_recordsAreEqual() 236 assertThat(CharSequence.compare(readRecord.getTitle(), insertedRecord.getTitle())) in testReadById_insertAndReadByIdOne_recordsAreEqual() 238 assertThat(CharSequence.compare(readRecord.getNotes(), insertedRecord.getNotes())) in testReadById_insertAndReadByIdOne_recordsAreEqual() 240 assertThat(readRecord.getStages()).isEqualTo(insertedRecord.getStages()); in testReadById_insertAndReadByIdOne_recordsAreEqual() 241 assertThat(readRecord).isEqualTo(insertedRecord); in testReadById_insertAndReadByIdOne_recordsAreEqual()
|
D | ExerciseSessionRecordTest.java | 208 ExerciseSessionRecord insertedRecord = TestUtils.readRecords(request.build()).get(0); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() local 209 assertThat(insertedRecord.hasRoute()).isTrue(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 210 assertThat(insertedRecord.getRoute()).isNotNull(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 217 insertedRecord = TestUtils.readRecords(request.build()).get(0); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 218 assertThat(insertedRecord.hasRoute()).isFalse(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 219 assertThat(insertedRecord.getRoute()).isNull(); in testUpdateRecord_updateToRecordWithoutRouteWithWritePerm_routeIsNullAfterUpdate() 365 ExerciseSessionRecord insertedRecord = (ExerciseSessionRecord) records.get(0); in testReadById_insertAndReadByIdOne_recordsAreEqual() local 366 assertThat(readRecord.hasRoute()).isEqualTo(insertedRecord.hasRoute()); in testReadById_insertAndReadByIdOne_recordsAreEqual() 367 assertThat(readRecord.getMetadata()).isEqualTo(insertedRecord.getMetadata()); in testReadById_insertAndReadByIdOne_recordsAreEqual() 368 assertThat(readRecord.getRoute()).isEqualTo(insertedRecord.getRoute()); in testReadById_insertAndReadByIdOne_recordsAreEqual() [all …]
|
D | OvulationTestRecordTest.java | 207 private void readOvulationTestRecordUsingClientId(List<Record> insertedRecord) in readOvulationTestRecordUsingClientId() argument 211 for (Record record : insertedRecord) { in readOvulationTestRecordUsingClientId() 215 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readOvulationTestRecordUsingClientId() 216 assertThat(result).containsExactlyElementsIn(insertedRecord); in readOvulationTestRecordUsingClientId() 301 List<Record> insertedRecord = TestUtils.insertRecords(records); in testDeleteOvulationTestRecord_usingIds() local 303 for (Record record : insertedRecord) { in testDeleteOvulationTestRecord_usingIds() 308 for (Record record : insertedRecord) { in testDeleteOvulationTestRecord_usingIds()
|
D | PlannedExerciseSessionRecordTest.java | 122 Record insertedRecord = verifyInsertSucceeds(builder.build()); in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions() local 124 verifyReadReturnsSameRecords(insertedRecord); in insertRecord_startTimeInFuture_bypassesFutureTimeRestrictions() 134 Record insertedRecord = verifyInsertSucceeds(builder.build()); in insertRecord_noBlocks() local 136 verifyReadReturnsSameRecords(insertedRecord); in insertRecord_noBlocks() 147 Record insertedRecord = verifyInsertSucceeds(builder.build()); in insertRecord_singleBlock() local 149 verifyReadReturnsSameRecords(insertedRecord); in insertRecord_singleBlock() 162 Record insertedRecord = verifyInsertSucceeds(builder.build()); in insertRecord_multipleBlocks() local 164 System.err.println("DMCK: inserted record UUID: " + insertedRecord.getMetadata().getId()); in insertRecord_multipleBlocks() 169 verifyReadReturnsSameRecords(insertedRecord); in insertRecord_multipleBlocks() 190 Record insertedRecord = verifyInsertSucceeds(builder.build()); in insertRecord_singleStep() local [all …]
|
D | StepsCadenceRecordTest.java | 290 List<Record> insertedRecord = in testDeleteStepsCadenceRecord_usingIds() local 293 List<RecordIdFilter> recordIds = new ArrayList<>(insertedRecord.size()); in testDeleteStepsCadenceRecord_usingIds() 294 for (Record record : insertedRecord) { in testDeleteStepsCadenceRecord_usingIds() 299 for (Record record : insertedRecord) { in testDeleteStepsCadenceRecord_usingIds() 506 private void readStepsCadenceRecordUsingClientId(List<Record> insertedRecord) in readStepsCadenceRecordUsingClientId() argument 510 for (Record record : insertedRecord) { in readStepsCadenceRecordUsingClientId() 514 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readStepsCadenceRecordUsingClientId() 515 assertThat(result).containsExactlyElementsIn(insertedRecord); in readStepsCadenceRecordUsingClientId()
|
D | TotalCaloriesBurnedRecordTest.java | 425 private void readTotalCaloriesBurnedRecordUsingClientId(List<Record> insertedRecord) in readTotalCaloriesBurnedRecordUsingClientId() argument 429 for (Record record : insertedRecord) { in readTotalCaloriesBurnedRecordUsingClientId() 433 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readTotalCaloriesBurnedRecordUsingClientId() 434 assertThat(result).containsExactlyElementsIn(insertedRecord); in readTotalCaloriesBurnedRecordUsingClientId()
|
D | MenstruationFlowRecordTest.java | 218 private void readMenstruationFlowRecordUsingClientId(List<Record> insertedRecord) in readMenstruationFlowRecordUsingClientId() argument 222 for (Record record : insertedRecord) { in readMenstruationFlowRecordUsingClientId() 226 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readMenstruationFlowRecordUsingClientId() 227 assertThat(result).containsExactlyElementsIn(insertedRecord); in readMenstruationFlowRecordUsingClientId()
|
D | SexualActivityRecordTest.java | 209 private void readSexualActivityRecordUsingClientId(List<Record> insertedRecord) in readSexualActivityRecordUsingClientId() argument 213 for (Record record : insertedRecord) { in readSexualActivityRecordUsingClientId() 217 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readSexualActivityRecordUsingClientId() 218 assertThat(result).containsExactlyElementsIn(insertedRecord); in readSexualActivityRecordUsingClientId()
|
D | WheelchairPushesRecordTest.java | 462 private void readWheelchairPushesRecordUsingClientId(List<Record> insertedRecord) in readWheelchairPushesRecordUsingClientId() argument 466 for (Record record : insertedRecord) { in readWheelchairPushesRecordUsingClientId() 470 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readWheelchairPushesRecordUsingClientId() 471 assertThat(result).containsExactlyElementsIn(insertedRecord); in readWheelchairPushesRecordUsingClientId()
|
D | OxygenSaturationRecordTest.java | 219 private void readOxygenSaturationRecordUsingClientId(List<Record> insertedRecord) in readOxygenSaturationRecordUsingClientId() argument 223 for (Record record : insertedRecord) { in readOxygenSaturationRecordUsingClientId() 227 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readOxygenSaturationRecordUsingClientId() 228 assertThat(result).containsExactlyElementsIn(insertedRecord); in readOxygenSaturationRecordUsingClientId()
|
D | IntermenstrualBleedingRecordTest.java | 371 private void readIntermenstrualBleedingRecordUsingClientId(List<Record> insertedRecord) in readIntermenstrualBleedingRecordUsingClientId() argument 375 for (Record record : insertedRecord) { in readIntermenstrualBleedingRecordUsingClientId() 379 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readIntermenstrualBleedingRecordUsingClientId() 380 assertThat(result).containsExactlyElementsIn(insertedRecord); in readIntermenstrualBleedingRecordUsingClientId()
|
D | BodyTemperatureRecordTest.java | 226 private void readBodyTemperatureRecordUsingClientId(List<Record> insertedRecord) in readBodyTemperatureRecordUsingClientId() argument 230 for (Record record : insertedRecord) { in readBodyTemperatureRecordUsingClientId() 234 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readBodyTemperatureRecordUsingClientId() 235 assertThat(result).containsExactlyElementsIn(insertedRecord); in readBodyTemperatureRecordUsingClientId()
|
D | BoneMassRecordTest.java | 200 private void readBoneMassRecordUsingClientId(List<Record> insertedRecord) in readBoneMassRecordUsingClientId() argument 204 for (Record record : insertedRecord) { in readBoneMassRecordUsingClientId() 208 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readBoneMassRecordUsingClientId() 209 assertThat(result).containsExactlyElementsIn(insertedRecord); in readBoneMassRecordUsingClientId()
|
D | RespiratoryRateRecordTest.java | 213 private void readRespiratoryRateRecordUsingClientId(List<Record> insertedRecord) in readRespiratoryRateRecordUsingClientId() argument 217 for (Record record : insertedRecord) { in readRespiratoryRateRecordUsingClientId() 221 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readRespiratoryRateRecordUsingClientId() 222 assertThat(result).containsExactlyElementsIn(insertedRecord); in readRespiratoryRateRecordUsingClientId()
|
D | MenstruationPeriodRecordTest.java | 540 private void readMenstruationPeriodRecordUsingClientId(List<Record> insertedRecord) in readMenstruationPeriodRecordUsingClientId() argument 544 for (Record record : insertedRecord) { in readMenstruationPeriodRecordUsingClientId() 548 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readMenstruationPeriodRecordUsingClientId() 549 assertThat(result).containsExactlyElementsIn(insertedRecord); in readMenstruationPeriodRecordUsingClientId()
|
D | CervicalMucusRecordTest.java | 210 private void readCervicalMucusRecordUsingClientId(List<Record> insertedRecord) in readCervicalMucusRecordUsingClientId() argument 214 for (Record record : insertedRecord) { in readCervicalMucusRecordUsingClientId() 218 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readCervicalMucusRecordUsingClientId() 219 assertThat(result).containsExactlyElementsIn(insertedRecord); in readCervicalMucusRecordUsingClientId()
|
D | BodyFatRecordTest.java | 195 private void readBodyFatRecordUsingClientId(List<Record> insertedRecord) in readBodyFatRecordUsingClientId() argument 199 for (Record record : insertedRecord) { in readBodyFatRecordUsingClientId() 203 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readBodyFatRecordUsingClientId() 204 assertThat(result).containsExactlyElementsIn(insertedRecord); in readBodyFatRecordUsingClientId()
|
D | BodyWaterMassRecordTest.java | 509 private void readBodyWaterMassRecordUsingClientId(List<Record> insertedRecord) in readBodyWaterMassRecordUsingClientId() argument 513 for (Record record : insertedRecord) { in readBodyWaterMassRecordUsingClientId() 517 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readBodyWaterMassRecordUsingClientId() 518 assertThat(result).containsExactlyElementsIn(insertedRecord); in readBodyWaterMassRecordUsingClientId()
|
D | HeartRateVariabilityRmssdRecordTest.java | 551 private void readHeartRateVariabilityRmssdRecordUsingClientId(List<Record> insertedRecord) in readHeartRateVariabilityRmssdRecordUsingClientId() argument 555 for (Record record : insertedRecord) { in readHeartRateVariabilityRmssdRecordUsingClientId() 559 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readHeartRateVariabilityRmssdRecordUsingClientId() 560 assertThat(result).containsExactlyElementsIn(insertedRecord); in readHeartRateVariabilityRmssdRecordUsingClientId()
|
D | LeanBodyMassRecordTest.java | 204 private void readLeanBodyMassRecordUsingClientId(List<Record> insertedRecord) in readLeanBodyMassRecordUsingClientId() argument 208 for (Record record : insertedRecord) { in readLeanBodyMassRecordUsingClientId() 212 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readLeanBodyMassRecordUsingClientId() 213 assertThat(result).containsExactlyElementsIn(insertedRecord); in readLeanBodyMassRecordUsingClientId()
|
D | Vo2MaxRecordTest.java | 195 private void readVo2MaxRecordUsingClientId(List<Record> insertedRecord) in readVo2MaxRecordUsingClientId() argument 199 for (Record record : insertedRecord) { in readVo2MaxRecordUsingClientId() 203 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readVo2MaxRecordUsingClientId() 204 assertThat(result).containsExactlyElementsIn(insertedRecord); in readVo2MaxRecordUsingClientId()
|
D | FloorsClimbedRecordTest.java | 426 private void readFloorsClimbedRecordUsingClientId(List<Record> insertedRecord) in readFloorsClimbedRecordUsingClientId() argument 430 for (Record record : insertedRecord) { in readFloorsClimbedRecordUsingClientId() 437 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readFloorsClimbedRecordUsingClientId() 438 assertThat(result).containsExactlyElementsIn(insertedRecord); in readFloorsClimbedRecordUsingClientId()
|
D | BasalBodyTemperatureRecordTest.java | 381 private void readBasalBodyTemperatureRecordUsingClientId(List<Record> insertedRecord) in readBasalBodyTemperatureRecordUsingClientId() argument 385 for (Record record : insertedRecord) { in readBasalBodyTemperatureRecordUsingClientId() 389 assertThat(result.size()).isEqualTo(insertedRecord.size()); in readBasalBodyTemperatureRecordUsingClientId() 390 assertThat(result).containsExactlyElementsIn(insertedRecord); in readBasalBodyTemperatureRecordUsingClientId()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | ExerciseRouteDisabledFeatureTest.java | 76 ExerciseSessionRecord insertedRecord = (ExerciseSessionRecord) insertedRecords.get(0); in testReadRoute_insertAndRead_routeIsNotAvailable() local 77 assertThat(insertedRecord.hasRoute()).isTrue(); in testReadRoute_insertAndRead_routeIsNotAvailable() 78 assertThat(insertedRecord.getRoute()).isNotNull(); in testReadRoute_insertAndRead_routeIsNotAvailable()
|