commit | 96bb06390ba3b7ae8e3235a2912f9e766dbb1f3e | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Nov 14 16:08:37 2017 -0800 |
committer | Yifan Hong <elsk@google.com> | Mon Nov 20 11:50:48 2017 -0800 |
tree | d92a8471147ad6989fce1ee647c5844761d0aace | |
parent | 4f4b382ac564ea8313f5d4b49fdefe1024c8e335 [diff] |
Use getPidIfSharable() in autogen C++/Java. C++: calls into android::hardware::details:: getPidIfSharable() and let libhidl decide whether PID should be shared in getDebugInfo(). Java: calls into android.os.HidlSupport.getPidIfSharable() that calls into C++ equivalent. Bug: 68430495 Fixes: 68992575 Test: lshal Change-Id: Iad6099368a5feaae1eed63bcee52a437444ab63e
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