Home
last modified time | relevance | path

Searched refs:HeightUnit (Results 1 – 7 of 7) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitPreferences.kt22 import com.android.healthconnect.controller.dataentries.units.HeightUnit.CENTIMETERS
70 fun getHeightUnit(): HeightUnit { in getHeightUnit()
77 return HeightUnit.valueOf(unitString) in getHeightUnit()
80 fun setHeightUnit(heightUnit: HeightUnit) { in setHeightUnit()
147 enum class HeightUnit : UnitPreference { class
DLengthConverter.kt18 import com.android.healthconnect.controller.dataentries.units.HeightUnit.CENTIMETERS
19 import com.android.healthconnect.controller.dataentries.units.HeightUnit.FEET
49 fun convertHeightFromMeters(unit: HeightUnit, sourceMeters: Double) : Double { in convertHeightFromMeters()
DUnitPreferencesStrings.kt27 HeightUnit.CENTIMETERS to R.string.height_unit_centimeters_label,
28 HeightUnit.FEET to R.string.height_unit_feet_label,
DUnitsFragment.kt24 import com.android.healthconnect.controller.dataentries.units.HeightUnit.* in <lambda>()
63 val newHeightUnit = HeightUnit.valueOf(newUnit) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DHeightFormatter.kt25 import com.android.healthconnect.controller.dataentries.units.HeightUnit
26 import com.android.healthconnect.controller.dataentries.units.HeightUnit.CENTIMETERS
27 import com.android.healthconnect.controller.dataentries.units.HeightUnit.FEET
73 heightUnit: HeightUnit, in formatHeight()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt31 import com.android.healthconnect.controller.dataentries.units.HeightUnit
117 unitPreferences.setHeightUnit(HeightUnit.FEET) in unitsScreen_setHeightUnit_updatesValue()
121 onView(withText(getUnitLabel(HeightUnit.FEET))).check(matches(isDisplayed())) in unitsScreen_setHeightUnit_updatesValue()
167 assertThat(unitPreferences.getHeightUnit()).isEqualTo(HeightUnit.FEET) in unitsScreen_modifiesHeight_updatesValue()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DHeightFormatterTest.kt23 import com.android.healthconnect.controller.dataentries.units.HeightUnit.CENTIMETERS
24 import com.android.healthconnect.controller.dataentries.units.HeightUnit.FEET