OSDN Git Service

Fix issue #25289999: Lower device idle alarm limit to 10 mins.
authorDianne Hackborn <hackbod@google.com>
Tue, 27 Oct 2015 00:51:57 +0000 (17:51 -0700)
committerDianne Hackborn <hackbod@google.com>
Tue, 27 Oct 2015 17:23:38 +0000 (10:23 -0700)
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

services/core/java/com/android/server/AlarmManagerService.java

index a2929bd..130a234 100644 (file)
@@ -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