summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJordan Jozwiak <jjoz@google.com>2020-08-11 14:40:44 -0700
committerJordan Jozwiak <jjoz@google.com>2020-08-13 16:47:44 +0000
commit590607780ab47c3d48390c74cb2762438316d30f (patch)
tree270c3a918c0959fd4f640c70872908b6f8302446
parent74896bed49b669e4c7e2cf5f93df15a2d50a0f2e (diff)
downloadplatform_hardware_interfaces-590607780ab47c3d48390c74cb2762438316d30f.tar.gz
platform_hardware_interfaces-590607780ab47c3d48390c74cb2762438316d30f.tar.bz2
platform_hardware_interfaces-590607780ab47c3d48390c74cb2762438316d30f.zip
Add INFO_MODEL and INFO_MODEL_YEAR default values
Bug: 162611157 Test: adb shell cmd car_service get-carpropertyconfig | grep MODEL Change-Id: Iff9f763aa624a2002b0dd326316410a93a47d5c0 Merged-In: Iff9f763aa624a2002b0dd326316410a93a47d5c0 (cherry picked from commit 5aa08b7d592cfc83c446c8bb6e67ac79cf67aa02)
-rw-r--r--automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h b/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h
index 16c33b9d19..16e1bf7291 100644
--- a/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h
+++ b/automotive/vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h
@@ -266,6 +266,20 @@ const ConfigDeclaration kVehicleProperties[]{
.initialValue = {.stringValue = "Toy Vehicle"}},
{.config =
{
+ .prop = toInt(VehicleProperty::INFO_MODEL),
+ .access = VehiclePropertyAccess::READ,
+ .changeMode = VehiclePropertyChangeMode::STATIC,
+ },
+ .initialValue = {.stringValue = "Speedy Model"}},
+ {.config =
+ {
+ .prop = toInt(VehicleProperty::INFO_MODEL_YEAR),
+ .access = VehiclePropertyAccess::READ,
+ .changeMode = VehiclePropertyChangeMode::STATIC,
+ },
+ .initialValue = {.int32Values = {2020}}},
+ {.config =
+ {
.prop = toInt(VehicleProperty::INFO_EXTERIOR_DIMENSIONS),
.access = VehiclePropertyAccess::READ,
.changeMode = VehiclePropertyChangeMode::STATIC,