OSDN Git Service

Crashes in TouchExplorer on two finger swipe.
authorSvetoslav Ganov <svetoslavganov@google.com>
Tue, 3 Sep 2013 16:24:48 +0000 (09:24 -0700)
committerThe Android Automerger <android-build@google.com>
Tue, 3 Sep 2013 22:17:27 +0000 (15:17 -0700)
commita6f31bfd2d5befd837a088b4830abc7cb0cf3efe
tree0b1fc24915eb6d67ef99be3fddc209cb2e25a330
parent9572d7bbaf5873d717d6172afa5cde15521c3f6a
Crashes in TouchExplorer on two finger swipe.

1. The logic for finding the active pointer was incorrect. The code was
   iterating over all pointer ids and taking the minimum, i.e. the pointer
   that first went down. The problem was that the down time for pointers
   that are not down was also considered (set to zero), thus sometimes we
   would consider the first pointer that went down to be a pointer that
   is not down at all. Now we are iterating only over the pointers that
   are down.

2. The batched events while waiting to see if the user is exploring or
   gesturing were added even if we were in touch exploration state at which
   point we do not have to batch. As a result we ended up having lefovers
   from a previous gesture when handling the delayed events and crash.

bug:10312546

Change-Id: I4728541ac12e4da4577d22e4314101dd169a52fb
services/java/com/android/server/accessibility/TouchExplorer.java