diff options
author | Vinit Deshpande <vinitd@google.com> | 2014-05-20 18:42:36 -0700 |
---|---|---|
committer | Vinit Deshpande <vinitd@google.com> | 2014-05-20 22:26:19 -0700 |
commit | 674ca8a1f47c07033645a1016e68a2e82597e2fa (patch) | |
tree | bce4377a4f66ca0ae3816563bbcbe8a754846f56 /api | |
parent | cd956e0fe21dc1ba8f814950f109648499c8ac5f (diff) | |
download | frameworks_base-674ca8a1f47c07033645a1016e68a2e82597e2fa.zip frameworks_base-674ca8a1f47c07033645a1016e68a2e82597e2fa.tar.gz frameworks_base-674ca8a1f47c07033645a1016e68a2e82597e2fa.tar.bz2 |
Make Wifi WPS API available on application layer
Un-hide WPS methods (and required interface classes, etc.) of WifiManager to
enable Apps to start/stop the WPS procedure, add a patch for WPS method
KEYPAD to avoid early failure callbacks. (Methods PBC, DISPLAY, KEYPAD
tested on 4.4.2_r2.)
Change-Id: I25aafdc4b637c87d754d4fdb70e40a34a569b738
Signed-off-by: Olaf Stoyke <o.stoyke@avm.de>
Diffstat (limited to 'api')
-rw-r--r-- | api/current.txt | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index c4f1896..def0755 100644 --- a/api/current.txt +++ b/api/current.txt @@ -17067,6 +17067,7 @@ package android.net.wifi { public class WifiManager { method public int addNetwork(android.net.wifi.WifiConfiguration); method public static int calculateSignalLevel(int, int); + method public void cancelWps(android.net.wifi.WifiManager.ActionListener); method public static int compareSignalLevel(int, int); method public android.net.wifi.WifiManager.MulticastLock createMulticastLock(java.lang.String); method public android.net.wifi.WifiManager.WifiLock createWifiLock(int, java.lang.String); @@ -17090,9 +17091,12 @@ package android.net.wifi { method public void setTdlsEnabledWithMacAddress(java.lang.String, boolean); method public boolean setWifiEnabled(boolean); method public boolean startScan(); + method public void startWps(android.net.wifi.WpsInfo, android.net.wifi.WifiManager.WpsListener); method public int updateNetwork(android.net.wifi.WifiConfiguration); field public static final java.lang.String ACTION_PICK_WIFI_NETWORK = "android.net.wifi.PICK_WIFI_NETWORK"; field public static final java.lang.String ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE = "android.net.wifi.action.REQUEST_SCAN_ALWAYS_AVAILABLE"; + field public static final int BUSY = 2; // 0x2 + field public static final int ERROR = 0; // 0x0 field public static final int ERROR_AUTHENTICATING = 1; // 0x1 field public static final java.lang.String EXTRA_BSSID = "bssid"; field public static final java.lang.String EXTRA_NETWORK_INFO = "networkInfo"; @@ -17103,6 +17107,8 @@ package android.net.wifi { field public static final java.lang.String EXTRA_SUPPLICANT_ERROR = "supplicantError"; field public static final java.lang.String EXTRA_WIFI_INFO = "wifiInfo"; field public static final java.lang.String EXTRA_WIFI_STATE = "wifi_state"; + field public static final int INVALID_ARGS = 8; // 0x8 + field public static final int IN_PROGRESS = 1; // 0x1 field public static final java.lang.String NETWORK_IDS_CHANGED_ACTION = "android.net.wifi.NETWORK_IDS_CHANGED"; field public static final java.lang.String NETWORK_STATE_CHANGED_ACTION = "android.net.wifi.STATE_CHANGE"; field public static final java.lang.String RSSI_CHANGED_ACTION = "android.net.wifi.RSSI_CHANGED"; @@ -17118,6 +17124,16 @@ package android.net.wifi { field public static final int WIFI_STATE_ENABLED = 3; // 0x3 field public static final int WIFI_STATE_ENABLING = 2; // 0x2 field public static final int WIFI_STATE_UNKNOWN = 4; // 0x4 + field public static final int WPS_AUTH_FAILURE = 6; // 0x6 + field public static final int WPS_OVERLAP_ERROR = 3; // 0x3 + field public static final int WPS_TIMED_OUT = 7; // 0x7 + field public static final int WPS_TKIP_ONLY_PROHIBITED = 5; // 0x5 + field public static final int WPS_WEP_PROHIBITED = 4; // 0x4 + } + + public static abstract interface WifiManager.ActionListener { + method public abstract void onFailure(int); + method public abstract void onSuccess(); } public class WifiManager.MulticastLock { @@ -17135,6 +17151,12 @@ package android.net.wifi { method public void setWorkSource(android.os.WorkSource); } + public static abstract interface WifiManager.WpsListener { + method public abstract void onCompletion(); + method public abstract void onFailure(int); + method public abstract void onStartSuccess(java.lang.String); + } + public class WifiScanner { method public void configureWifiChange(int, int, int, int, int, android.net.wifi.WifiScanner.HotspotInfo[]); method public void resetHotlist(android.net.wifi.WifiScanner.HotlistListener); @@ -17220,6 +17242,7 @@ package android.net.wifi { ctor public WpsInfo(android.net.wifi.WpsInfo); method public int describeContents(); method public void writeToParcel(android.os.Parcel, int); + field public java.lang.String BSSID; field public static final android.os.Parcelable.Creator CREATOR; field public static final int DISPLAY = 1; // 0x1 field public static final int INVALID = 4; // 0x4 |