summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Kai Shi <kaishi@google.com> 2019-03-20 13:55:47 -0700
committer Kai Shi <kaishi@google.com> 2019-03-22 15:19:54 +0000
commit555ae2e92e16331f7dfc43db756807348b7e844a (patch)
tree456d693a1c427b4e1512303842fc3360ac536be1
parent40f9d02a8441dbb7e1271343d5d1ab5eb9061f51 (diff)
Wifi Usability: address comments from API review council
Rename getIsSameRegisteredCell() to isSameRegisteredCell(). Bug: 128919394 Test: wifi unit test with frameworks/base/wifi/tests/runtests.sh Change-Id: I3549d9abbaba87971ea3c0a9edf4351289731912
-rw-r--r--api/system-current.txt2
-rw-r--r--wifi/java/android/net/wifi/WifiUsabilityStatsEntry.java2
-rw-r--r--wifi/tests/src/android/net/wifi/WifiUsabilityStatsEntryTest.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/api/system-current.txt b/api/system-current.txt
index f1dc59e04a16..e7b5c2438b0d 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -4931,7 +4931,6 @@ package android.net.wifi {
method public int getCellularDataNetworkType();
method public int getCellularSignalStrengthDb();
method public int getCellularSignalStrengthDbm();
- method public boolean getIsSameRegisteredCell();
method public int getLinkSpeedMbps();
method public int getProbeElapsedTimeSinceLastUpdateMillis();
method public int getProbeMcsRateSinceLastUpdate();
@@ -4955,6 +4954,7 @@ package android.net.wifi {
method public long getTotalTxBad();
method public long getTotalTxRetries();
method public long getTotalTxSuccess();
+ method public boolean isSameRegisteredCell();
method public void writeToParcel(android.os.Parcel, int);
field @NonNull public static final android.os.Parcelable.Creator<android.net.wifi.WifiUsabilityStatsEntry> CREATOR;
field public static final int PROBE_STATUS_FAILURE = 3; // 0x3
diff --git a/wifi/java/android/net/wifi/WifiUsabilityStatsEntry.java b/wifi/java/android/net/wifi/WifiUsabilityStatsEntry.java
index 01176f223fe2..e59516485112 100644
--- a/wifi/java/android/net/wifi/WifiUsabilityStatsEntry.java
+++ b/wifi/java/android/net/wifi/WifiUsabilityStatsEntry.java
@@ -345,7 +345,7 @@ public final class WifiUsabilityStatsEntry implements Parcelable {
}
/** Whether the primary registered cell of current entry is same as that of previous entry */
- public boolean getIsSameRegisteredCell() {
+ public boolean isSameRegisteredCell() {
return mIsSameRegisteredCell;
}
}
diff --git a/wifi/tests/src/android/net/wifi/WifiUsabilityStatsEntryTest.java b/wifi/tests/src/android/net/wifi/WifiUsabilityStatsEntryTest.java
index cd60f029dcce..5184152bce34 100644
--- a/wifi/tests/src/android/net/wifi/WifiUsabilityStatsEntryTest.java
+++ b/wifi/tests/src/android/net/wifi/WifiUsabilityStatsEntryTest.java
@@ -116,6 +116,6 @@ public class WifiUsabilityStatsEntryTest {
assertEquals(expected.getCellularSignalStrengthDbm(),
actual.getCellularSignalStrengthDbm());
assertEquals(expected.getCellularSignalStrengthDb(), actual.getCellularSignalStrengthDb());
- assertEquals(expected.getIsSameRegisteredCell(), actual.getIsSameRegisteredCell());
+ assertEquals(expected.isSameRegisteredCell(), actual.isSameRegisteredCell());
}
}