summaryrefslogtreecommitdiffstats
path: root/services/jni/Android.mk
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2011-01-10 11:17:36 -0800
committerJeff Brown <jeffbrown@google.com>2011-01-10 17:23:05 -0800
commit928e054931d357326613c78e62f4d850b7c442ff (patch)
tree28367a3b3d9b11f31a97c9016ab64e22f05c4c47 /services/jni/Android.mk
parentb3fbd7e0fd44a72fb7ccba0959481b8a806608b7 (diff)
downloadframeworks_base-928e054931d357326613c78e62f4d850b7c442ff.zip
frameworks_base-928e054931d357326613c78e62f4d850b7c442ff.tar.gz
frameworks_base-928e054931d357326613c78e62f4d850b7c442ff.tar.bz2
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
Diffstat (limited to 'services/jni/Android.mk')
-rw-r--r--services/jni/Android.mk4
1 files changed, 4 insertions, 0 deletions
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 \