commit | f89e1063e162f09b6826bbc4960703649ec757bb | [log] [tgz] |
---|---|---|
author | Yifan Hong <elsk@google.com> | Tue Oct 31 17:31:08 2017 -0700 |
committer | Yifan Hong <elsk@google.com> | Wed Nov 01 18:29:52 2017 -0700 |
tree | 0d8e7f751029394c11bd5308da8ecffe8138d786 | |
parent | a23f1ae530383d3a0d0e5178a0bf988da789e893 [diff] |
Allow equality checking and hash for HIDL interface proxies. IFoo.Proxy.equals() -> HidlSupport.equals() -> IHwInterface.asBinder().equals() -> HwRemoteBinder.equals(). IFoo.Stub.equals() -> default Object.equals() Notice that IHwInterface.asBinder() returns mRemote(of type HwRemoteBinder) for proxies and itself (of type HwBinder) for stubs. If IFoo.Stub.asBinder() had not return "this", its equals() should also be overridden. Test: hidl_test_java Bug: 68727931 Change-Id: I57936b165fbc0460d14792ce58f1f69a909547a1
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