Home
last modified time | relevance | path

Searched refs:DistanceUnit (Results 1 – 15 of 15) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DLengthFormatter.kt26 import com.android.healthconnect.controller.dataentries.units.DistanceUnit
38 DistanceUnit.KILOMETERS -> R.string.distance_km in formatValue()
39 DistanceUnit.MILES -> R.string.distance_miles in formatValue()
54 DistanceUnit.KILOMETERS -> R.string.distance_km_long in formatA11yValue()
55 DistanceUnit.MILES -> R.string.distance_miles_long in formatA11yValue()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DExercisePerformanceGoalFormatterTest.kt41 import com.android.healthconnect.controller.dataentries.units.DistanceUnit
145 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
162 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
180 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_metricSystem_localeUK()
201 unitPreferences.setDistanceUnit(DistanceUnit.MILES) in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_imperialSystem_localeUS()
218 unitPreferences.setDistanceUnit(DistanceUnit.MILES) in <lambda>()
235 unitPreferences.setDistanceUnit(DistanceUnit.MILES) in <lambda>()
253 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in formatGoal_exerciseSegmentTypeWithPace_speedPerformanceGoal_withZeroValue_metricSystem()
271 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in formatGoal_swimmingExerciseSegmentType_speedPerformanceGoal_withUnRealisticValue_metricSystem()
DSpeedFormatterTest.kt24 import com.android.healthconnect.controller.dataentries.units.DistanceUnit in <lambda>()
25 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS in <lambda>()
26 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES in <lambda>()
110 preferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
DPlannedExerciseBlockFormatterTest.kt29 import com.android.healthconnect.controller.dataentries.units.DistanceUnit
65 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
90 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
127 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
DDistanceFormatterTest.kt23 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
24 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES
DExerciseSessionFormatterTest.kt32 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitPreferences.kt19 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
52 fun getDistanceUnit(): DistanceUnit { in getDistanceUnit()
60 return DistanceUnit.valueOf(unitString) in getDistanceUnit()
63 fun setDistanceUnit(distanceUnit: DistanceUnit) { in setDistanceUnit()
142 enum class DistanceUnit : UnitPreference { class
DLengthConverter.kt16 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
17 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES
35 fun convertDistanceFromMeters(unit: DistanceUnit, source: Double): Double { in convertDistanceFromMeters()
DUnitPreferencesStrings.kt25 DistanceUnit.KILOMETERS to R.string.distance_unit_kilometers_label,
26 DistanceUnit.MILES to R.string.distance_unit_miles_label,
DSpeedConverter.kt24 distanceUnit: DistanceUnit?, in convertToDistancePerHour()
DUnitsFragment.kt22 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.* in <lambda>()
94 val newDistanceUnit = DistanceUnit.valueOf(newUnit) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DLengthConverterTest.kt16 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
17 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES
DSpeedConverterTest.kt16 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
17 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES
DUnitsFragmentTest.kt29 import com.android.healthconnect.controller.dataentries.units.DistanceUnit
144 unitPreferences.setDistanceUnit(DistanceUnit.MILES) in unitsScreen_setDistanceUnit_updatesValue()
148 onView(withText(getUnitLabel(DistanceUnit.MILES))).check(matches(isDisplayed())) in unitsScreen_setDistanceUnit_updatesValue()
177 assertThat(unitPreferences.getDistanceUnit()).isEqualTo(DistanceUnit.MILES) in unitsScreen_modifiesDistance_updatesValue()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DSpeedFormatter.kt31 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
32 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES