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

Commit 2b7fefdc 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

parents 00259c58 09638bb7
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -545,6 +545,13 @@ const ConfigDeclaration kVehicleProperties[]{
                .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
                .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}},
     .initialValue = {.int32Values = {(int)VehicleUnit::FAHRENHEIT}}},
     .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 =
    {.config =
         {
         {
             .prop = toInt(VehicleProperty::NIGHT_MODE),
             .prop = toInt(VehicleProperty::NIGHT_MODE),