Home
last modified time | relevance | path

Searched refs:Power (Results 1 – 25 of 43) sorted by relevance

12

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/
DPowerTest.java21 import android.health.connect.datatypes.units.Power;
34 assertThat(Power.fromWatts(10.0)).isInstanceOf(Power.class); in testCreate()
35 assertThat(Power.fromWatts(10.0).getInWatts()).isEqualTo(10.0); in testCreate()
40 Power Power1 = Power.fromWatts(10.0); in testEquals()
41 Power Power2 = Power.fromWatts(10.0); in testEquals()
42 Power Power3 = Power.fromWatts(20.0); in testEquals()
50 Power Power1 = Power.fromWatts(10.0); in testCompare()
51 Power Power2 = Power.fromWatts(10.0); in testCompare()
52 Power Power3 = Power.fromWatts(20.0); in testCompare()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/
DPower.java24 public final class Power implements Comparable<Power> { class
27 private Power(double value) { in Power() method in Power
37 public static Power fromWatts(double value) { in fromWatts()
38 return new Power(value); in fromWatts()
59 public int compareTo(@NonNull Power other) { in compareTo()
73 if (object instanceof Power) { in equals()
74 Power other = (Power) object; in equals()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/
DExercisePerformanceGoalTest.java37 import android.health.connect.datatypes.units.Power;
77 Power.fromWatts(100), Power.fromWatts(100))) in powerGoal_equalsAndHashCode()
80 Power.fromWatts(200), Power.fromWatts(200))); in powerGoal_equalsAndHashCode()
83 Power.fromWatts(100), Power.fromWatts(100))) in powerGoal_equalsAndHashCode()
86 Power.fromWatts(100), Power.fromWatts(100))); in powerGoal_equalsAndHashCode()
90 Power.fromWatts(100), Power.fromWatts(100)) in powerGoal_equalsAndHashCode()
94 Power.fromWatts(200), Power.fromWatts(200)) in powerGoal_equalsAndHashCode()
98 Power.fromWatts(100), Power.fromWatts(100)) in powerGoal_equalsAndHashCode()
102 Power.fromWatts(100), Power.fromWatts(100)) in powerGoal_equalsAndHashCode()
111 Power.fromWatts(200), Power.fromWatts(240))); in powerGoal_insertAndRead()
[all …]
DPlannedExerciseStepTest.java26 import android.health.connect.datatypes.units.Power;
127 Power.fromWatts(100), Power.fromWatts(200))); in hashCodeAndEquals_sensitiveToAllFields()
131 Power.fromWatts(200), Power.fromWatts(300))); in hashCodeAndEquals_sensitiveToAllFields()
175 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(200), Power.fromWatts(250))); in clearPerformanceGoals_removesAllExistingPerformanceGoals()
224 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(200), Power.fromWatts(250))); in addingMultiplePerformanceGoalsOfSameType_throwsIllegalArgumentException()
226 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(100), Power.fromWatts(200))); in addingMultiplePerformanceGoalsOfSameType_throwsIllegalArgumentException()
DPowerRecordTest.java44 import android.health.connect.datatypes.units.Power;
303 AggregateRecordsResponse<Power> response = in testAggregation_power()
305 new AggregateRecordsRequest.Builder<Power>( in testAggregation_power()
319 Power maxPower = response.get(POWER_MAX); in testAggregation_power()
320 Power minPower = response.get(POWER_MIN); in testAggregation_power()
321 Power avgPower = response.get(POWER_AVG); in testAggregation_power()
546 new PowerRecord.PowerRecordSample(Power.fromWatts(100001.0), Instant.now().plusMillis(100)); in testCreatePowerRecord_invalidValue()
563 Power.fromWatts(8.0), Instant.now().plusMillis(100)); in getPowerRecord_update()
578 Power.fromWatts(10.0), Instant.now().plusMillis(100)); in getBasePowerRecord()
594 Power.fromWatts(power), Instant.now().plusMillis(100)); in getPowerRecord()
[all …]
DBasalMetabolicRateRecordTest.java43 import android.health.connect.datatypes.units.Power;
376 new Metadata.Builder().build(), Instant.now(), Power.fromWatts(10.0)); in testZoneOffsets()
581 new Metadata.Builder().build(), Instant.now(), Power.fromWatts(484.26)) in testCreateBasalMetabolicRateRecord_invalidValue()
598 metadataWithId, Instant.now(), Power.fromWatts(200.0)) in getBasalMetabolicRateRecord_update()
607 Power.fromWatts(100.0)) in getBaseBasalMetabolicRateRecord()
626 Power.fromWatts(100.0)) in getCompleteBasalMetabolicRateRecord()
DPlannedExerciseSessionRecordTest.java53 import android.health.connect.datatypes.units.Power;
181 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(200), Power.fromWatts(240))); in insertRecord_singleStep()
205 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(200), Power.fromWatts(240))); in insertRecord_multipleSteps()
249 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(200), Power.fromWatts(240))); in updateTrainingPlan()
374 new ExercisePerformanceGoal.PowerGoal(Power.fromWatts(200), Power.fromWatts(240))); in deleteRecords()
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/
DPowerRecord.java23 import android.health.connect.datatypes.units.Power;
89 private final Power mPower;
98 public PowerRecordSample(@NonNull Power power, @NonNull Instant time) { in PowerRecordSample()
111 @NonNull Power power, @NonNull Instant time, boolean skipValidation) { in PowerRecordSample()
125 public Power getPower() { in getPower()
259 public static final AggregationType<Power> POWER_MAX =
264 Power.class);
268 public static final AggregationType<Power> POWER_MIN =
273 Power.class);
277 public static final AggregationType<Power> POWER_AVG =
[all …]
DExercisePerformanceGoal.java23 import android.health.connect.datatypes.units.Power;
37 private final Power mMinPower;
38 private final Power mMaxPower;
44 public PowerGoal(@NonNull Power minPower, @NonNull Power maxPower) { in PowerGoal()
55 public Power getMinPower() { in getMinPower()
63 public Power getMaxPower() { in getMaxPower()
DBasalMetabolicRateRecord.java23 import android.health.connect.datatypes.units.Power;
37 private final Power mBasalMetabolicRate;
50 @NonNull Power basalMetabolicRate, in BasalMetabolicRateRecord()
68 public Power getBasalMetabolicRate() { in getBasalMetabolicRate()
98 private final Power mBasalMetabolicRate;
109 @NonNull Power basalMetabolicRate) { in Builder()
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/
DPlannedExerciseSessionInternalTest.java20 import android.health.connect.datatypes.units.Power;
42 Power.fromWatts(140), Power.fromWatts(160)), in testPlanWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
45 Power.fromWatts(180), Power.fromWatts(200)))); in testPlanWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
50 Power.fromWatts(100), Power.fromWatts(120)))); in testPlanWriteToParcel_populateToParcelAndFrom_restoredFieldsAreIdentical()
DExercisePerformanceGoalInternalTest.java23 import android.health.connect.datatypes.units.Power;
44 new PowerGoalInternal(Power.fromWatts(200.0), Power.fromWatts(240.0)); in powerGoal_writeToParcelThenRestore_objectsAreIdentical()
61 Power.fromWatts(200), Power.fromWatts(240)); in powerGoal_convertToExternalAndBack_objectsAreIdentical()
233 new PowerGoalInternal(Power.fromWatts(200.0), Power.fromWatts(240.0)); in multipleGoals_writeToParcelThenRestore_objectsAreIdentical()
DTestUtils.java26 import android.health.connect.datatypes.units.Power;
132 Power.fromWatts(180), Power.fromWatts((220))))); in buildExerciseStepInternal()
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/
DExercisePerformanceGoalInternal.java21 import android.health.connect.datatypes.units.Power;
165 Power.fromWatts(parcel.readDouble()), Power.fromWatts(parcel.readDouble())); in readFieldsFromParcel()
173 private final Power mMinPower;
174 private final Power mMaxPower;
176 public PowerGoalInternal(Power minPower, Power maxPower) { in PowerGoalInternal()
181 public Power getMinPower() { in getMinPower()
185 public Power getMaxPower() { in getMaxPower()
DBasalMetabolicRateRecordInternal.java23 import android.health.connect.datatypes.units.Power;
50 buildMetaData(), getTime(), Power.fromWatts(getBasalMetabolicRate())) in toExternalRecord()
DPowerRecordInternal.java24 import android.health.connect.datatypes.units.Power;
92 Power.fromWatts(powerRecordSample.getPower()), in getExternalSamples()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DDataFactory.java32 import android.health.connect.datatypes.units.Power;
57 new Metadata.Builder().build(), time, Power.fromWatts(power)) in getBasalMetabolicRateRecord()
68 new Metadata.Builder().build(), time, Power.fromWatts(power)) in getBasalMetabolicRateRecord()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DExercisePerformanceGoalFormatterTest.kt36 import android.health.connect.datatypes.units.Power
91 PowerGoal(Power.fromWatts(30.0), Power.fromWatts(100.0)), in <lambda>()
96 PowerGoal(Power.fromWatts(30.0), Power.fromWatts(100.0)), in <lambda>()
DBasalMetabolicRateFormatterTest.kt20 import android.health.connect.datatypes.units.Power
94 return BasalMetabolicRateRecord.Builder(getMetaData(), NOW, Power.fromWatts(watts)).build() in getBasalMetabolicRateRecord()
DPowerFormatterTest.kt20 import android.health.connect.datatypes.units.Power
115 samples.map { PowerRecord.PowerRecordSample(Power.fromWatts(it), NOW) }) in getPowerRecord()
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DHealthConnectManagerTest.java92 import android.health.connect.datatypes.units.Power;
542 final Power bmr1 = Power.fromWatts(100.0); in testInsertRecords_instantWithSameClientId_overwrites()
543 final Power bmr2 = Power.fromWatts(110.0); in testInsertRecords_instantWithSameClientId_overwrites()
563 final Power bmr1 = Power.fromWatts(100.0); in testInsertRecords_instantNoClientIdsAndSameTime_overwrites()
564 final Power bmr2 = Power.fromWatts(110.0); in testInsertRecords_instantNoClientIdsAndSameTime_overwrites()
588 final Power bmr1 = Power.fromWatts(100.0); in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite()
589 final Power bmr2 = Power.fromWatts(110.0); in testInsertRecords_instantDifferentClientIdsAndSameTime_doesNotOverwrite()
2081 metadataWithId, Instant.now(), Power.fromWatts(100.0)) in setTestRecordId()
2185 /* clientRecordId= */ null, /* bmr= */ Power.fromWatts(100.0), Instant.now()); in getBasalMetabolicRateRecord()
2189 String clientRecordId, Power bmr, Instant time) { in getBasalMetabolicRateRecord()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/
DListInputField.kt32 import android.health.connect.datatypes.units.Power
160 Power.fromWatts(dataPointString.toDouble()), instant.getFieldValue())) in getFieldValue()
/packages/modules/Bluetooth/sysprop/
Dhfp.sysprop44 # Used to enable/disable AptX SWB Power Management
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/
DAggregationTypeIdMapper.java111 import android.health.connect.datatypes.units.Power;
287 private AggregateResult<Power> getPowerResult(double result) { in getPowerResult()
288 return new AggregateResult<>(Power.fromWatts(result)); in getPowerResult()
/packages/modules/Bluetooth/system/doc/
Dpower_management.md1 ## Power Management
5 Power management (PM) is an event-driven state machine, tickled by various
10 Power states are managed per-device, per-profile, so every incoming event
42 ### Power management tables

12