OSDN Git Service

Add HidlSupport.java for utility methods for HIDL.
authorYifan Hong <elsk@google.com>
Mon, 27 Mar 2017 20:02:34 +0000 (13:02 -0700)
committerYifan Hong <elsk@google.com>
Tue, 28 Mar 2017 22:47:32 +0000 (22:47 +0000)
commit8ef5feadb8b5709e8768847a73411cefa801a18f
tree06c4ca17206409c3fb73eb9c2048491c8323d638
parenta1e206a335f5050618564d2129fbc2bcd0e20730
Add HidlSupport.java for utility methods for HIDL.

The old .equals code uses Objects.deepEquals,
which does not handle for, e.g. ArrayList<byte[]>.
Create our own recursive HidlSupport.deepEquals
and deepHashCode method to handle these edge cases.

Bug: 36454147
Test: hidl_test_java
Change-Id: I56dc48985486b561263c260cf43aa90f30d581d0
core/java/android/os/HidlSupport.java [new file with mode: 0644]