summaryrefslogtreecommitdiffstats
path: root/wifi
diff options
context:
space:
mode:
authorChelsea Derrick <chelsead@google.com>2014-08-07 11:14:20 -0700
committerChelsea Derrick <chelsead@google.com>2014-08-07 14:43:40 -0700
commite75c0b8e3becd9f875679a5240f3b1e26d089a3f (patch)
tree1cdb74917d1e36083112e2f214c68f363fa16e29 /wifi
parentd5324e4183c97ae7271b6eda4204d9f0dc003023 (diff)
downloadframeworks_base-e75c0b8e3becd9f875679a5240f3b1e26d089a3f.zip
frameworks_base-e75c0b8e3becd9f875679a5240f3b1e26d089a3f.tar.gz
frameworks_base-e75c0b8e3becd9f875679a5240f3b1e26d089a3f.tar.bz2
Unhide broadcasts for WiFi network changes.
This change will fulfill the same role as ag/487624, which unhid other broadcast constants (and is being rolled back). We can leverage the existing broadcasts in this CL rather than introducing new ones. They just need to be exposed. Bug: 16871063 Change-Id: I91462851c8016ed962cdafa54e9ec938d52c84b6
Diffstat (limited to 'wifi')
-rw-r--r--wifi/java/android/net/wifi/WifiManager.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java
index dfed174..1ca54bc 100644
--- a/wifi/java/android/net/wifi/WifiManager.java
+++ b/wifi/java/android/net/wifi/WifiManager.java
@@ -343,6 +343,7 @@ public class WifiManager {
* Wi-Fi configurations changed, {@link #EXTRA_WIFI_CONFIGURATION} will not be present.
* @hide
*/
+ @SystemApi
public static final String CONFIGURED_NETWORKS_CHANGED_ACTION =
"android.net.wifi.CONFIGURED_NETWORKS_CHANGE";
/**
@@ -351,6 +352,7 @@ public class WifiManager {
* broadcast is sent.
* @hide
*/
+ @SystemApi
public static final String EXTRA_WIFI_CONFIGURATION = "wifiConfiguration";
/**
* Multiple network configurations have changed.
@@ -358,6 +360,7 @@ public class WifiManager {
*
* @hide
*/
+ @SystemApi
public static final String EXTRA_MULTIPLE_NETWORKS_CHANGED = "multipleChanges";
/**
* The lookup key for an integer indicating the reason a Wi-Fi network configuration
@@ -365,23 +368,27 @@ public class WifiManager {
* @see #CONFIGURED_NETWORKS_CHANGED_ACTION
* @hide
*/
+ @SystemApi
public static final String EXTRA_CHANGE_REASON = "changeReason";
/**
* The configuration is new and was added.
* @hide
*/
+ @SystemApi
public static final int CHANGE_REASON_ADDED = 0;
/**
* The configuration was removed and is no longer present in the system's list of
* configured networks.
* @hide
*/
+ @SystemApi
public static final int CHANGE_REASON_REMOVED = 1;
/**
* The configuration has changed as a result of explicit action or because the system
* took an automated action such as disabling a malfunctioning configuration.
* @hide
*/
+ @SystemApi
public static final int CHANGE_REASON_CONFIG_CHANGE = 2;
/**
* An access point scan has completed, and results are available from the supplicant.