summaryrefslogtreecommitdiffstats
path: root/wifi/java/android/net/wifi/WifiConfiguration.java
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2014-10-15 16:03:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-15 16:03:38 +0000
commitbc2ccb48d3cd4cb7a9c5fb798f15d21620cc03f1 (patch)
treeedeb3decf919ef98fdcbe3a666df6de790d58d03 /wifi/java/android/net/wifi/WifiConfiguration.java
parent1c6cfdf64392cd0dec26b5e08ea84c4ee935f389 (diff)
parent1199a4c436b4e08306c02f615360e233124bff55 (diff)
downloadframeworks_base-bc2ccb48d3cd4cb7a9c5fb798f15d21620cc03f1.zip
frameworks_base-bc2ccb48d3cd4cb7a9c5fb798f15d21620cc03f1.tar.gz
frameworks_base-bc2ccb48d3cd4cb7a9c5fb798f15d21620cc03f1.tar.bz2
am 1199a4c4: am f2a598e4: am 074c5b5b: Merge "Don\'t drop WifiConfiguration\'s ephemeral bit on copy/parcel." into lmp-mr1-dev
* commit '1199a4c436b4e08306c02f615360e233124bff55': Don't drop WifiConfiguration's ephemeral bit on copy/parcel.
Diffstat (limited to 'wifi/java/android/net/wifi/WifiConfiguration.java')
-rw-r--r--wifi/java/android/net/wifi/WifiConfiguration.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiConfiguration.java b/wifi/java/android/net/wifi/WifiConfiguration.java
index 6220650..853d843 100644
--- a/wifi/java/android/net/wifi/WifiConfiguration.java
+++ b/wifi/java/android/net/wifi/WifiConfiguration.java
@@ -1033,7 +1033,8 @@ public class WifiConfiguration implements Parcelable {
if (this.didSelfAdd) sbuf.append(" didSelfAdd");
if (this.selfAdded) sbuf.append(" selfAdded");
if (this.noInternetAccess) sbuf.append(" noInternetAccess");
- if (this.didSelfAdd || this.selfAdded || this.noInternetAccess) {
+ if (this.ephemeral) sbuf.append(" ephemeral");
+ if (this.didSelfAdd || this.selfAdded || this.noInternetAccess || this.ephemeral) {
sbuf.append("\n");
}
sbuf.append(" KeyMgmt:");
@@ -1509,6 +1510,7 @@ public class WifiConfiguration implements Parcelable {
autoJoinStatus = source.autoJoinStatus;
selfAdded = source.selfAdded;
noInternetAccess = source.noInternetAccess;
+ ephemeral = source.ephemeral;
if (source.visibility != null) {
visibility = new Visibility(source.visibility);
}
@@ -1588,6 +1590,7 @@ public class WifiConfiguration implements Parcelable {
dest.writeInt(selfAdded ? 1 : 0);
dest.writeInt(didSelfAdd ? 1 : 0);
dest.writeInt(noInternetAccess ? 1 : 0);
+ dest.writeInt(ephemeral ? 1 : 0);
dest.writeInt(creatorUid);
dest.writeInt(lastConnectUid);
dest.writeInt(lastUpdateUid);
@@ -1651,6 +1654,7 @@ public class WifiConfiguration implements Parcelable {
config.selfAdded = in.readInt() != 0;
config.didSelfAdd = in.readInt() != 0;
config.noInternetAccess = in.readInt() != 0;
+ config.ephemeral = in.readInt() != 0;
config.creatorUid = in.readInt();
config.lastConnectUid = in.readInt();
config.lastUpdateUid = in.readInt();