From 3d8c9bdbed0c31143227697bd0d94fd234fe08ad Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Wed, 18 Aug 2010 17:48:53 -0700 Subject: [PATCH] Raise motion event throttle to 60Hz from 35Hz. Bug: 2931575 Change-Id: Ib8b1793addcda74b2fa6de2ce61b6133b8ffda9d --- services/java/com/android/server/InputManager.java | 5 +---- services/jni/com_android_server_InputManager.cpp | 2 +- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/services/java/com/android/server/InputManager.java b/services/java/com/android/server/InputManager.java index e54f1837c8c87..f330d40a80f63 100644 --- a/services/java/com/android/server/InputManager.java +++ b/services/java/com/android/server/InputManager.java @@ -48,9 +48,6 @@ import java.util.ArrayList; /* * Wraps the C++ InputManager and provides its callbacks. - * - * XXX Tempted to promote this to a first-class service, ie. InputManagerService, to - * improve separation of concerns with respect to the window manager. */ public class InputManager { static final String TAG = "InputManager"; @@ -517,7 +514,7 @@ public class InputManager { } catch (NumberFormatException e) { } if (result < 1) { - result = 35; + result = 60; } return result; } diff --git a/services/jni/com_android_server_InputManager.cpp b/services/jni/com_android_server_InputManager.cpp index 59528dba91743..3addc0d2e208b 100644 --- a/services/jni/com_android_server_InputManager.cpp +++ b/services/jni/com_android_server_InputManager.cpp @@ -934,7 +934,7 @@ int32_t NativeInputManager::getMaxEventsPerSecond() { jint result = env->CallIntMethod(mCallbacksObj, gCallbacksClassInfo.getMaxEventsPerSecond); if (checkAndClearExceptionFromCallback(env, "getMaxEventsPerSecond")) { - result = 35; + result = 60; } mMaxEventsPerSecond = result;