/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | BasalMetabolicRateFormatterTest.kt | 25 import com.android.healthconnect.controller.tests.utils.getBasalMetabolicRateRecord 59 val record = getBasalMetabolicRateRecord(calories = 1548) in formatValue_returnsPowerValue() 68 val record = getBasalMetabolicRateRecord(watts = 82.8688) in formatValue_watts_returnsPowerValue() 77 val record = getBasalMetabolicRateRecord(calories = 1720) in formatA11yValue_pluralValue_returnsA11yPowerValues() 86 val record = getBasalMetabolicRateRecord(calories = 1) in formatA11yValue_singleValue_returnsA11yPowerValues() 93 private fun getBasalMetabolicRateRecord(watts: Double): BasalMetabolicRateRecord { in getBasalMetabolicRateRecord() method
|
D | HealthDataEntryFormatterTest.kt | 25 import com.android.healthconnect.controller.tests.utils.getBasalMetabolicRateRecord 94 val record = getBasalMetabolicRateRecord(calories = 1548) in <lambda>()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/ |
D | BasalCaloriesAggregationTest.java | 20 import static android.healthconnect.cts.aggregation.DataFactory.getBasalMetabolicRateRecord; 434 getBasalMetabolicRateRecord(30.0, Instant.now().minus(3, DAYS)), in testAggregation_BasalCaloriesBurntTotal() 435 getBasalMetabolicRateRecord(75.0, Instant.now().minus(2, DAYS)))); in testAggregation_BasalCaloriesBurntTotal() 447 insertRecords(List.of(getBasalMetabolicRateRecord(46, Instant.now().minus(1, DAYS)))); in testAggregation_BasalCaloriesBurntTotal() 481 getBasalMetabolicRateRecord(50.0, now), in testAggregation_BasalCaloriesBurntTotal_groupDuration() 482 getBasalMetabolicRateRecord(40.0, now.minus(1, DAYS)), in testAggregation_BasalCaloriesBurntTotal_groupDuration() 483 getBasalMetabolicRateRecord(30.0, now.minus(2, DAYS)), in testAggregation_BasalCaloriesBurntTotal_groupDuration() 484 getBasalMetabolicRateRecord(20.0, now.minus(3, DAYS)))); in testAggregation_BasalCaloriesBurntTotal_groupDuration() 524 getBasalMetabolicRateRecord(50.0, now, offset), in testAggregation_BasalCaloriesBurntTotal_groupDurationLocalFilter() 525 getBasalMetabolicRateRecord(40.0, now.minus(1, DAYS), offset), in testAggregation_BasalCaloriesBurntTotal_groupDurationLocalFilter() [all …]
|
D | DataFactory.java | 55 static BasalMetabolicRateRecord getBasalMetabolicRateRecord(double power, Instant time) { in getBasalMetabolicRateRecord() method in DataFactory 65 static BasalMetabolicRateRecord getBasalMetabolicRateRecord( in getBasalMetabolicRateRecord() method in DataFactory
|
D | TotalCaloriesAggregationTest.java | 21 import static android.healthconnect.cts.aggregation.DataFactory.getBasalMetabolicRateRecord; 146 insertRecord(getBasalMetabolicRateRecord(bmrWatt, EPOCH)); in totalCaloriesBurned_derivedFromBmr() 290 getBasalMetabolicRateRecord(30, now.minus(3, DAYS)))); in testAggregation_totalCaloriesBurned_activeCalories_groupBy_duration() 324 getBasalMetabolicRateRecord(30, now.minus(3, DAYS), offset))); in testAggregation_groupByDurationLocalFilter_shiftRecordsAndFilterWithOffset()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/ |
D | HealthConnectManagerTest.java | 547 TestUtils.insertRecordAndGetId(getBasalMetabolicRateRecord(clientId, bmr1, time1)); in testInsertRecords_instantWithSameClientId_overwrites() 548 TestUtils.insertRecordAndGetId(getBasalMetabolicRateRecord(clientId, bmr2, time2)); in testInsertRecords_instantWithSameClientId_overwrites() 569 getBasalMetabolicRateRecord(/* clientRecordId= */ null, bmr1, time)); in testInsertRecords_instantNoClientIdsAndSameTime_overwrites() 572 getBasalMetabolicRateRecord(/* clientRecordId= */ null, bmr2, time)); in testInsertRecords_instantNoClientIdsAndSameTime_overwrites() 594 getBasalMetabolicRateRecord( in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite() 598 getBasalMetabolicRateRecord( in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite() 2048 getBasalMetabolicRateRecord()); in getTestRecords() 2183 private static BasalMetabolicRateRecord getBasalMetabolicRateRecord() { in getBasalMetabolicRateRecord() method in HealthConnectManagerTest 2184 return getBasalMetabolicRateRecord( in getBasalMetabolicRateRecord() 2188 private static BasalMetabolicRateRecord getBasalMetabolicRateRecord( in getBasalMetabolicRateRecord() method in HealthConnectManagerTest
|
/packages/modules/HealthFitness/tests/cts/utils/HealthConnectTestUtils/src/android/healthconnect/cts/utils/ |
D | DataFactory.java | 601 getBasalMetabolicRateRecord(), in getTestRecords() 618 RECORD_TYPE_BASAL_METABOLIC_RATE, getBasalMetabolicRateRecord())); in getRecordsAndIdentifiers() 621 public static BasalMetabolicRateRecord getBasalMetabolicRateRecord() { in getBasalMetabolicRateRecord() method in DataFactory
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/changelogs/ |
D | HealthConnectChangeLogsTests.java | 21 import static android.healthconnect.cts.utils.DataFactory.getBasalMetabolicRateRecord; 630 getBasalMetabolicRateRecord(), in testChangeLogs_insert_withPageSize_paginatesThroughAllChangeLogs()
|
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/device/src/android/healthconnect/cts/device/ |
D | HealthConnectDeviceTest.java | 132 getBasalMetabolicRateRecord(getEmptyMetadata()), 1209 private static BasalMetabolicRateRecord getBasalMetabolicRateRecord(Metadata metadata) { in getBasalMetabolicRateRecord() method in HealthConnectDeviceTest
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 83 fun getBasalMetabolicRateRecord(calories: Long): BasalMetabolicRateRecord { in getBasalMetabolicRateRecord() method
|