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

Commit 0f736f15 authored by seanhong's avatar seanhong Committed by Automerger Merge Worker
Browse files

Add seat belt properties to the emulator for CTS tests am: 3c7a832a

parents c3334d0b 3c7a832a
Loading
Loading
Loading
Loading
+62 −0
Original line number Diff line number Diff line
@@ -182,6 +182,68 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
                 },
         .initialValue = {.int32Values = {toInt(VehicleUnit::KILOWATT_HOUR)}}},

        {.config = {.prop = toInt(VehicleProperty::SEAT_BELT_BUCKLED),
                    .access = VehiclePropertyAccess::READ_WRITE,
                    .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
                    .areaConfigs = {VehicleAreaConfig{.areaId = SEAT_1_LEFT},
                                    VehicleAreaConfig{.areaId = SEAT_1_RIGHT},
                                    VehicleAreaConfig{.areaId = SEAT_2_LEFT},
                                    VehicleAreaConfig{.areaId = SEAT_2_RIGHT},
                                    VehicleAreaConfig{.areaId = SEAT_2_CENTER}}},
         .initialAreaValues = {{SEAT_1_LEFT, {.int32Values = {0}}},
                               {SEAT_1_RIGHT, {.int32Values = {0}}},
                               {SEAT_2_LEFT, {.int32Values = {0}}},
                               {SEAT_2_RIGHT, {.int32Values = {0}}},
                               {SEAT_2_CENTER, {.int32Values = {0}}}}},

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

        {.config = {.prop = toInt(VehicleProperty::SEAT_BELT_HEIGHT_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}}},
         .initialAreaValues = {{SEAT_1_LEFT, {.int32Values = {0}}},
                               {SEAT_1_RIGHT, {.int32Values = {0}}},
                               {SEAT_2_LEFT, {.int32Values = {0}}},
                               {SEAT_2_RIGHT, {.int32Values = {0}}},
                               {SEAT_2_CENTER, {.int32Values = {0}}}}},

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