Home
last modified time | relevance | path

Searched refs:getEnergyUnit (Results 1 – 4 of 4) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DEnergyFormatter.kt38 when (unitPreferences.getEnergyUnit()) { in formatEnergyValue()
42 return formatEnergy(context, res, energy, unitPreferences.getEnergyUnit()) in formatEnergyValue()
51 when (unitPreferences.getEnergyUnit()) { in formatEnergyA11yValue()
55 return formatEnergy(context, res, energy, unitPreferences.getEnergyUnit()) in formatEnergyA11yValue()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitPreferences.kt104 fun getEnergyUnit(): EnergyUnit { in getEnergyUnit() method in com.android.healthconnect.controller.dataentries.units.UnitPreferences
DUnitsFragment.kt108 unitsPreferences.getEnergyUnit().toString()) { newUnit -> in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt197 assertThat(unitPreferences.getEnergyUnit()).isEqualTo(EnergyUnit.KILOJOULE) in unitsScreen_modifiesEnergy_updatesValue()