summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorMichael Chan <mchan@android.com>2009-08-04 17:37:46 -0700
committerMichael Chan <mchan@android.com>2009-08-05 11:20:00 -0700
commit9f028e6d2b24337761b283b46a1f11eed556eff9 (patch)
tree92ad50f66a0b2b4620ecdb5149d1ba65f01abc2b /services
parentd4543c519b7724841eb77bb57ff360e6c40cd69a (diff)
downloadframeworks_base-9f028e6d2b24337761b283b46a1f11eed556eff9.zip
frameworks_base-9f028e6d2b24337761b283b46a1f11eed556eff9.tar.gz
frameworks_base-9f028e6d2b24337761b283b46a1f11eed556eff9.tar.bz2
Remove debug code which reads the max_events_per_sec property on every touch event
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/WindowManagerService.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index 5a02c4d..d4c27b7 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -533,6 +533,17 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
mTransitionAnimationScale = Settings.System.getFloat(context.getContentResolver(),
Settings.System.TRANSITION_ANIMATION_SCALE, mTransitionAnimationScale);
+ int max_events_per_sec = 35;
+ try {
+ max_events_per_sec = Integer.parseInt(SystemProperties
+ .get("windowsmgr.max_events_per_sec"));
+ if (max_events_per_sec < 1) {
+ max_events_per_sec = 35;
+ }
+ } catch (NumberFormatException e) {
+ }
+ mMinWaitTimeBetweenTouchEvents = 1000 / max_events_per_sec;
+
mQueue = new KeyQ();
mInputThread = new InputDispatcherThread();
@@ -3989,8 +4000,8 @@ public class WindowManagerService extends IWindowManager.Stub implements Watchdo
}
} //end if target
- // TODO remove once we settle on a value or make it app specific
- if (action == MotionEvent.ACTION_DOWN) {
+ // Enable this for testing the "right" value
+ if (false && action == MotionEvent.ACTION_DOWN) {
int max_events_per_sec = 35;
try {
max_events_per_sec = Integer.parseInt(SystemProperties