commit | fa55d6ec8496deb5e40865f13f8bf6a971ca622d | [log] [tgz] |
---|---|---|
author | Martijn Coenen <maco@google.com> | Tue Dec 20 06:08:31 2016 +0100 |
committer | Martijn Coenen <maco@google.com> | Thu Dec 29 09:10:47 2016 +0100 |
tree | 74f28bc9ffa1fec4cb017e06c6dc351217e93a28 | |
parent | 8d12b50cfb20eaef50e0998abe8d458866896003 [diff] |
Automatically start threadpool. Generated code should automatically start a threadpool in one of the following scenarios: - You pass an asynchronous interface to a remote process (so you can receive calls on it). - You register a death recipient on an interface (so the kernel can notify you on this thread when it dies). Also, updated tests to use the new configure/joinThreadPool() API. Bug: 31748996 Test: mma, hidl_test, hidl_test_java Change-Id: I2262580282c9b25c2e004dfd928b7444f4be78d9
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