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

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

Merge "DO NOT MERGE Add DISTANCE_DISPLAY_UNIT to google VHAL" into qt-qpr1-dev-plus-aosp

parents b64ab1da 88213e31
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -568,6 +568,16 @@ const ConfigDeclaration kVehicleProperties[]{
                 },
         .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),