diff options
author | Christopher Tate <ctate@google.com> | 2015-08-27 15:57:57 -0700 |
---|---|---|
committer | The Android Automerger <android-build@google.com> | 2015-08-31 13:53:12 -0700 |
commit | 30396784df3743e41588204f6406f541be800bcf (patch) | |
tree | 728e30ffc72c96efa5bcb19e980db004d179d8b9 | |
parent | 0e81e75071530c522e02475000432c5b31b34969 (diff) | |
download | base-30396784df3743e41588204f6406f541be800bcf.tar.gz |
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
-rw-r--r-- | services/core/java/com/android/server/AlarmManagerService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/AlarmManagerService.java b/services/core/java/com/android/server/AlarmManagerService.java index d58d3721d803..e3d5d38d9a64 100644 --- a/services/core/java/com/android/server/AlarmManagerService.java +++ b/services/core/java/com/android/server/AlarmManagerService.java @@ -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; |