Home
last modified time | relevance | path

Searched refs:DEFAULT_ENERGY_UNIT (Results 1 – 2 of 2) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitPreferences.kt44 @VisibleForTesting val DEFAULT_ENERGY_UNIT = CALORIE constant
106 setEnergyUnit(DEFAULT_ENERGY_UNIT) in getEnergyUnit()
107 return DEFAULT_ENERGY_UNIT in getEnergyUnit()
110 unitSharedPreference.getString(ENERGY_UNIT_PREF_KEY, DEFAULT_ENERGY_UNIT.toString())!! in getEnergyUnit()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt35 …om.android.healthconnect.controller.dataentries.units.UnitPreferences.Companion.DEFAULT_ENERGY_UNIT
110 onView(withText(getUnitLabel(DEFAULT_ENERGY_UNIT))).check(matches(isDisplayed())) in unitsScreen_showsDefaultSettings()
211 unitPreferences.setEnergyUnit(DEFAULT_ENERGY_UNIT) in setUnitsDefault()