Home
last modified time | relevance | path

Searched refs:TemperatureUnit (Results 1 – 14 of 14) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DTemperatureDeltaFormatter.kt23 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit
36 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 …]
DTemperatureFormatter.kt10 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit
22 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()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DTemperatureDeltaFormatterTest.kt22 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 …]
DSkinTemperatureFormatterTest.kt30 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit
99 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 …]
DBodyTemperatureFormatterTest.kt33 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit
66 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>()
DBasalBodyTemperatureFormatterTest.kt33 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit
66 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>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DTemperatureConverter.kt28 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()
DUnitPreferences.kt23 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit.FAHRENHEIT
121 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
DUnitPreferencesStrings.kt34 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,
DUnitsFragment.kt25 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>()
/packages/apps/Settings/tests/unit/src/com/android/settings/regionalpreferences/
DRegionalPreferencesDataUtilsTest.java69 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()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt32 import com.android.healthconnect.controller.dataentries.units.TemperatureUnit
135 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()
/packages/apps/Settings/src/com/android/settings/regionalpreferences/
DRegionalPreferencesDataUtils.java92 case LocalePreferences.TemperatureUnit.CELSIUS: in temperatureUnitsConverter()
94 case LocalePreferences.TemperatureUnit.FAHRENHEIT: in temperatureUnitsConverter()
/packages/apps/ThemePicker/src/com/android/customization/picker/clock/ui/view/
DClockViewFactoryImpl.kt209 LocalePreferences.getTemperatureUnit() == LocalePreferences.TemperatureUnit.CELSIUS in <lambda>()