am 48e63d60: am ced1a659: add creation/update time to WifiConfiguration

* commit '48e63d60916354cdc71ddbd8df0b01cc054d2b00':
  add creation/update time to WifiConfiguration
This commit is contained in:
Pierre Vandwalle
2015-06-17 00:20:39 +00:00
committed by Android Git Automerger

View File

@@ -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;
}
}