add creation/update time to WifiConfiguration

Change-Id: Iaace83e752c8aa7d740a3dfad42cd8bba80a7a08
This commit is contained in:
Pierre Vandwalle
2015-06-16 13:55:44 -07:00
parent a11ffa6436
commit ced1a65990

View File

@@ -682,6 +682,18 @@ public class WifiConfiguration implements Parcelable {
*/ */
public int numNoInternetAccessReports; 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 * @hide
* The WiFi configuration is considered to have no internet access for purpose of autojoining * 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(" numNoInternetAccessReports ");
sbuf.append(this.numNoInternetAccessReports).append("\n"); 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.didSelfAdd) sbuf.append(" didSelfAdd");
if (this.selfAdded) sbuf.append(" selfAdded"); if (this.selfAdded) sbuf.append(" selfAdded");
if (this.validatedInternetAccess) sbuf.append(" validatedInternetAccess"); if (this.validatedInternetAccess) sbuf.append(" validatedInternetAccess");
@@ -1505,6 +1523,8 @@ public class WifiConfiguration implements Parcelable {
userApproved = source.userApproved; userApproved = source.userApproved;
numNoInternetAccessReports = source.numNoInternetAccessReports; numNoInternetAccessReports = source.numNoInternetAccessReports;
noInternetAccessExpected = source.noInternetAccessExpected; noInternetAccessExpected = source.noInternetAccessExpected;
creationTime = source.creationTime;
updateTime = source.updateTime;
} }
} }