diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index 82eb2c44bc8f2..a855f2f0908a6 100755 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -480,9 +480,6 @@ -85 - - true - true diff --git a/core/res/res/values/symbols.xml b/core/res/res/values/symbols.xml index b3304233ab839..3695cf65632ce 100755 --- a/core/res/res/values/symbols.xml +++ b/core/res/res/values/symbols.xml @@ -297,7 +297,6 @@ - diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index b2af044fb24d4..0d95b38feb46a 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -158,15 +158,12 @@ interface IWifiManager void setAllowScansWithTraffic(int enabled); int getAllowScansWithTraffic(); - void setAllowScansWhileAssociated(int enabled); - int getAllowScansWhileAssociated(); - - void setAllowNetworkSwitchingWhileAssociated(int enabled); - int getAllowNetworkSwitchingWhileAssociated(); - void setHalBasedAutojoinOffload(int enabled); int getHalBasedAutojoinOffload(); + boolean enableAutoJoinWhenAssociated(boolean enabled); + boolean getEnableAutoJoinWhenAssociated(); + 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 f91e0e21dbd24..f39007554015f 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -2806,30 +2806,6 @@ public class WifiManager { } } - /** - * Set setting for allowing Scans when infrastructure is associated - * @hide - */ - public void setAllowScansWhileAssociated(int enabled) { - try { - mService.setAllowScansWhileAssociated(enabled); - } catch (RemoteException e) { - - } - } - - /** - * Get setting for allowing Scans when infrastructure is associated - * @hide - */ - public int getAllowScansWhileAssociated() { - try { - return mService.getAllowScansWhileAssociated(); - } catch (RemoteException e) { - } - return 0; - } - /** * Resets all wifi manager settings back to factory defaults. * @@ -2855,6 +2831,31 @@ public class WifiManager { } } + /** + * Framework layer autojoin enable/disable when device is associated + * this will enable/disable autojoin scan and switch network when connected + * @return true -- if set successful false -- if set failed + * @hide + */ + public boolean enableAutoJoinWhenAssociated(boolean enabled) { + try { + return mService.enableAutoJoinWhenAssociated(enabled); + } catch (RemoteException e) { + return false; + } + } + + /** + * Get setting for Framework layer autojoin enable status + * @hide + */ + public boolean getEnableAutoJoinWhenAssociated() { + try { + return mService.getEnableAutoJoinWhenAssociated(); + } catch (RemoteException e) { + return false; + } + } /** * Set setting for enabling autojoin Offload thru Wifi HAL layer * @hide @@ -2878,28 +2879,4 @@ public class WifiManager { } return 0; } - - /** - * Set setting for enabling network switching while wifi is associated - * @hide - */ - public void setAllowNetworkSwitchingWhileAssociated(int enabled) { - try { - mService.setAllowNetworkSwitchingWhileAssociated(enabled); - } catch (RemoteException e) { - - } - } - - /** - * Get setting for enabling network switching while wifi is associated - * @hide - */ - public int getAllowNetworkSwitchingWhileAssociated() { - try { - return mService.getAllowNetworkSwitchingWhileAssociated(); - } catch (RemoteException e) { - } - return 0; - } }