From e509bf1f76521ee47e69342f3662e049b0c4db2b Mon Sep 17 00:00:00 2001 From: Kai Wang Date: Fri, 17 Sep 2021 22:43:44 +0000 Subject: [PATCH] Add areaId for CRITICALLY_LOW_TIRE_PRESSURE CRITICALLY_LOW_TIRE_PRESSURE is a seat type property. Added areaId into the property config. Bug: 174585018 Test: atest AtsCarHostTests Change-Id: I260b9e79844f44cad31efcf510301af0ee6227a1 --- .../2.0/default/impl/vhal_v2_0/DefaultConfig.h | 12 ++++++++++++ 1 file changed, 12 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 ca080d81ec..aa945142ba 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 @@ -307,6 +307,18 @@ const ConfigDeclaration kVehicleProperties[]{ .prop = toInt(VehicleProperty::CRITICALLY_LOW_TIRE_PRESSURE), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::STATIC, + .areaConfigs = {VehicleAreaConfig{ + .areaId = WHEEL_FRONT_LEFT, + }, + VehicleAreaConfig{ + .areaId = WHEEL_FRONT_RIGHT, + }, + VehicleAreaConfig{ + .areaId = WHEEL_REAR_LEFT, + }, + VehicleAreaConfig{ + .areaId = WHEEL_REAR_RIGHT, + }}, }, .initialAreaValues = {{WHEEL_FRONT_LEFT, {.floatValues = {137.0f}}}, {WHEEL_FRONT_RIGHT, {.floatValues = {137.0f}}},