diff options
author | Amith Yamasani <yamasani@google.com> | 2015-05-13 18:21:09 -0700 |
---|---|---|
committer | Amith Yamasani <yamasani@google.com> | 2015-05-13 18:21:33 -0700 |
commit | 901e924392dd79c6d1b61c3bb92461585f7b3204 (patch) | |
tree | 1365ca205b2552b78842add10a3e04075e422eb9 /services/usage/java/com/android/server | |
parent | 7853e137eda0866c732a301e6b3ffb19408634b4 (diff) | |
download | frameworks_base-901e924392dd79c6d1b61c3bb92461585f7b3204.zip frameworks_base-901e924392dd79c6d1b61c3bb92461585f7b3204.tar.gz frameworks_base-901e924392dd79c6d1b61c3bb92461585f7b3204.tar.bz2 |
Allow settings to change app inactive state
Change-Id: I57efb4b5fa69c9a268025fb1ef83de36c4cc83ca
Diffstat (limited to 'services/usage/java/com/android/server')
-rw-r--r-- | services/usage/java/com/android/server/usage/UsageStatsService.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/services/usage/java/com/android/server/usage/UsageStatsService.java b/services/usage/java/com/android/server/usage/UsageStatsService.java index bfd6cc0..f7bcf2a 100644 --- a/services/usage/java/com/android/server/usage/UsageStatsService.java +++ b/services/usage/java/com/android/server/usage/UsageStatsService.java @@ -100,7 +100,7 @@ public class UsageStatsService extends SystemService implements static final long DEFAULT_APP_IDLE_THRESHOLD_MILLIS = DEBUG ? ONE_MINUTE * 4 : 1L * 24 * 60 * ONE_MINUTE; // 1 day - static final long DEFAULT_CHECK_IDLE_INTERVAL = DEBUG ? ONE_MINUTE / 4 + static final long DEFAULT_CHECK_IDLE_INTERVAL = DEBUG ? ONE_MINUTE : 8 * 60 * ONE_MINUTE; // 8 hours static final long DEFAULT_PAROLE_INTERVAL = DEBUG ? ONE_MINUTE * 10 : 24 * 60 * ONE_MINUTE; // 24 hours between paroles @@ -336,6 +336,7 @@ public class UsageStatsService extends SystemService implements /** Check all running users' apps to see if they enter an idle state. */ void checkIdleStates() { + if (DEBUG) Slog.d(TAG, "Checking idle state"); final int[] runningUsers; try { runningUsers = ActivityManagerNative.getDefault().getRunningUserIds(); |