Searched refs:TemperatureUnit (Results 1 – 14 of 14) sorted by relevance
23 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit36 TemperatureUnit.CELSIUS -> R.string.temperatureDelta_celsius in formatSingleDeltaValue()37 TemperatureUnit.FAHRENHEIT -> R.string.temperatureDelta_fahrenheit in formatSingleDeltaValue()38 TemperatureUnit.KELVIN -> R.string.temperatureDelta_kelvin in formatSingleDeltaValue()50 TemperatureUnit.CELSIUS -> R.string.temperatureDelta_average_celsius in formatAverageDeltaValue()51 TemperatureUnit.FAHRENHEIT -> R.string.temperatureDelta_average_fahrenheit in formatAverageDeltaValue()52 TemperatureUnit.KELVIN -> R.string.temperatureDelta_average_kelvin in formatAverageDeltaValue()64 TemperatureUnit.CELSIUS -> R.string.temperatureDelta_celsius_long in formatSingleDeltaA11yValue()65 TemperatureUnit.FAHRENHEIT -> R.string.temperatureDelta_fahrenheit_long in formatSingleDeltaA11yValue()66 TemperatureUnit.KELVIN -> R.string.temperatureDelta_kelvin_long in formatSingleDeltaA11yValue()[all …]
10 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit22 TemperatureUnit.CELSIUS -> R.string.temperature_celsius in formatValue()23 TemperatureUnit.FAHRENHEIT -> R.string.temperature_fahrenheit in formatValue()24 TemperatureUnit.KELVIN -> R.string.temperature_kelvin in formatValue()44 TemperatureUnit.CELSIUS -> R.string.temperature_celsius_long in formatA11tValue()45 TemperatureUnit.FAHRENHEIT -> R.string.temperature_fahrenheit_long in formatA11tValue()46 TemperatureUnit.KELVIN -> R.string.temperature_kelvin_long in formatA11tValue()
22 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit in <lambda>()65 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()77 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in <lambda>()89 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()101 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()119 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in <lambda>()137 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()156 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()174 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in <lambda>()192 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()[all …]
30 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit99 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()132 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()165 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in getRecord_singleDeltaInFahrenheit_formattedCorrectly()198 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in getRecord_multipleDeltaInFahrenheit_formattedCorrectly()231 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()264 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()297 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()321 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()361 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in <lambda>()[all …]
33 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit66 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()84 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()102 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()120 preferences.setTemperatureUnit(TemperatureUnit.KELVIN) in <lambda>()138 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in <lambda>()156 preferences.setTemperatureUnit(TemperatureUnit.FAHRENHEIT) in formatA11yValue_fahrenheit()174 preferences.setTemperatureUnit(TemperatureUnit.CELSIUS) in <lambda>()
28 fun convertFromCelsius(temperatureInCelsius: Double, temperatureUnit: TemperatureUnit): Double { in convertFromCelsius()30 TemperatureUnit.CELSIUS -> temperatureInCelsius in convertFromCelsius()31 TemperatureUnit.FAHRENHEIT -> temperatureInCelsius * 1.8 + 32 in convertFromCelsius()32 TemperatureUnit.KELVIN -> temperatureInCelsius + 273.15 in convertFromCelsius()
23 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit.FAHRENHEIT121 fun getTemperatureUnit(): TemperatureUnit { in getTemperatureUnit()129 return TemperatureUnit.valueOf(unitString) in getTemperatureUnit()132 fun setTemperatureUnit(temperatureUnit: TemperatureUnit) { in setTemperatureUnit()163 enum class TemperatureUnit : UnitPreference { class
34 TemperatureUnit.FAHRENHEIT to R.string.temperature_unit_fahrenheit_label,35 TemperatureUnit.CELSIUS to R.string.temperature_unit_celsius_label,36 TemperatureUnit.KELVIN to R.string.temperature_unit_kelvin_label,
25 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit.CELSIUS in <lambda>()26 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit.FAHRENHEIT in <lambda>()27 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit.KELVIN in <lambda>()124 val newTemperatureUnit = TemperatureUnit.valueOf(newUnit) in <lambda>()
69 assertEquals(LocalePreferences.TemperatureUnit.CELSIUS, unit); in getDefaultUnicodeExtensionData_hasProviderValue_resultIsCelsius()81 assertEquals(LocalePreferences.TemperatureUnit.CELSIUS, unit); in getDefaultUnicodeExtensionData_hasDefaultLocaleSubtag_resultIsCelsius()123 LocalePreferences.TemperatureUnit.FAHRENHEIT); in temperatureUnitsConverter_inputFahrenheit_resultIsFahrenheitString()
32 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit135 unitPreferences.setTemperatureUnit(TemperatureUnit.KELVIN) in unitsScreen_setTemperatureUnit_updatesValue()139 onView(withText(getUnitLabel(TemperatureUnit.KELVIN))).check(matches(isDisplayed())) in unitsScreen_setTemperatureUnit_updatesValue()207 assertThat(unitPreferences.getTemperatureUnit()).isEqualTo(TemperatureUnit.KELVIN) in unitsScreen_modifiesTemperature_updatesValue()
92 case LocalePreferences.TemperatureUnit.CELSIUS: in temperatureUnitsConverter()94 case LocalePreferences.TemperatureUnit.FAHRENHEIT: in temperatureUnitsConverter()
209 LocalePreferences.getTemperatureUnit() == LocalePreferences.TemperatureUnit.CELSIUS in <lambda>()