OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb922ea
)
[AWARE] Make PeerHandle comparable/hashable
author
Etan Cohen
<etancohen@google.com>
Mon, 6 Nov 2017 15:58:15 +0000
(07:58 -0800)
committer
Etan Cohen
<etancohen@google.com>
Thu, 30 Nov 2017 23:56:37 +0000
(23:56 +0000)
Add public equals()/hash() methods to PeerHandle. Allows the handle to
be used across multiple calls/sessions.
Bug:
68931709
Test: builds, unit test, integration test
Change-Id: Idc59269d4275181ed6d9a793213c681dc4e98134
wifi/java/android/net/wifi/aware/PeerHandle.java
patch
|
blob
|
history
diff --git
a/wifi/java/android/net/wifi/aware/PeerHandle.java
b/wifi/java/android/net/wifi/aware/PeerHandle.java
index
1b0aba1
..
b525212
100644
(file)
--- a/
wifi/java/android/net/wifi/aware/PeerHandle.java
+++ b/
wifi/java/android/net/wifi/aware/PeerHandle.java
@@
-33,7
+33,6
@@
public class PeerHandle {
/** @hide */
public int peerId;
- /** @hide RTT_API */
@Override
public boolean equals(Object o) {
if (this == o) {
@@
-47,7
+46,6
@@
public class PeerHandle {
return peerId == ((PeerHandle) o).peerId;
}
- /** @hide RTT_API */
@Override
public int hashCode() {
return peerId;