summaryrefslogtreecommitdiffstats
path: root/wifi/java/android
diff options
context:
space:
mode:
authorJeff Davidson <jpd@google.com>2014-10-15 15:49:25 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-10-15 15:49:26 +0000
commit074c5b5b65295ee57c4223360604aba51479d783 (patch)
tree8963d6731d91a316e6236103793c2d4e7b25f35c /wifi/java/android
parent234703b3a1d2477b38be9402e69652ecaee6ee68 (diff)
parent8faf2a2a15853368a14babf935c156664b5f0b6c (diff)
downloadframeworks_base-074c5b5b65295ee57c4223360604aba51479d783.zip
frameworks_base-074c5b5b65295ee57c4223360604aba51479d783.tar.gz
frameworks_base-074c5b5b65295ee57c4223360604aba51479d783.tar.bz2
Merge "Don't drop WifiConfiguration's ephemeral bit on copy/parcel." into lmp-mr1-dev
Diffstat (limited to 'wifi/java/android')
-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 02e610c..0db7658 100644
--- a/wifi/java/android/net/wifi/WifiConfiguration.java
+++ b/wifi/java/android/net/wifi/WifiConfiguration.java
@@ -977,7 +977,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:");
@@ -1434,6 +1435,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);
}
@@ -1510,6 +1512,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);
@@ -1570,6 +1573,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();