diff options
author | Dianne Hackborn <hackbod@google.com> | 2015-10-26 17:51:57 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2015-10-27 10:23:38 -0700 |
commit | 7682b26ea164ba1078495e24910f22d73766c192 (patch) | |
tree | 86c8bacb583c9aaf806c2b55b41b644f9d218c16 | |
parent | 14bb0511c6cc5ad62a870b3c2437c8090bcf75af (diff) | |
download | frameworks_base-7682b26ea164ba1078495e24910f22d73766c192.zip frameworks_base-7682b26ea164ba1078495e24910f22d73766c192.tar.gz frameworks_base-7682b26ea164ba1078495e24910f22d73766c192.tar.bz2 |
Fix issue #25289999: Lower device idle alarm limit to 10 mins.
This helps with some cases where perisistent network connections
need a more frequent keep alive signal. Actually make it 9
minutes to ensure that things needing a 10 minute cycle will
execute within that time.
Change-Id: Ife8c7b7f7f82b108d5a6c1624bd6115e6087c3be
-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 a2929bd..130a234 100644 --- a/services/core/java/com/android/server/AlarmManagerService.java +++ b/services/core/java/com/android/server/AlarmManagerService.java @@ -178,7 +178,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 = DEFAULT_MIN_FUTURITY; - private static final long DEFAULT_ALLOW_WHILE_IDLE_LONG_TIME = 15*60*1000; + private static final long DEFAULT_ALLOW_WHILE_IDLE_LONG_TIME = 9*60*1000; private static final long DEFAULT_ALLOW_WHILE_IDLE_WHITELIST_DURATION = 10*1000; // Minimum futurity of a new alarm |