Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b1fc16aa authored by Kai's avatar Kai
Browse files

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)
parent 3405878e
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -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,