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

Commit ce13838a authored by Amin Shaikh's avatar Amin Shaikh Committed by android-build-merger
Browse files

Merge "Expose fields in WifiConfiguration."

am: 1ea4180c

Change-Id: I6a145981692cbaf791b735d55a1a9b7aa24aee62
parents b7db5ac6 1ea4180c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -26849,6 +26849,8 @@ package android.net.wifi {
  public class WifiConfiguration implements android.os.Parcelable {
    ctor public WifiConfiguration();
    method public int describeContents();
    method public boolean hasNoInternetAccess();
    method public boolean isNoInternetAccessExpected();
    method public boolean isPasspoint();
    method public void writeToParcel(android.os.Parcel, int);
    field public java.lang.String BSSID;
+12 −0
Original line number Diff line number Diff line
@@ -608,6 +608,7 @@ public class WifiConfiguration implements Parcelable {
     * if there has been a report of it having no internet access, and, it never have had
     * internet access in the past.
     */
    @SystemApi
    public boolean hasNoInternetAccess() {
        return numNoInternetAccessReports > 0 && !validatedInternetAccess;
    }
@@ -620,6 +621,17 @@ public class WifiConfiguration implements Parcelable {
     */
    public boolean noInternetAccessExpected;

    /**
     * The WiFi configuration is expected not to have Internet access (e.g., a wireless printer, a
     * Chromecast hotspot, etc.). This will be set if the user explicitly confirms a connection to
     * this configuration and selects "don't ask again".
     * @hide
     */
    @SystemApi
    public boolean isNoInternetAccessExpected() {
        return noInternetAccessExpected;
    }

    /**
     * @hide
     * Last time the system was connected to this configuration.