commit | 9bf5a09af6faa5ca009314cbf773ae0053a6ab7c | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Oct 25 04:50:54 2017 +0000 |
committer | Steven Moreland <smoreland@google.com> | Tue Oct 31 12:01:24 2017 -0700 |
tree | 8675debf9cd967c0625f7e40bf5a72a183128204 | |
parent | 25399105b47e2214499d4c97682ebf232a7e4623 [diff] |
Reland "HIDL Java getService now the same as C++." Add getService(retry) in Java for C++ feature parity. Due to ABI stability reasons, the API can't be made exactly as the C++ API. retry no retry C++ getService tryGetService Java getService(true) getService()/getService(false) getService(true) should be preferred. This will get the HIDL service and return it IFF it is declared in the VINTF manifest/is served. Test: hidl_test_java Bug: 67981006 Change-Id: Ic2e41efafc50afb50126f3e628439fc1d20f4e1c
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 hidl-gen -L hash -r android.hardware:hardware/interfaces -r android.hidl:system/libhidl/transport android.hardware.nfc@1.0