commit | f8f2bf364657d235cf8668543522ee1c15325dc2 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Wed Jan 04 11:58:28 2017 -0800 |
committer | Steven Moreland <smoreland@google.com> | Thu Jan 05 18:23:38 2017 +0000 |
tree | aeda48c0957ab4d9809fe6dfdf76cf0f8ffd2497 | |
parent | b40ef02ca14e507a5a5b878c90eaac52ffe64fd9 [diff] |
Remove getInterfaceVersion from hidl interfaces. It's not used anywhere and serves no purpose. V1_0 maps to {1, 0} via getInterfaceVersion. However, the information this converys was originally only for certain version checks. getInterfaceChain provides functionality that actually used. Bug: 34041669 Test: hidl_test Note this will require all hals on a device to be recompiled. This is what I used to test where phone-kill kills a service on the device: make -j64 android.hidl.memory@1.0{,-impl,-service} hwservicemanager hidl_test && adb sync && phone-kill hwservicemanager && phone-kill android.hidl.memory@1.0-service && adb shell ./data/nativetest64/hidl_test/hidl_test64 Change-Id: I1a756a24393a7d05024b23a90bb7f5b17e3abb58
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