summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Siarhei Vishniakou <svv@google.com> 2023-05-26 10:46:09 -0700
committer Siarhei Vishniakou <svv@google.com> 2023-06-06 08:28:37 -0700
commitadb9fc91665d3fe294e7ad4f3c883c8db38bd0c1 (patch)
tree19e198a93e89efc4ebba26475c8c047afc65228d /services/surfaceflinger/RegionSamplingThread.cpp
parent463c17e17398adb1f32eea6dfadcc6e8dec7bcf6 (diff)
Add tests for pointer stuck in TouchState
Add two tests that reproduce the conditions necessary for the pointer to be stuck inside TouchState. In both cases, this is caused by calling synthesizeCancelationEventsForConnectionLocked without also changing the TouchState. That makes TouchState and InputState out of sync. Currently, this setup does not cause a crash, but rather, just drops some of the touches unexpectedly. These tests are added as documentation of the current behaviour. When the situation is fixed in the future, the tests would need to be updated. If we wanted the tests to fail, we could crash the dispatcher whenever InputState detects an inconsistent stream. A similar solution will be done eventually by enabling the InputVerifier for all outgoing streams. Bug: 281806933 Test: m inputflinger_tests && adb sync data && adb shell -t data/nativetest64/inputflinger_tests/inputflinger_tests Change-Id: Iaa949f2aa8dd2a7db9e8fd8bb365430e805cda79
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions