OSDN Git Service

Even more native input dispatch work in progress.
authorJeff Brown <jeffbrown@google.com>
Wed, 16 Jun 2010 08:53:36 +0000 (01:53 -0700)
committerJeff Brown <jeffbrown@google.com>
Thu, 17 Jun 2010 20:27:16 +0000 (13:27 -0700)
commitf4a4ec2063dfd28e04bbfe712f67acee4bdc8e37
tree9d52c784ebd68acfc44a2cdb06d7cf057bba2c91
parente85dafb4d625cce230695127c39636a40932b313
Even more native input dispatch work in progress.

Added more tests.
Fixed a regression in Vector.
Fixed bugs in pointer tracking.
Fixed a starvation issue in PollLoop when setting or removing callbacks.
Fixed a couple of policy nits.

Modified the internal representation of MotionEvent to be more
efficient and more consistent.

Added code to skip/cancel virtual key processing when there are multiple
pointers down.  This helps to better disambiguate virtual key presses
from stray touches (such as cheek presses).

Change-Id: I2a7d2cce0195afb9125b23378baa94fd2fc6671c
17 files changed:
include/ui/Input.h
include/ui/InputTransport.h
include/utils/PollLoop.h
include/utils/Vector.h
include/utils/VectorImpl.h
libs/ui/Input.cpp
libs/ui/InputDispatcher.cpp
libs/ui/InputReader.cpp
libs/ui/InputTransport.cpp
libs/ui/tests/Android.mk
libs/ui/tests/InputChannel_test.cpp [new file with mode: 0644]
libs/ui/tests/InputDispatcher_test.cpp
libs/ui/tests/InputPublisherAndConsumer_test.cpp [new file with mode: 0644]
libs/utils/PollLoop.cpp
libs/utils/VectorImpl.cpp
libs/utils/tests/PollLoop_test.cpp
libs/utils/tests/TestHelpers.h