Home
last modified time | relevance | path

Searched refs:formatValue (Results 1 – 25 of 81) sorted by relevance

1234

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DBodyTemperatureFormatterTest.kt69 formatter.formatValue( in <lambda>()
73 formatter.formatValue( in <lambda>()
77 formatter.formatValue( in <lambda>()
105 formatter.formatValue( in <lambda>()
109 formatter.formatValue( in <lambda>()
113 formatter.formatValue( in <lambda>()
141 formatter.formatValue( in <lambda>()
145 formatter.formatValue( in <lambda>()
149 formatter.formatValue( in <lambda>()
176 assertThat(formatter.formatValue(getRecord(MEASUREMENT_LOCATION_EAR, 1.0), preferences)) in <lambda>()
[all …]
DBasalBodyTemperatureFormatterTest.kt69 formatter.formatValue( in <lambda>()
73 formatter.formatValue( in <lambda>()
77 formatter.formatValue( in <lambda>()
105 formatter.formatValue( in <lambda>()
109 formatter.formatValue( in <lambda>()
113 formatter.formatValue( in <lambda>()
141 formatter.formatValue( in <lambda>()
145 formatter.formatValue( in <lambda>()
149 formatter.formatValue( in <lambda>()
176 assertThat(formatter.formatValue(getRecord(MEASUREMENT_LOCATION_EAR, 1.0), preferences)) in <lambda>()
[all …]
DVo2MaxFormatterTest.kt61 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 mL/(kg·min)") in <lambda>()
81 fun formatValue() = runBlocking { in <lambda>() method in com.android.healthconnect.controller.tests.dataentries.formatters.Vo2MaxFormatterTest
84 assertThat(formatter.formatValue(record, preferences)).isEqualTo("17.3 mL/(kg·min)") in <lambda>()
99 assertThat(formatter.formatValue(record, preferences)) in formatValue_hrRation_showsMethod()
107 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
115 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
123 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
131 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
DHeightFormatterTest.kt62 assertThat(formatter.formatValue(height, preferences)).isEqualTo("0 cm") in <lambda>()
70 assertThat(formatter.formatValue(height, preferences)).isEqualTo("0′0″") in <lambda>()
78 assertThat(formatter.formatValue(height, preferences)).isEqualTo("1 cm") in <lambda>()
86 assertThat(formatter.formatValue(height, preferences)).isEqualTo("0′0″") in <lambda>()
94 assertThat(formatter.formatValue(height, preferences)).isEqualTo("175 cm") in <lambda>()
102 assertThat(formatter.formatValue(height, preferences)).isEqualTo("5′9″") in <lambda>()
DBoneMassFormatterTest.kt64 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 kg") in <lambda>()
72 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.2 kg") in <lambda>()
95 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 lb") in <lambda>()
103 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.4 lb") in <lambda>()
126 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 st") in <lambda>()
134 assertThat(formatter.formatValue(record, preferences)).isEqualTo("2 st 1.8 lb") in <lambda>()
DBodyWaterMassFormatterTest.kt63 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 kg") in <lambda>()
71 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.2 kg") in <lambda>()
94 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 lb") in <lambda>()
102 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.4 lb") in <lambda>()
125 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 st") in <lambda>()
133 assertThat(formatter.formatValue(record, preferences)).isEqualTo("2 st 1.8 lb") in <lambda>()
DLeanBodyMassFormatterTest.kt64 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 kg") in <lambda>()
72 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.2 kg") in <lambda>()
95 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 lb") in <lambda>()
103 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.4 lb") in <lambda>()
126 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 st") in <lambda>()
134 assertThat(formatter.formatValue(record, preferences)).isEqualTo("2 st 1.8 lb") in <lambda>()
DWeightFormatterTest.kt64 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 kg") in <lambda>()
72 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.2 kg") in <lambda>()
95 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 lb") in <lambda>()
103 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0.4 lb") in <lambda>()
126 assertThat(formatter.formatValue(record, preferences)).isEqualTo("0 st") in <lambda>()
134 assertThat(formatter.formatValue(record, preferences)).isEqualTo("2 st 1.8 lb") in <lambda>()
DCervicalMucusFormatterTest.kt70 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Dry") in <lambda>()
77 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Sticky") in <lambda>()
84 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Creamy") in <lambda>()
90 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Watery") in <lambda>()
96 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Egg white") in <lambda>()
DFloorsFormatterTest.kt57 fun formatValue() = runBlocking { in <lambda>() method
58 assertThat(formatter.formatValue(getRecord(4.0), preferences)).isEqualTo("4 floors") in <lambda>()
63 assertThat(formatter.formatValue(getRecord(1.0), preferences)).isEqualTo("1 floor") in <lambda>()
68 assertThat(formatter.formatValue(getRecord(1234.0), preferences)).isEqualTo("1,234 floors") in <lambda>()
DBloodPressureFormatterTest.kt64 fun formatValue() = runBlocking { in <lambda>() method in com.android.healthconnect.controller.tests.dataentries.formatters.BloodPressureFormatterTest
67 assertThat(formatter.formatValue(record, preferences)).isEqualTo("123/82 mmHg") in <lambda>()
83 assertThat(formatter.formatValue(record, preferences)).isEqualTo("123/82 mmHg Standing up") in <lambda>()
103 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
128 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
DHydrationFormatterTest.kt58 fun formatValue() = runBlocking { in <lambda>() method in com.android.healthconnect.controller.tests.dataentries.formatters.HydrationFormatterTest
59 assertThat(formatter.formatValue(getRecord(12.0), preferences)).isEqualTo("12 L") in <lambda>()
69 assertThat(formatter.formatValue(getRecord(1.0), preferences)).isEqualTo("1 L") in <lambda>()
79 assertThat(formatter.formatValue(getRecord(0.3), preferences)).isEqualTo("0.3 L") in <lambda>()
DNutritionFormatterTest.kt62 assertThat(formatter.formatValue(record, preferences)).isEqualTo("-") in formatValue_noData()
69 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Caffeine: 32 g") in <lambda>()
84 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Energy: 5,165 kJ") in <lambda>()
101 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Energy: 295 Cal") in <lambda>()
161 assertThat(formatter.formatValue(record, preferences)) in <lambda>()
DSpeedFormatterTest.kt63 assertThat(formatter.formatValue(record, preferences)).isEqualTo("No data") in <lambda>()
72 assertThat(formatter.formatValue(record, preferences)).isEqualTo("43.2 km/h") in <lambda>()
80 assertThat(formatter.formatValue(record, preferences)).isEqualTo("32.16 km/h") in <lambda>()
88 assertThat(formatter.formatValue(record, preferences)).isEqualTo("26.843 mph") in <lambda>()
96 assertThat(formatter.formatValue(record, preferences)).isEqualTo("19.983 mph") in <lambda>()
DStepsCadenceFormatterTest.kt60 assertThat(formatter.formatValue(record, preferences)).isEqualTo("No data") in <lambda>()
72 assertThat(formatter.formatValue(record, preferences)).isEqualTo("1 step/min") in <lambda>()
78 assertThat(formatter.formatValue(record, preferences)).isEqualTo("10.3 steps/min") in <lambda>()
84 assertThat(formatter.formatValue(record, preferences)).isEqualTo("15.2 steps/min") in <lambda>()
DRespiratoryRateFormatterTest.kt58 assertThat(formatter.formatValue(getRecord(0.0), preferences)).isEqualTo("0 rpm") in <lambda>()
65 assertThat(formatter.formatValue(getRecord(1.0), preferences)).isEqualTo("1 rpm") in <lambda>()
72 assertThat(formatter.formatValue(getRecord(17.3), preferences)).isEqualTo("17 rpm") in <lambda>()
DBodyFatFormatterTest.kt59 assertThat(formatter.formatValue(bodyFat, preferences)).isEqualTo("0%") in <lambda>()
65 assertThat(formatter.formatValue(bodyFat, preferences)).isEqualTo("1%") in <lambda>()
71 assertThat(formatter.formatValue(bodyFat, preferences)).isEqualTo("32.2%") in <lambda>()
DMenstruationFlowFormatterTest.kt65 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Heavy flow") in <lambda>()
72 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Medium flow") in <lambda>()
79 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Light flow") in <lambda>()
DSexualActivityFormatterTest.kt64 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Protected") in <lambda>()
71 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Unprotected") in <lambda>()
78 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Sexual activity") in <lambda>()
DElevationFormatterTest.kt59 assertThat(formatter.formatValue(getRecord(1500.0), preferences)).isEqualTo("1,500 m") in <lambda>()
64 assertThat(formatter.formatValue(getRecord(0.3), preferences)).isEqualTo("0.3 m") in <lambda>()
69 assertThat(formatter.formatValue(getRecord(1.0), preferences)).isEqualTo("1 m") in <lambda>()
DOvulationTestFormatterTest.kt64 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Positive") in <lambda>()
71 assertThat(formatter.formatValue(record, preferences)).isEqualTo("Negative") in <lambda>()
78 assertThat(formatter.formatValue(record, preferences)).isEqualTo("High") in <lambda>()
DOxygenSaturationFormatterTest.kt58 assertThat(formatter.formatValue(oxygenSaturation, preferences)).isEqualTo("0%") in <lambda>()
64 assertThat(formatter.formatValue(oxygenSaturation, preferences)).isEqualTo("1%") in <lambda>()
70 assertThat(formatter.formatValue(oxygenSaturation, preferences)).isEqualTo("32.2%") in <lambda>()
DCyclingPedalingCadenceFormatterTest.kt62 assertThat(formatter.formatValue(record, preferences)).isEqualTo("No data") in <lambda>()
70 assertThat(formatter.formatValue(record, preferences)).isEqualTo("40 rpm") in <lambda>()
85 assertThat(formatter.formatValue(record, preferences)).isEqualTo("23 rpm - 43 rpm") in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DBodyWaterMassFormatter.kt24 import com.android.healthconnect.controller.dataentries.formatters.MassFormatter.formatValue
34 override suspend fun formatValue( in formatValue() method in com.android.healthconnect.controller.dataentries.formatters.BodyWaterMassFormatter
38 return formatValue(context, record.bodyWaterMass, unitPreferences.getWeightUnit()) in formatValue()
DDistanceFormatter.kt32 override suspend fun formatValue( in formatValue() method in com.android.healthconnect.controller.dataentries.formatters.DistanceFormatter
36 return LengthFormatter.formatValue(context, record.distance, unitPreferences) in formatValue()
47 return LengthFormatter.formatValue(context, unit, unitPreferences) in formatUnit()

1234