/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | NutritionRecordTest.java | 227 NutritionRecord testRecord = in testReadNutritionRecordUsingFilters_default() local 234 assertThat(newNutritionRecords.get(newNutritionRecords.size() - 1).equals(testRecord)) in testReadNutritionRecordUsingFilters_default() 246 NutritionRecord testRecord = in testReadNutritionRecordUsingFilters_timeFilter() local 254 assertThat(newNutritionRecords.get(newNutritionRecords.size() - 1).equals(testRecord)) in testReadNutritionRecordUsingFilters_timeFilter() 271 NutritionRecord testRecord = in testReadNutritionRecordUsingFilters_dataFilter_correct() local 283 assertThat(newNutritionRecords.get(newNutritionRecords.size() - 1).equals(testRecord)) in testReadNutritionRecordUsingFilters_dataFilter_correct() 285 assertThat(newRecord.getUnsaturatedFat()).isEqualTo(testRecord.getUnsaturatedFat()); in testReadNutritionRecordUsingFilters_dataFilter_correct() 286 assertThat(newRecord.getPotassium()).isEqualTo(testRecord.getPotassium()); in testReadNutritionRecordUsingFilters_dataFilter_correct() 287 assertThat(newRecord.getThiamin()).isEqualTo(testRecord.getThiamin()); in testReadNutritionRecordUsingFilters_dataFilter_correct() 288 assertThat(newRecord.getMealType()).isEqualTo(testRecord.getMealType()); in testReadNutritionRecordUsingFilters_dataFilter_correct() [all …]
|
D | TotalCaloriesBurnedRecordTest.java | 138 TotalCaloriesBurnedRecord testRecord = in testReadTotalCaloriesBurnedRecordUsingFilters_default() local 151 .equals(testRecord)) in testReadTotalCaloriesBurnedRecordUsingFilters_default() 164 TotalCaloriesBurnedRecord testRecord = in testReadTotalCaloriesBurnedRecordUsingFilters_timeFilter() local 177 .equals(testRecord)) in testReadTotalCaloriesBurnedRecordUsingFilters_timeFilter() 195 TotalCaloriesBurnedRecord testRecord = in testReadTotalCaloriesBurnedRecordUsingFilters_dataFilter_correct() local 214 .equals(testRecord)) in testReadTotalCaloriesBurnedRecordUsingFilters_dataFilter_correct() 216 assertThat(newRecord.getEnergy()).isEqualTo(testRecord.getEnergy()); in testReadTotalCaloriesBurnedRecordUsingFilters_dataFilter_correct() 397 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 408 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 416 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | MenstruationFlowRecordTest.java | 132 MenstruationFlowRecord testRecord = in testReadMenstruationFlowRecordUsingFilters_default() local 144 .equals(testRecord)) in testReadMenstruationFlowRecordUsingFilters_default() 157 MenstruationFlowRecord testRecord = in testReadMenstruationFlowRecordUsingFilters_timeFilter() local 169 .equals(testRecord)) in testReadMenstruationFlowRecordUsingFilters_timeFilter() 186 MenstruationFlowRecord testRecord = in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct() local 201 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct() 202 assertThat(newRecord.getFlow()).isEqualTo(testRecord.getFlow()); in testReadMenstruationFlowRecordUsingFilters_dataFilter_correct() 491 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 502 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 510 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | SexualActivityRecordTest.java | 129 SexualActivityRecord testRecord = in testReadSexualActivityRecordUsingFilters_default() local 139 .equals(testRecord)) in testReadSexualActivityRecordUsingFilters_default() 151 SexualActivityRecord testRecord = in testReadSexualActivityRecordUsingFilters_timeFilter() local 162 .equals(testRecord)) in testReadSexualActivityRecordUsingFilters_timeFilter() 179 SexualActivityRecord testRecord = in testReadSexualActivityRecordUsingFilters_dataFilter_correct() local 192 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadSexualActivityRecordUsingFilters_dataFilter_correct() 193 assertThat(newRecord.getProtectionUsed()).isEqualTo(testRecord.getProtectionUsed()); in testReadSexualActivityRecordUsingFilters_dataFilter_correct() 474 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 485 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 493 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | WheelchairPushesRecordTest.java | 143 WheelchairPushesRecord testRecord = in testReadWheelchairPushesRecordUsingFilters_default() local 155 .equals(testRecord)) in testReadWheelchairPushesRecordUsingFilters_default() 168 WheelchairPushesRecord testRecord = in testReadWheelchairPushesRecordUsingFilters_timeFilter() local 180 .equals(testRecord)) in testReadWheelchairPushesRecordUsingFilters_timeFilter() 197 WheelchairPushesRecord testRecord = in testReadWheelchairPushesRecordUsingFilters_dataFilter_correct() local 215 .equals(testRecord)) in testReadWheelchairPushesRecordUsingFilters_dataFilter_correct() 217 assertThat(newRecord.getCount()).isEqualTo(testRecord.getCount()); in testReadWheelchairPushesRecordUsingFilters_dataFilter_correct() 434 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 445 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 453 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | BodyTemperatureRecordTest.java | 142 BodyTemperatureRecord testRecord = in testReadBodyTemperatureRecordUsingFilters_default() local 153 .equals(testRecord)) in testReadBodyTemperatureRecordUsingFilters_default() 165 BodyTemperatureRecord testRecord = in testReadBodyTemperatureRecordUsingFilters_timeFilter() local 176 .equals(testRecord)) in testReadBodyTemperatureRecordUsingFilters_timeFilter() 193 BodyTemperatureRecord testRecord = in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct() local 207 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct() 209 .isEqualTo(testRecord.getMeasurementLocation()); in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct() 210 assertThat(newRecord.getTemperature()).isEqualTo(testRecord.getTemperature()); in testReadBodyTemperatureRecordUsingFilters_dataFilter_correct() 502 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 513 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | CervicalMucusRecordTest.java | 129 CervicalMucusRecord testRecord = in testReadCervicalMucusRecordUsingFilters_default() local 139 .equals(testRecord)) in testReadCervicalMucusRecordUsingFilters_default() 151 CervicalMucusRecord testRecord = in testReadCervicalMucusRecordUsingFilters_timeFilter() local 162 .equals(testRecord)) in testReadCervicalMucusRecordUsingFilters_timeFilter() 179 CervicalMucusRecord testRecord = in testReadCervicalMucusRecordUsingFilters_dataFilter_correct() local 192 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct() 193 assertThat(newRecord.getSensation()).isEqualTo(testRecord.getSensation()); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct() 194 assertThat(newRecord.getAppearance()).isEqualTo(testRecord.getAppearance()); in testReadCervicalMucusRecordUsingFilters_dataFilter_correct() 476 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 487 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | Vo2MaxRecordTest.java | 127 Vo2MaxRecord testRecord = (Vo2MaxRecord) TestUtils.insertRecord(getCompleteVo2MaxRecord()); in testReadVo2MaxRecordUsingFilters_default() local 132 assertThat(newVo2MaxRecords.get(newVo2MaxRecords.size() - 1).equals(testRecord)).isTrue(); in testReadVo2MaxRecordUsingFilters_default() 143 Vo2MaxRecord testRecord = (Vo2MaxRecord) TestUtils.insertRecord(getCompleteVo2MaxRecord()); in testReadVo2MaxRecordUsingFilters_timeFilter() local 150 assertThat(newVo2MaxRecords.get(newVo2MaxRecords.size() - 1).equals(testRecord)).isTrue(); in testReadVo2MaxRecordUsingFilters_timeFilter() 165 Vo2MaxRecord testRecord = (Vo2MaxRecord) TestUtils.insertRecord(getCompleteVo2MaxRecord()); in testReadVo2MaxRecordUsingFilters_dataFilter_correct() local 176 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadVo2MaxRecordUsingFilters_dataFilter_correct() 177 assertThat(newRecord.getMeasurementMethod()).isEqualTo(testRecord.getMeasurementMethod()); in testReadVo2MaxRecordUsingFilters_dataFilter_correct() 179 .isEqualTo(testRecord.getVo2MillilitersPerMinuteKilogram()); in testReadVo2MaxRecordUsingFilters_dataFilter_correct() 455 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 465 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | BasalBodyTemperatureRecordTest.java | 152 BasalBodyTemperatureRecord testRecord = (BasalBodyTemperatureRecord) records.get(0); in testReadBasalBodyTemperatureRecordUsingFilters_default() local 163 .equals(testRecord)) in testReadBasalBodyTemperatureRecordUsingFilters_default() 175 BasalBodyTemperatureRecord testRecord = in testReadBasalBodyTemperatureRecordUsingFilters_timeFilter() local 188 .equals(testRecord)) in testReadBasalBodyTemperatureRecordUsingFilters_timeFilter() 206 BasalBodyTemperatureRecord testRecord = in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct() local 222 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct() 224 .isEqualTo(testRecord.getMeasurementLocation()); in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct() 225 assertThat(newRecord.getTemperature()).isEqualTo(testRecord.getTemperature()); in testReadBasalBodyTemperatureRecordUsingFilters_dataFilter_correct() 523 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 534 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | BloodPressureRecordTest.java | 148 BloodPressureRecord testRecord = in testReadBloodPressureRecordUsingFilters_default() local 158 .equals(testRecord)) in testReadBloodPressureRecordUsingFilters_default() 169 BloodPressureRecord testRecord = in testReadBloodPressureRecordUsingFilters_timeFilter() local 180 .equals(testRecord)) in testReadBloodPressureRecordUsingFilters_timeFilter() 196 BloodPressureRecord testRecord = in testReadBloodPressureRecordUsingFilters_dataFilter_correct() local 209 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBloodPressureRecordUsingFilters_dataFilter_correct() 211 .isEqualTo(testRecord.getMeasurementLocation()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct() 212 assertThat(newRecord.getSystolic()).isEqualTo(testRecord.getSystolic()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct() 213 assertThat(newRecord.getDiastolic()).isEqualTo(testRecord.getDiastolic()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct() 214 assertThat(newRecord.getBodyPosition()).isEqualTo(testRecord.getBodyPosition()); in testReadBloodPressureRecordUsingFilters_dataFilter_correct() [all …]
|
D | PowerRecordTest.java | 139 PowerRecord testRecord = (PowerRecord) TestUtils.insertRecord(getCompletePowerRecord()); in testReadPowerRecordUsingFilters_default() local 144 assertThat(newPowerRecords.get(newPowerRecords.size() - 1).equals(testRecord)).isTrue(); in testReadPowerRecordUsingFilters_default() 155 PowerRecord testRecord = (PowerRecord) TestUtils.insertRecord(getCompletePowerRecord()); in testReadPowerRecordUsingFilters_timeFilter() local 161 assertThat(newPowerRecords.get(newPowerRecords.size() - 1).equals(testRecord)).isTrue(); in testReadPowerRecordUsingFilters_timeFilter() 176 PowerRecord testRecord = (PowerRecord) TestUtils.insertRecord(getCompletePowerRecord()); in testReadPowerRecordUsingFilters_dataFilter_correct() local 186 assertThat(newPowerRecords.get(newPowerRecords.size() - 1).equals(testRecord)).isTrue(); in testReadPowerRecordUsingFilters_dataFilter_correct() 188 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadPowerRecordUsingFilters_dataFilter_correct() 191 .isEqualTo(testRecord.getSamples().get(idx).getTime().toEpochMilli()); in testReadPowerRecordUsingFilters_dataFilter_correct() 193 .isEqualTo(testRecord.getSamples().get(idx).getPower()); in testReadPowerRecordUsingFilters_dataFilter_correct() 486 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local [all …]
|
D | OvulationTestRecordTest.java | 129 OvulationTestRecord testRecord = in testReadOvulationTestRecordUsingFilters_default() local 139 .equals(testRecord)) in testReadOvulationTestRecordUsingFilters_default() 150 OvulationTestRecord testRecord = in testReadOvulationTestRecordUsingFilters_timeFilter() local 161 .equals(testRecord)) in testReadOvulationTestRecordUsingFilters_timeFilter() 177 OvulationTestRecord testRecord = in testReadOvulationTestRecordUsingFilters_dataFilter_correct() local 190 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadOvulationTestRecordUsingFilters_dataFilter_correct() 191 assertThat(newRecord.getResult()).isEqualTo(testRecord.getResult()); in testReadOvulationTestRecordUsingFilters_dataFilter_correct() 472 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 483 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 491 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | BoneMassRecordTest.java | 128 BoneMassRecord testRecord = in testReadBoneMassRecordUsingFilters_default() local 134 assertThat(newBoneMassRecords.get(newBoneMassRecords.size() - 1).equals(testRecord)) in testReadBoneMassRecordUsingFilters_default() 146 BoneMassRecord testRecord = in testReadBoneMassRecordUsingFilters_timeFilter() local 154 assertThat(newBoneMassRecords.get(newBoneMassRecords.size() - 1).equals(testRecord)) in testReadBoneMassRecordUsingFilters_timeFilter() 171 BoneMassRecord testRecord = in testReadBoneMassRecordUsingFilters_dataFilter_correct() local 183 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBoneMassRecordUsingFilters_dataFilter_correct() 184 assertThat(newRecord.getMass()).isEqualTo(testRecord.getMass()); in testReadBoneMassRecordUsingFilters_dataFilter_correct() 464 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 474 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 482 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | RespiratoryRateRecordTest.java | 131 RespiratoryRateRecord testRecord = in testReadRespiratoryRateRecordUsingFilters_default() local 142 .equals(testRecord)) in testReadRespiratoryRateRecordUsingFilters_default() 154 RespiratoryRateRecord testRecord = in testReadRespiratoryRateRecordUsingFilters_timeFilter() local 165 .equals(testRecord)) in testReadRespiratoryRateRecordUsingFilters_timeFilter() 182 RespiratoryRateRecord testRecord = in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct() local 196 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct() 197 assertThat(newRecord.getRate()).isEqualTo(testRecord.getRate()); in testReadRespiratoryRateRecordUsingFilters_dataFilter_correct() 492 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 503 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 511 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | BodyFatRecordTest.java | 128 BodyFatRecord testRecord = in testReadBodyFatRecordUsingFilters_default() local 134 assertThat(newBodyFatRecords.get(newBodyFatRecords.size() - 1).equals(testRecord)).isTrue(); in testReadBodyFatRecordUsingFilters_default() 144 BodyFatRecord testRecord = in testReadBodyFatRecordUsingFilters_timeFilter() local 152 assertThat(newBodyFatRecords.get(newBodyFatRecords.size() - 1).equals(testRecord)).isTrue(); in testReadBodyFatRecordUsingFilters_timeFilter() 166 BodyFatRecord testRecord = in testReadBodyFatRecordUsingFilters_dataFilter_correct() local 178 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBodyFatRecordUsingFilters_dataFilter_correct() 179 assertThat(newRecord.getPercentage()).isEqualTo(testRecord.getPercentage()); in testReadBodyFatRecordUsingFilters_dataFilter_correct() 466 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 476 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 482 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | LeanBodyMassRecordTest.java | 130 LeanBodyMassRecord testRecord = in testReadLeanBodyMassRecordUsingFilters_default() local 137 assertThat(newLeanBodyMassRecords.get(newLeanBodyMassRecords.size() - 1).equals(testRecord)) in testReadLeanBodyMassRecordUsingFilters_default() 149 LeanBodyMassRecord testRecord = in testReadLeanBodyMassRecordUsingFilters_timeFilter() local 157 assertThat(newLeanBodyMassRecords.get(newLeanBodyMassRecords.size() - 1).equals(testRecord)) in testReadLeanBodyMassRecordUsingFilters_timeFilter() 174 LeanBodyMassRecord testRecord = in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct() local 187 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct() 188 assertThat(newRecord.getMass()).isEqualTo(testRecord.getMass()); in testReadLeanBodyMassRecordUsingFilters_dataFilter_correct() 474 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 484 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 492 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | ActiveCaloriesBurnedRecordTest.java | 157 ActiveCaloriesBurnedRecord testRecord = in testReadActiveCaloriesBurnedRecordUsingFilters_default() local 170 .equals(testRecord)) in testReadActiveCaloriesBurnedRecordUsingFilters_default() 183 ActiveCaloriesBurnedRecord testRecord = in testReadActiveCaloriesBurnedRecordUsingFilters_timeFilter() local 196 .equals(testRecord)) in testReadActiveCaloriesBurnedRecordUsingFilters_timeFilter() 213 ActiveCaloriesBurnedRecord testRecord = in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct() local 229 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct() 230 assertThat(newRecord.getEnergy()).isEqualTo(testRecord.getEnergy()); in testReadActiveCaloriesBurnedRecordUsingFilters_dataFilter_correct() 508 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 519 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 527 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | FloorsClimbedRecordTest.java | 146 FloorsClimbedRecord testRecord = in testReadFloorsClimbedRecordUsingFilters_default() local 156 .equals(testRecord)) in testReadFloorsClimbedRecordUsingFilters_default() 168 FloorsClimbedRecord testRecord = in testReadFloorsClimbedRecordUsingFilters_timeFilter() local 179 .equals(testRecord)) in testReadFloorsClimbedRecordUsingFilters_timeFilter() 196 FloorsClimbedRecord testRecord = in testReadFloorsClimbedRecordUsingFilters_dataFilter_correct() local 209 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadFloorsClimbedRecordUsingFilters_dataFilter_correct() 210 assertThat(newRecord.getFloors()).isEqualTo(testRecord.getFloors()); in testReadFloorsClimbedRecordUsingFilters_dataFilter_correct() 459 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 470 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 478 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | StepsCadenceRecordTest.java | 144 StepsCadenceRecord testRecord = in testReadStepsCadenceRecordUsingFilters_default() local 151 assertThat(newStepsCadenceRecords.get(newStepsCadenceRecords.size() - 1).equals(testRecord)) in testReadStepsCadenceRecordUsingFilters_default() 163 StepsCadenceRecord testRecord = in testReadStepsCadenceRecordUsingFilters_timeFilter() local 171 assertThat(newStepsCadenceRecords.get(newStepsCadenceRecords.size() - 1).equals(testRecord)) in testReadStepsCadenceRecordUsingFilters_timeFilter() 188 StepsCadenceRecord testRecord = in testReadStepsCadenceRecordUsingFilters_dataFilter_correct() local 199 assertThat(newStepsCadenceRecords.get(newStepsCadenceRecords.size() - 1).equals(testRecord)) in testReadStepsCadenceRecordUsingFilters_dataFilter_correct() 203 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadStepsCadenceRecordUsingFilters_dataFilter_correct() 206 .isEqualTo(testRecord.getSamples().get(idx).getTime().toEpochMilli()); in testReadStepsCadenceRecordUsingFilters_dataFilter_correct() 208 .isEqualTo(testRecord.getSamples().get(idx).getRate()); in testReadStepsCadenceRecordUsingFilters_dataFilter_correct() 471 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local [all …]
|
D | CyclingPedalingCadenceRecordTest.java | 157 CyclingPedalingCadenceRecord testRecord = in testReadCyclingPedalingCadenceRecordUsingFilters_default() local 170 .equals(testRecord)) in testReadCyclingPedalingCadenceRecordUsingFilters_default() 183 CyclingPedalingCadenceRecord testRecord = in testReadCyclingPedalingCadenceRecordUsingFilters_timeFilter() local 196 .equals(testRecord)) in testReadCyclingPedalingCadenceRecordUsingFilters_timeFilter() 213 CyclingPedalingCadenceRecord testRecord = in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct() local 232 .equals(testRecord)) in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct() 239 .isEqualTo(testRecord.getSamples().get(idx).getTime().toEpochMilli()); in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct() 241 .isEqualTo(testRecord.getSamples().get(idx).getRevolutionsPerMinute()); in testReadCyclingPedalingCadenceRecordUsingFilters_dataFilter_correct() 521 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 532 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() [all …]
|
D | BasalMetabolicRateRecordTest.java | 150 BasalMetabolicRateRecord testRecord = in testReadBasalMetabolicRateRecordUsingFilters_default() local 162 .equals(testRecord)) in testReadBasalMetabolicRateRecordUsingFilters_default() 174 BasalMetabolicRateRecord testRecord = in testReadBasalMetabolicRateRecordUsingFilters_timeFilter() local 186 .equals(testRecord)) in testReadBasalMetabolicRateRecordUsingFilters_timeFilter() 202 BasalMetabolicRateRecord testRecord = in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct() local 217 assertThat(newRecord.equals(testRecord)).isTrue(); in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct() 218 assertThat(newRecord.getBasalMetabolicRate()).isEqualTo(testRecord.getBasalMetabolicRate()); in testReadBasalMetabolicRateRecordUsingFilters_dataFilter_correct() 523 List<Record> testRecord = in testInsertAndDeleteRecord_changelogs() local 534 testRecord.stream().map(Record::getMetadata).map(Metadata::getId).toList()); in testInsertAndDeleteRecord_changelogs() 542 assertThat(response.getDeletedLogs()).hasSize(testRecord.size()); in testInsertAndDeleteRecord_changelogs() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ratelimiter/ |
D | RateLimiterTest.java | 111 List<Record> testRecord = List.of(getCompleteStepsRecord()); in testTryAcquireApiCallQuota_readCallsInLimit() local 114 testRecord, TestUtils.insertRecords(testRecord), MAX_FOREGROUND_READ_CALL_15M); in testTryAcquireApiCallQuota_readCallsInLimit() 157 List<Record> testRecord = Collections.nCopies(30000, getCompleteStepsRecord()); in exceedChunkMemoryQuota() local 159 TestUtils.insertRecords(testRecord); in exceedChunkMemoryQuota() 188 List<Record> testRecord = Collections.nCopies(350, getCompleteStepsRecord()); in exceedRecordMemoryRollingQuotaBackgroundLimit() local 191 TestUtils.insertRecords(testRecord); in exceedRecordMemoryRollingQuotaBackgroundLimit() 201 List<Record> testRecord = List.of(getCompleteStepsRecord()); in exceedWriteQuota() local 204 TestUtils.insertRecords(testRecord); in exceedWriteQuota() 221 List<Record> testRecord = Arrays.asList(getCompleteStepsRecord()); in exceedReadQuota() local 223 List<Record> insertedRecords = TestUtils.insertRecords(testRecord); in exceedReadQuota() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/nopermission/ |
D | HealthConnectManagerNoPermissionsGrantedTest.java | 109 for (Record testRecord : getTestRecords()) { in testInsert_noPermissions_expectError() 111 insertRecords(Collections.singletonList(testRecord)); in testInsert_noPermissions_expectError() 122 for (Record testRecord : getTestRecords()) { in testUpdate_noPermissions_expectError() 124 updateRecords(Collections.singletonList(testRecord)); in testUpdate_noPermissions_expectError() 135 for (Record testRecord : getTestRecords()) { in testDeleteUsingId_noPermissions_expectError() 137 deleteRecords(Collections.singletonList(testRecord)); in testDeleteUsingId_noPermissions_expectError() 148 for (Record testRecord : getTestRecords()) { in testDeleteUsingFilter_noPermissions_expectError() 151 testRecord.getClass(), in testDeleteUsingFilter_noPermissions_expectError() 166 for (Record testRecord : getTestRecords()) { in testChangeLogsToken_noPermissions_expectError() 170 .addRecordType(testRecord.getClass()) in testChangeLogsToken_noPermissions_expectError() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | EventManagerTest.java | 100 TestRecord testRecord = new TestRecord("testId", "testDescription"); in testAddEventRecord() local 101 mTestEventManager.event(testRecord, TEST_EVENT, null); in testAddEventRecord() 104 assertEquals(testRecord, mAddedEventRecord.getRecordEntry()); in testAddEventRecord() 176 TestRecord testRecord = new TestRecord("testId", "testDesc"); in testExtractEventTimings() local 178 mTestEventManager.event(testRecord, TEST_EVENT, null); in testExtractEventTimings() 183 mTestEventManager.event(testRecord, TEST_START_EVENT, null); in testExtractEventTimings() 187 mTestEventManager.event(testRecord, TEST_END_EVENT, null); in testExtractEventTimings() 205 TestRecord testRecord = new TestRecord("testId", "testDesc"); in testExtractEventTimingsDifferentRecords() local 211 mTestEventManager.event(testRecord, TEST_START_EVENT, null); in testExtractEventTimingsDifferentRecords()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectAccessLogsTest.java | 79 List<Record> testRecord = Collections.singletonList(getStepsRecord()); in testAccessLogs_read_singleRecordType() local 80 TestUtils.insertRecords(testRecord); in testAccessLogs_read_singleRecordType() 99 List<Record> testRecord = getTestRecords(); in testAccessLogs_read_multipleRecordTypes() local 100 TestUtils.insertRecords(testRecord); in testAccessLogs_read_multipleRecordTypes() 177 List<Record> testRecord = Collections.singletonList(getStepsRecord()); in testAccessLogs_insert_singleRecordType() local 178 TestUtils.insertRecords(testRecord); in testAccessLogs_insert_singleRecordType() 197 List<Record> testRecord = getTestRecords(); in testAccessLogs_insert_multipleRecordTypes() local 198 TestUtils.insertRecords(testRecord); in testAccessLogs_insert_multipleRecordTypes()
|