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

Commit df547e04 authored by Rebecca Silberstein's avatar Rebecca Silberstein
Browse files

WifiManager: add WIFI_MODE_NO_LOCKS_HELD

Add a WifiLock mode representing that no locks are held (@hide).

Bug: 28669096
Change-Id: I774d5ff226e7c639812f9735555c8ea1ed6444af
Test: compiles and runtest frameworks-wifi
parent 9140b8f0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -560,6 +560,12 @@ public class WifiManager {
    @SdkConstant(SdkConstantType.ACTIVITY_INTENT_ACTION)
    public static final String ACTION_PICK_WIFI_NETWORK = "android.net.wifi.PICK_WIFI_NETWORK";

    /**
     * Internally used Wi-Fi lock mode representing the case were no locks are held.
     * @hide
     */
    public static final int WIFI_MODE_NO_LOCKS_HELD = 0;

    /**
     * In this Wi-Fi lock mode, Wi-Fi will be kept active,
     * and will behave normally, i.e., it will attempt to automatically