platform_hardware_interfaces/automotive/vehicle
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
..
2.0 Merge Android 24Q1 Release (ab/11220357) 2024-01-30 10:36:50 -08:00
aidl automotive aidl: Add required @RustDerive annotations 2024-03-14 01:29:28 +00:00
aidl_property Create EmuMetadataGenerator to check meta.json. 2024-02-01 00:03:59 +00:00
proto Adjust path to sdv_ivi_cf 2023-09-27 16:08:51 +02:00
tools Create EmuMetadataGenerator to check meta.json. 2024-02-01 00:03:59 +00:00
vts Merge "Add retry in setProp test." into android14-tests-dev am: 2c12f0e9ae am: 83a9e12f6d 2024-01-31 03:06:01 +00:00
Android.bp Added access field to VehicleAreaConfig.aidl 2023-10-21 17:20:54 +00:00
OWNERS Update OWNERS file. 2023-12-12 17:24:42 -08:00
README.md Add README files to VHAL codebase. 2022-06-04 01:12:49 +00:00
TEST_MAPPING Fix proto converter and support VUR. 2023-10-30 14:03:00 -07:00
vhal_static_cpp_lib.mk Added access field to VehicleAreaConfig.aidl 2023-10-21 17:20:54 +00:00

Vehicle Hardware Abstraction Layer (VHAL)


This directory stores the VHAL interface definition and VHAL reference implementation.

2.0 (deprecated)

HIDL based VHAL interface and reference implementation.

aidl

AIDL based VHAL interfadce and reference implementation.

proto

Protobuf used to pass message between emulator VHAL and emulator.

tools

Dev tools related to VHAL.

vts

VTS test for VHAL. The VTS test works for both AIDL and HIDL VHAL implementation. Vendor implementation of VHAL must passes VTS.