diff options
author | Nate Jiang <qiangjiang@google.com> | 2019-11-28 01:15:22 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2019-11-28 01:15:22 +0000 |
commit | c3aa2712ce17a826335ba38577b37206e699f0cf (patch) | |
tree | a8f8e49e01d93aef120fadc0f6adaa8dc04ebf38 /service | |
parent | 47ffeba6852b692b402b78c27f5389fe9e1847dc (diff) | |
parent | c271393067844eae77a4f7a651163b1eaba9e6b7 (diff) |
Merge "[NetworkSuggestion] store the share credential with user flag."
Diffstat (limited to 'service')
-rw-r--r-- | service/java/com/android/server/wifi/NetworkSuggestionStoreData.java | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/service/java/com/android/server/wifi/NetworkSuggestionStoreData.java b/service/java/com/android/server/wifi/NetworkSuggestionStoreData.java index 810600b68..9641f5c16 100644 --- a/service/java/com/android/server/wifi/NetworkSuggestionStoreData.java +++ b/service/java/com/android/server/wifi/NetworkSuggestionStoreData.java @@ -63,6 +63,8 @@ public class NetworkSuggestionStoreData implements WifiConfigStore.StoreData { "WifiEnterpriseConfiguration"; private static final String XML_TAG_IS_APP_INTERACTION_REQUIRED = "IsAppInteractionRequired"; private static final String XML_TAG_IS_USER_INTERACTION_REQUIRED = "IsUserInteractionRequired"; + private static final String XML_TAG_IS_USER_ALLOWED_TO_MANUALLY_CONNECT = + "IsUserAllowedToManuallyConnect"; private static final String XML_TAG_SUGGESTOR_UID = "SuggestorUid"; private static final String XML_TAG_SUGGESTOR_PACKAGE_NAME = "SuggestorPackageName"; private static final String XML_TAG_SUGGESTOR_FEATURE_ID = "SuggestorFeatureId"; @@ -230,6 +232,8 @@ public class NetworkSuggestionStoreData implements WifiConfigStore.StoreData { suggestion.isAppInteractionRequired); XmlUtil.writeNextValue(out, XML_TAG_IS_USER_INTERACTION_REQUIRED, suggestion.isUserInteractionRequired); + XmlUtil.writeNextValue(out, XML_TAG_IS_USER_ALLOWED_TO_MANUALLY_CONNECT, + suggestion.isUserAllowedToManuallyConnect); XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_UID, suggestion.suggestorUid); XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_PACKAGE_NAME, suggestion.suggestorPackageName); @@ -319,6 +323,7 @@ public class NetworkSuggestionStoreData implements WifiConfigStore.StoreData { PasspointConfiguration passpointConfiguration = null; boolean isAppInteractionRequired = false; boolean isUserInteractionRequired = false; + boolean isUserAllowedToManuallyConnect = false; // Backward compatibility. int suggestorUid = Process.INVALID_UID; String suggestorPackageName = null; @@ -335,6 +340,9 @@ public class NetworkSuggestionStoreData implements WifiConfigStore.StoreData { case XML_TAG_IS_USER_INTERACTION_REQUIRED: isUserInteractionRequired = (boolean) value; break; + case XML_TAG_IS_USER_ALLOWED_TO_MANUALLY_CONNECT: + isUserAllowedToManuallyConnect = (boolean) value; + break; case XML_TAG_SUGGESTOR_UID: suggestorUid = (int) value; break; @@ -402,7 +410,8 @@ public class NetworkSuggestionStoreData implements WifiConfigStore.StoreData { } return new WifiNetworkSuggestion( wifiConfiguration, passpointConfiguration, isAppInteractionRequired, - isUserInteractionRequired, suggestorUid, suggestorPackageName); + isUserInteractionRequired, isUserAllowedToManuallyConnect, + suggestorUid, suggestorPackageName); } } |