diff options
author | Wenchao Tong <tongwenchao@google.com> | 2014-06-18 12:59:21 -0700 |
---|---|---|
committer | Chelsea Derrick <chelsead@google.com> | 2014-07-16 22:16:56 +0000 |
commit | cdd5858e481fb0087c40c5997a9fa1446b326165 (patch) | |
tree | 77431671b1cca6c916fcf903461e1d30795741e6 /wifi/java | |
parent | a51cab9288fea0a8c8ce9a4ccdb834a11984b32c (diff) | |
download | frameworks_base-cdd5858e481fb0087c40c5997a9fa1446b326165.zip frameworks_base-cdd5858e481fb0087c40c5997a9fa1446b326165.tar.gz frameworks_base-cdd5858e481fb0087c40c5997a9fa1446b326165.tar.bz2 |
Changes in framework for WIFI_CREDENTIAL_CHANGE broadcast. [DO NOT MERGE]
* Only allow system app to send/receive
WIFI_CREDENTIAL_CHANGE.
* Define constants in WifiManager.
Bug: 15703353
Change-Id: I4bcc6bc82ec01952500eef3965cf81116bba693d
(cherry picked from commit f4a43f196e1132968a8add60efa4ae4558f8b010)
Diffstat (limited to 'wifi/java')
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index cf4cb89..7ad05ab 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -18,6 +18,7 @@ package android.net.wifi; import android.annotation.SdkConstant; import android.annotation.SdkConstant.SdkConstantType; +import android.annotation.SystemApi; import android.content.Context; import android.net.DhcpInfo; import android.net.wifi.ScanSettings; @@ -82,7 +83,29 @@ public class WifiManager { * Extra int indicating scan availability, WIFI_STATE_ENABLED and WIFI_STATE_DISABLED * @hide */ - public static final String EXTRA_SCAN_AVAILABLE = "scan_enabled"; + public static final String EXTRA_SCAN_AVAILABLE = "scan_enabled"; + + /** + * Broadcast intent action indicating that the credential of a Wi-Fi network + * has been changed. One extra provides the ssid of the network. Another + * extra provides the event type, whether the credential is saved or forgot. + * @hide + */ + @SystemApi + public static final String WIFI_CREDENTIAL_CHANGED_ACTION = + "android.net.wifi.WIFI_CREDENTIAL_CHANGED"; + /** @hide */ + @SystemApi + public static final String EXTRA_WIFI_CREDENTIAL_EVENT_TYPE = "et"; + /** @hide */ + @SystemApi + public static final String EXTRA_WIFI_CREDENTIAL_SSID = "ssid"; + /** @hide */ + @SystemApi + public static final int WIFI_CREDENTIAL_SAVED = 0; + /** @hide */ + @SystemApi + public static final int WIFI_CREDENTIAL_FORGOT = 1; /** * Broadcast intent action indicating that Wi-Fi has been enabled, disabled, |