Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f24f4e83 authored by Quang Luong's avatar Quang Luong
Browse files

[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
parent a3c423c3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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();
+13 −0
Original line number Diff line number Diff line
@@ -3224,6 +3224,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