summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author makarand.karvekar <makarand.karvekar@motorola.com> 2011-03-02 15:41:03 -0600
committer Rebecca Schultz Zavin <rebecca@android.com> 2011-03-03 17:01:43 -0800
commitf634ded277f246bd9568e9b7dcad40790767c6ab (patch)
treedbcebd2019a56b2d301e4264bdf02032d94408f1
parent6e71c954faff34b78a2952436b4f48d84a8c20cd (diff)
Set last event time to previous event batch delivery time to apps
Determination of the last event time. Currently, uses the time that the first event in the previous batch that was sent from hardware. This produces inconsistent timing intervals for event delivery to apps. Now, use the time that the previous batch was delivered to the application. Original Author: Stephen Moore <steve.moore@motorola.com> Signed-off-by: makarand.karvekar <makarand.karvekar@motorola.com> Change-Id: I2a3701915702d622dc04fbf4bbd4918a9ebe8856
-rw-r--r--services/input/InputDispatcher.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp
index 0606307e119b..e614e818d32c 100644
--- a/services/input/InputDispatcher.cpp
+++ b/services/input/InputDispatcher.cpp
@@ -354,8 +354,7 @@ void InputDispatcher::dispatchOnceInnerLocked(nsecs_t keyRepeatTimeout,
}
#endif
- mThrottleState.lastEventTime = entry->eventTime < currentTime
- ? entry->eventTime : currentTime;
+ mThrottleState.lastEventTime = currentTime;
mThrottleState.lastDeviceId = deviceId;
mThrottleState.lastSource = source;
}