commit | f24fa85b362d7eb66c7b880f48e1e2e9916bc8a9 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Sep 23 11:03:15 2016 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Sep 26 13:39:31 2016 -0700 |
tree | 4e80efdfe460e4f023e3e0efaf2d314f98796db8 | |
parent | b44a6c8ed35bc63fa0e65111c31fa1339325eb41 [diff] |
Resolve constant expressions for external constants. * Allow constant expressions to be used as array sizes and as annotation values. Bug: 31592132 allow constant expressions to be used as array sizes. Bug: 31628863 Autofill values for enum type Test: `make android.hardware.tests.expression@1.0` compiles and generates enum class Color with autofilled values. Test: `make hidl_test_java` succeeds. Test: `make hidl_test && adb sync && adb shell hidl_test` succeeds. Test: `mma` Change-Id: I57377ec608503d4741d305e98144264b07973055
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