commit | f03332ac955bc6cb22873e236868eacfc3bf78cc | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Thu Sep 22 15:35:43 2016 -0700 |
committer | Andreas Huber <andih@google.com> | Wed Sep 28 08:34:59 2016 -0700 |
tree | 478d75ee43ab1b43b1302f73d8e214b8f5071039 | |
parent | 1ea3605fe8206a01e7bb44ac373477d75dda325a [diff] |
Arrays in .hal files are now exposed to C++ as hidl_array<T, SIZE ...> instead of as native arrays. This allows them to be copied which in turn lets them exist in vectors. In the Java backend, vectors are limited to one-dimensional arrays and scalar arrays are properly wrapped, i.e. vec<uint8_t[]> => Vector<Byte[]> Change-Id: I47524ec8423dfb41a436df36af8fa05eb8b3c0cc Bug: 31682327 Test: hidl_test and hidl_test_java
croot make hidl-gen
hidl-gen -o output-path -L language (-r interface-root) fqname output-path: directory to store the output files. language: output file for given language. e.g.c++, vts.. fqname: fully qualified name of the input files. For singe file input, follow the format: package@version::fileName For directory input, follow the format: package@version interface-root(optional): prefix and root path for fqname. If not set, use the default prefix: android.hardware and default root path defined in $TOP. examples: hidl-gen -o output -L c++ android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:/home/android/master/hardware/interfaces android.hardware.nfc@1.0