diff options
author | Pierre Vandwalle <vandwalle@google.com> | 2015-03-13 13:58:53 -0700 |
---|---|---|
committer | Pierre Vandwalle <vandwalle@google.com> | 2015-03-13 13:58:53 -0700 |
commit | 5914caff06f9790238bea0536acfbf533cee9046 (patch) | |
tree | 7825d78ab21a784b1e1f9bdcf0ba49571552e06a /wifi | |
parent | c98482663674cfae7e3640cd1dbd263d467f536d (diff) | |
download | frameworks_base-5914caff06f9790238bea0536acfbf533cee9046.zip frameworks_base-5914caff06f9790238bea0536acfbf533cee9046.tar.gz frameworks_base-5914caff06f9790238bea0536acfbf533cee9046.tar.bz2 |
export API to disable autojoin scan initial implementation
Change-Id: I28e268dd8b859a3a22c3d6f699216bbd7124af26
Diffstat (limited to 'wifi')
-rw-r--r-- | wifi/java/android/net/wifi/IWifiManager.aidl | 4 | ||||
-rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 21 |
2 files changed, 25 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index b87a1e9..ca95ec1 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -153,6 +153,10 @@ interface IWifiManager void setAllowScansWithTraffic(int enabled); + boolean getAllowScansWhileAssociated(); + + void setAllowScansWhileAssociated(boolean enabled); + WifiConnectionStatistics getConnectionStatistics(); void disableEphemeralNetwork(String SSID); diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index b001bb8..97e10dc 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -2561,6 +2561,27 @@ public class WifiManager { } } + /** + * Set setting for allowing Scans when infrastructure is associated + * @hide + */ + public void setAllowScansWhileAssociated(boolean enabled) { + try { + mService.setAllowScansWhileAssociated(enabled); + } catch (RemoteException e) { + } + } + /** + * Get setting for allowing Scans when infrastructure is associated + * @hide + */ + public boolean getAllowScansWhileAssociated() { + try { + return mService.getAllowScansWhileAssociated(); + } catch (RemoteException e) { + } + return false; + } } |