summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jeff Brown <jeffbrown@google.com> 2010-08-21 09:35:28 -0700
committer Android Git Automerger <android-git-automerger@android.com> 2010-08-21 09:35:28 -0700
commitd78b868ce32ccd96e414f096577fddd78ec5defb (patch)
tree8be9cbb3bc193e5785d3c49a4b4a63b3b61aab3a
parentfeb02e7695c99d6eab0884f2424cff5bf48f4df4 (diff)
parent36beeca4c34af2aed6a070e43b69993daff67661 (diff)
am 36beeca4: am 3d8c9bdb: Raise motion event throttle to 60Hz from 35Hz.
Merge commit '36beeca4c34af2aed6a070e43b69993daff67661' * commit '36beeca4c34af2aed6a070e43b69993daff67661': Raise motion event throttle to 60Hz from 35Hz.
-rw-r--r--services/java/com/android/server/InputManager.java5
-rw-r--r--services/jni/com_android_server_InputManager.cpp2
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 e54f1837c8c8..f330d40a80f6 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 59528dba9174..3addc0d2e208 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;