Keep most recently connection network flag

Bug: 150799593
Test: atest com.net.android.wifi
Change-Id: I83fe6913b32459a90bf4ebb08b6f24cd01c4d01b
This commit is contained in:
Nate Jiang
2020-03-16 11:27:00 -07:00
parent 146db0e46b
commit c6b1646265

View File

@@ -2356,6 +2356,8 @@ public class WifiConfiguration implements Parcelable {
sbuf.append(" lcuid=" + lastConnectUid);
sbuf.append(" allowAutojoin=" + allowAutojoin);
sbuf.append(" noInternetAccessExpected=" + noInternetAccessExpected);
sbuf.append(" mostRecentlyConnected=" + isMostRecentlyConnected);
sbuf.append(" ");
if (this.lastConnected != 0) {
@@ -2964,4 +2966,11 @@ public class WifiConfiguration implements Parcelable {
return mPasspointUniqueId;
}
/**
* If network is one of the most recently connected.
* For framework internal use only. Do not parcel.
* @hide
*/
public boolean isMostRecentlyConnected = false;
}