Raise motion event throttle to 60Hz from 35Hz.

Bug: 2931575
Change-Id: Ib8b1793addcda74b2fa6de2ce61b6133b8ffda9d
This commit is contained in:
Jeff Brown
2010-08-18 17:48:53 -07:00
parent 99401b29c3
commit 3d8c9bdbed
2 changed files with 2 additions and 5 deletions

View File

@@ -48,9 +48,6 @@ import java.util.ArrayList;
/* /*
* Wraps the C++ InputManager and provides its callbacks. * 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 { public class InputManager {
static final String TAG = "InputManager"; static final String TAG = "InputManager";
@@ -517,7 +514,7 @@ public class InputManager {
} catch (NumberFormatException e) { } catch (NumberFormatException e) {
} }
if (result < 1) { if (result < 1) {
result = 35; result = 60;
} }
return result; return result;
} }

View File

@@ -934,7 +934,7 @@ int32_t NativeInputManager::getMaxEventsPerSecond() {
jint result = env->CallIntMethod(mCallbacksObj, jint result = env->CallIntMethod(mCallbacksObj,
gCallbacksClassInfo.getMaxEventsPerSecond); gCallbacksClassInfo.getMaxEventsPerSecond);
if (checkAndClearExceptionFromCallback(env, "getMaxEventsPerSecond")) { if (checkAndClearExceptionFromCallback(env, "getMaxEventsPerSecond")) {
result = 35; result = 60;
} }
mMaxEventsPerSecond = result; mMaxEventsPerSecond = result;