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

Commit 4e415ede authored by Roshan Pius's avatar Roshan Pius
Browse files

WifiManager: Mark isScanAlwaysAvailable() deprecated

This API is useful for the apps to decide when they can issue a scan
request. Since WifiManager.startScan() is deprecated, this should be
too. There is no functionality change for now, just a warning
that this will go away along with startScan().

Bug: 74448981
Test: `make api-stubs-docs-update-current-api`
Change-Id: I5310dc53dae244d7a99319bbde111254e9097a14
parent 3d171b2a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -28867,7 +28867,7 @@ package android.net.wifi {
    method public boolean isEnhancedPowerReportingSupported();
    method public boolean isP2pSupported();
    method public boolean isPreferredNetworkOffloadSupported();
    method public boolean isScanAlwaysAvailable();
    method public deprecated boolean isScanAlwaysAvailable();
    method public boolean isTdlsSupported();
    method public boolean isWifiEnabled();
    method public deprecated boolean pingSupplicant();
+3 −0
Original line number Diff line number Diff line
@@ -2081,7 +2081,10 @@ public class WifiManager {
     * even when Wi-Fi is turned off.
     *
     * To change this setting, see {@link #ACTION_REQUEST_SCAN_ALWAYS_AVAILABLE}.
     * @deprecated The ability for apps to trigger scan requests will be removed in a future
     * release.
     */
    @Deprecated
    public boolean isScanAlwaysAvailable() {
        try {
            return mService.isScanAlwaysAvailable();