/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/ |
D | SpeedFormatter.kt | 52 unitPreferences: UnitPreferences in formatRecord() 58 title = formatValue(record, unitPreferences), in formatRecord() 59 titleA11y = formatA11yValue(record, unitPreferences), in formatRecord() 65 unitPreferences: UnitPreferences in formatValue() 67 val res = getUnitRes(unitPreferences) in formatValue() 68 return formatRecord(res, record.samples, unitPreferences) in formatValue() 73 unitPreferences: UnitPreferences in formatA11yValue() 75 val res = getA11yUnitRes(unitPreferences) in formatA11yValue() 76 return formatRecord(res, record.samples, unitPreferences) in formatA11yValue() 82 .map { formatSample(record.metadata.id, it, unitPreferences) } in formatRecordDetails() [all …]
|
D | PlannedExerciseStepFormatter.kt | 39 fun formatStep(step: PlannedExerciseStep, unitPreferences: UnitPreferences): FormattedEntry { in <lambda>() 42 title = formatStepTitle(step, unitPreferences), in <lambda>() 43 titleA11y = formatStepTitleA11y(step, unitPreferences)) in <lambda>() 48 unitPreferences: UnitPreferences in <lambda>() 60 performanceGoal, unitPreferences, step.exerciseType)) in <lambda>() 68 unitPreferences: UnitPreferences in <lambda>() 74 formatCompletionGoal(completionGoal, unitPreferences), in <lambda>() 80 unitPreferences: UnitPreferences in <lambda>() 86 formatCompletionGoalA11y(completionGoal, unitPreferences), in <lambda>() 92 unitPreferences: UnitPreferences in <lambda>() [all …]
|
D | TemperatureDeltaFormatter.kt | 32 unitPreferences: UnitPreferences in formatSingleDeltaValue() 35 when (unitPreferences.getTemperatureUnit()) { in formatSingleDeltaValue() 40 return formatTemperatureDelta(context, res, temperatureDelta, unitPreferences) in formatSingleDeltaValue() 46 unitPreferences: UnitPreferences in formatAverageDeltaValue() 49 when (unitPreferences.getTemperatureUnit()) { in formatAverageDeltaValue() 54 return formatTemperatureDelta(context, res, temperatureDelta, unitPreferences) in formatAverageDeltaValue() 60 unitPreferences: UnitPreferences in formatSingleDeltaA11yValue() 63 when (unitPreferences.getTemperatureUnit()) { in formatSingleDeltaA11yValue() 68 return formatTemperatureDelta(context, res, temperatureDelta, unitPreferences) in formatSingleDeltaA11yValue() 74 unitPreferences: UnitPreferences in formatAverageDeltaA11yValue() [all …]
|
D | SkinTemperatureFormatter.kt | 50 unitPreferences: UnitPreferences in formatRecord() 56 title = formatValue(record, unitPreferences), in formatRecord() 57 titleA11y = formatA11yValue(record, unitPreferences), in formatRecord() 99 .map { formatDelta(record.metadata.id, it, unitPreferences) } in formatRecordDetails() 116 context, temperature, MEASUREMENT_LOCATION_UNKNOWN, unitPreferences) in formatNullableTemperature() 119 context, temperature, MEASUREMENT_LOCATION_UNKNOWN, unitPreferences) in formatNullableTemperature() 126 unitPreferences: UnitPreferences in formatDelta() 134 context, delta.delta, unitPreferences), in formatDelta() 137 context, delta.delta, unitPreferences)) in formatDelta() 142 unitPreferences: UnitPreferences, in formatValue() [all …]
|
D | ExercisePerformanceGoalFormatter.kt | 48 unitPreferences: UnitPreferences, in formatGoal() 53 title = formatPerformanceGoal(goal, unitPreferences, exerciseSegmentType), in formatGoal() 54 titleA11y = formatPerformanceGoalA11y(goal, unitPreferences, exerciseSegmentType)) in formatGoal() 59 unitPreferences: UnitPreferences, in formatPerformanceGoal() 100 performanceGoal.maxSpeed, unitPreferences, exerciseSegmentType), in formatPerformanceGoal() 102 performanceGoal.minSpeed, unitPreferences, exerciseSegmentType)) in formatPerformanceGoal() 107 performanceGoal.minSpeed, unitPreferences, exerciseSegmentType), in formatPerformanceGoal() 109 performanceGoal.maxSpeed, unitPreferences, exerciseSegmentType)) in formatPerformanceGoal() 121 context, performanceGoal.mass, unitPreferences.getWeightUnit()) in formatPerformanceGoal() 133 unitPreferences: UnitPreferences, in formatPerformanceGoalA11y() [all …]
|
D | TemperatureFormatter.kt | 18 unitPreferences: UnitPreferences in formatValue() 21 when (unitPreferences.getTemperatureUnit()) { in formatValue() 27 val tempString = formatTemperature(context, res, temperature, unitPreferences) in formatValue() 40 unitPreferences: UnitPreferences in formatA11tValue() 43 when (unitPreferences.getTemperatureUnit()) { in formatA11tValue() 49 val tempString = formatTemperature(context, res, temperature, unitPreferences) in formatA11tValue() 83 unitPreferences: UnitPreferences in formatTemperature() 87 temperature.inCelsius, unitPreferences.getTemperatureUnit()) in formatTemperature()
|
D | DistanceFormatter.kt | 34 unitPreferences: UnitPreferences in formatValue() 36 return LengthFormatter.formatValue(context, record.distance, unitPreferences) in formatValue() 41 unitPreferences: UnitPreferences in formatA11yValue() 43 return LengthFormatter.formatA11yValue(context, record.distance, unitPreferences) in formatA11yValue() 47 return LengthFormatter.formatValue(context, unit, unitPreferences) in formatUnit() 51 return LengthFormatter.formatA11yValue(context, unit, unitPreferences) in formatA11yUnit()
|
D | TotalCaloriesBurnedFormatter.kt | 37 unitPreferences: UnitPreferences in formatValue() 39 return formatEnergyValue(context, record.energy, unitPreferences) in formatValue() 44 unitPreferences: UnitPreferences in formatA11yValue() 46 return formatEnergyA11yValue(context, record.energy, unitPreferences) in formatA11yValue() 50 return formatEnergyValue(context, unit, unitPreferences) in formatUnit() 54 return formatEnergyA11yValue(context, unit, unitPreferences) in formatA11yUnit()
|
D | EnergyFormatter.kt | 35 unitPreferences: UnitPreferences in formatEnergyValue() 38 when (unitPreferences.getEnergyUnit()) { in formatEnergyValue() 42 return formatEnergy(context, res, energy, unitPreferences.getEnergyUnit()) in formatEnergyValue() 48 unitPreferences: UnitPreferences in formatEnergyA11yValue() 51 when (unitPreferences.getEnergyUnit()) { in formatEnergyA11yValue() 55 return formatEnergy(context, res, energy, unitPreferences.getEnergyUnit()) in formatEnergyA11yValue()
|
D | WeightFormatter.kt | 29 unitPreferences: UnitPreferences in formatValue() 31 return MassFormatter.formatValue(context, record.weight, unitPreferences.getWeightUnit()) in formatValue() 36 unitPreferences: UnitPreferences in formatA11yValue() 39 context, record.weight, unitPreferences.getWeightUnit()) in formatA11yValue()
|
D | BoneMassFormatter.kt | 29 unitPreferences: UnitPreferences in formatValue() 31 return MassFormatter.formatValue(context, record.mass, unitPreferences.getWeightUnit()) in formatValue() 36 unitPreferences: UnitPreferences in formatA11yValue() 38 return MassFormatter.formatA11yValue(context, record.mass, unitPreferences.getWeightUnit()) in formatA11yValue()
|
D | LeanBodyMassFormatter.kt | 29 unitPreferences: UnitPreferences in formatValue() 31 return MassFormatter.formatValue(context, record.mass, unitPreferences.getWeightUnit()) in formatValue() 36 unitPreferences: UnitPreferences in formatA11yValue() 38 return MassFormatter.formatA11yValue(context, record.mass, unitPreferences.getWeightUnit()) in formatA11yValue()
|
D | BasalBodyTemperatureFormatter.kt | 35 unitPreferences: UnitPreferences in formatValue() 38 context, record.temperature, record.measurementLocation, unitPreferences) in formatValue() 43 unitPreferences: UnitPreferences in formatA11yValue() 46 context, record.temperature, record.measurementLocation, unitPreferences) in formatA11yValue()
|
D | BodyTemperatureFormatter.kt | 35 unitPreferences: UnitPreferences in formatValue() 38 context, record.temperature, record.measurementLocation, unitPreferences) in formatValue() 43 unitPreferences: UnitPreferences in formatA11yValue() 46 context, record.temperature, record.measurementLocation, unitPreferences) in formatA11yValue()
|
D | BodyWaterMassFormatter.kt | 36 unitPreferences: UnitPreferences in formatValue() 38 return formatValue(context, record.bodyWaterMass, unitPreferences.getWeightUnit()) in formatValue() 43 unitPreferences: UnitPreferences in formatA11yValue() 45 return formatA11yValue(context, record.bodyWaterMass, unitPreferences.getWeightUnit()) in formatA11yValue()
|
D | ActiveCaloriesBurnedFormatter.kt | 36 unitPreferences: UnitPreferences in formatValue() 38 return formatEnergyValue(context, record.energy, unitPreferences) in formatValue() 43 unitPreferences: UnitPreferences in formatA11yValue() 45 return formatEnergyA11yValue(context, record.energy, unitPreferences) in formatA11yValue()
|
D | StepsCadenceFormatter.kt | 42 unitPreferences: UnitPreferences in formatRecord() 48 title = formatValue(record, unitPreferences), in formatRecord() 49 titleA11y = formatA11yValue(record, unitPreferences), in formatRecord() 56 unitPreferences: UnitPreferences in formatValue() 64 unitPreferences: UnitPreferences in formatA11yValue()
|
D | CyclingPedalingCadenceFormatter.kt | 44 unitPreferences: UnitPreferences in <lambda>() 50 title = formatValue(record, unitPreferences), in <lambda>() 51 titleA11y = formatA11yValue(record, unitPreferences), in <lambda>() 57 unitPreferences: UnitPreferences in <lambda>() 66 unitPreferences: UnitPreferences in <lambda>()
|
D | PowerFormatter.kt | 45 unitPreferences: UnitPreferences in <lambda>() 51 title = formatValue(record, unitPreferences), in <lambda>() 52 titleA11y = formatA11yValue(record, unitPreferences), in <lambda>() 58 unitPreferences: UnitPreferences in <lambda>() 65 unitPreferences: UnitPreferences in <lambda>()
|
D | HeartRateFormatter.kt | 43 unitPreferences: UnitPreferences in <lambda>() 49 title = formatValue(record, unitPreferences), in <lambda>() 50 titleA11y = formatA11yValue(record, unitPreferences), in <lambda>() 56 unitPreferences: UnitPreferences in <lambda>() 69 unitPreferences: UnitPreferences in <lambda>()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/formatters/ |
D | ExercisePerformanceGoalFormatterTest.kt | 62 @Inject lateinit var unitPreferences: UnitPreferences variable in com.android.healthconnect.controller.tests.dataentries.formatters.ExercisePerformanceGoalFormatterTest 76 unitPreferences.setWeightUnit(WeightUnit.POUND) in <lambda>() 80 unitPreferences = unitPreferences, in <lambda>() 92 unitPreferences = unitPreferences, in <lambda>() 106 unitPreferences = unitPreferences, in <lambda>() 120 unitPreferences = unitPreferences, in <lambda>() 134 unitPreferences = unitPreferences, in <lambda>() 145 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>() 150 unitPreferences = unitPreferences, in <lambda>() 162 unitPreferences.setDistanceUnit(DistanceUnit.KILOMETERS) in <lambda>() [all …]
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/ |
D | LengthFormatter.kt | 32 fun formatValue(context: Context, length: Length?, unitPreferences: UnitPreferences): String { in formatValue() 37 when (unitPreferences.getDistanceUnit()) { in formatValue() 41 return formatSample(context, res, length, unitPreferences) in formatValue() 47 unitPreferences: UnitPreferences in formatA11yValue() 53 when (unitPreferences.getDistanceUnit()) { in formatA11yValue() 57 return formatSample(context, res, length, unitPreferences) in formatA11yValue() 64 unitPreferences: UnitPreferences in formatSample() 68 unitPreferences.getDistanceUnit(), length.inMeters) in formatSample()
|
D | EntryFormatter.kt | 31 unitPreferences: UnitPreferences in formatRecord() 37 title = formatValue(record, unitPreferences), in formatRecord() 38 titleA11y = formatA11yValue(record, unitPreferences), in formatRecord() 42 abstract suspend fun formatValue(record: T, unitPreferences: UnitPreferences): String 44 abstract suspend fun formatA11yValue(record: T, unitPreferences: UnitPreferences): String
|
D | BaseFormatter.kt | 31 protected val unitPreferences = UnitPreferences(context) constant 38 unitPreferences = unitPreferences) in format() 45 unitPreferences: UnitPreferences in formatRecord()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/ |
D | UnitsFragmentTest.kt | 66 @Inject lateinit var unitPreferences: UnitPreferences variable in com.android.healthconnect.controller.tests.dataentries.units.UnitsFragmentTest 117 unitPreferences.setHeightUnit(HeightUnit.FEET) in unitsScreen_setHeightUnit_updatesValue() 126 unitPreferences.setWeightUnit(WeightUnit.STONE) in unitsScreen_setWeightUnit_updatesValue() 135 unitPreferences.setTemperatureUnit(TemperatureUnit.KELVIN) in unitsScreen_setTemperatureUnit_updatesValue() 144 unitPreferences.setDistanceUnit(DistanceUnit.MILES) in unitsScreen_setDistanceUnit_updatesValue() 153 unitPreferences.setEnergyUnit(EnergyUnit.KILOJOULE) in unitsScreen_setEnergyUnit_updatesValue() 167 assertThat(unitPreferences.getHeightUnit()).isEqualTo(HeightUnit.FEET) in unitsScreen_modifiesHeight_updatesValue() 177 assertThat(unitPreferences.getDistanceUnit()).isEqualTo(DistanceUnit.MILES) in unitsScreen_modifiesDistance_updatesValue() 187 assertThat(unitPreferences.getWeightUnit()).isEqualTo(WeightUnit.KILOGRAM) in unitsScreen_modifiesWeight_updatesValue() 197 assertThat(unitPreferences.getEnergyUnit()).isEqualTo(EnergyUnit.KILOJOULE) in unitsScreen_modifiesEnergy_updatesValue() [all …]
|