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

Commit 85fff7d2 authored by Suprabh Shukla's avatar Suprabh Shukla
Browse files

Changed doze-light timeouts

Being more aggressive while entering doze light.

Test: "adb shell dumpsys deviceidle" should show
light_after_inactive_to=+3m0s0ms
light_pre_idle_to=+3m0s0ms

Bug: 79418894
Change-Id: I58c854e191f488f71830272ae36642acb5305999
parent 2ba981c6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -812,9 +812,9 @@ public class DeviceIdleController extends SystemService

                LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT = mParser.getDurationMillis(
                        KEY_LIGHT_IDLE_AFTER_INACTIVE_TIMEOUT,
                        !COMPRESS_TIME ? 5 * 60 * 1000L : 15 * 1000L);
                        !COMPRESS_TIME ? 3 * 60 * 1000L : 15 * 1000L);
                LIGHT_PRE_IDLE_TIMEOUT = mParser.getDurationMillis(KEY_LIGHT_PRE_IDLE_TIMEOUT,
                        !COMPRESS_TIME ? 10 * 60 * 1000L : 30 * 1000L);
                        !COMPRESS_TIME ? 3 * 60 * 1000L : 30 * 1000L);
                LIGHT_IDLE_TIMEOUT = mParser.getDurationMillis(KEY_LIGHT_IDLE_TIMEOUT,
                        !COMPRESS_TIME ? 5 * 60 * 1000L : 15 * 1000L);
                LIGHT_IDLE_FACTOR = mParser.getFloat(KEY_LIGHT_IDLE_FACTOR,