Home
last modified time | relevance | path

Searched refs:formatUnit (Results 1 – 10 of 10) sorted by relevance

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DStepsFormatter.kt38 return formatUnit(record.count) in formatValue()
48 override fun formatUnit(unit: Long): String { in formatUnit() method in com.android.healthconnect.controller.dataentries.formatters.StepsFormatter
53 return formatUnit(unit) in formatA11yUnit()
DSkinTemperatureFormatter.kt145 formatUnit(record.deltas.first().delta) in formatValue()
162 override fun formatUnit(unit: TemperatureDelta): String { in formatUnit() method in com.android.healthconnect.controller.dataentries.formatters.SkinTemperatureFormatter
DDistanceFormatter.kt46 override fun formatUnit(unit: Length): String { in formatUnit() method in com.android.healthconnect.controller.dataentries.formatters.DistanceFormatter
DTotalCaloriesBurnedFormatter.kt49 override fun formatUnit(unit: Energy): String { in formatUnit() method in com.android.healthconnect.controller.dataentries.formatters.TotalCaloriesBurnedFormatter
DPlannedExerciseStepFormatter.kt100 StepsFormatter(context).formatUnit(completionGoal.steps.toLong()) in <lambda>()
DSleepSessionFormatter.kt79 override fun formatUnit(unit: Long): String { in <lambda>() method in com.android.healthconnect.controller.dataentries.formatters.SleepSessionFormatter
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DLoadDataAggregationsUseCase.kt133 aggregation = stepsFormatter.formatUnit(aggregationResult as Long), in <lambda>()
140 totalCaloriesBurnedFormatter.formatUnit(aggregationResult as Energy), in <lambda>()
147 aggregation = distanceFormatter.formatUnit(aggregationResult as Length), in <lambda>()
154 aggregation = sleepFormatter.formatUnit(aggregationResult as Long), in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/entries/api/
DLoadDataAggregationsUseCase.kt161 aggregation = stepsFormatter.formatUnit(aggregationResult), in <lambda>()
166 aggregation = sleepSessionFormatter.formatUnit(aggregationResult), in <lambda>()
177 aggregation = totalCaloriesBurnedFormatter.formatUnit(aggregationResult), in <lambda>()
183 aggregation = distanceFormatter.formatUnit(aggregationResult), in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DUnitFormatter.kt23 fun formatUnit(unit: T): String method
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/
DSleepSessionFormatterTest.kt174 assertThat(formatter.formatUnit(totalSleepTime)).isEqualTo("10h 54m") in formatUnit_showsAmountOfSleep()