From 073e68f29ff3522d820dc1bc3c720324555410bd Mon Sep 17 00:00:00 2001 From: Tyler Trephan Date: Wed, 15 Jun 2022 01:06:09 +0000 Subject: [PATCH] Implemented EV_BATTERY_DISPLAY_UNITS Test: atest CarPropertyManagerTest Bug: 232859264 Change-Id: I8a3663f345a08b88e0047cd1211eb99978e4ded9 --- .../aidl/impl/default_config/include/DefaultConfig.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h index ff480e9bc2..3319f724d6 100644 --- a/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h +++ b/automotive/vehicle/aidl/impl/default_config/include/DefaultConfig.h @@ -171,6 +171,17 @@ const std::vector kVehicleProperties = { }, .initialValue = {.int32Values = {toInt(VehicleUnit::KILOMETERS_PER_HOUR)}}}, + {.config = + { + .prop = toInt(VehicleProperty::EV_BATTERY_DISPLAY_UNITS), + .access = VehiclePropertyAccess::READ_WRITE, + .changeMode = VehiclePropertyChangeMode::ON_CHANGE, + .configArray = {toInt(VehicleUnit::WATT_HOUR), + toInt(VehicleUnit::AMPERE_HOURS), + toInt(VehicleUnit::KILOWATT_HOUR)}, + }, + .initialValue = {.int32Values = {toInt(VehicleUnit::KILOWATT_HOUR)}}}, + {.config = { .prop = toInt(VehicleProperty::SEAT_OCCUPANCY),