commit | fa7f58c1b100150bfabc1a016c92679ea7ab131a | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Fri Jan 20 15:43:16 2017 -0800 |
committer | Yifan Hong <elsk@google.com> | Tue Jan 24 17:14:12 2017 -0800 |
tree | bc11c00f679143dc0d125b706eced2d9a1f63a43 | |
parent | c672c805e549a6702be4296e0a4261f93acb206b [diff] |
getService respects the vendor interface object. It will get the expected transport method from the vendor interface object, and provide the service accordingly. If the vendor interface object isn't available or the item doesn't exist, fall back to the old behavior (that is, if getStub then return PT service; otherwise try binderized service first, then return PT service.) If the item does exist then only that tranport mode is tried. Test: hidl_test Test: run the following on internal master: lunch marlin-userdebug make -j64 ENABLE_TREBLE=true flashall adb logcat -e "getTransportFromManifest" (verifies output has NFC and other passthrough hals) (dumpstate, wifi, fingerprint are not there) adb shell am bug-report adb logcat -e "getTransportFromManifest" (now dumpstate shows up) adb shell dumpsys --hw (verifies that NFC, Wi-Fi, fingerprint, dumpstate are in the list) make hidl_test -j64 && adb sync && hidl_test (where flashall runs the script to flash the device and enable writing on /system) Bug: 32718841 Change-Id: Ia4df9fd1530790d610c0b12c3c4694486d56977f
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