DO NOT MERGE Add seat lumbar properties to the emulator for CTS tests am: 88ebf20897

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19487890

Change-Id: I0bbe554c95712cfce84ac9a418bac5fbeb9cf696
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
seanhong
2022-08-19 06:13:13 +00:00
committed by Automerger Merge Worker

View File

@@ -469,6 +469,126 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
.maxInt32Value = 1}}},
.initialValue = {.int32Values = {0}}},
{.config = {.prop = toInt(VehicleProperty::SEAT_TILT_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_TILT_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_LUMBAR_FORE_AFT_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_LUMBAR_FORE_AFT_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_LUMBAR_SIDE_SUPPORT_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}}},
.initialValue = {.int32Values = {0}}},
{.config = {.prop = toInt(VehicleProperty::SEAT_LUMBAR_SIDE_SUPPORT_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),