summaryrefslogtreecommitdiffstats
path: root/services/jni/com_android_server_PowerManagerService.h
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-08-16 14:19:45 -0700
committerJeff Brown <jeffbrown@google.com>2010-08-16 18:33:50 -0700
commit90291577a08f582e0978651f55dd950f40eb111d (patch)
tree145c005c421e6bae376d7193b8819709192d10a5 /services/jni/com_android_server_PowerManagerService.h
parent80810f86e93866674f3a4ca61f84887e7717aa63 (diff)
downloadframeworks_base-90291577a08f582e0978651f55dd950f40eb111d.zip
frameworks_base-90291577a08f582e0978651f55dd950f40eb111d.tar.gz
frameworks_base-90291577a08f582e0978651f55dd950f40eb111d.tar.bz2
Throttle userActivity calls from input dispatcher.
Results in an approximately 60% reduction in InputDispatcher thread CPU time. (Went from 3% to 1% when measured with CPU frequency scaling disabled.) Change-Id: Ia6e6087a719ee518fe37b428a871c7240bd4143f
Diffstat (limited to 'services/jni/com_android_server_PowerManagerService.h')
-rw-r--r--services/jni/com_android_server_PowerManagerService.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/jni/com_android_server_PowerManagerService.h b/services/jni/com_android_server_PowerManagerService.h
index 9b05f38..7c329b2 100644
--- a/services/jni/com_android_server_PowerManagerService.h
+++ b/services/jni/com_android_server_PowerManagerService.h
@@ -30,6 +30,8 @@ enum {
POWER_MANAGER_LONG_TOUCH_EVENT = 3,
POWER_MANAGER_TOUCH_UP_EVENT = 4,
POWER_MANAGER_BUTTON_EVENT = 5, // Button and trackball events.
+
+ POWER_MANAGER_LAST_EVENT = POWER_MANAGER_BUTTON_EVENT, // Last valid event code.
};
extern bool android_server_PowerManagerService_isScreenOn();