commit | 6961d3f487ba89ff73d89ec78f148cd130d27fa5 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Fri Nov 17 14:23:39 2017 -0800 |
committer | Steven Moreland <smoreland@google.com> | Mon Nov 27 10:06:28 2017 -0800 |
tree | ca5f9d0de60996d8097a8e3884985558887e7f37 | |
parent | 8e61c5af41226b0e1e88aa439c1360836f71795b [diff] |
Add enum iteration to HIDL. e.x.: for (const auto v : hidl_enum_iterator<Foo>) { ... } Going with exposing an iterator interface completely in the header because: - this should only increase code size if it is used - we want to be able to change this interface/implementation to be more efficient or to add new features without having to update all prebuilts Bug: 68715899 Test: hidl_test Change-Id: I613d5c71ebf3f58c5c92338888ad90172896178d
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: croot hidl-gen -o output -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0::INfc.hal hidl-gen -o output -L vts -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -o test -L c++ -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0