From 6cfe668c8088c6ec072750449787817081a05c31 Mon Sep 17 00:00:00 2001 From: Roshan Pius Date: Tue, 6 Sep 2016 13:38:31 -0700 Subject: [PATCH] WifiManager: Remove unused methods Remove the unused hidden methods from WifiManager. BUG: 29449615 TEST: Compiles, boots up. Change-Id: Ie7e6f438b23a368e44d35390267d5505e12bb75e --- wifi/java/android/net/wifi/IWifiManager.aidl | 6 --- wifi/java/android/net/wifi/WifiManager.java | 47 -------------------- 2 files changed, 53 deletions(-) diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index 3674f0f4baa7c..706b29495c211 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -133,14 +133,8 @@ interface IWifiManager void setWifiApConfiguration(in WifiConfiguration wifiConfig); - void addToBlacklist(String bssid); - - void clearBlacklist(); - Messenger getWifiServiceMessenger(); - String getConfigFile(); - void enableTdls(String remoteIPAddress, boolean enable); void enableTdlsWithMacAddress(String remoteMacAddress, boolean enable); diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 19ecbdbd893af..955161cf538b1 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -1615,41 +1615,6 @@ public class WifiManager { } } - /** - * Add a bssid to the supplicant blacklist - * - * This API is used by WifiWatchdogService - * - * @return {@code true} if the operation succeeds else {@code false} - * @hide - */ - public boolean addToBlacklist(String bssid) { - try { - mService.addToBlacklist(bssid); - return true; - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - - /** - * Clear the supplicant blacklist - * - * This API is used by WifiWatchdogService - * - * @return {@code true} if the operation succeeds else {@code false} - * @hide - */ - public boolean clearBlacklist() { - try { - mService.clearBlacklist(); - return true; - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - - /** * Enable/Disable TDLS on a specific local route. * @@ -2147,18 +2112,6 @@ public class WifiManager { } - /** - * Returns the file in which IP and proxy configuration data is stored - * @hide - */ - public String getConfigFile() { - try { - return mService.getConfigFile(); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - /** * Allows an application to keep the Wi-Fi radio awake. * Normally the Wi-Fi radio may turn off when the user has not used the device in a while.