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

Commit 3b40ab2b authored by Oscar Shu's avatar Oscar Shu Committed by Android (Google) Code Review
Browse files

Merge "Pno list recency optimization: Settings.global flag"

parents d8059a2a 1a3e61cc
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -10324,6 +10324,18 @@ public final class Settings {
        private static final Validator WIFI_PNO_FREQUENCY_CULLING_ENABLED_VALIDATOR =
                BOOLEAN_VALIDATOR;
        /**
         * Setting to enable including recency information when determining pno network priorities.
         * Disabled by default, and setting it to 1 will enable it.
         * The value is boolean (0 or 1).
         * @hide
         */
        public static final String WIFI_PNO_RECENCY_SORTING_ENABLED =
                "wifi_pno_recency_sorting_enabled";
        private static final Validator WIFI_PNO_RECENCY_SORTING_ENABLED_VALIDATOR =
                BOOLEAN_VALIDATOR;
       /**
        * The maximum number of times we will retry a connection to an access
        * point for which we have failed in acquiring an IP address from DHCP.
@@ -12799,6 +12811,8 @@ public final class Settings {
            VALIDATORS.put(DEVICE_DEMO_MODE, BOOLEAN_VALIDATOR);
            VALIDATORS.put(WIFI_PNO_FREQUENCY_CULLING_ENABLED,
                    WIFI_PNO_FREQUENCY_CULLING_ENABLED_VALIDATOR);
            VALIDATORS.put(WIFI_PNO_RECENCY_SORTING_ENABLED,
                    WIFI_PNO_RECENCY_SORTING_ENABLED_VALIDATOR);
        }
        /**
+1 −0
Original line number Diff line number Diff line
@@ -494,6 +494,7 @@ public class SettingsBackupTest {
                    Settings.Global.WIFI_IS_UNUSABLE_EVENT_METRICS_ENABLED,
                    Settings.Global.WIFI_LINK_SPEED_METRICS_ENABLED,
                    Settings.Global.WIFI_PNO_FREQUENCY_CULLING_ENABLED,
                    Settings.Global.WIFI_PNO_RECENCY_SORTING_ENABLED,
                    Settings.Global.WIFI_MAX_DHCP_RETRY_COUNT,
                    Settings.Global.WIFI_MOBILE_DATA_TRANSITION_WAKELOCK_TIMEOUT_MS,
                    Settings.Global.WIFI_NETWORK_SHOW_RSSI,