From 928e054931d357326613c78e62f4d850b7c442ff Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Mon, 10 Jan 2011 11:17:36 -0800 Subject: Prevent events from getting backlogged. This change implements two heuristics. 1. When events are older than 10 seconds, they are dropped. 2. If the application is currently busy processing an event and the user touches a window belonging to a different application then we drop the currently queued events so the other application can start processing the gesture immediately. Note that the system takes care of synthesizing cancelation events automatically for any events that it drops. Added some new handle types to allow the native dispatcher to indirectly refer to the WindowManager's window state and app window token. This was done to enable the dispatcher to identify the application to which each window belongs but it also eliminates some lookup tables and linear searches through the window list on each key press. Bug: 3224911 Change-Id: I9dae8dfe23d195d76865f97011fe2f1d351e2940 --- services/jni/Android.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'services/jni/Android.mk') diff --git a/services/jni/Android.mk b/services/jni/Android.mk index ec85e54..f5a5b4d 100644 --- a/services/jni/Android.mk +++ b/services/jni/Android.mk @@ -4,7 +4,11 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES:= \ com_android_server_AlarmManagerService.cpp \ com_android_server_BatteryService.cpp \ + com_android_server_InputApplication.cpp \ + com_android_server_InputApplicationHandle.cpp \ com_android_server_InputManager.cpp \ + com_android_server_InputWindow.cpp \ + com_android_server_InputWindowHandle.cpp \ com_android_server_LightsService.cpp \ com_android_server_PowerManagerService.cpp \ com_android_server_SystemServer.cpp \ -- cgit v1.1