From f70faed503c8482266e6acb94dd5281488a9117e Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 21 Apr 2015 14:11:38 -0700 Subject: Work on issue #20401752: device idle and alarms. Main change is to fix problems in the alarm manager where it was not doing a good job at scheduling the device idle wakeup before an alarm. To fix this, we now keep explicit track of the next "wake from idle" alarm so we can consistently use that to adjust the time of the device idle alarm if needed. Also a bunch of debugging stuff to help further diagnose this problem: - Alarm summary now includes the last time the alarm went off. - Improved dumpsys output of alarms. - New event log tags for changes related to idle state. Change-Id: Idd2c8d24ae23379f7c75815ddbc6835c2a04656c --- services/core/java/com/android/server/EventLogTags.logtags | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'services/core/java/com/android/server/EventLogTags.logtags') diff --git a/services/core/java/com/android/server/EventLogTags.logtags b/services/core/java/com/android/server/EventLogTags.logtags index 694e851..b5e648c 100644 --- a/services/core/java/com/android/server/EventLogTags.logtags +++ b/services/core/java/com/android/server/EventLogTags.logtags @@ -173,6 +173,13 @@ option java_package com.android.server # --------------------------- 33000 wp_wallpaper_crashed (component|3) +# --------------------------- +# Device idle +# --------------------------- +34000 device_idle (state|1|5), (reason|3) +34001 device_idle_step +34002 device_idle_wake_from_idle (is_idle|1|5), (reason|3) + # --------------------------- # ConnectivityService.java -- cgit v1.1