summaryrefslogtreecommitdiff
path: root/libs/gui/SurfaceComposerClient.cpp
diff options
context:
space:
mode:
author Harry Cutts <hcutts@google.com> 2023-04-12 16:30:09 +0000
committer Harry Cutts <hcutts@google.com> 2023-05-05 11:17:48 +0000
commit892bce50744f0718c7578aa31aa345591b2ff4db (patch)
treee2e88bca82476e8c11b31a4aff2a2a48ce3206a3 /libs/gui/SurfaceComposerClient.cpp
parentbb24e27c086fa7f06a914a8051e71bab764662be (diff)
CapturedTouchpadEventConverter: filter out palms
When a touchpad marks a touch as a palm, we don't want to pass it on to apps that have captured the touchpad. In future, we could pass these through if we wanted by removing @hide from MotionEvent.TOOL_TYPE_PALM and using that to denote palm touches. Bug: b/259547750 Test: atest inputflinger_tests Test: on a suitable touchpad captured by a test app, move a palm around. Check it's not reported at all when the pad identifies it straight away, and that it's cancelled when identified after touching down. (`getevent -l | grep TOOL_TYPE` is useful to tell when the pad changes its classification of the touch) Change-Id: Iefe84120321246f3661a4d2d06e0ec01ba9fe52b
Diffstat (limited to 'libs/gui/SurfaceComposerClient.cpp')
0 files changed, 0 insertions, 0 deletions