Searched refs:DistanceUnit (Results 1 – 15 of 15) sorted by relevance
26 import com.android.healthconnect.controller.dataentries.units.DistanceUnit38 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()
41 import com.android.healthconnect.controller.dataentries.units.DistanceUnit145 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()
24 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>()
29 import com.android.healthconnect.controller.dataentries.units.DistanceUnit65 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()90 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()127 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>()
23 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS24 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES
32 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS
19 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS52 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
16 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS17 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES35 fun convertDistanceFromMeters(unit: DistanceUnit, source: Double): Double { in convertDistanceFromMeters()
25 DistanceUnit.KILOMETERS to R.string.distance_unit_kilometers_label,26 DistanceUnit.MILES to R.string.distance_unit_miles_label,
24 distanceUnit: DistanceUnit?, in convertToDistancePerHour()
22 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.* in <lambda>()94 val newDistanceUnit = DistanceUnit.valueOf(newUnit) in <lambda>()
16 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS17 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES
29 import com.android.healthconnect.controller.dataentries.units.DistanceUnit144 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()
31 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.KILOMETERS32 import com.android.healthconnect.controller.dataentries.units.DistanceUnit.MILES