am ced1a659: add creation/update time to WifiConfiguration
* commit 'ced1a6599042826a3bf678871d6b8a9e7187e973': add creation/update time to WifiConfiguration
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user