/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/units/ |
D | VelocityTest.java | 21 import android.health.connect.datatypes.units.Velocity; 34 assertThat(Velocity.fromMetersPerSecond(10.0)).isInstanceOf(Velocity.class); in testCreate() 35 assertThat(Velocity.fromMetersPerSecond(10.0).getInMetersPerSecond()).isEqualTo(10.0); in testCreate() 40 Velocity Velocity1 = Velocity.fromMetersPerSecond(10.0); in testEquals() 41 Velocity Velocity2 = Velocity.fromMetersPerSecond(10.0); in testEquals() 42 Velocity Velocity3 = Velocity.fromMetersPerSecond(20.0); in testEquals() 50 Velocity Velocity1 = Velocity.fromMetersPerSecond(10.0); in testCompare() 51 Velocity Velocity2 = Velocity.fromMetersPerSecond(10.0); in testCompare() 52 Velocity Velocity3 = Velocity.fromMetersPerSecond(20.0); in testCompare()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | ExercisePerformanceGoalFormatterTest.kt | 37 import android.health.connect.datatypes.units.Velocity 149 Velocity.fromMetersPerSecond(15.0), Velocity.fromMetersPerSecond(25.0)), in <lambda>() 155 Velocity.fromMetersPerSecond(15.0), Velocity.fromMetersPerSecond(25.0)), in <lambda>() 166 Velocity.fromMetersPerSecond(10.0), Velocity.fromMetersPerSecond(20.0)), in <lambda>() 172 Velocity.fromMetersPerSecond(10.0), Velocity.fromMetersPerSecond(20.0)), in <lambda>() 184 Velocity.fromMetersPerSecond(50.0), in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_metricSystem_localeUK() 185 Velocity.fromMetersPerSecond(100.0)), in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_metricSystem_localeUK() 191 Velocity.fromMetersPerSecond(50.0), in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_metricSystem_localeUK() 192 Velocity.fromMetersPerSecond(100.0)), in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_metricSystem_localeUK() 205 Velocity.fromMetersPerSecond(25.0), Velocity.fromMetersPerSecond(50.0)), in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_imperialSystem_localeUS() [all …]
|
D | PlannedExerciseBlockFormatterTest.kt | 23 import android.health.connect.datatypes.units.Velocity 80 Velocity.fromMetersPerSecond(25.0), in <lambda>() 81 Velocity.fromMetersPerSecond(15.0)))))) in <lambda>() 105 Velocity.fromMetersPerSecond(25.0), in <lambda>() 106 Velocity.fromMetersPerSecond(15.0)))), in <lambda>() 115 Velocity.fromMetersPerSecond(60.0), in <lambda>() 116 Velocity.fromMetersPerSecond(50.0)))))) in <lambda>() 142 Velocity.fromMetersPerSecond(15.0), in <lambda>() 143 Velocity.fromMetersPerSecond(25.0)))), in <lambda>() 152 Velocity.fromMetersPerSecond(50.0), in <lambda>() [all …]
|
D | PlannedExerciseSessionRecordFormatterTest.kt | 23 import android.health.connect.datatypes.units.Velocity 82 Velocity.fromMetersPerSecond(15.0), in <lambda>() 83 Velocity.fromMetersPerSecond(25.0)))))), in <lambda>() 98 Velocity.fromMetersPerSecond(25.0), in <lambda>() 99 Velocity.fromMetersPerSecond(50.0))))))) in <lambda>() 126 Velocity.fromMetersPerSecond(15.0), in <lambda>() 127 Velocity.fromMetersPerSecond(25.0)))))) in <lambda>() 142 Velocity.fromMetersPerSecond(25.0), in <lambda>() 143 Velocity.fromMetersPerSecond(50.0)))))) in <lambda>() 173 Velocity.fromMetersPerSecond(15.0), in <lambda>() [all …]
|
D | PlannedExerciseStepFormatterTest.kt | 29 import android.health.connect.datatypes.units.Velocity 73 Velocity.fromMetersPerSecond(15.0), in <lambda>() 74 Velocity.fromMetersPerSecond(25.0)))) in <lambda>() 85 Velocity.fromMetersPerSecond(15.0), in <lambda>() 86 Velocity.fromMetersPerSecond(25.0)))) in <lambda>() 101 Velocity.fromMetersPerSecond(15.0), in <lambda>() 102 Velocity.fromMetersPerSecond(25.0)))) in <lambda>() 113 Velocity.fromMetersPerSecond(15.0), Velocity.fromMetersPerSecond(25.0)), in <lambda>()
|
D | SpeedFormatterTest.kt | 20 import android.health.connect.datatypes.units.Velocity in <lambda>() 184 Velocity.fromMetersPerSecond(value), NOW.plusSeconds(index.toLong())) in <lambda>()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/units/ |
D | Velocity.java | 24 public final class Velocity implements Comparable<Velocity> { class 27 private Velocity(double value) { in Velocity() method in Velocity 37 public static Velocity fromMetersPerSecond(double value) { in fromMetersPerSecond() 38 return new Velocity(value); in fromMetersPerSecond() 59 public int compareTo(@NonNull Velocity other) { in compareTo() 73 if (object instanceof Velocity) { in equals() 74 Velocity other = (Velocity) object; in equals()
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/datatypes/ |
D | ExercisePerformanceGoalTest.java | 38 import android.health.connect.datatypes.units.Velocity; 134 Velocity.fromMetersPerSecond(10), Velocity.fromMetersPerSecond(10))) in speedGoal_equalsAndHashCode() 137 Velocity.fromMetersPerSecond(20), in speedGoal_equalsAndHashCode() 138 Velocity.fromMetersPerSecond(20))); in speedGoal_equalsAndHashCode() 141 Velocity.fromMetersPerSecond(10), Velocity.fromMetersPerSecond(10))) in speedGoal_equalsAndHashCode() 144 Velocity.fromMetersPerSecond(10), in speedGoal_equalsAndHashCode() 145 Velocity.fromMetersPerSecond(10))); in speedGoal_equalsAndHashCode() 149 Velocity.fromMetersPerSecond(10), in speedGoal_equalsAndHashCode() 150 Velocity.fromMetersPerSecond(10)) in speedGoal_equalsAndHashCode() 154 Velocity.fromMetersPerSecond(20), in speedGoal_equalsAndHashCode() [all …]
|
D | SpeedRecordTest.java | 51 import android.health.connect.datatypes.units.Velocity; 384 AggregateRecordsResponse<Velocity> response = in testSpeedAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect() 386 new AggregateRecordsRequest.Builder<Velocity>( in testSpeedAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect() 396 checkAggregationResult(SPEED_MIN, Velocity.fromMetersPerSecond(80), response); in testSpeedAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect() 397 checkAggregationResult(SPEED_AVG, Velocity.fromMetersPerSecond(100), response); in testSpeedAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect() 398 checkAggregationResult(SPEED_MAX, Velocity.fromMetersPerSecond(120), response); in testSpeedAggregation_getAggregationFromThreerecords_aggResponsesAreCorrect() 402 AggregationType<Velocity> type, in checkAggregationResult() 403 Velocity expectedResult, in checkAggregationResult() 404 AggregateRecordsResponse<Velocity> response) { in checkAggregationResult() 446 Velocity.fromMetersPerSecond(1000001), Instant.now().plusMillis(100)); in testCreateSpeedRecord_invalidValue() [all …]
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | SpeedRecord.java | 21 import android.health.connect.datatypes.units.Velocity; 41 public static final AggregationType<Velocity> SPEED_AVG = 46 Velocity.class); 53 public static final AggregationType<Velocity> SPEED_MIN = 58 Velocity.class); 65 public static final AggregationType<Velocity> SPEED_MAX = 70 Velocity.class); 121 private final Velocity mSpeed; 130 public SpeedRecordSample(@NonNull Velocity speed, @NonNull Instant time) { in SpeedRecordSample() 143 @NonNull Velocity speed, @NonNull Instant time, boolean skipValidation) { in SpeedRecordSample() [all …]
|
D | ExercisePerformanceGoal.java | 24 import android.health.connect.datatypes.units.Velocity; 88 private final Velocity mMinSpeed; 89 private final Velocity mMaxSpeed; 95 public SpeedGoal(@NonNull Velocity minSpeed, @NonNull Velocity maxSpeed) { in SpeedGoal() 106 public Velocity getMinSpeed() { in getMinSpeed() 114 public Velocity getMaxSpeed() { in getMaxSpeed()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | ExercisePerformanceGoalInternal.java | 22 import android.health.connect.datatypes.units.Velocity; 206 Velocity.fromMetersPerSecond(parcel.readDouble()), in readFieldsFromParcel() 207 Velocity.fromMetersPerSecond(parcel.readDouble())); in readFieldsFromParcel() 215 private final Velocity mMinSpeed; 216 private final Velocity mMaxSpeed; 218 public SpeedGoalInternal(Velocity minSpeed, Velocity maxSpeed) { in SpeedGoalInternal() 223 public Velocity getMinSpeed() { in getMinSpeed() 227 public Velocity getMaxSpeed() { in getMaxSpeed()
|
D | SpeedRecordInternal.java | 24 import android.health.connect.datatypes.units.Velocity; 92 Velocity.fromMetersPerSecond(speedRecordSample.getSpeed()), in getExternalSamples()
|
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/fieldviews/ |
D | ExerciseBlockInputField.kt | 11 import android.health.connect.datatypes.units.Velocity 56 Velocity.fromMetersPerSecond(50.0), in getFieldValue() 57 Velocity.fromMetersPerSecond(25.0)))) in getFieldValue()
|
D | ListInputField.kt | 34 import android.health.connect.datatypes.units.Velocity 151 Velocity.fromMetersPerSecond(dataPointString.toDouble()), in getFieldValue()
|
/packages/modules/HealthFitness/tests/unittests/src/android/healthconnect/internal/datatypes/ |
D | ExercisePerformanceGoalInternalTest.java | 24 import android.health.connect.datatypes.units.Velocity; 81 Velocity.fromMetersPerSecond(8.5), Velocity.fromMetersPerSecond(9.5)); in speedGoal_writeToParcelThenRestore_objectsAreIdentical() 98 Velocity.fromMetersPerSecond(10.5), Velocity.fromMetersPerSecond(12.5)); in speedGoal_convertToExternalAndBack_objectsAreIdentical()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | SpeedFormatter.kt | 22 import android.health.connect.datatypes.units.Velocity 140 speed: Velocity, in formatSpeedValue() 156 speed: Velocity, in formatA11ySpeedValue() 174 speed: Velocity, in formatSpeedValueToMinPerDistance() 208 speed: Velocity, in formatSpeedValueToMinPerOneHundredDistance()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/entrydetails/ |
D | DataEntryDetailsFragmentTest.kt | 41 import android.health.connect.datatypes.units.Velocity 343 Velocity.fromMetersPerSecond(25.0), in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails() 344 Velocity.fromMetersPerSecond(15.0)))))), in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails() 357 Velocity.fromMetersPerSecond(25.0), in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails() 358 Velocity.fromMetersPerSecond(15.0)))) in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails() 372 Velocity.fromMetersPerSecond(180.0), in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails() 373 Velocity.fromMetersPerSecond(90.0)), in dataEntriesDetailsInit_withPlannedExerciseSession_showsItem_showsDetails()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/ |
D | TestConstants.kt | 48 import android.health.connect.datatypes.units.Velocity in <lambda>() 165 Velocity.fromMetersPerSecond(25.0), in getSamplePlannedExerciseSessionRecord() 166 Velocity.fromMetersPerSecond(15.0)))))) in getSamplePlannedExerciseSessionRecord() 181 Velocity.fromMetersPerSecond(50.0), in getSamplePlannedExerciseSessionRecord() 182 Velocity.fromMetersPerSecond(25.0)))))) in getSamplePlannedExerciseSessionRecord()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/utils/ |
D | AggregationTypeIdMapper.java | 114 import android.health.connect.datatypes.units.Velocity; 317 private AggregateResult<Velocity> getVelocityResult(double result) { in getVelocityResult() 318 return new AggregateResult<>(Velocity.fromMetersPerSecond(result)); in getVelocityResult()
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/ |
D | PlannedExerciseSessionRecordHelper.java | 51 import android.health.connect.datatypes.units.Velocity; 355 Velocity.fromMetersPerSecond( in extractPerformanceGoal() 357 Velocity.fromMetersPerSecond( in extractPerformanceGoal()
|
/packages/modules/HealthFitness/framework/api/ |
D | current.txt | 750 …ull android.health.connect.datatypes.units.Velocity, @NonNull android.health.connect.datatypes.uni… 751 method @NonNull public android.health.connect.datatypes.units.Velocity getMaxSpeed(); 752 method @NonNull public android.health.connect.datatypes.units.Velocity getMinSpeed(); 1591 …ealth.connect.datatypes.AggregationType<android.health.connect.datatypes.units.Velocity> SPEED_AVG; 1592 …ealth.connect.datatypes.AggregationType<android.health.connect.datatypes.units.Velocity> SPEED_MAX; 1593 …ealth.connect.datatypes.AggregationType<android.health.connect.datatypes.units.Velocity> SPEED_MIN; 1606 …ecord.SpeedRecordSample(@NonNull android.health.connect.datatypes.units.Velocity, @NonNull java.ti… 1607 method @NonNull public android.health.connect.datatypes.units.Velocity getSpeed(); 1768 …public final class Velocity implements java.lang.Comparable<android.health.connect.datatypes.units… 1769 method public int compareTo(@NonNull android.health.connect.datatypes.units.Velocity); [all …]
|