commit | c57c8bb9f368faca636bdb6b39773e72255e8b08 | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Thu Dec 01 11:37:18 2016 -0800 |
committer | Yifan Hong <elsk@google.com> | Mon Dec 05 12:42:23 2016 -0800 |
tree | 060507788f798f5d10eda0b5440274923f99e05d | |
parent | 30bb6a869be0f3f82497b7b11c71ec9d47652ed0 [diff] |
Add a bitfield type. It is possible to say enum MyEnum : int8_t {...}; ... bitfield<MyEnum> in HIDL. In the above example, bitfield<MyEnum> simply translates to int8_t. Change mutating |= and &= to allow only (e.g.) int8_t s = 0; s |= MyEnum::VAL1; Bug: 31702236 Test: hidl_test Change-Id: I8d79975bb48e1ffd3af4726a52ef3678dac60115
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