Searched refs:getInGrams (Results 1 – 14 of 14) sorted by relevance
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | NutritionRecord.java | 2001 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 …]
|
D | LeanBodyMassRecord.java | 54 ValidationUtils.requireInRange(mass.getInGrams(), 0.0, 1000000.0, "mass"); in LeanBodyMassRecord() 160 recordInternal.setMass(mMass.getInGrams()); in toRecordInternal()
|
D | BodyWaterMassRecord.java | 52 requireInRange(bodyWaterMass.getInGrams(), 0, 1000000, "mass"); in BodyWaterMassRecord() 156 recordInternal.setBodyWaterMass(mBodyWaterMass.getInGrams()); in toRecordInternal()
|
D | BoneMassRecord.java | 52 ValidationUtils.requireInRange(mass.getInGrams(), 0.0, 1000000.0, "mass"); in BoneMassRecord() 158 recordInternal.setMass(mMass.getInGrams()); in toRecordInternal()
|
D | WeightRecord.java | 87 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/ |
D | Mass.java | 43 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/ |
D | Utils.java | 38 assertThat(mass.getInGrams()).isWithin(0.001).of(expected); in assertMassWithTolerance()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/ |
D | MassTest.java | 35 assertThat(Mass.fromGrams(10.0).getInGrams()).isEqualTo(10.0); in testCreate()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/historicaccess/ |
D | HistoricAccessLimitTest.java | 257 assertThat(averageWeightAggregation.get(WEIGHT_AVG).getInGrams()) in testAggregateInstantRecords_expectCorrectResponse() 377 assertThat(response.get(WEIGHT_AVG).getInGrams()).isEqualTo(11.0d); in testAggregateAnotherAppsRecords_recordsAreAfterCutOff_expectCorrectAggregation()
|
D | HistoricAccessLimitWithPermissionTest.java | 238 assertThat(averageWeightAggregation.get(WEIGHT_AVG).getInGrams()) in testAggregateInstantRecords_expectCorrectResponse()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExercisePerformanceGoalInternal.java | 322 parcel.writeDouble(this.mMass.getInGrams()); in writeFieldsToParcel()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | NutritionRecordTest.java | 544 assertThat(newTotal.getInGrams() - oldTotal.getInGrams()).isEqualTo(0.2); in testAggregation_NutritionValuesTotal()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | PlannedExerciseSessionRecordHelper.java | 542 ((WeightGoalInternal) performanceGoal).getMass().getInGrams())); in getPerformanceGoalUpsert()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 1735 method public double getInGrams();
|