summaryrefslogtreecommitdiff
path: root/services/inputflinger/InputThread.cpp
diff options
context:
space:
mode:
author Paul Ramirez <peramirez@google.com> 2024-10-01 01:17:39 +0000
committer Paul Ramirez <peramirez@google.com> 2024-10-09 00:58:10 +0000
commit4679e55027a36e63cfdc642de313cb2c46c58c54 (patch)
tree91aca7153c9f7d2c1ef305717efa259488eae757 /services/inputflinger/InputThread.cpp
parent4d3b03adfa3543158c982546f3d6daec7eed06e8 (diff)
Add logic to overwrite pointer coordinates if event time is too old
Included OldEventReceivedAfterResampleOccurs from TouchResampling_test.cpp, and added the missing logic in LegacyResampler to pass the test. The CL wrongly assumes pointer information guarantees between motion events, that is, pointer IDs can appear in different order between samples. This issue is fixed in the second to last CL in the relation chain by using an associative array as a data structure to store and access pointer properties and coordinates. Bug: 297226446 Flag: EXEMPT refactor Test: TEST=libinput_tests; m $TEST && $ANDROID_HOST_OUT/nativetest64/$TEST/$TEST --gtest_filter="InputConsumerResamplingTest*" Change-Id: I41cb79eaba965cfdfe7db68c388cb5d0ffa406f3
Diffstat (limited to 'services/inputflinger/InputThread.cpp')
0 files changed, 0 insertions, 0 deletions