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

Commit 92da9ef6 authored by Richa Arora's avatar Richa Arora
Browse files

Shorten priority alarm delay to 1 min.

Decrease the amount of time that we delay priority alarms from 9 minutes
to 1 minute. This is required for setPrioritized alarms to function
reliably in doze mode.

Test: atest CtsAlarmManagerTestCases; atest AlarmManagerServiceTest

Flag: EXEMPT No client currently uses the API setPrioritzed. The usage
will be rolled out in a controlled manner.

Bug: 434203621
Change-Id: I7b9094dc9a38d3fa36e66fa78b24b6fe1e82c83b
parent eacb68c5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -755,7 +755,7 @@ public class AlarmManagerService extends SystemService {
        private static final long DEFAULT_ALLOW_WHILE_IDLE_WINDOW = 60 * 60 * 1000; // 1 hour.
        private static final long DEFAULT_ALLOW_WHILE_IDLE_COMPAT_WINDOW = 60 * 60 * 1000;

        private static final long DEFAULT_PRIORITY_ALARM_DELAY = 9 * 60_000;
        private static final long DEFAULT_PRIORITY_ALARM_DELAY = 1 * 60_000;

        private static final long DEFAULT_MIN_DEVICE_IDLE_FUZZ = 2 * 60_000;
        private static final long DEFAULT_MAX_DEVICE_IDLE_FUZZ = 15 * 60_000;