add creation/update time to WifiConfiguration
Change-Id: Iaace83e752c8aa7d740a3dfad42cd8bba80a7a08
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user