Home
last modified time | relevance | path

Searched refs:assertEnergyWithTolerance (Results 1 – 4 of 4) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DBasalCaloriesAggregationTest.java24 import static android.healthconnect.cts.aggregation.Utils.assertEnergyWithTolerance;
96 assertEnergyWithTolerance(response.get(BASAL_CALORIES_TOTAL), 1564500); in testAggregation_BasalCaloriesBurntTotal_noRecord()
112 assertEnergyWithTolerance(response.get(BASAL_CALORIES_TOTAL), 1564500); in testAggregation_BasalCaloriesBurntTotal_lbm()
124 assertEnergyWithTolerance(response.get(BASAL_CALORIES_TOTAL), 1450000); in testAggregation_BasalCaloriesBurntTotal_lbm()
147 assertEnergyWithTolerance(responses.get(0).get(BASAL_CALORIES_TOTAL), 802000); in testAggregation_BasalCaloriesBurntTotal_lbm_group()
148 assertEnergyWithTolerance(responses.get(1).get(BASAL_CALORIES_TOTAL), 1018000); in testAggregation_BasalCaloriesBurntTotal_lbm_group()
149 assertEnergyWithTolerance(responses.get(2).get(BASAL_CALORIES_TOTAL), 1234000); in testAggregation_BasalCaloriesBurntTotal_lbm_group()
160 assertEnergyWithTolerance(response.get(BASAL_CALORIES_TOTAL), 3054000); in testAggregation_BasalCaloriesBurntTotal_lbm_group()
186 assertEnergyWithTolerance(responses.get(0).get(BASAL_CALORIES_TOTAL), 802000); in testAggregation_BasalCaloriesBurntTotal_groupByDuration_lbmDerived()
187 assertEnergyWithTolerance(responses.get(1).get(BASAL_CALORIES_TOTAL), 1018000); in testAggregation_BasalCaloriesBurntTotal_groupByDuration_lbmDerived()
[all …]
DTotalCaloriesAggregationTest.java26 import static android.healthconnect.cts.aggregation.Utils.assertEnergyWithTolerance;
104 assertEnergyWithTolerance(response.get(ENERGY_TOTAL), DEFAULT_BASAL_CALORIES_PER_DAY); in totalCaloriesBurned_derivedFromDefaultBasalCalories()
123 assertEnergyWithTolerance( in totalCaloriesBurned_derivedFromWeightAndHeight()
139 assertEnergyWithTolerance(response.get(ENERGY_TOTAL), getBasalCaloriesPerDay(lbmKg)); in totalCaloriesBurned_derivedFromLbm()
154 assertEnergyWithTolerance(response.get(ENERGY_TOTAL), wattToCalPerDay(bmrWatt)); in totalCaloriesBurned_derivedFromBmr()
172 assertEnergyWithTolerance( in totalCaloriesBurned_hasActiveCaloriesData_sumActiveAndBasalCalories()
190 assertEnergyWithTolerance( in totalCaloriesBurned_hasTotalCaloriesData_addBasalCaloriesAtGaps()
223 assertEnergyWithTolerance(response.get(ENERGY_TOTAL), expected); in totalCaloriesBurned_hasActiveAndTotalCaloriesData_addBasalCaloriesAtGaps()
239 assertEnergyWithTolerance(response.get(ENERGY_TOTAL), totalCalories); in totalCaloriesBurned_totalCaloriesDataWithoutGap_equalsToTotalCalories()
262 assertEnergyWithTolerance( in totalCaloriesBurned_deriveBasalAndActiveAndTotalCalories()
[all …]
DUtils.java26 static void assertEnergyWithTolerance(Energy energy, double expected) { in assertEnergyWithTolerance() method in Utils
DAggregationApisTest.java29 import static android.healthconnect.cts.aggregation.Utils.assertEnergyWithTolerance;
198 assertEnergyWithTolerance(responses.get(1).get(ACTIVE_CALORIES_TOTAL), 140.0); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()
203 assertEnergyWithTolerance(responses.get(2).get(ACTIVE_CALORIES_TOTAL), 85.0); in groupByDurationWithInstantFilter_activeCaloriesBurnedTotal()