tag | d620af03788c72411bd23fffed6fd9f792dc8997 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue Jun 12 10:06:35 2018 -0700 |
object | bbd273172c80677976ea21697a2eb7e8cdc26e06 |
Android P Preview 3 (PPP3.180510.008)
tag | bbd273172c80677976ea21697a2eb7e8cdc26e06 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Tue May 08 10:25:11 2018 -0700 |
object | ea12c05cc3b88f4856338ab9c556d02acf3a7545 |
Android p preview 2
commit | ea12c05cc3b88f4856338ab9c556d02acf3a7545 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue May 01 15:29:31 2018 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed May 02 13:26:11 2018 -0700 |
tree | 18c744c9b46f54df21a83b1da7e1344ffdc0d351 | |
parent | 42a4aae5b21e532a6b11cb6d413f1f282a5534ba [diff] |
Add FqInstance::inPackage ... that delegates to FQName::inPackage(). Test: lshal Bug: 74247301 Change-Id: Ib4150032f70e10b3fa1fc3bb48ab93ec4d8c6fee
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
This tool generates html documentation for hal interfaces.
m hidl-doc && hidl-doc -h