Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 555ae2e9 authored by Kai Shi's avatar Kai Shi
Browse files

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
parent 40f9d02a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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;
    }
}
+1 −1
Original line number Diff line number Diff line
@@ -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());
    }
}