Home
last modified time | relevance | path

Searched refs:getUnitLabel (Results 1 – 3 of 3) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt39 import com.android.healthconnect.controller.dataentries.units.UnitPreferencesStrings.getUnitLabel
108 onView(withText(getUnitLabel(DEFAULT_HEIGHT_UNIT))).check(matches(isDisplayed())) in unitsScreen_showsDefaultSettings()
109 onView(withText(getUnitLabel(DEFAULT_DISTANCE_UNIT))).check(matches(isDisplayed())) in unitsScreen_showsDefaultSettings()
110 onView(withText(getUnitLabel(DEFAULT_ENERGY_UNIT))).check(matches(isDisplayed())) in unitsScreen_showsDefaultSettings()
111 onView(withText(getUnitLabel(DEFAULT_TEMPERATURE_UNIT))).check(matches(isDisplayed())) in unitsScreen_showsDefaultSettings()
112 onView(withText(getUnitLabel(DEFAULT_WEIGHT_UNIT))).check(matches(isDisplayed())) in unitsScreen_showsDefaultSettings()
121 onView(withText(getUnitLabel(HeightUnit.FEET))).check(matches(isDisplayed())) in unitsScreen_setHeightUnit_updatesValue()
130 onView(withText(getUnitLabel(WeightUnit.STONE))).check(matches(isDisplayed())) in unitsScreen_setWeightUnit_updatesValue()
139 onView(withText(getUnitLabel(TemperatureUnit.KELVIN))).check(matches(isDisplayed())) in unitsScreen_setTemperatureUnit_updatesValue()
148 onView(withText(getUnitLabel(DistanceUnit.MILES))).check(matches(isDisplayed())) in unitsScreen_setDistanceUnit_updatesValue()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitsFragment.kt33 import com.android.healthconnect.controller.dataentries.units.UnitPreferencesStrings.getUnitLabel in <lambda>()
173 return entries.map { getString(getUnitLabel(it)) }.toTypedArray() in <lambda>()
DUnitPreferencesStrings.kt40 fun getUnitLabel(unit: UnitPreference): Int { in getUnitLabel() method