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

Commit bcbd9250 authored by Kai's avatar Kai
Browse files

Add SEAT_OCCUPANCY property into google VHAL

Bug: 169903497
Test: check the property value and config in KitchSink
Change-Id: Ie947414a3ee517b6711f0632e8b3a71eb6f5cbee
parent eab5bfbe
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),