platform_hardware_interfaces/automotive/vehicle/2.0
Yu Shan c69b857b8d Use timestamp from property store when get prop.
Previously the timestamp in property events might come from two
different sources. For property update events, the timestamp is
generated from VehicleHalServer. For getProperty request, the
timestamp is generated from EmulatedVehicleHal. This might cause
a getProperty request which returns an older value to have a newer
timestamp compared to the newer property update event. As a result,
the new property update event will be ignored by the client, which
should not be the case since the property is actually updated and
the client should get the update.

This causes flaky test cases if the client is try to subscribe, which
will cause a get property request for the initial value and the client
is changing the value, which will cause a new property update event at
the same time.

Test: atest android.hardware.automotive.vehicle@2.0-default-impl-unit-tests
Bug: 311219830
Change-Id: I78613b1de30624011bd90a5d0da244f0e3d67337
2023-11-30 13:06:07 -08:00
..
default Use timestamp from property store when get prop. 2023-11-30 13:06:07 -08:00
utils Add timed out test files to tidy_timeout_srcs 2022-02-18 17:25:41 -08:00
Android.bp
IVehicle.hal
IVehicleCallback.hal
types.hal Fix inconsistencies in VehicleArea HAL documentation 2023-03-29 20:12:05 +00:00