From b1fc16aab5b1e675db9703a7191ad6365cbd680c Mon Sep 17 00:00:00 2001 From: Kai Date: Tue, 14 Aug 2018 13:35:13 -0700 Subject: [PATCH] Fix vts-hal-auto test Add min/maxSampleRate for some properties and add new static properties. Bug: 112596543 Test: Build and flash into Mojave Run vts-hal-auto test Change-Id: Ide0c09e4790770e5415ca223b2e09f5958b5e783 (cherry picked from commit 3acc549fa87fbe19b181edea39eead0772f75822) --- .../2.0/default/impl/vhal_v2_0/DefaultConfig.h | 13 +++++++++++++ 1 file changed, 13 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 7614cad1f7..08cdffa715 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 @@ -196,6 +196,15 @@ const ConfigDeclaration kVehicleProperties[]{ }, .initialValue = {.int32Values = {1}}}, + {.config = + { + .prop = toInt(VehicleProperty::INFO_DRIVER_SEAT), + .access = VehiclePropertyAccess::READ, + .changeMode = VehiclePropertyChangeMode::STATIC, + .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}, + }, + .initialValue = {.int32Values = {SEAT_1_LEFT}}}, + {.config = { .prop = toInt(VehicleProperty::INFO_FUEL_DOOR_LOCATION), @@ -321,6 +330,8 @@ const ConfigDeclaration kVehicleProperties[]{ .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::CONTINUOUS, .areaConfigs = {VehicleAreaConfig{.areaId = (0)}}, + .minSampleRate = 1.0f, + .maxSampleRate = 2.0f, }, .initialValue = {.floatValues = {100.0f}}}, // units in meters @@ -328,6 +339,8 @@ const ConfigDeclaration kVehicleProperties[]{ {.prop = toInt(VehicleProperty::TIRE_PRESSURE), .access = VehiclePropertyAccess::READ, .changeMode = VehiclePropertyChangeMode::CONTINUOUS, + .minSampleRate = 1.0f, + .maxSampleRate = 2.0f, .areaConfigs = {VehicleAreaConfig{ .areaId = WHEEL_FRONT_LEFT, .minFloatValue = 100.0f, .maxFloatValue = 300.0f,