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
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user