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
The flags field in UserInfo is a int32_t that contains multiple
UserFlags 'or'ed together. We should not parse it as enum.
Test: atest android.hardware.automotive.vehicle@2.0-utils-unit-tests
Bug: 202520478
Change-Id: Ie7e81a8a5f39f6070e35f2e77bce88a211fd526b
Merged-In: Ie7e81a8a5f39f6070e35f2e77bce88a211fd526b
(cherry picked from commit 5c0ec3f1de)
The flags field in UserInfo is a int32_t that contains multiple
UserFlags 'or'ed together. We should not parse it as enum.
Test: atest android.hardware.automotive.vehicle@2.0-utils-unit-tests
Bug: 202520478
Change-Id: Ie7e81a8a5f39f6070e35f2e77bce88a211fd526b
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