Searched refs:EnergyUnit (Results 1 – 8 of 8) sorted by relevance
22 import com.android.healthconnect.controller.dataentries.units.EnergyUnit55 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>()
24 import com.android.healthconnect.controller.dataentries.units.EnergyUnit81 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>()
24 import com.android.healthconnect.controller.dataentries.units.EnergyUnit25 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.CALORIE26 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.KILOJOULE62 energyUnit: EnergyUnit in formatEnergy()
20 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.CALORIE21 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.valueOf104 fun getEnergyUnit(): EnergyUnit { in getEnergyUnit()114 fun setEnergyUnit(energyUnit: EnergyUnit) { in setEnergyUnit()158 enum class EnergyUnit : UnitPreference { class
32 EnergyUnit.CALORIE to R.string.energy_unit_calorie_label,33 EnergyUnit.KILOJOULE to R.string.energy_unit_kilojoule_label,
23 import com.android.healthconnect.controller.dataentries.units.EnergyUnit.* in <lambda>()109 val newEnergyUnit = EnergyUnit.valueOf(newUnit) in <lambda>()
30 import com.android.healthconnect.controller.dataentries.units.EnergyUnit153 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()