diff options
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 |
commit | f634ded277f246bd9568e9b7dcad40790767c6ab (patch) | |
tree | dbcebd2019a56b2d301e4264bdf02032d94408f1 /services/input | |
parent | 6e71c954faff34b78a2952436b4f48d84a8c20cd (diff) | |
download | frameworks_base-f634ded277f246bd9568e9b7dcad40790767c6ab.zip frameworks_base-f634ded277f246bd9568e9b7dcad40790767c6ab.tar.gz frameworks_base-f634ded277f246bd9568e9b7dcad40790767c6ab.tar.bz2 |
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
Diffstat (limited to 'services/input')
-rw-r--r-- | services/input/InputDispatcher.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/services/input/InputDispatcher.cpp b/services/input/InputDispatcher.cpp index 0606307..e614e81 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; } |