Rename the existing vendor version VehicleHalUtils to
VehicleHalUtils vendor and then create a non-vendor version of
VehicleHalUtils.
Test: Presubmit
Bug: 214635003
Change-Id: I7717d2e9527b9dd8592bbdff152aab4ef1b80a10
This CL modifies a default implementation of HIDL EVS HAL v1.1 to
properly emulate IEvsCamera and generate a test pattern (SMPTE color
bars) on the cuttlefish.
Bug: 147743625
Test: launch_cvd --gpu_mode=gfxstream && atest VtsHalEvsV1_1TargetTest
Change-Id: I36b141c250efcc27e9a455d504fe897c69349ad9
The valid display ID ranges from 0 to 255 so this changes its data type
from a 8-bit signed integer to 32-bit signed integer.
Bug: 170401743
Test: Successful build
Change-Id: Ic4cb38d2d0446e169652689a3d3c71f1d7240455
Move PendingRequestPool and ParcelableUtils to utils so that we could
reuse it for cpp VHAL client.
This CL also fixes a bug that the comment for PendingRequestPool
timeout unit is incorrect.
Test: atest VehicleHalVehicleUtilsTest
Bug: 214635003
Change-Id: Ie8ac1e0c4f49ae70caff7b680a7352fc23d4e680
Add some helper function for EmulatedVehicleHardware to use.
Test: atest FakeVehicleHardwareTest
Bug: 215419573
Change-Id: I64da5a0eae3872c608da925d68756a823299672c
VehicleHalProto would be used by AIDL Vhal as well so move it to
a common place.
Test: Presubmit
Bug: 215419573
Change-Id: I1e886a64a6c5ef76f7dc918feccc9cf63b8bca0c
Support debug interface to set property value in FakeVehicleHardware.
Test: atest FakeVehicleHardwareTest.
Bug: 214613918
Change-Id: I64ef532274e20db1444e8583d71e0c0955c5b460
Add a macro guard for log messages to prevent spam.
Test: Manually test on emulator.
Bug: 200737967
Change-Id: I27a270fe70cf706307a0908d6d4aae8e5197a3e5
Implement linkToDeath for binders. Delete allocated resources for a
binder when it died or unlinked.
This CL also uses 'const AIBinder*' as client id type instead of
the callback because the Binder object corresponds to the remote
proxy and is guaranteed to be unique per client.
Bug: 204943359
Test: atest DefaultVehicleHalTest
Change-Id: If2e0c58e86a041a78b8ca69597aef4733ce1826c
This CL renames GetSetValuesClient to ConnectedClient and add
SubscribeClient to the supported client type. The SubscribeClient
would provide a different timeout and on-results callback.
This CL adds a map for subscribe clients in VHAL and initializes
subscription manager.
Test: None, will add after we implement subscribe.
Bug: 200737967
Change-Id: I222b155e4365dcf0fa9344c7da5901142433f055
Add a class to manage VHAL subscription. It supports subscribing
and unsubscribing to properties. For continuous property, it uses
recurrent timer to recurrently calls the registered function. For
on-change property, it would return all subscribed clients for a
given property.
Test: atest DefaultVehicleHalTest
Bug: 200737967
Change-Id: I3e1a0401fd465dc31fe08ea77d5a6651fa7bbfaf
Use PendingRequestPool in default VHAL to manage pending requests.
It would check for duplicate request IDs, call callbacks when request
timeout.
Test: atest DefaultVehicleHalTest
Bug: 203713317
Change-Id: Ifa42e6f06036c48914c56e357714b6dfb7173538
This CL add a new set of EVS APIs written in Stable AIDL with an empty
IEvsEnumerator implementation.
Bug: 170401743
Bug: 195672428
Bug: 202031799
Bug: 202669715
Test: m -j
Change-Id: I28ff4391ba51b72299ebfae801d21a8ab0e37917
PendingRequestPool would store all pending requests that we have
not yet got responses from hardware. If a request has been pending
for too long, the timout callback would be called and the request
would be removed.
Test: atest DefaultVehicleHalTest
Bug: 203713317
Change-Id: I4d7ae2c72b960347be70ac4cc8ce3d66eb8128f9