Home
last modified time | relevance | path

Searched refs:getInWatts (Results 1 – 9 of 9) sorted by relevance

/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/
DPower.java42 public double getInWatts() { in getInWatts() method in Power
75 return this.getInWatts() == other.getInWatts(); in equals()
87 return Objects.hash(this.getInWatts()); in hashCode()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DBasalMetabolicRateRecord.java59 basalMetabolicRate.getInWatts(), 0.0, 484.259, "basalMetabolicRate"); in BasalMetabolicRateRecord()
184 recordInternal.setBasalMetabolicRate(mBasalMetabolicRate.getInWatts()); in toRecordInternal()
DPowerRecord.java115 ValidationUtils.requireInRange(power.getInWatts(), 0.0, 100000.0, "power"); in PowerRecordSample()
336 powerRecordSample.getPower().getInWatts(), in toRecordInternal()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/
DPowerTest.java35 assertThat(Power.fromWatts(10.0).getInWatts()).isEqualTo(10.0); in testCreate()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExercisePerformanceGoalInternal.java159 parcel.writeDouble(this.mMinPower.getInWatts()); in writeFieldsToParcel()
160 parcel.writeDouble(this.mMaxPower.getInWatts()); in writeFieldsToParcel()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DPowerRecordTest.java323 assertThat(maxPower.getInWatts()).isEqualTo(15.0); in testAggregation_power()
325 assertThat(minPower.getInWatts()).isEqualTo(5.0); in testAggregation_power()
327 assertThat(avgPower.getInWatts()).isEqualTo(10.0); in testAggregation_power()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DPlannedExerciseSessionRecordHelper.java506 ((PowerGoalInternal) performanceGoal).getMinPower().getInWatts())); in getPerformanceGoalUpsert()
510 ((PowerGoalInternal) performanceGoal).getMaxPower().getInWatts())); in getPerformanceGoalUpsert()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/libs/HealthConnectTestLib/src/android/healthconnect/cts/lib/
DBundleHelper.java503 values.putDouble(POWER_WATTS, record.getBasalMetabolicRate().getInWatts()); in getBasalMetabolicRateRecordValues()
/packages/modules/HealthFitness/framework/api/
Dcurrent.txt1747 method public double getInWatts();