From 624034fab31606a1fdbdd2b6886c11bfc00c5998 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 15 Nov 2017 13:04:20 -0800 Subject: [PATCH] Add HW_KEY_INPUT to DefaultVehicleHal Having this property available allows one to simulate key events via Vhal Emulator for testing/debugging purposes Test: manual Exempt-From-Owner-Approval: CL against code owned by Automotive team Change-Id: I1de84c616c6611b8562f9c4442195829869f224d (cherry picked from commit cbc10191c3d56490a646a472635e8babc397cb44) --- .../vehicle/2.0/default/impl/vhal_v2_0/DefaultConfig.h | 8 ++++++++ 1 file changed, 8 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 857efca7ae..71601a0868 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 @@ -225,6 +225,14 @@ const ConfigDeclaration kVehicleProperties[]{ }, .initialValue = {.int32Values = {0}}}, + {.config = + { + .prop = toInt(VehicleProperty::HW_KEY_INPUT), + .access = VehiclePropertyAccess::READ, + .changeMode = VehiclePropertyChangeMode::ON_CHANGE, + }, + .initialValue = {.int32Values = {0, 0, 0}}}, + {.config = { .prop = toInt(VehicleProperty::HVAC_POWER_ON),