commit | d54277e589bf093b69972f786bcb481e503ab809 | [log] [tgz] |
---|---|---|
author | Arpit Singh <arpitks@google.com> | Fri Nov 24 18:19:56 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon Feb 05 22:39:39 2024 +0000 |
tree | 46db7184848614fe826bff2621c83592e0089169 | |
parent | ae3fc004ddc3f0a7932c7276a95c6cdda185704b [diff] |
Sync MT slots on reset and buffer overflow At present we don't repopulate the MT slot values when a buffer overflow occurs. This may lead to incosistent event being generate due to out of sync Mt Slot values. In this change we repopulate the MT slot values with EVIOCGMTSLOTS system call after resetting the mapper. Now in case of a buffer overflow a ongoing multitouch gesture will be cancelled and restarted. In addition to cherry pick this change also includes some modifications in test files to account for diverging branches Test: atest inputflinger_tests Bug: b/291626046 (cherry picked from commit 4b4a457fb72ddb2c4ad269dff39b422fbf887999) (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:cb7de99672a8aee59438bc783bdaceec9ecf9d4e) Merged-In: I8195406ce1f9e3e704381b47e282c65463537745 Change-Id: I8195406ce1f9e3e704381b47e282c65463537745