From c36d6be8ff89e4c022dcf6d480b5921f13328d9b Mon Sep 17 00:00:00 2001 From: Jusik Chung Date: Fri, 17 Feb 2023 15:13:12 +0900 Subject: [PATCH] VHAL for PERF_VEHICLE_SPEED_DISPLAY. Bug: 261934875 Bug: 261943854 Test: adb shell cmd car_service get-property-value 0x11600208 Change-Id: I0390189129ebd41a913f5fc0f903a0ee22b226d7 Merged-In: Ifdd41da591e8c352326a247f65a59cda36b76981 --- .../aidl/impl/default_config/include/DefaultConfig.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h index 5ce98bd954..f023fd2063 100644 --- a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h +++ b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h @@ -167,7 +167,15 @@ const std::vector kVehicleProperties = { .maxSampleRate = 10.0f, }, .initialValue = {.floatValues = {0.0f}}}, - + {.config = + { + .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED_DISPLAY), + .access = VehiclePropertyAccess::READ, + .changeMode = VehiclePropertyChangeMode::CONTINUOUS, + .minSampleRate = 1.0f, + .maxSampleRate = 10.0f, + }, + .initialValue = {.floatValues = {0.0f}}}, {.config = { .prop = toInt(VehicleProperty::VEHICLE_SPEED_DISPLAY_UNITS),