commit | d281ebce8dfae8daf5945ef6094236891f910330 | [log] [tgz] |
---|---|---|
author | Steven Moreland <smoreland@google.com> | Tue Jun 20 16:27:35 2017 -0700 |
committer | Steven Moreland <smoreland@google.com> | Tue Jun 27 16:19:40 2017 -0700 |
tree | a2cebbcfdf211875789fb4c1e2d2ad858b3233d0 | |
parent | 404db55c6285037642cd013fd17ef10ed0f9cf3a [diff] |
Don't return the passthrough interface for getStub getStub parameter to getService is only used for the registerPassthroughServiceImplementation function so that a passthrough service can be used as an implementation of a binderized service. Right now, this means the following calls are executed: BpFoo -binder-> BnFoo -> BsFoo -> IFoo (impl) But, after this change, it becomes: BpFoo -binder-> BnFoo -> IFoo (impl) Test: hidl_test Test: (sanity) device boots Test: redundant passthrough calls gone in systrace Test: GL TextureView benchmark reduced jank Bug: 62841645 Merged-In: Ia889e100b3d3ec404145efc130c2af29d4d20e46 Change-Id: Ia889e100b3d3ec404145efc130c2af29d4d20e46
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