WifiNative: Override hashCode for HiddenNetwork and PnoNetwork classes

The HiddenNetwork and PnoNetwork classes in WifiNative already had the
equals method, now implementation for a hashCode method added to match.

Added a unit test in WifiNativeTest that creates instances of the two
classes with same values and checks if they have similar hashcodes.

Bug: 33626203
Test: frameworks/opt/net/wifi/tests/wifitests/runtests.sh
Test: frameworks/base/wifi/tests/runtests.sh
Change-Id: I62bf655bf9619f4fe6186673b7da8eb294633474
2 files changed
tree: 176e7414e19c51e82b13b450cac2bbdfce6e6175
  1. service/
  2. PREUPLOAD.cfg