OSDN Git Service

Race condition while injecting ACTION_OUTSIDE
authorJackal Guo <jackalguo@google.com>
Tue, 16 Apr 2019 07:26:00 +0000 (15:26 +0800)
committerJackal Guo <jackalguo@google.com>
Tue, 23 Apr 2019 03:29:47 +0000 (03:29 +0000)
commit8bcc0a9846fc1035f0d0dae769d2a0529fa9202d
tree753d6c5df66a662898041e472e0bd8bed03b3793
parent0cab8dc0db59bbbcc1f76f46c82b5dec3d2e21d6
Race condition while injecting ACTION_OUTSIDE

In order to dismiss dialog in accessibility, we would also send
ACTION_OUTSIDE while performing ACTION_CLICK. However, the result
of performing ACTION_CLICK in AccessibilityInteractionClient may
be overwritten by the result of performing ACTION_OUTSIDE. This
causes that TouchExplorer may get incorrect result and follow-up
behavior is different.

Bug: 127902192
Test: a11y CTS & unit tests
Test: After enabling Talkback, manually test on 'View Terms' page
      in ManagedProvisioning to check if the section heading can
      be expanded/collapsed by double tap.

Change-Id: Id6b1f63ea87418c66bf1aebdea829f656581e8ed
core/java/android/view/AccessibilityInteractionController.java
core/java/android/view/ViewRootImpl.java
core/java/android/view/accessibility/IAccessibilityInteractionConnection.aidl
core/res/res/values/ids.xml
core/res/res/values/symbols.xml
packages/SystemUI/src/com/android/systemui/pip/phone/PipAccessibilityInteractionConnection.java
services/accessibility/java/com/android/server/accessibility/AccessibilityManagerService.java