diff options
| author | 2022-09-08 15:04:42 -0700 | |
|---|---|---|
| committer | 2022-12-02 12:29:40 -0800 | |
| commit | a766c12edaa88c7122f892ac08dda07b1bdd629a (patch) | |
| tree | af642cd6b9d6baf7d3c52baa146cc06800124fa1 /libs/androidfw/StringPool.cpp | |
| parent | 83e20e8637349606459002421aae506d370ab141 (diff) | |
Introduce AccessibilityService#onMotionEvent()
This API allows accessibility services to intercept motions events, to
expand device control capabilities to more types of input devices
such as watch rotary wheels and gamepad joysticks.
Unlike KeyEvents which are optionally consumed, for MotionEvents the
service must declare the event sources it wishes to consume and then
events from these sources are *always* consumed. The source list can be
changed by the service at runtime. By always consuming the requested
events we avoid the potential "wait and see" latency concerns that
onKeyEvent deals with.
Bug: 247550565
Test: atest AccessibilityEndtoEndTest
Test: use in an a11yservice to observe joystick events
Change-Id: Iea54b00b21f5348f50d94d6e2213df24c0c8a36a
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions