commit | a2abe98a661c20b028bf20c3d8d1cd13d080b66a | [log] [tgz] |
---|---|---|
author | Andreas Huber <andih@google.com> | Tue Apr 04 14:42:09 2017 -0700 |
committer | Andreas Huber <andih@google.com> | Wed Apr 05 12:46:13 2017 -0700 |
tree | b04fd9d04d7f6877d1888f8bbaf58460a76a2a4e | |
parent | 9c74a5b76b0c3672ac640fc0750ccbd2b39943a1 [diff] |
Fix IHwBinder.asInterface(...) to respect the interfaceChain and return null given a binder that's unrelated. Also adds public method castFrom(IHwInterface) that calls through to asInterface(IHwBinder) without exposing that implementation detail. Bug: 36749201 Test: hidl_test_java Change-Id: Ic4bc1f22f05e692dd8e9456382492056b96a809b
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