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

Skip to content
Commit 70e33216 authored by Jindong's avatar Jindong
Browse files

VHAL: fix CTS CarPropertyManagerTest#testRegisterCallback



This case asserts property PERF_VEHICLE_SPEED can have different
number event happened with different event rate:
SENSOR_RATE_NORMAL or SENSOR_RATE_FASTEST.
But CarPropertyManager.java says:
  Rate has no effect if the property has one of the following change modes
     *   CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_STATIC
     *   CarPropertyConfig#VEHICLE_PROPERTY_CHANGE_MODE_ONCHANGE
So modify PERF_VEHICLE_SPEED change mode to CONTINUOUS.

Test:
run cts -m CtsCarTestCases -t android.car.cts.CarPropertyManagerTest#testRegisterCallback

Change-Id: I99e3d672d052a5cde9aaad78221caac510e81b40
Signed-off-by: default avatarJindong <jindong.yue@nxp.com>
parent c4ccbc1a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment