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

Commit 90e8bee4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add DISTANCE_DISPLAY_UNIT to google VHAL"

parents 1c17ae33 2619443e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -567,6 +567,13 @@ const ConfigDeclaration kVehicleProperties[]{
                    .configArray = {(int)VehicleUnit::FAHRENHEIT, (int)VehicleUnit::CELSIUS}},
         .initialValue = {.int32Values = {(int)VehicleUnit::FAHRENHEIT}}},

        {.config = {.prop = toInt(VehicleProperty::DISTANCE_DISPLAY_UNITS),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .configArray = {(int)VehicleUnit::KILOMETER, (int)VehicleUnit::MILE},
                    .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
         .initialValue = {.int32Values = {(int)VehicleUnit::MILE}}},

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