Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7faa170f authored by Jordan Jozwiak's avatar Jordan Jozwiak
Browse files

Add config for tire pressure display units

Bug: 154751939
Test: aae app vhal apply google
// verify property included in dump
adb -s c3139966 shell dumpsys activity service com.android.car get-carpropertyconfig | grep TIRE_PRESSURE_DISPLAY_UNITS -A5

Change-Id: Id7a3ad7351db5a4f03ab3a29fa06e9c82321a44e
parent e4f2dc48
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -437,6 +437,16 @@ const ConfigDeclaration kVehicleProperties[]{
                 },
         .initialValue = {.floatValues = {200.0f}}},  // units in kPa

        {.config =
                 {
                         .prop = toInt(VehicleProperty::TIRE_PRESSURE_DISPLAY_UNITS),
                         .access = VehiclePropertyAccess::READ_WRITE,
                         .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                         .configArray = {(int)VehicleUnit::KILOPASCAL, (int)VehicleUnit::PSI,
                                         (int)VehicleUnit::BAR},
                 },
         .initialValue = {.int32Values = {toInt(VehicleUnit::PSI)}}},

        {.config =
                 {
                         .prop = toInt(VehicleProperty::CURRENT_GEAR),