diff options
| author | Peter Qiu <zqiu@google.com> | 2017-03-16 23:54:12 +0000 |
|---|---|---|
| committer | android-build-merger <android-build-merger@google.com> | 2017-03-16 23:54:12 +0000 |
| commit | b1aff6b19046553a3ab149fd8d3fa6dbd015ea64 (patch) | |
| tree | dc7e691b53a589c717e1d138a5223ca7882363dd | |
| parent | 18a8af21b52e71a8f3f04c8834b5531ebdcefc20 (diff) | |
| parent | 01213393fbcf6514cb1490cfda6d19e2694b3b53 (diff) | |
Merge "Merge "wifi: add a flag indicating legacy Passpoint configuration" am: 2d87679a11 am: 1228b6cdec" into nyc-mr2-dev-plus-aosp
am: 01213393fb
Change-Id: Ic5ea3f8c8521e818ee771b20cdb4d43875d6daa7
| -rw-r--r-- | wifi/java/android/net/wifi/WifiConfiguration.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java index a1099f8045c5..c9b68c7a5845 100644 --- a/wifi/java/android/net/wifi/WifiConfiguration.java +++ b/wifi/java/android/net/wifi/WifiConfiguration.java @@ -434,6 +434,13 @@ public class WifiConfiguration implements Parcelable { public int dtimInterval = 0; /** + * Flag indicating if this configuration represents a legacy Passpoint configuration + * (Release N or older). This is used for migrating Passpoint configuration from N to O. + * This will no longer be needed after O. + * @hide + */ + public boolean isLegacyPasspointConfig = false; + /** * @hide * Uid of app creating the configuration */ @@ -1961,6 +1968,7 @@ public class WifiConfiguration implements Parcelable { mCachedConfigKey = null; //force null configKey selfAdded = source.selfAdded; validatedInternetAccess = source.validatedInternetAccess; + isLegacyPasspointConfig = source.isLegacyPasspointConfig; ephemeral = source.ephemeral; meteredHint = source.meteredHint; meteredOverride = source.meteredOverride; @@ -2037,6 +2045,7 @@ public class WifiConfiguration implements Parcelable { dest.writeInt(selfAdded ? 1 : 0); dest.writeInt(didSelfAdd ? 1 : 0); dest.writeInt(validatedInternetAccess ? 1 : 0); + dest.writeInt(isLegacyPasspointConfig ? 1 : 0); dest.writeInt(ephemeral ? 1 : 0); dest.writeInt(meteredHint ? 1 : 0); dest.writeInt(meteredOverride ? 1 : 0); @@ -2103,6 +2112,7 @@ public class WifiConfiguration implements Parcelable { config.selfAdded = in.readInt() != 0; config.didSelfAdd = in.readInt() != 0; config.validatedInternetAccess = in.readInt() != 0; + config.isLegacyPasspointConfig = in.readInt() != 0; config.ephemeral = in.readInt() != 0; config.meteredHint = in.readInt() != 0; config.meteredOverride = in.readInt() != 0; |
