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

Commit 1763329d authored by Roshan Pius's avatar Roshan Pius
Browse files

WifiManager: Add API to query STA + AP concurrency

Use the existing feature flag |WIFI_FEATURE_AP_STA| to expose a
@SystemApi.

PS: This flag is currently unused. Will need to find a mechanism by
which we can fill in this flag appropriately from HalDeviceManager.

Bug: 141452146
Test: Compiles
Change-Id: Idf3bab96686a8994cd3eea6bec8346db96161a03
parent 32913a8e
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30651,6 +30651,7 @@ package android.net.wifi {
    method public boolean isP2pSupported();
    method public boolean isPreferredNetworkOffloadSupported();
    method @Deprecated public boolean isScanAlwaysAvailable();
    method public boolean isStaApConcurrencySupported();
    method public boolean isTdlsSupported();
    method public boolean isWapiSupported();
    method public boolean isWifiEnabled();
+9 −0
Original line number Diff line number Diff line
@@ -2368,6 +2368,15 @@ public class WifiManager {
        return isFeatureSupported(WIFI_FEATURE_AWARE);
    }

    /**
     * Query whether the device supports Station (STA) + Access point (AP) concurrency or not.
     *
     * @return true if this device supports STA + AP concurrency, false otherwise.
     */
    public boolean isStaApConcurrencySupported() {
        return isFeatureSupported(WIFI_FEATURE_AP_STA);
    }

    /**
     * @deprecated Please use {@link android.content.pm.PackageManager#hasSystemFeature(String)}
     * with {@link android.content.pm.PackageManager#FEATURE_WIFI_RTT} and