commit | 8d8ae4b6266b2da6b79e2ae2764938968947e911 | [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 12:15:59 2017 -0700 |
tree | 6f27e3a1c0e35fe426cae8d7457cd28aa210cb0e | |
parent | 7d234ea1a108ccfa01082efc2309e658010554a3 [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