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
This commit is contained in:
Kai Shi
2019-03-20 13:55:47 -07:00
parent 40f9d02a84
commit 555ae2e92e
3 changed files with 3 additions and 3 deletions

View File

@@ -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

View File

@@ -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;
}
}

View File

@@ -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());
}
}