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

Commit 6a89ee2d authored by Roshan Pius's avatar Roshan Pius
Browse files

WifiConfiguration: Make NetworkSelectionStatus public

Expose a public constructor for |NetworkSelectionStatus| class and add a
setter in WifiConfiguration to set the |NetworkSelectionStatus| object.
Needed for config store persistence of this object.

BUG: 29273147
Change-Id: I9d9036928137760c4832567dd2b9d0fabc874940
TEST: Unit tests
parent 33cf45ca
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -1065,7 +1065,7 @@ public class WifiConfiguration implements Parcelable {
            return mHasEverConnected;
        }

        private NetworkSelectionStatus() {
        public NetworkSelectionStatus() {
            // previously stored configs will not have this parameter, so we default to false.
            mHasEverConnected = false;
        };
@@ -1313,7 +1313,7 @@ public class WifiConfiguration implements Parcelable {
     * @hide
     * network selection related member
     */
    private final NetworkSelectionStatus mNetworkSelectionStatus = new NetworkSelectionStatus();
    private NetworkSelectionStatus mNetworkSelectionStatus = new NetworkSelectionStatus();

    /**
     * @hide
@@ -1322,6 +1322,15 @@ public class WifiConfiguration implements Parcelable {
    public NetworkSelectionStatus getNetworkSelectionStatus() {
        return mNetworkSelectionStatus;
    }

    /**
     * Set the network selection status
     * @hide
     */
    public void setNetworkSelectionStatus(NetworkSelectionStatus status) {
        mNetworkSelectionStatus = status;
    }

    /**
     * @hide
     * Linked Configurations: represent the set of Wificonfigurations that are equivalent