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
This commit is contained in:
Christopher Tate
2015-08-27 15:57:57 -07:00
parent 5983ae7b98
commit aa244dafed

View File

@@ -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;