platform_hardware_interfaces/automotive
Felix Obenhuber 38f12da7b8 automotive aidl: Add required @RustDerive annotations
Derive vehicle hal parcelables from the Clone trait where applicable. This is is
supportive for implementing a vehicle hal service in Rust because caching e.g
VehiclePropValue or VehiclePropConfig instances allow less verbose code and
increase performance. Cloning a VehiclePropConfig instead of constructing each
time needed is less verbose. Property configs are normally not updated at
runtime.

This is not an API change, so in order to avoid having to bump the AIDL
API version for this HAL we used the hash_gen.sh script as below:

$ m android.hardware.automotive.vehicle-update-api
$ m android.hardware.automotive.vehicle-freeze-api

$ vim vehicle/aidl/Android.bp # removed frozen_api argument and the newly
created version 3 block

$ cp -r aidl_api/android.hardware.automotive.vehicle/3/* aidl_api/android.hardware.automotive.vehicle/2/
$ rm -rf aidl_api/android.hardware.automotive.vehicle/3/

./system/tools/aidl/build/hash_gen.sh \
    hardware/interfaces/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/2 \
    1 \
    hardware/interfaces/automotive/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle/2/.hash

Test: manual - used new derives in custom implementation
Change-Id: I586b89b160eb7a01ce24fad211b9e909175cdd3c
Merged-In: I889c0d51f2c2633908231dd39c9ea5259de36667
2024-03-14 01:29:28 +00:00
..
audiocontrol No need to modify acc for std::accumulate 2024-01-09 12:16:56 -08:00
can Add missing libc++ includes 2024-01-09 11:56:43 -08:00
evs Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
ivn_android_device Add VTS for IVN HAL. 2023-05-01 16:01:06 -07:00
occupant_awareness/aidl Merge "Add a manifest fragment for occupant awareness" am: 2247059f55 am: fc24255d23 am: 2d0b3d8bbc 2023-03-28 23:57:38 +00:00
remoteaccess Implement scheduleTask in TestWakeupClientService. 2023-10-18 13:44:55 -07:00
sv Refactored automotiveSvV1.0_fuzzer 2023-09-11 10:42:12 +05:30
vehicle automotive aidl: Add required @RustDerive annotations 2024-03-14 01:29:28 +00:00
OWNERS
README.md
TEST_MAPPING

Autmotive HALs


Overview:

The automotive HAL tree is used by Android Automotive to discover and operate hardware specific to a car.

The HALs are not (yet) frozen, as the HAL definition is expected to evolve between Android releases.