summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Daniel Norman <danielnorman@google.com> 2025-02-05 19:38:01 +0000
committer Daniel Norman <danielnorman@google.com> 2025-02-05 20:44:03 +0000
commit614c6be5aea885432f86b9638de15c1f292f6402 (patch)
tree84b268c6b4589efdf244784342729282fd0f8eeb /libs/androidfw/StringPool.cpp
parentd88bfd50156b67e9a96059f6a06e7b762937c5cb (diff)
Removes ACTION_CANCEL which caused InputDispatcher inconsistency.
This ACTION_CANCEL was used for two cases: 1. Cancelling an in-progress injected gesture if another injected gesture is requested. 2. Cancelling an in-progress real gesture if a new injected gesture is requested. (2) was not functional because this ACTION_CANCEL had the deviceId of the injected device, not the device used by real gestures. This bad ACTION_CANCEL was then causing an inconsistent stream for future injected events. Rather than fix (2) this change removes that CANCEL case altogether; as of http://ag/21431224 CANCELing the real gesture is not necessary because InputDispatcher already tracks deviceId and cancels the real gesture on its own when A11y sends the injected gesture. Bug: 384451671 Test: Manual testing; see b/384451671 #comment20 Test: atest MotionEventInjectorTest Flag: com.android.server.accessibility.motion_event_injector_cancel_fix Change-Id: I09aef2c853dfe86142e8b60e5b64c4560b2265a0
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions