Home
last modified time | relevance | path

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

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DSkinTemperatureRecordTest.java179 List<Record> insertedRecords = TestUtils.insertRecords(records); in testReadSkinTemperatureRecord_usingIds() local
183 for (Record record : insertedRecords) { in testReadSkinTemperatureRecord_usingIds()
188 readSkinTemperatureRecordUsingIds(requestUsingIds, insertedRecords); in testReadSkinTemperatureRecord_usingIds()
195 List<Record> insertedRecords = TestUtils.insertRecords(records); in testReadSkinTemperatureRecord_invalidIds() local
203 assertThat(insertedRecords.size()).isNotEqualTo(0); in testReadSkinTemperatureRecord_invalidIds()
211 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadSkinTemperatureRecord_usingClientRecordIds() local
215 for (Record record : insertedRecords) { in testReadSkinTemperatureRecord_usingClientRecordIds()
220 assertThat(result.size()).isEqualTo(insertedRecords.size()); in testReadSkinTemperatureRecord_usingClientRecordIds()
221 assertThat(result).containsExactlyElementsIn(insertedRecords); in testReadSkinTemperatureRecord_usingClientRecordIds()
228 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadSkinTemperatureRecord_invalidClientRecordIds() local
[all …]
DActiveCaloriesBurnedRecordTest.java113 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadActiveCaloriesBurnedRecord_usingIds() local
114 readActiveCaloriesBurnedRecordUsingIds(insertedRecords); in testReadActiveCaloriesBurnedRecord_usingIds()
134 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadActiveCaloriesBurnedRecord_usingClientRecordIds() local
135 readActiveCaloriesBurnedRecordUsingClientId(insertedRecords); in testReadActiveCaloriesBurnedRecord_usingClientRecordIds()
277 List<Record> insertedRecords = TestUtils.insertRecords(records); in testDeleteActiveCaloriesBurnedRecord_recordId_filters() local
279 for (Record record : insertedRecords) { in testDeleteActiveCaloriesBurnedRecord_recordId_filters()
371 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
378 readActiveCaloriesBurnedRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
392 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
393 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
[all …]
DHeartRateVariabilityRmssdRecordTest.java118 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadHeartRateVariabilityRmssdRecord_usingClientRecordIds() local
119 readHeartRateVariabilityRmssdRecordUsingClientId(insertedRecords); in testReadHeartRateVariabilityRmssdRecord_usingClientRecordIds()
310 List<Record> insertedRecords = TestUtils.insertRecords(records); in testDeleteHeartRateVariabilityRmssdRecord_usingIds() local
312 for (Record record : insertedRecords) { in testDeleteHeartRateVariabilityRmssdRecord_usingIds()
317 for (Record record : insertedRecords) { in testDeleteHeartRateVariabilityRmssdRecord_usingIds()
378 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
385 readHeartRateVariabilityRmssdRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
399 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
400 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
412 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
[all …]
DTotalCaloriesBurnedRecordTest.java114 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadTotalCaloriesBurnedRecord_usingClientRecordIds() local
115 readTotalCaloriesBurnedRecordUsingClientId(insertedRecords); in testReadTotalCaloriesBurnedRecord_usingClientRecordIds()
260 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
267 readTotalCaloriesBurnedRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
281 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
282 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
294 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
301 readTotalCaloriesBurnedRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
318 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
321 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DOxygenSaturationRecordTest.java92 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadOxygenSaturationRecord_usingIds() local
93 readOxygenSaturationRecordUsingIds(insertedRecords); in testReadOxygenSaturationRecord_usingIds()
111 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadOxygenSaturationRecord_usingClientRecordIds() local
112 readOxygenSaturationRecordUsingClientId(insertedRecords); in testReadOxygenSaturationRecord_usingClientRecordIds()
365 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
372 readOxygenSaturationRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
385 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
386 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
398 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
405 readOxygenSaturationRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DBloodGlucoseRecordTest.java91 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBloodGlucoseRecord_usingIds() local
92 readBloodGlucoseRecordUsingIds(insertedRecords); in testReadBloodGlucoseRecord_usingIds()
109 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBloodGlucoseRecord_usingClientRecordIds() local
110 readBloodGlucoseRecordUsingClientId(insertedRecords); in testReadBloodGlucoseRecord_usingClientRecordIds()
298 List<Record> insertedRecords = TestUtils.insertRecords(records); in testDeleteBloodGlucoseRecord_usingIds() local
300 for (Record record : insertedRecords) { in testDeleteBloodGlucoseRecord_usingIds()
305 for (Record record : insertedRecords) { in testDeleteBloodGlucoseRecord_usingIds()
344 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
350 readBloodGlucoseRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
362 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
[all …]
DRestingHeartRateRecordTest.java103 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadRestingHeartRateRecord_usingIds() local
104 readRestingHeartRateRecordUsingIds(insertedRecords); in testReadRestingHeartRateRecord_usingIds()
122 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadRestingHeartRateRecord_usingClientRecordIds() local
123 readRestingHeartRateRecordUsingClientId(insertedRecords); in testReadRestingHeartRateRecord_usingClientRecordIds()
420 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
427 readRestingHeartRateRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
440 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
441 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
453 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
460 readRestingHeartRateRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DIntermenstrualBleedingRecordTest.java118 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadIntermenstrualBleedingRecord_usingClientRecordIds() local
119 readIntermenstrualBleedingRecordUsingClientId(insertedRecords); in testReadIntermenstrualBleedingRecord_usingClientRecordIds()
433 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
440 readIntermenstrualBleedingRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
454 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
455 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
467 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
474 readIntermenstrualBleedingRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
491 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
494 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DBoneMassRecordTest.java90 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBoneMassRecord_usingIds() local
91 readBoneMassRecordUsingIds(insertedRecords); in testReadBoneMassRecord_usingIds()
108 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBoneMassRecord_usingClientRecordIds() local
109 readBoneMassRecordUsingClientId(insertedRecords); in testReadBoneMassRecord_usingClientRecordIds()
252 List<Record> insertedRecords = TestUtils.insertRecords(records); in testDeleteBoneMassRecord_recordId_filters() local
254 for (Record record : insertedRecords) { in testDeleteBoneMassRecord_recordId_filters()
332 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
337 readBoneMassRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
349 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
350 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
[all …]
DMenstruationPeriodRecordTest.java117 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadMenstruationPeriodRecord_usingClientRecordIds() local
118 readMenstruationPeriodRecordUsingClientId(insertedRecords); in testReadMenstruationPeriodRecord_usingClientRecordIds()
375 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
382 readMenstruationPeriodRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
396 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
397 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
409 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
416 readMenstruationPeriodRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
433 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
436 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DBodyWaterMassRecordTest.java114 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBodyWaterMassRecord_usingClientRecordIds() local
115 readBodyWaterMassRecordUsingClientId(insertedRecords); in testReadBodyWaterMassRecord_usingClientRecordIds()
350 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
357 readBodyWaterMassRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
369 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
370 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
382 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
389 readBodyWaterMassRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
404 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
407 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DMenstruationFlowRecordTest.java91 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadMenstruationFlowRecord_usingIds() local
92 readMenstruationFlowRecordUsingIds(insertedRecords); in testReadMenstruationFlowRecord_usingIds()
110 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadMenstruationFlowRecord_usingClientRecordIds() local
111 readMenstruationFlowRecordUsingClientId(insertedRecords); in testReadMenstruationFlowRecord_usingClientRecordIds()
357 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
364 readMenstruationFlowRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
377 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
378 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
390 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
397 readMenstruationFlowRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DSexualActivityRecordTest.java90 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadSexualActivityRecord_usingIds() local
91 readSexualActivityRecordUsingIds(insertedRecords); in testReadSexualActivityRecord_usingIds()
108 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadSexualActivityRecord_usingClientRecordIds() local
109 readSexualActivityRecordUsingClientId(insertedRecords); in testReadSexualActivityRecord_usingClientRecordIds()
343 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
350 readSexualActivityRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
362 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
363 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
375 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
382 readSexualActivityRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DCyclingPedalingCadenceRecordTest.java133 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadCyclingPedalingCadenceRecord_usingClientRecordIds() local
134 readCyclingPedalingCadenceRecordUsingClientId(insertedRecords); in testReadCyclingPedalingCadenceRecord_usingClientRecordIds()
384 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
391 readCyclingPedalingCadenceRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
405 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
406 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
418 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
425 readCyclingPedalingCadenceRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
442 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
445 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DOvulationTestRecordTest.java90 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadOvulationTestRecord_usingIds() local
91 readOvulationTestRecordUsingIds(insertedRecords); in testReadOvulationTestRecord_usingIds()
108 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadOvulationTestRecord_usingClientRecordIds() local
109 readOvulationTestRecordUsingClientId(insertedRecords); in testReadOvulationTestRecord_usingClientRecordIds()
341 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
348 readOvulationTestRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
360 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
361 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
373 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
380 readOvulationTestRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DBodyTemperatureRecordTest.java102 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBodyTemperatureRecord_usingIds() local
103 readBodyTemperatureRecordUsingIds(insertedRecords); in testReadBodyTemperatureRecord_usingIds()
121 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBodyTemperatureRecord_usingClientRecordIds() local
122 readBodyTemperatureRecordUsingClientId(insertedRecords); in testReadBodyTemperatureRecord_usingClientRecordIds()
368 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
375 readBodyTemperatureRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
388 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
389 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
401 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
408 readBodyTemperatureRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DRespiratoryRateRecordTest.java91 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadRespiratoryRateRecord_usingIds() local
92 readRespiratoryRateRecordUsingIds(insertedRecords); in testReadRespiratoryRateRecord_usingIds()
110 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadRespiratoryRateRecord_usingClientRecordIds() local
111 readRespiratoryRateRecordUsingClientId(insertedRecords); in testReadRespiratoryRateRecord_usingClientRecordIds()
358 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
365 readRespiratoryRateRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
378 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
379 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
391 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
398 readRespiratoryRateRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DCervicalMucusRecordTest.java90 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadCervicalMucusRecord_usingIds() local
91 readCervicalMucusRecordUsingIds(insertedRecords); in testReadCervicalMucusRecord_usingIds()
108 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadCervicalMucusRecord_usingClientRecordIds() local
109 readCervicalMucusRecordUsingClientId(insertedRecords); in testReadCervicalMucusRecord_usingClientRecordIds()
345 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
352 readCervicalMucusRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
364 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
365 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
377 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
384 readCervicalMucusRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DBodyFatRecordTest.java90 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBodyFatRecord_usingIds() local
91 readBodyFatRecordUsingIds(insertedRecords); in testReadBodyFatRecord_usingIds()
108 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBodyFatRecord_usingClientRecordIds() local
109 readBodyFatRecordUsingClientId(insertedRecords); in testReadBodyFatRecord_usingClientRecordIds()
341 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
346 readBodyFatRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
358 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
359 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
371 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
376 readBodyFatRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DLeanBodyMassRecordTest.java91 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadLeanBodyMassRecord_usingIds() local
92 readLeanBodyMassRecordUsingIds(insertedRecords); in testReadLeanBodyMassRecord_usingIds()
109 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadLeanBodyMassRecord_usingClientRecordIds() local
110 readLeanBodyMassRecordUsingClientId(insertedRecords); in testReadLeanBodyMassRecord_usingClientRecordIds()
346 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
352 readLeanBodyMassRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
364 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
365 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
377 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
383 readLeanBodyMassRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DVo2MaxRecordTest.java89 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadVo2MaxRecord_usingIds() local
90 readVo2MaxRecordUsingIds(insertedRecords); in testReadVo2MaxRecord_usingIds()
107 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadVo2MaxRecord_usingClientRecordIds() local
108 readVo2MaxRecordUsingClientId(insertedRecords); in testReadVo2MaxRecord_usingClientRecordIds()
330 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
335 readVo2MaxRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
347 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
348 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
360 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
365 readVo2MaxRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DFloorsClimbedRecordTest.java100 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadFloorsClimbedRecord_usingIds() local
101 readFloorsClimbedRecordUsingIds(insertedRecords); in testReadFloorsClimbedRecord_usingIds()
125 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadFloorsClimbedRecord_usingClientRecordIds() local
126 readFloorsClimbedRecordUsingClientId(insertedRecords); in testReadFloorsClimbedRecord_usingClientRecordIds()
313 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
320 readFloorsClimbedRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
332 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
333 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
345 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
352 readFloorsClimbedRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DBasalBodyTemperatureRecordTest.java105 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBasalBodyTemperatureRecord_usingIds() local
106 readBasalBodyTemperatureRecordUsingIds(insertedRecords); in testReadBasalBodyTemperatureRecord_usingIds()
126 List<Record> insertedRecords = TestUtils.insertRecords(recordList); in testReadBasalBodyTemperatureRecord_usingClientRecordIds() local
127 readBasalBodyTemperatureRecordUsingClientId(insertedRecords); in testReadBasalBodyTemperatureRecord_usingClientRecordIds()
262 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
269 readBasalBodyTemperatureRecordUsingIds(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
283 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
284 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
296 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
303 readBasalBodyTemperatureRecordUsingIds(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
DSleepSessionRecordTest.java274 List<Record> insertedRecords = in testReadByClientId_insertAndReadByDefaultFilter_filteredAll() local
281 assertRecordsAreEqual(insertedRecords, readRecords); in testReadByClientId_insertAndReadByDefaultFilter_filteredAll()
305 List<Record> insertedRecords = in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully() local
309 readAndAssertEquals(insertedRecords); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
321 insertedRecords.get(itr).getMetadata().getId(), in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
322 insertedRecords.get(itr).getMetadata().getClientRecordId())); in testUpdateRecords_validInput_dataBaseUpdatedSuccessfully()
334 List<Record> insertedRecords = in testUpdateRecords_invalidInputRecords_noChangeInDataBase() local
338 readAndAssertEquals(insertedRecords); in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
352 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
355 ? insertedRecords.get(itr).getMetadata().getId() in testUpdateRecords_invalidInputRecords_noChangeInDataBase()
[all …]
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreE2ETest.java135 List<Record> insertedRecords = in testBackupThenRestore_over2000Records_expectDataIsRestoredCorrectly() local
138 assertThat(insertedRecords).hasSize(numOfRecords); in testBackupThenRestore_over2000Records_expectDataIsRestoredCorrectly()
143 readAndAssertRecordsNotExistUsingIds(insertedRecords); in testBackupThenRestore_over2000Records_expectDataIsRestoredCorrectly()
147 assertWithTimeout(() -> readAndAssertRecordsExistUsingIds(insertedRecords)); in testBackupThenRestore_over2000Records_expectDataIsRestoredCorrectly()
340 private static void readAndAssertRecordsExistUsingIds(List<Record> insertedRecords) in readAndAssertRecordsExistUsingIds() argument
343 logRecords(logTag + " INPUT", insertedRecords); in readAndAssertRecordsExistUsingIds()
345 List<? extends Record> result = readRecordsUsingIds(insertedRecords); in readAndAssertRecordsExistUsingIds()
348 assertThat(result).hasSize(insertedRecords.size()); in readAndAssertRecordsExistUsingIds()
349 assertThat(result).containsExactlyElementsIn(insertedRecords); in readAndAssertRecordsExistUsingIds()
352 private static void readAndAssertRecordsNotExistUsingIds(List<Record> insertedRecords) in readAndAssertRecordsNotExistUsingIds() argument
[all …]

12