Home
last modified time | relevance | path

Searched refs:EnergyUnit (Results 1 – 8 of 8) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DActiveCaloriesBurnedFormatterTest.kt22 import com.android.healthconnect.controller.dataentries.units.EnergyUnit
55 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
63 preferences.setEnergyUnit(EnergyUnit.KILOJOULE) in <lambda>()
71 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
79 preferences.setEnergyUnit(EnergyUnit.KILOJOULE) in <lambda>()
DTotalCaloriesBurnedFormatterTest.kt22 import com.android.healthconnect.controller.dataentries.units.EnergyUnit
55 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
63 preferences.setEnergyUnit(EnergyUnit.KILOJOULE) in <lambda>()
71 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
79 preferences.setEnergyUnit(EnergyUnit.KILOJOULE) in <lambda>()
DNutritionFormatterTest.kt24 import com.android.healthconnect.controller.dataentries.units.EnergyUnit
81 preferences.setEnergyUnit(EnergyUnit.KILOJOULE) in <lambda>()
89 preferences.setEnergyUnit(EnergyUnit.KILOJOULE) in <lambda>()
98 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
106 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
114 preferences.setEnergyUnit(EnergyUnit.CALORIE) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DEnergyFormatter.kt24 import com.android.healthconnect.controller.dataentries.units.EnergyUnit
25 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.CALORIE
26 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.KILOJOULE
62 energyUnit: EnergyUnit in formatEnergy()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DUnitPreferences.kt20 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.CALORIE
21 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.valueOf
104 fun getEnergyUnit(): EnergyUnit { in getEnergyUnit()
114 fun setEnergyUnit(energyUnit: EnergyUnit) { in setEnergyUnit()
158 enum class EnergyUnit : UnitPreference { class
DUnitPreferencesStrings.kt32 EnergyUnit.CALORIE to R.string.energy_unit_calorie_label,
33 EnergyUnit.KILOJOULE to R.string.energy_unit_kilojoule_label,
DUnitsFragment.kt23 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.* in <lambda>()
109 val newEnergyUnit = EnergyUnit.valueOf(newUnit) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt30 import com.android.healthconnect.controller.dataentries.units.EnergyUnit
153 unitPreferences.setEnergyUnit(EnergyUnit.KILOJOULE) in unitsScreen_setEnergyUnit_updatesValue()
157 onView(withText(getUnitLabel(EnergyUnit.KILOJOULE))).check(matches(isDisplayed())) in unitsScreen_setEnergyUnit_updatesValue()
197 assertThat(unitPreferences.getEnergyUnit()).isEqualTo(EnergyUnit.KILOJOULE) in unitsScreen_modifiesEnergy_updatesValue()