diff options
| author | 2020-12-15 16:02:44 -0800 | |
|---|---|---|
| committer | 2020-12-15 16:02:44 -0800 | |
| commit | f24f4e830d04f836438deb49c064332e8d9810b8 (patch) | |
| tree | 643e8c97311b6c1dd413350942e822d1cf7b0241 /wifi/java | |
| parent | a3c423c3fd6520dafb721d94a240a9eb866c60ca (diff) | |
[WifiCoex] Add @hide API for default coex algorithm enabled or not
Add @hide API to return whether the default coex algorithm is enabled or
not for ACTS testing.
Bug: 153651001
Test: build
Change-Id: I4c574c767a8cc2c325139f5f668dd7090efd68b4
Diffstat (limited to 'wifi/java')
| -rw-r--r-- | wifi/java/android/net/wifi/IWifiManager.aidl | 2 | ||||
| -rw-r--r-- | wifi/java/android/net/wifi/WifiManager.java | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/wifi/java/android/net/wifi/IWifiManager.aidl b/wifi/java/android/net/wifi/IWifiManager.aidl index 0d4e9c3a513d..c801e85dc8ad 100644 --- a/wifi/java/android/net/wifi/IWifiManager.aidl +++ b/wifi/java/android/net/wifi/IWifiManager.aidl @@ -146,6 +146,8 @@ interface IWifiManager void updateInterfaceIpState(String ifaceName, int mode); + boolean isDefaultCoexAlgorithmEnabled(); + void setCoexUnsafeChannels(in List<CoexUnsafeChannel> unsafeChannels, int mandatoryRestrictions); List<CoexUnsafeChannel> getCoexUnsafeChannels(); diff --git a/wifi/java/android/net/wifi/WifiManager.java b/wifi/java/android/net/wifi/WifiManager.java index bccb2410ae09..5affdec8218d 100644 --- a/wifi/java/android/net/wifi/WifiManager.java +++ b/wifi/java/android/net/wifi/WifiManager.java @@ -3225,6 +3225,19 @@ public class WifiManager { public @interface CoexRestriction {} /** + * @return {@code true} if the default coex algorithm is enabled. {@code false} otherwise. + * + * @hide + */ + public boolean isDefaultCoexAlgorithmEnabled() { + try { + return mService.isDefaultCoexAlgorithmEnabled(); + } catch (RemoteException e) { + throw e.rethrowFromSystemServer(); + } + } + + /** * Specify the set of {@link CoexUnsafeChannel} to propagate through the framework for * Wi-Fi/Cellular coex channel avoidance if the default algorithm is disabled via overlay * (i.e. config_wifiCoexDefaultAlgorithmEnabled = false). Otherwise do nothing. |