Home
last modified time | relevance | path

Searched refs:formatA11yValue (Results 1 – 25 of 76) sorted by relevance

1234

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBloodGlucoseFormatterTest.kt83 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
98 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
113 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
121 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
129 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
137 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
145 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
153 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
161 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
169 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
[all …]
DBodyTemperatureFormatterTest.kt87 formatter.formatA11yValue( in <lambda>()
91 formatter.formatA11yValue( in <lambda>()
95 formatter.formatA11yValue( in <lambda>()
123 formatter.formatA11yValue( in <lambda>()
127 formatter.formatA11yValue( in <lambda>()
131 formatter.formatA11yValue( in <lambda>()
159 formatter.formatA11yValue( in formatA11yValue_fahrenheit()
163 formatter.formatA11yValue( in formatA11yValue_fahrenheit()
167 formatter.formatA11yValue( in formatA11yValue_fahrenheit()
DBasalBodyTemperatureFormatterTest.kt87 formatter.formatA11yValue( in <lambda>()
91 formatter.formatA11yValue( in <lambda>()
95 formatter.formatA11yValue( in <lambda>()
123 formatter.formatA11yValue( in <lambda>()
127 formatter.formatA11yValue( in <lambda>()
131 formatter.formatA11yValue( in <lambda>()
159 formatter.formatA11yValue( in formatA11yValue_fahrenheit()
163 formatter.formatA11yValue( in formatA11yValue_fahrenheit()
167 formatter.formatA11yValue( in formatA11yValue_fahrenheit()
DHeightFormatterTest.kt63 assertThat(formatter.formatA11yValue(height, preferences)).isEqualTo("0 centimeters") in <lambda>()
71 assertThat(formatter.formatA11yValue(height, preferences)).isEqualTo("0 feet 0 inches") in <lambda>()
79 assertThat(formatter.formatA11yValue(height, preferences)).isEqualTo("1 centimeter") in <lambda>()
87 assertThat(formatter.formatA11yValue(height, preferences)).isEqualTo("0 feet 0 inches") in <lambda>()
95 assertThat(formatter.formatA11yValue(height, preferences)).isEqualTo("175 centimeters") in <lambda>()
103 assertThat(formatter.formatA11yValue(height, preferences)).isEqualTo("5 feet 9 inches") in <lambda>()
DBoneMassFormatterTest.kt79 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 kilograms") in <lambda>()
87 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.2 kilograms") in <lambda>()
110 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 pounds") in <lambda>()
118 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.4 pounds") in formatA11yValue_pound_fraction()
141 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 stones") in <lambda>()
149 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("2 stones 1.8 pounds") in <lambda>()
DBodyWaterMassFormatterTest.kt78 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 kilograms") in <lambda>()
86 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.2 kilograms") in <lambda>()
109 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 pounds") in <lambda>()
117 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.4 pounds") in formatA11yValue_pound_fraction()
140 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 stones") in <lambda>()
148 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("2 stones 1.8 pounds") in <lambda>()
DLeanBodyMassFormatterTest.kt79 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 kilograms") in <lambda>()
87 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.2 kilograms") in <lambda>()
110 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 pounds") in <lambda>()
118 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.4 pounds") in formatA11yValue_pound_fraction()
141 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 stones") in <lambda>()
149 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("2 stones 1.8 pounds") in <lambda>()
DWeightFormatterTest.kt79 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 kilograms") in <lambda>()
87 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.2 kilograms") in <lambda>()
110 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 pounds") in <lambda>()
118 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0.4 pounds") in formatA11yValue_pound_fraction()
141 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("0 stones") in <lambda>()
149 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("2 stones 1.8 pounds") in <lambda>()
DBloodPressureFormatterTest.kt71 fun formatA11yValue() = runBlocking { in <lambda>() method in com.android.healthconnect.controller.tests.dataentries.formatters.BloodPressureFormatterTest
74 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
91 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
115 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
141 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
DHydrationFormatterTest.kt63 fun formatA11yValue() = runBlocking { in <lambda>() method
64 assertThat(formatter.formatA11yValue(getRecord(12.0), preferences)).isEqualTo("12 liters") in <lambda>()
74 assertThat(formatter.formatA11yValue(getRecord(1.0), preferences)).isEqualTo("1 liter") in <lambda>()
84 assertThat(formatter.formatA11yValue(getRecord(0.3), preferences)).isEqualTo("0.3 liters") in <lambda>()
DSpeedFormatterTest.kt64 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("No data") in <lambda>()
104 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
113 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
122 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
131 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
DVo2MaxFormatterTest.kt68 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
76 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
88 fun formatA11yValue() = runBlocking { in <lambda>() method
91 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
DRespiratoryRateFormatterTest.kt59 assertThat(formatter.formatA11yValue(getRecord(0.0), preferences)) in <lambda>()
66 assertThat(formatter.formatA11yValue(getRecord(1.0), preferences)) in <lambda>()
73 assertThat(formatter.formatA11yValue(getRecord(17.3), preferences)) in <lambda>()
DBodyFatFormatterTest.kt77 assertThat(formatter.formatA11yValue(bodyFat, preferences)).isEqualTo("0 percent") in <lambda>()
83 assertThat(formatter.formatA11yValue(bodyFat, preferences)).isEqualTo("1 percent") in <lambda>()
89 assertThat(formatter.formatA11yValue(bodyFat, preferences)).isEqualTo("32.2 percent") in <lambda>()
DElevationFormatterTest.kt74 assertThat(formatter.formatA11yValue(getRecord(1500.0), preferences)) in <lambda>()
80 assertThat(formatter.formatA11yValue(getRecord(0.3), preferences)).isEqualTo("0.3 meters") in <lambda>()
85 assertThat(formatter.formatA11yValue(getRecord(1.0), preferences)).isEqualTo("1 meter") in testFormatA11yValue_one()
DOxygenSaturationFormatterTest.kt76 assertThat(formatter.formatA11yValue(oxygenSaturation, preferences)).isEqualTo("0 percent") in <lambda>()
82 assertThat(formatter.formatA11yValue(oxygenSaturation, preferences)).isEqualTo("1 percent") in <lambda>()
88 assertThat(formatter.formatA11yValue(oxygenSaturation, preferences)) in <lambda>()
DPowerFormatterTest.kt62 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("No data") in <lambda>()
75 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("10.1 watts") in formatA11yValue_pluralValue_returnsA11yPowerValues()
83 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("1 watt") in formatA11yValue_singleValue_returnsA11yPowerValues()
DCyclingPedalingCadenceFormatterTest.kt63 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("No data") in <lambda>()
77 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
92 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
DNutritionFormatterTest.kt76 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("Caffeine: 32 grams") in <lambda>()
92 assertThat(formatter.formatA11yValue(record, preferences)) in <lambda>()
109 assertThat(formatter.formatA11yValue(record, preferences)).isEqualTo("Energy: 295 calories") in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DBodyWaterMassFormatter.kt23 import com.android.healthconnect.controller.dataentries.formatters.MassFormatter.formatA11yValue
41 override suspend fun formatA11yValue( in formatA11yValue() method in com.android.healthconnect.controller.dataentries.formatters.BodyWaterMassFormatter
45 return formatA11yValue(context, record.bodyWaterMass, unitPreferences.getWeightUnit()) in formatA11yValue()
DDistanceFormatter.kt39 override suspend fun formatA11yValue( in formatA11yValue() method in com.android.healthconnect.controller.dataentries.formatters.DistanceFormatter
43 return LengthFormatter.formatA11yValue(context, record.distance, unitPreferences) in formatA11yValue()
51 return LengthFormatter.formatA11yValue(context, unit, unitPreferences) in formatA11yUnit()
DWeightFormatter.kt34 override suspend fun formatA11yValue( in formatA11yValue() method in com.android.healthconnect.controller.dataentries.formatters.WeightFormatter
38 return MassFormatter.formatA11yValue( in formatA11yValue()
DBoneMassFormatter.kt34 override suspend fun formatA11yValue( in formatA11yValue() method in com.android.healthconnect.controller.dataentries.formatters.BoneMassFormatter
38 return MassFormatter.formatA11yValue(context, record.mass, unitPreferences.getWeightUnit()) in formatA11yValue()
DLeanBodyMassFormatter.kt34 override suspend fun formatA11yValue( in formatA11yValue() method in com.android.healthconnect.controller.dataentries.formatters.LeanBodyMassFormatter
38 return MassFormatter.formatA11yValue(context, record.mass, unitPreferences.getWeightUnit()) in formatA11yValue()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DEntryFormatter.kt38 titleA11y = formatA11yValue(record, unitPreferences), in formatRecord()
44 abstract suspend fun formatA11yValue(record: T, unitPreferences: UnitPreferences): String method

1234