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

Commit aa244daf authored by Christopher Tate's avatar Christopher Tate
Browse files

Don't throttle "while idle" alarms while not dozing

Specifically, reduce the non-doze "while idle" minimum interval to
be the same as the generally-enforced minimum futurity of new alarms.

Bug 21602742

Change-Id: I044deaedc2daeff5d6f418f0fe091fea85f73fcf
parent 5983ae7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -177,7 +177,7 @@ class AlarmManagerService extends SystemService {

        private static final long DEFAULT_MIN_FUTURITY = 5 * 1000;
        private static final long DEFAULT_MIN_INTERVAL = 60 * 1000;
        private static final long DEFAULT_ALLOW_WHILE_IDLE_SHORT_TIME = 60*1000;
        private static final long DEFAULT_ALLOW_WHILE_IDLE_SHORT_TIME = DEFAULT_MIN_FUTURITY;
        private static final long DEFAULT_ALLOW_WHILE_IDLE_LONG_TIME = 15*60*1000;
        private static final long DEFAULT_ALLOW_WHILE_IDLE_WHITELIST_DURATION = 10*1000;