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

Commit 50b61107 authored by Damien Bargiacchi's avatar Damien Bargiacchi
Browse files

Add setting for off body, radio off feature

Bug: 72714112
Change-Id: I8a632983c6c60ae195afa5bd6bdb677719bc5044
parent 23bb0505
Loading
Loading
Loading
Loading
+17 −0
Original line number Diff line number Diff line
@@ -10592,6 +10592,23 @@ public final class Settings {
        public static final String FORCED_APP_STANDBY_FOR_SMALL_BATTERY_ENABLED
                = "forced_app_standby_for_small_battery_enabled";

        /**
         * Whether or not to enable the Off Body, Radios Off feature on small battery devices.
         * Type: int (0 for false, 1 for true)
         * Default: 0
         * @hide
         */
        public static final String OFF_BODY_RADIOS_OFF_FOR_SMALL_BATTERY_ENABLED
                = "off_body_radios_off_for_small_battery_enabled";

        /**
         * How long after the device goes off body to disable radios, in milliseconds.
         * Type: long
         * Default: 10 minutes
         * @hide
         */
        public static final String OFF_BODY_RADIOS_OFF_DELAY_MS = "off_body_radios_off_delay_ms";

        /**
         * Whether or not to enable Time Only Mode for watch type devices.
         * Type: int (0 for false, 1 for true)
+2 −0
Original line number Diff line number Diff line
@@ -314,6 +314,8 @@ public class SettingsBackupTest {
                    Settings.Global.NTP_SERVER,
                    Settings.Global.NTP_TIMEOUT,
                    Settings.Global.OTA_DISABLE_AUTOMATIC_UPDATE,
                    Settings.Global.OFF_BODY_RADIOS_OFF_FOR_SMALL_BATTERY_ENABLED,
                    Settings.Global.OFF_BODY_RADIOS_OFF_DELAY_MS,
                    Settings.Global.OVERLAY_DISPLAY_DEVICES,
                    Settings.Global.PAC_CHANGE_DELAY,
                    Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE,