diff options
author | Pierre Vandwalle <vandwalle@google.com> | 2015-06-16 13:55:44 -0700 |
---|---|---|
committer | Pierre Vandwalle <vandwalle@google.com> | 2015-06-16 16:56:29 -0700 |
commit | ced1a6599042826a3bf678871d6b8a9e7187e973 (patch) | |
tree | b67913b8f10bd908e13d18aef06e8d5088910933 /wifi/java/android/net | |
parent | a11ffa64366e39899bcda7448e5b5ffe727bea48 (diff) | |
download | frameworks_base-ced1a6599042826a3bf678871d6b8a9e7187e973.zip frameworks_base-ced1a6599042826a3bf678871d6b8a9e7187e973.tar.gz frameworks_base-ced1a6599042826a3bf678871d6b8a9e7187e973.tar.bz2 |
add creation/update time to WifiConfiguration
Change-Id: Iaace83e752c8aa7d740a3dfad42cd8bba80a7a08
Diffstat (limited to 'wifi/java/android/net')
-rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index a1d5dd5..5d55ec6 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -684,6 +684,18 @@ public class WifiConfiguration implements Parcelable { /** * @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 * if there has been a report of it having no internet access, and, it never have had * internet access in the past. @@ -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; } } |