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

Commit 30e6d473 authored by seanhong's avatar seanhong Committed by Sean Hong
Browse files

DO NOT MERGE Add seat depth properties to the emulator for CTS tests

Test: atest CarPropertyManagerTest
Bug: 239613431
Change-Id: I82ddae13db2c534c148a00e73c62dbbcc6d1b258
parent d8fb41ca
Loading
Loading
Loading
Loading
+40 −0
Original line number Diff line number Diff line
@@ -429,6 +429,46 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
                                                      .maxInt32Value = 1}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::SEAT_DEPTH_POS),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT,
                                                      .minInt32Value = -10,
                                                      .maxInt32Value = 10},
                                    VehicleAreaConfig{.areaId = SEAT_1_RIGHT,
                                                      .minInt32Value = -10,
                                                      .maxInt32Value = 10},
                                    VehicleAreaConfig{.areaId = SEAT_2_LEFT,
                                                      .minInt32Value = -10,
                                                      .maxInt32Value = 10},
                                    VehicleAreaConfig{.areaId = SEAT_2_RIGHT,
                                                      .minInt32Value = -10,
                                                      .maxInt32Value = 10},
                                    VehicleAreaConfig{.areaId = SEAT_2_CENTER,
                                                      .minInt32Value = -10,
                                                      .maxInt32Value = 10}}},
         .initialValue = {.int32Values = {0}}},

        {.config = {.prop = toInt(VehicleProperty::SEAT_DEPTH_MOVE),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT,
                                                      .minInt32Value = -1,
                                                      .maxInt32Value = 1},
                                    VehicleAreaConfig{.areaId = SEAT_1_RIGHT,
                                                      .minInt32Value = -1,
                                                      .maxInt32Value = 1},
                                    VehicleAreaConfig{.areaId = SEAT_2_LEFT,
                                                      .minInt32Value = -1,
                                                      .maxInt32Value = 1},
                                    VehicleAreaConfig{.areaId = SEAT_2_RIGHT,
                                                      .minInt32Value = -1,
                                                      .maxInt32Value = 1},
                                    VehicleAreaConfig{.areaId = SEAT_2_CENTER,
                                                      .minInt32Value = -1,
                                                      .maxInt32Value = 1}}},
         .initialValue = {.int32Values = {0}}},

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