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
This type is similar to GetValueRequest that wraps both the request
value and the request ID. A vector of GetValueRequst would be turned
into largeParcelable for getValues input.
Test: None
Bug: 200737967
Change-Id: Ie8f3c0711c182fff8b7f88ac1aa78bf6ed85da38
Add on-value-change callback to VehiclePropertyStore. When a new
value is written to propStore or a value is updated, the callback
would be invoked which could be used to inform VHAL client about
value updates.
Test: atest VehicleHalVehicleUtilsTest
Bug: 201830716
Change-Id: I980f5e8c34d9f872f962776859de9615ce3bf690
Both requestId and timestamp is defined as 'long' in aidl, which
is 'int64_t' in c++.
Test: Presubmit
Bug: 201830716
Change-Id: I8c6e50aa7a67177bb4e01ab279f62ce772d1e1a9
Use object pool recyclable objects in property store API to improve
code efficiency. This would reduce the number of unnecssary copy of
property values.
This CL also adds a upateStatus option which by default is set to false,
so property from client would not override the property status.
Test: atest VehicleHalVehicleUtilsTest
Bug: 200737967
Change-Id: Ie96a41ee441e085e10ad1059b67c708ff7173ae0
The ndk_platform backend will soon be deprecated because the ndk backend
can serve the same purpose. This is to eliminate the confusion about
having two variants (ndk and ndk_platform) for the same ndk backend.
Bug: 161456198
Test: m
Change-Id: Ib2af857ab464bc03c3ef04a42790ae632854577a
CLUSTER_SWITCH_UI is a INT32 property that should only have one
init value instead of 2. This is causing confusion in the code
that uses the default value.
Test: None
Bug: 202448791
Change-Id: Id55f448f1dd5ee33291e30d32e6fbf868ad8fe3a
Migrate proto_message_converter to AIDL vhal. This would be used
in grpc vehicleClient/vehiclServer. This CL also creates the
required proto files.
Test: unit tests.
Bug: 199337732
Change-Id: Iac69a8c1578d4aba374ee0d9716da8b6b18ccace
For non-virtualized VHAL, VHAL would use a VehicleHareware
implementation in the same process. For virtualized VHAL, on
android side, a VehicleHardware implementation acts as the client
to take with a GRPC server in another VM. That server uses a
VehicleHardware implementation underneath.
Test: Local build.
Bug: 199453627
Change-Id: I34512fad44aa4f69832d147d2c4ef4221e53dc4f
Since VHAL is not supposed to run on all devices, only auto targets,
we change the test suites to device-tests. This also prevents the
unit tests to be run against an incompatible version of vendor
image, which causes test breakage.
Bug: 201009483
Test: presubmits
Change-Id: I8878ce6f8200dbc4a3247258f835e980fbaa2028
Added SPDX-license-identifier-Apache-2.0 to:
automotive/vehicle/aidl/impl/vhal/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Change-Id: Ic1778822784ec32904d235fe6677ef4f2711c2c4
Add test to verify all properties defined in HIDL VHAL are also
defined in AIDL.
Test: atest VehicleHalAidlHidlCompatibilityTest
Bug: b/170400618
Change-Id: I5c9e26f5eb149477c18a6b22ca8a39d8642249df
Define IVehicle AIDL interface according to new interface design
doc.
Test: Local build
Bug: 198664004
Change-Id: Ic757f969ccce6d9dcffc6e7cd19f55f86a41f435
- This is still under development but will replace HIDL version later.
- It will become stable later when all necessary features are ready.
- This CL translated HIDL into AIDL as it is. More changes will be added later.
- Most code was generate from hidl2aidl:
$ hidl2aidl -o tmp android.hardware.automotive.vehicle@2.0
- translate_vehicle_props.py types.hal to generate VehicleProperty enum.
- added @utf8InCpp for all String
Bug: 148703287
Test: build, make -j android.hardware.automotive.vehicle-cpp android.hardware.automotive.vehicle-java
Change-Id: I7a7f1c0c0751ad0101958d56db939324c05400b5