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
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
Allow MockVehicleHardware to sleep for some time before returning
results to VHAL, so that we could test timeout behavior.
Test: atest DefaultVehicleHalTest
Bug: 200737967
Change-Id: I1198b80f1c08f664bc2fcdb6b590f6d84bc75384
Use shared_ptr for hardware callbacks so that same callback could
be reused for multiple hardware calls.
Test: atest DefaultVehicleHalTest
atest FakeVehicleHardwareTest
Bug: 200737967
Change-Id: I2a005bbf77241fe2c85f871690c8aef18e770b69
Add annotations so that the Java backend would generate equals and
toString methods, which would be useful in our code.
Test: Manual build.
Bug: 205774940
Change-Id: Ib08c5f42d29c6d028abcaa1a577147d1495cf550
Create a class to represent each VHAL client for each operations.
This class would manage the pending requests and maintain callbacks
that should be called when we get the result for async requests or
when the request time-out.
Test: atest DefaultVehicleHalTest
Bug: 200737967
Change-Id: I0e0be46f4a77b5dd5569fa949f67618a9aa9ac73
Add some helper functions to manage parsing/marshaling large
parcelable.
Test: None.
Bug: 200737967
Change-Id: I48729915aafe6d23de725e38ca5f653ba3147253
- HIBERNATION_ENTRY and HIBERNATION_EXIT are added next to
DEEP_SLEEP_ENTRY and DEEP_SLEEP_EXIT.
Bug: 206690574
Test: build okay
Change-Id: I157bb4798babd415f9a6302ce45aeb2560a505fd
Handle fake user hal properties in FakeVehicleHardware.
Test: atest FakeVehicleHardwareTest
Bug: 201830716
Change-Id: Ia60bbf7ae6a0fc5909dc8d27363af5c9939055d3
This CL mostly copies the existing user hal library with minor
modifications to use new AIDL type.
Test: atest FakeUserHalTest.
Bug: 201830716
Change-Id: I2bf4e96fb9fd71242e01f89c92cf743f7287ef64
Remove UserFlags enum. Change the flag field in UserInfo to be
bitmap of user flags.
Test: None
Bug: 202520478
Change-Id: Ia1837dde783b92dde830ee1244d38dfb684d546a
This property will be used to sync time between external ECUs and AAOS.
Bug: 157504928
Bug: 202376653
Test: build
Change-Id: Idb095246a786a771af7f31516b90098c1470e1ab
This is a change in behaviour for ANDROID_EPOCH_TIME property to align it with a future revisions.
This change was submitted to VHAL HIDL in http://ag/15618006.
Bug: 157504928
Bug: 202379958
Test: build using `make -j96 android.hardware.automotive.vehicle-V1-java`
Test: atest VehicleHalDefaultConfigTest
Change-Id: I464b9215f4bdcbbf53c1239b6d38f9940248b5cf
Migrate fake value generator hub. This CL also turns all exising
LockGuard to ScopedLock.
Test: atest FakeVehicleHalValueGeneratorsTest
Bug: 201830716
Change-Id: I3ce64792fa5a49ae5e11e1fc5636a30221c596e6
Add error code to differentiate between different error cases, e.g.
when the value is not configured v.s. the value is not set.
Test: atest VehicleHalVehicleUtilsTest
Bug: 201830716
Change-Id: I1ef0716edce5bc72e07a769026769a330b4e3025
Add a fake vehicle hardware implementation that uses default config.
This would be used in emulator.
Test: atest FakeVehicleHardwareTest
Bug: 201830716
Change-Id: If93bdebb5c82b947a327688db80978fc4cb46d3c