OSDN Git Service

Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)
authorJeff Brown <jeffbrown@android.com>
Tue, 24 May 2011 18:23:27 +0000 (11:23 -0700)
committerJeff Brown <jeffbrown@android.com>
Wed, 25 May 2011 21:37:16 +0000 (14:37 -0700)
commit5ced76a14350db56f1a80f00076f8be3d982c389
treee4999223efed26ef0864761a1a47bafaf99e1dac
parent7157f6fe13ab7e2fef44cc33c95d1c531418220f
Coalesce input events that arrive faster than 333Hz. (DO NOT MERGE)

Some drivers report individual finger updates one at a time
instead of all at once.  When 10 fingers are down, this can
cause the framework to have to handle 10 times as many events
each with 10 times as much data.  Applications like
PointerLocation would get significantly bogged down by all
of the redundant samples.

This change coalesces samples that are closely spaced in time,
before they are dispatched, as part of the motion event batching
protocol.

Increased the size of the InputChannel shared memory buffer so
that applications can catch up faster if they accumulate a
backlog of samples.

Change-Id: Ibc6abf8af027d9003011ac75caa12941080caba3
libs/ui/InputTransport.cpp
services/input/EventHub.cpp
services/input/InputDispatcher.cpp
services/input/InputDispatcher.h