Home
last modified time | relevance | path

Searched refs:getInCalories (Results 1 – 13 of 13) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/
DEnergy.java43 public double getInCalories() { in getInCalories() method in Energy
76 return this.getInCalories() == other.getInCalories(); in equals()
88 return Objects.hash(this.getInCalories()); in hashCode()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DActiveCaloriesBurnedRecord.java174 ValidationUtils.requireInRange(energy.getInCalories(), 0.0, 1000000000.0, "energy"); in ActiveCaloriesBurnedRecord()
230 recordInternal.setEnergy(mEnergy.getInCalories()); in toRecordInternal()
DTotalCaloriesBurnedRecord.java85 ValidationUtils.requireInRange(energy.getInCalories(), 0.0, 1000000000.0, "energy"); in TotalCaloriesBurnedRecord()
237 recordInternal.setEnergy(mEnergy.getInCalories()); in toRecordInternal()
DNutritionRecord.java2017 recordInternal.setEnergyFromFat(getEnergyFromFat().getInCalories()); in toRecordInternal()
2056 recordInternal.setEnergy(getEnergy().getInCalories()); in toRecordInternal()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DUtils.java28 assertThat(energy.getInCalories()).isWithin(1).of(expected); in assertEnergyWithTolerance()
DBasalCaloriesAggregationTest.java461 assertThat(oldEnergy.getInCalories() / 1000).isWithin(1).of(13118); in testAggregation_BasalCaloriesBurntTotal()
462 assertThat(newEnergy.getInCalories() / 1000).isGreaterThan(13118); in testAggregation_BasalCaloriesBurntTotal()
463 assertThat((double) Math.round(newEnergy.getInCalories() - oldEnergy.getInCalories())) in testAggregation_BasalCaloriesBurntTotal()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/
DEnergyTest.java35 assertThat(Energy.fromCalories(10.0).getInCalories()).isEqualTo(10.0); in testCreate()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExerciseCompletionGoalInternal.java268 parcel.writeDouble(this.mTotalCalories.getInCalories()); in writeFieldsToParcel()
305 parcel.writeDouble(this.mActiveCalories.getInCalories()); in writeFieldsToParcel()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DNutritionRecordTest.java591 assertThat(newEnergy.getInCalories() - oldEnergy.getInCalories()).isEqualTo(0.1); in testAggregation_NutritionEnergyValuesTotal()
592 assertThat(newFatEnergy.getInCalories() - oldFatEnergy.getInCalories()).isEqualTo(0.1); in testAggregation_NutritionEnergyValuesTotal()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java480 .getInCalories())); in getCompletionGoalUpsert()
487 .getInCalories())); in getCompletionGoalUpsert()
/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/backuprestore/
DBackupRestoreE2ETest.java503 ((ActiveCaloriesBurnedRecord) record).getEnergy().getInCalories()); in recordToString()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java777 values.putDouble(ENERGY_IN_CALORIES, record.getEnergy().getInCalories()); in getTotalCaloriesBurnedRecord()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1723 method public double getInCalories();