summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Hong <seanhong@google.com>2022-08-31 02:00:02 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2022-08-31 02:00:02 +0000
commit03ef9705dc35d4ed2e49f9f1e97420e3fb29a439 (patch)
tree94d4761339190a05e047d337a421e1b6bd24516c
parent02313365a9ac0b324dcda854526e8e40b0ed37a4 (diff)
parent0c188ae232b3caf2e368cc2b65748920ba36e505 (diff)
Merge "DO NOT MERGE Add interior light switch properties to the emulator for CTS tests" into tm-qpr-dev
-rw-r--r--automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h
index 384b87d4fc..57e12f1763 100644
--- a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h
+++ b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h
@@ -1610,6 +1610,24 @@ const std::vector<ConfigDeclaration> kVehicleProperties = {
{.config =
{
+ .prop = toInt(VehicleProperty::CABIN_LIGHTS_SWITCH),
+ .access = VehiclePropertyAccess::READ_WRITE,
+ .changeMode = VehiclePropertyChangeMode::ON_CHANGE,
+ },
+ .initialValue = {.int32Values = {LIGHT_STATE_ON}}},
+
+ {.config = {.prop = toInt(VehicleProperty::READING_LIGHTS_SWITCH),
+ .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}}},
+ .initialValue = {.int32Values = {LIGHT_STATE_ON}}},
+
+ {.config =
+ {
.prop = toInt(VehicleProperty::EVS_SERVICE_REQUEST),
.access = VehiclePropertyAccess::READ,
.changeMode = VehiclePropertyChangeMode::ON_CHANGE,