Home
last modified time | relevance | path

Searched refs:WeightUnit (Results 1 – 11 of 11) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBoneMassFormatterTest.kt24 import com.android.healthconnect.controller.dataentries.units.WeightUnit
61 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
69 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
76 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
84 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
92 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
100 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
107 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
115 preferences.setWeightUnit(WeightUnit.POUND) in formatA11yValue_pound_fraction()
123 preferences.setWeightUnit(WeightUnit.STONE) in <lambda>()
[all …]
DBodyWaterMassFormatterTest.kt24 import com.android.healthconnect.controller.dataentries.units.WeightUnit
60 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
68 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
75 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
83 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
91 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
99 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
106 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
114 preferences.setWeightUnit(WeightUnit.POUND) in formatA11yValue_pound_fraction()
122 preferences.setWeightUnit(WeightUnit.STONE) in <lambda>()
[all …]
DLeanBodyMassFormatterTest.kt24 import com.android.healthconnect.controller.dataentries.units.WeightUnit
61 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
69 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
76 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
84 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
92 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
100 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
107 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
115 preferences.setWeightUnit(WeightUnit.POUND) in formatA11yValue_pound_fraction()
123 preferences.setWeightUnit(WeightUnit.STONE) in <lambda>()
[all …]
DWeightFormatterTest.kt24 import com.android.healthconnect.controller.dataentries.units.WeightUnit
61 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
69 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
76 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
84 preferences.setWeightUnit(WeightUnit.KILOGRAM) in <lambda>()
92 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
100 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
107 preferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
115 preferences.setWeightUnit(WeightUnit.POUND) in formatA11yValue_pound_fraction()
123 preferences.setWeightUnit(WeightUnit.STONE) in <lambda>()
[all …]
DExercisePerformanceGoalFormatterTest.kt43 import com.android.healthconnect.controller.dataentries.units.WeightUnit
76 unitPreferences.setWeightUnit(WeightUnit.POUND) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DMassFormatter.kt10 import com.android.healthconnect.controller.dataentries.units.WeightUnit
11 import com.android.healthconnect.controller.dataentries.units.WeightUnit.POUND
17 fun formatValue(context: Context, mass: Mass, weightUnit: WeightUnit): String { in formatValue()
29 fun formatA11yValue(context: Context, mass: Mass, weightUnit: WeightUnit): String { in formatA11yValue()
43 weightUnit: WeightUnit, in getMassString()
55 WeightUnit.STONE -> { in getMassString()
73 WeightUnit.KILOGRAM -> { in getMassString()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/units/
DWeightConverter.kt36 fun convertFromKilograms(toUnit: WeightUnit, sourceKilograms: Double): Double { in convertFromKilograms()
38 WeightUnit.KILOGRAM -> keepOneDecimal(sourceKilograms) in convertFromKilograms()
39 WeightUnit.POUND -> { in convertFromKilograms()
47 WeightUnit.STONE -> keepOneDecimal(sourceKilograms * STONE_PER_KG) in convertFromKilograms()
58 fun convertFromGrams(toUnit: WeightUnit, sourceGrams: Double): Double { in convertFromGrams()
DUnitPreferences.kt24 import com.android.healthconnect.controller.dataentries.units.WeightUnit.POUND
87 fun getWeightUnit(): WeightUnit { in getWeightUnit()
94 return WeightUnit.valueOf(unitString) in getWeightUnit()
97 fun setWeightUnit(weightUnit: WeightUnit) { in setWeightUnit()
152 enum class WeightUnit : UnitPreference { class
DUnitPreferencesStrings.kt29 WeightUnit.POUND to R.string.weight_unit_pound_label,
30 WeightUnit.KILOGRAM to R.string.weight_unit_kilogram_label,
31 WeightUnit.STONE to R.string.weight_unit_stone_label,
DUnitsFragment.kt34 import com.android.healthconnect.controller.dataentries.units.WeightUnit.KILOGRAM in <lambda>()
35 import com.android.healthconnect.controller.dataentries.units.WeightUnit.POUND in <lambda>()
36 import com.android.healthconnect.controller.dataentries.units.WeightUnit.STONE in <lambda>()
78 val newWeightUnit = WeightUnit.valueOf(newUnit) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DUnitsFragmentTest.kt41 import com.android.healthconnect.controller.dataentries.units.WeightUnit
126 unitPreferences.setWeightUnit(WeightUnit.STONE) in unitsScreen_setWeightUnit_updatesValue()
130 onView(withText(getUnitLabel(WeightUnit.STONE))).check(matches(isDisplayed())) in unitsScreen_setWeightUnit_updatesValue()
187 assertThat(unitPreferences.getWeightUnit()).isEqualTo(WeightUnit.KILOGRAM) in unitsScreen_modifiesWeight_updatesValue()