diff options
| author | 2017-02-17 22:36:42 +0000 | |
|---|---|---|
| committer | 2017-02-17 22:36:42 +0000 | |
| commit | 55e5cec71b41bfd5aae5fdcf58253d075cc523aa (patch) | |
| tree | c005ac1d0f0ee77d488cdb52de4dc531431b8551 | |
| parent | 6721901c4dbfdfad03516534e5699fd30f3fca39 (diff) | |
| parent | 313b7c3613c5bb07de0035452f258aa006aca48e (diff) | |
Merge "[AWARE] Remove enableUsage/disableUsage API" am: 647f2e1493 am: 8e32c1b718
am: 313b7c3613
Change-Id: I4382b1f5e25a15a96a1bca7e1492d3d1791c093e
3 files changed, 0 insertions, 52 deletions
diff --git a/wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl b/wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl index 794c142775f3..0f4910f0c29f 100644 --- a/wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl +++ b/wifi/java/android/net/wifi/aware/IWifiAwareManager.aidl @@ -34,8 +34,6 @@ import android.net.wifi.RttManager; interface IWifiAwareManager { // Aware API - void enableUsage(); - void disableUsage(); boolean isUsageEnabled(); Characteristics getCharacteristics(); diff --git a/wifi/java/android/net/wifi/aware/WifiAwareManager.java b/wifi/java/android/net/wifi/aware/WifiAwareManager.java index a9e38cef97e8..0eb6a3d157c3 100644 --- a/wifi/java/android/net/wifi/aware/WifiAwareManager.java +++ b/wifi/java/android/net/wifi/aware/WifiAwareManager.java @@ -253,36 +253,6 @@ public class WifiAwareManager { } /** - * Enable the usage of the Aware API. Doesn't actually turn on Aware cluster formation - that - * only happens when an attach is attempted. {@link #ACTION_WIFI_AWARE_STATE_CHANGED} broadcast - * will be triggered. - * - * @hide - */ - public void enableUsage() { - try { - mService.enableUsage(); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - - /** - * Disable the usage of the Aware API. All attempts to attach() will be rejected. All open - * connections and sessions will be terminated. {@link #ACTION_WIFI_AWARE_STATE_CHANGED} - * broadcast will be triggered. - * - * @hide - */ - public void disableUsage() { - try { - mService.disableUsage(); - } catch (RemoteException e) { - throw e.rethrowFromSystemServer(); - } - } - - /** * Returns the current status of Aware API: whether or not Aware is available. To track * changes in the state of Aware API register for the * {@link #ACTION_WIFI_AWARE_STATE_CHANGED} broadcast. diff --git a/wifi/tests/src/android/net/wifi/aware/WifiAwareManagerTest.java b/wifi/tests/src/android/net/wifi/aware/WifiAwareManagerTest.java index 59faba9cc0de..7f68f6f128da 100644 --- a/wifi/tests/src/android/net/wifi/aware/WifiAwareManagerTest.java +++ b/wifi/tests/src/android/net/wifi/aware/WifiAwareManagerTest.java @@ -100,26 +100,6 @@ public class WifiAwareManagerTest { */ /** - * Validate pass-through of enableUsage() API. - */ - @Test - public void testEnableUsage() throws Exception { - mDut.enableUsage(); - - verify(mockAwareService).enableUsage(); - } - - /** - * Validate pass-through of disableUsage() API. - */ - @Test - public void testDisableUsage() throws Exception { - mDut.disableUsage(); - - verify(mockAwareService).disableUsage(); - } - - /** * Validate pass-through of isUsageEnabled() API. */ @Test |