summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2024-02-13 17:44:08 -0800
committer Siarhei Vishniakou <svv@google.com> 2024-02-22 11:42:12 -0800
commit56ba8aa74325134843cf4e1ff903728499f2b0ab (patch)
treec439a1b07113f63cf727a8dd3f406225fb710cd3 /libs/androidfw/StringPool.cpp
parent0ca9cb7340447bf606fd92e33304f608adee85e8 (diff)
Add multi-device checks to AccessibilityInputFilterInputTest
Prior to this CL, AccessibilityInputFilter assumed that only a single input device could be active at a time. However, after the recent multi-device input feature, that assumption no longer holds. As a result, InputFilter is being sent multi-device streams from the InputDispatcher. This is problematic, because InputFilter gets confused and start processing the events from all devices at the same time. Components like TouchExplorer don't look at the device id, and quickly get into an inconsistent state. This causes some events to be dropped by InputFilter, and some to be sent back to the InputDispatcher. In some situations, this leads to an inconsistent input stream being injected back into dispatcher, which could lead to a crash. In this CL, we add a multiplexer to AccessibilityInputFilter so that only one input device can be active at a time. All MotionEvents from other devices are going to be ignored. Multi-device behaviour of AccessibilityInputFilter is also being tested in this CL, for the cases where none of the a11y features are on, and where all of the a11y features are on. Bug: 310014874 Test: atest FrameworksServicesTests:AccessibilityInputFilterInputTest Change-Id: Iac18fd671787d880aca1f6fbfd17d822e5ae8ee6
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions