commit | 6b7f0700d3771e552964cf24ab9887275c310c4b | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Mon Apr 03 11:33:22 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Mon Apr 03 15:04:51 2017 -0700 |
tree | fa1b6e3a56df55cfbe2d44900c053bfff3fdc5cc | |
parent | 932464e77e181a98a55e65c046db7a63372b39f6 [diff] |
Add Formatter::operator<< for integer types / char It only had operator<< for size_t, but VTS is using implicit conversions to size_t. Explicit declare these types. operator<<(char) now actaully output the char. So operator<<(int8_t) operator<<(uint8_t) would not work as expected. Checked VTS code to make sure this doesn't happen. Test: make vts Test: make Change-Id: I5cf30bbeecdfdb441985eeb458c4eb5806fa29df
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