Commit graph

5 commits

Author SHA1 Message Date
Aaqib Ismail
2e8915d69d Turn off clang-format for vehicle property generated files
clang-format hurts readability for these generated files.

Bug: 266986551
Test: manual build
Change-Id: I78432f4dd208ab1a554e16342a9a568f9a7a104d
2023-01-30 21:33:05 +00:00
shrikar
f139105ace Corrected VehicleProperty.aidl path to current path
Bug: 266883153
Test: manual build
Change-Id: Ia2a4c5d08988b64edfd7a9b051fb77bfb3b423ef
2023-01-27 18:47:14 +00:00
Yu Shan
7b7f6661b6 Fix a bug for generating enum script.
We were previously checking "/**" as the start of a comment, however
some properties was using "/*" which causes the script to generate
wrong enums. This CL fixes this issue.

Test: Local run.
Bug: 238944990
Change-Id: I56c350663fdde15a405b11fd108df0c7b1f4eb3a
2022-07-14 00:34:18 +00:00
Yu Shan
63e24d7a6a Generate enum for VehicleProperty annotations.
Add a script to general Java and CPP files for annotations in
VehicleProperty.aidl. By having the enums defined, both VHAL impl
(CPP) and Car Service (Java) can more easily access these annotations.
For example, AIDL impl can generate a default config based on these
annotations so that it meets the requirements. Car service side can
generate CTS checks automatically based on these enums to verify
that the VHAL impl is providing the correct config.

Test: Add VehiclePropertyAnnotationCppTest and
VehiclePropertyAnnotationJavaTest that will fail if we update
the VehicleProperty.aidl without running geenrate_annotation_enums.
Bug: 236433737

Change-Id: Ib3e0dee7a28576bc9535d10c7c8f799f1506e592
2022-07-07 01:25:09 +00:00
Keun young Park
7339375409 Add AIDL version of vehicle hal
- 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
2021-06-08 16:41:07 +00:00