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

Commit 2a593b60 authored by Sravanthi Palakonda's avatar Sravanthi Palakonda Committed by Linux Build Service Account
Browse files

Wifi: Define intent/setting to notify delay in Wifi disconnection

This commit defines a setting to configure disconnect
delay duration. Based on this value Wi-Fi disconnection
is delayed. Also, define an intent for Wifi framework to
broadcast when wifi framework starts disconnection and waits
for the duration to expire.

Change-Id: I764529da4a416be57360e478c49e8937280df04e
CRs-Fixed: 1003459
parent 7b76aa23
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -4802,6 +4802,12 @@ public final class Settings {
         * Best-effort location computation allowed.
         * Best-effort location computation allowed.
         */
         */
        public static final int LOCATION_MODE_HIGH_ACCURACY = 3;
        public static final int LOCATION_MODE_HIGH_ACCURACY = 3;
        /**
         * Setting to configure Wifi disconnect delay duration in seconds.
         * @hide
         **/
        public static final String WIFI_DISCONNECT_DELAY_DURATION =
                "wifi_disconnect_delay_duration";


        /**
        /**
         * A flag containing settings used for biometric weak
         * A flag containing settings used for biometric weak
@@ -6308,7 +6314,8 @@ public final class Settings {
            PREFERRED_TTY_MODE,
            PREFERRED_TTY_MODE,
            ENHANCED_VOICE_PRIVACY_ENABLED,
            ENHANCED_VOICE_PRIVACY_ENABLED,
            TTY_MODE_ENABLED,
            TTY_MODE_ENABLED,
            INCALL_POWER_BUTTON_BEHAVIOR
            INCALL_POWER_BUTTON_BEHAVIOR,
            WIFI_DISCONNECT_DELAY_DURATION
        };
        };


        /**
        /**
+8 −0
Original line number Original line Diff line number Diff line
@@ -515,6 +515,14 @@ public class WifiManager {
    public static final String LINK_CONFIGURATION_CHANGED_ACTION =
    public static final String LINK_CONFIGURATION_CHANGED_ACTION =
        "android.net.wifi.LINK_CONFIGURATION_CHANGED";
        "android.net.wifi.LINK_CONFIGURATION_CHANGED";


    /**
     * Broadcast intent action indicating that the user initiated Wifi OFF
     * or APM ON and Wifi disconnection is in progress
     * Actual Wifi disconnection happens after mDisconnectDelayDuration seconds.
     * @hide
     */
    public static final String  ACTION_WIFI_DISCONNECT_IN_PROGRESS = "wifi_disconnect_in_progress";

    /**
    /**
     * The lookup key for a {@link android.net.LinkProperties} object associated with the
     * The lookup key for a {@link android.net.LinkProperties} object associated with the
     * Wi-Fi network. Retrieve with
     * Wi-Fi network. Retrieve with