mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Add seat height properties to the emulator for CTS tests" into tm-qpr-dev am: c9d82cd796
Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/19451676 Change-Id: I0f266cd16b4096f9a41dfa6a9d0da30c91de1b10 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -389,6 +389,46 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
|
||||
{SEAT_2_RIGHT, {.int32Values = {0}}},
|
||||
{SEAT_2_CENTER, {.int32Values = {0}}}}},
|
||||
|
||||
{.config = {.prop = toInt(VehicleProperty::SEAT_HEIGHT_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_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}}},
|
||||
.initialValue = {.int32Values = {0}}},
|
||||
|
||||
{.config =
|
||||
{
|
||||
.prop = toInt(VehicleProperty::SEAT_OCCUPANCY),
|
||||
|
||||
Reference in New Issue
Block a user