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

Commit c8752107 authored by David Su's avatar David Su
Browse files

Rename WifiConfiguration.getHasEverConnected()

Renamed to hasEverConnected() to conform to API
guidelines.

Bug: 146046526
Test: compiles
Change-Id: Id7031baf7844799dd7ecafa09ff657065262a1cb
parent 3c28a8a4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -7562,11 +7562,11 @@ package android.net.wifi {
  @Deprecated public static class WifiConfiguration.NetworkSelectionStatus {
    method @Deprecated public int getDisableReasonCounter(int);
    method @Deprecated public long getDisableTime();
    method @Deprecated public boolean getHasEverConnected();
    method @Deprecated @Nullable public static String getNetworkDisableReasonString(int);
    method @Deprecated public int getNetworkSelectionDisableReason();
    method @Deprecated public int getNetworkSelectionStatus();
    method @Deprecated @NonNull public String getNetworkStatusString();
    method @Deprecated public boolean hasEverConnected();
    method @Deprecated public boolean isNetworkEnabled();
    method @Deprecated public boolean isNetworkPermanentlyDisabled();
    field @Deprecated public static final int DISABLED_ASSOCIATION_REJECTION = 1; // 0x1
+4 −4
Original line number Diff line number Diff line
@@ -1609,7 +1609,7 @@ public class WifiConfiguration implements Parcelable {
        }

        /** True if the device has ever connected to this network, false otherwise. */
        public boolean getHasEverConnected() {
        public boolean hasEverConnected() {
            return mHasEverConnected;
        }

@@ -1881,7 +1881,7 @@ public class WifiConfiguration implements Parcelable {
            setCandidate(source.getCandidate());
            setCandidateScore(source.getCandidateScore());
            setConnectChoice(source.getConnectChoice());
            setHasEverConnected(source.getHasEverConnected());
            setHasEverConnected(source.hasEverConnected());
        }

        /** @hide */
@@ -1900,7 +1900,7 @@ public class WifiConfiguration implements Parcelable {
            } else {
                dest.writeInt(CONNECT_CHOICE_NOT_EXISTS);
            }
            dest.writeInt(getHasEverConnected() ? 1 : 0);
            dest.writeInt(hasEverConnected() ? 1 : 0);
        }

        /** @hide */
@@ -2142,7 +2142,7 @@ public class WifiConfiguration implements Parcelable {
            sbuf.append(" connect choice: ").append(mNetworkSelectionStatus.getConnectChoice());
        }
        sbuf.append(" hasEverConnected: ")
                .append(mNetworkSelectionStatus.getHasEverConnected()).append("\n");
                .append(mNetworkSelectionStatus.hasEverConnected()).append("\n");

        if (this.numAssociation > 0) {
            sbuf.append(" numAssociation ").append(this.numAssociation).append("\n");