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

Commit 48e63d60 authored by Pierre Vandwalle's avatar Pierre Vandwalle Committed by Android Git Automerger
Browse files

am ced1a659: add creation/update time to WifiConfiguration

* commit 'ced1a659':
  add creation/update time to WifiConfiguration
parents 25acdffa ced1a659
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
@@ -682,6 +682,18 @@ public class WifiConfiguration implements Parcelable {
     */
    public int numNoInternetAccessReports;

    /**
     * @hide
     * For debug: date at which the config was last updated
     */
    public String updateTime;

    /**
     * @hide
     * For debug: date at which the config was last updated
     */
    public String creationTime;

    /**
     * @hide
     * The WiFi configuration is considered to have no internet access for purpose of autojoining
@@ -1000,6 +1012,12 @@ public class WifiConfiguration implements Parcelable {
            sbuf.append(" numNoInternetAccessReports ");
            sbuf.append(this.numNoInternetAccessReports).append("\n");
        }
        if (this.updateTime != null) {
            sbuf.append("creation=").append(this.updateTime).append("\n");
        }
        if (this.creationTime != null) {
            sbuf.append("update=").append(this.creationTime).append("\n");
        }
        if (this.didSelfAdd) sbuf.append(" didSelfAdd");
        if (this.selfAdded) sbuf.append(" selfAdded");
        if (this.validatedInternetAccess) sbuf.append(" validatedInternetAccess");
@@ -1505,6 +1523,8 @@ public class WifiConfiguration implements Parcelable {
            userApproved = source.userApproved;
            numNoInternetAccessReports = source.numNoInternetAccessReports;
            noInternetAccessExpected = source.noInternetAccessExpected;
            creationTime = source.creationTime;
            updateTime = source.updateTime;
        }
    }