Home
last modified time | relevance | path

Searched refs:getInGrams (Results 1 – 14 of 14) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DNutritionRecord.java2001 recordInternal.setUnsaturatedFat(getUnsaturatedFat().getInGrams()); in toRecordInternal()
2004 recordInternal.setPotassium(getPotassium().getInGrams()); in toRecordInternal()
2007 recordInternal.setThiamin(getThiamin().getInGrams()); in toRecordInternal()
2011 recordInternal.setTransFat(getTransFat().getInGrams()); in toRecordInternal()
2014 recordInternal.setManganese(getManganese().getInGrams()); in toRecordInternal()
2020 recordInternal.setCaffeine(getCaffeine().getInGrams()); in toRecordInternal()
2023 recordInternal.setDietaryFiber(getDietaryFiber().getInGrams()); in toRecordInternal()
2026 recordInternal.setSelenium(getSelenium().getInGrams()); in toRecordInternal()
2029 recordInternal.setVitaminB6(getVitaminB6().getInGrams()); in toRecordInternal()
2032 recordInternal.setProtein(getProtein().getInGrams()); in toRecordInternal()
[all …]
DLeanBodyMassRecord.java54 ValidationUtils.requireInRange(mass.getInGrams(), 0.0, 1000000.0, "mass"); in LeanBodyMassRecord()
160 recordInternal.setMass(mMass.getInGrams()); in toRecordInternal()
DBodyWaterMassRecord.java52 requireInRange(bodyWaterMass.getInGrams(), 0, 1000000, "mass"); in BodyWaterMassRecord()
156 recordInternal.setBodyWaterMass(mBodyWaterMass.getInGrams()); in toRecordInternal()
DBoneMassRecord.java52 ValidationUtils.requireInRange(mass.getInGrams(), 0.0, 1000000.0, "mass"); in BoneMassRecord()
158 recordInternal.setMass(mMass.getInGrams()); in toRecordInternal()
DWeightRecord.java87 ValidationUtils.requireInRange(weight.getInGrams(), 0.0, 1000000.0, "weight"); in WeightRecord()
194 recordInternal.setWeight(mWeight.getInGrams()); in toRecordInternal()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/
DMass.java43 public double getInGrams() { in getInGrams() method in Mass
76 return this.getInGrams() == other.getInGrams(); in equals()
88 return Objects.hash(this.getInGrams()); in hashCode()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DUtils.java38 assertThat(mass.getInGrams()).isWithin(0.001).of(expected); in assertMassWithTolerance()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/
DMassTest.java35 assertThat(Mass.fromGrams(10.0).getInGrams()).isEqualTo(10.0); in testCreate()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/
DHistoricAccessLimitTest.java257 assertThat(averageWeightAggregation.get(WEIGHT_AVG).getInGrams()) in testAggregateInstantRecords_expectCorrectResponse()
377 assertThat(response.get(WEIGHT_AVG).getInGrams()).isEqualTo(11.0d); in testAggregateAnotherAppsRecords_recordsAreAfterCutOff_expectCorrectAggregation()
DHistoricAccessLimitWithPermissionTest.java238 assertThat(averageWeightAggregation.get(WEIGHT_AVG).getInGrams()) in testAggregateInstantRecords_expectCorrectResponse()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExercisePerformanceGoalInternal.java322 parcel.writeDouble(this.mMass.getInGrams()); in writeFieldsToParcel()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DNutritionRecordTest.java544 assertThat(newTotal.getInGrams() - oldTotal.getInGrams()).isEqualTo(0.2); in testAggregation_NutritionValuesTotal()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java542 ((WeightGoalInternal) performanceGoal).getMass().getInGrams())); in getPerformanceGoalUpsert()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1735 method public double getInGrams();