From 7faa170ff1edc3526b92c1caba126bb83b33bb6a Mon Sep 17 00:00:00 2001 From: Jordan Jozwiak Date: Wed, 22 Apr 2020 14:04:32 -0700 Subject: [PATCH] Add config for tire pressure display units Bug: 154751939 Test: aae app vhal apply google // verify property included in dump adb -s c3139966 shell dumpsys activity service com.android.car get-carpropertyconfig | grep TIRE_PRESSURE_DISPLAY_UNITS -A5 Change-Id: Id7a3ad7351db5a4f03ab3a29fa06e9c82321a44e --- .../vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ea759867f2..bad9ffe9ff 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 @@ -437,6 +437,16 @@ const ConfigDeclaration kVehicleProperties[]{ }, .initialValue = {.floatValues = {200.0f}}}, // units in kPa + {.config = + { + .prop = toInt(VehicleProperty::TIRE_PRESSURE_DISPLAY_UNITS), + .access = VehiclePropertyAccess::READ_WRITE, + .changeMode = VehiclePropertyChangeMode::ON_CHANGE, + .configArray = {(int)VehicleUnit::KILOPASCAL, (int)VehicleUnit::PSI, + (int)VehicleUnit::BAR}, + }, + .initialValue = {.int32Values = {toInt(VehicleUnit::PSI)}}}, + {.config = { .prop = toInt(VehicleProperty::CURRENT_GEAR),