From a38558b539f3ac3f7dfe6217b1669a56cb39027a Mon Sep 17 00:00:00 2001 From: Peter Qiu Date: Mon, 31 Oct 2016 15:13:35 -0700 Subject: wifi: remove hidden unused Hotspot 2.0 Release 2 APIs These APIs are used for installing/modifying the PerProviderSubscription Management Object tree in XML string representation and are used only by the unreleased Hotspot 2.0 Release 2 app (OSU app). The OSU app will be updated to use the new APIs which uses Parcelable objects to represent provider configuration. Bug: 32509661 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: Iff6b6e4b95b76d48201eeeb47f441b7c94f359bb --- wifi/java/android/net/wifi/IWifiManager.aidl | 5 ----- wifi/java/android/net/wifi/WifiManager.java | 30 ---------------------------- 2 files changed, 35 deletions(-) diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index bc382848a59b..b3ae030af803 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -59,11 +59,6 @@ interface IWifiManager int addOrUpdateNetwork(in WifiConfiguration config); - int addPasspointManagementObject(String mo); - - int modifyPasspointManagementObject(String fqdn, - in List mos); - boolean addPasspointConfiguration(in PasspointConfiguration config); boolean removePasspointConfiguration(in String fqdn); diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index 3520a3c66745..de3fbf7af59c 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -839,36 +839,6 @@ public class WifiManager { } } - /** - * Add a Hotspot 2.0 release 2 Management Object - * @param mo The MO in XML form - * @return -1 for failure - * @hide - */ - public int addPasspointManagementObject(String mo) { - try { - return mService.addPasspointManagementObject(mo); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - - /** - * Modify a Hotspot 2.0 release 2 Management Object - * @param fqdn The FQDN of the service provider - * @param mos A List of MO definitions to be updated - * @return the number of nodes updated, or -1 for failure - * @hide - */ - public int modifyPasspointManagementObject(String fqdn, - List mos) { - try { - return mService.modifyPasspointManagementObject(fqdn, mos); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - /** * Add a Passpoint configuration. The configuration provides a credential * for connecting to Passpoint networks that are operated by the Passpoint -- cgit v1.2.3-59-g8ed1b From 1c3054ea8740f29af7d8285c4d86a1ca375b4b77 Mon Sep 17 00:00:00 2001 From: Peter Qiu Date: Mon, 31 Oct 2016 15:55:15 -0700 Subject: wifi: remove unused hidden Hotspot 2.0 Release 1 API WifiManager#buildWifiConfig was used by the Hotspot 2.0 Release 1 app (WifiInstaller) for parsing Release 1 installation data into a WifiConfiguration object. WifiInstaller will be updated to use the new framework API (android.net.wifi.hotspot2.ConfigBuilder) instead. So this API is no longer needed. Bug: 32509661 Test: frameworks/base/wifi/tests/runtests.sh Change-Id: Iacee739a9ed12ea00b1b7457e22e790ef4a177da --- wifi/java/android/net/wifi/IWifiManager.aidl | 2 -- wifi/java/android/net/wifi/WifiManager.java | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index b3ae030af803..9e897bff1122 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -127,8 +127,6 @@ interface IWifiManager WifiConfiguration getWifiApConfiguration(); - WifiConfiguration buildWifiConfig(String uriString, String mimeType, in byte[] data); - void setWifiApConfiguration(in WifiConfiguration wifiConfig); Messenger getWifiServiceMessenger(); diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index de3fbf7af59c..a42bef465b75 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -1595,20 +1595,6 @@ public class WifiManager { } } - /** - * Builds a WifiConfiguration from Hotspot 2.0 MIME file. - * @return AP details in WifiConfiguration - * - * @hide Dont open yet - */ - public WifiConfiguration buildWifiConfig(String uriString, String mimeType, byte[] data) { - try { - return mService.buildWifiConfig(uriString, mimeType, data); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - /** * Sets the Wi-Fi AP Configuration. * @return {@code true} if the operation succeeded, {@code false} otherwise -- cgit v1.2.3-59-g8ed1b