commit | 8dab56f964e87883460f1f2f04b7d5a2bd2a1851 | [log] [tgz] |
---|---|---|
author | Neel Mehta <mneel@google.com> | Tue Aug 06 17:46:24 2019 -0700 |
committer | Neel Mehta <mneel@google.com> | Wed Aug 07 10:57:54 2019 -0700 |
tree | 64cf7b9f6ad9839409b21f77cb8632be25a93d3c | |
parent | 68049f90c382e5659344dd9f5e1647e2fd73fc52 [diff] |
Modify StringHelper::Tokenize to fix HidlLintTest This was broken by aosp/1093499. VAL2 is now being tokenized as VA_L2 (which seems wrong). This changes StringHelper::Tokenize such that numbers are treated as upper case characters. VAL2 is now tokenized as VAL2 We should add this test into TEST_MAPPING so that we can catch this in presubmit. Bug: N/A Test: ./test/run_all_host_tests.sh Change-Id: I7c0596da88980e585c1fc3ed7178f356527c3841
Full documentation can be found here: https://source.android.com/devices/architecture/hidl/
hidl-gen is a compiler for the HIDL (HAL Interface Design Language) which generates C++ and Java endpoints for RPC mechanisms. The main userspace libraries which this compiler uses can be found at system/libhidl.
m hidl-gen
Note that options for hidl-gen expected to be invoked by the build system are marked with 'internal' in the help menu.
hidl-gen -h hidl-gen -o output -L c++-impl -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0
Some defaults for package roots are also provided
hidl-gen -o output -L c++-impl android.hardware.nfc@1.0 hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -L hash android.hardware.nfc@1.0
Example command for vendor project
hidl-gen -L c++-impl -r vendor.foo:vendor/foo/interfaces vendor.foo.nfc@1.0
See update-makefiles-helper.sh and update-all-google-makefiles.sh for examples of how to generate HIDL makefiles (using the -Landroidbp option).
This is a helper tool to convert C headers to valid .hal files.
m c2hal && c2hal -h