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

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

Merge "Add SEAT_OCCUPANCY property into google VHAL"

parents 1e80aa1a bcbd9250
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -306,6 +306,19 @@ const ConfigDeclaration kVehicleProperties[]{
                 },
         .initialValue = {.int32Values = {(int)VehicleUnit::KILOMETERS_PER_HOUR}}},

        {.config =
                 {
                         .prop = toInt(VehicleProperty::SEAT_OCCUPANCY),
                         .access = VehiclePropertyAccess::READ,
                         .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                         .areaConfigs = {VehicleAreaConfig{.areaId = (SEAT_1_LEFT)},
                                         VehicleAreaConfig{.areaId = (SEAT_1_RIGHT)}},
                 },
         .initialAreaValues = {{SEAT_1_LEFT,
                                {.int32Values = {(int)VehicleSeatOccupancyState::VACANT}}},
                               {SEAT_1_RIGHT,
                                {.int32Values = {(int)VehicleSeatOccupancyState::VACANT}}}}},

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