summaryrefslogtreecommitdiff
path: root/libs/gui/BLASTBufferQueue.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-03-11 15:05:30 -0800
committer Prabir Pradhan <prabirmsp@google.com> 2021-03-18 15:37:42 -0700
commit93f342c9198b195bff3a0e09689d41dd1f5250ba (patch)
treea41f5b957f7e833a3804ec1aa5a8992c6934d48a /libs/gui/BLASTBufferQueue.cpp
parentf0ca8651c21abc18f3fba893e78afab93f61a58c (diff)
InputDispatcher: Check injection permission in tests
- Forwards the unused parameters injectionTimeout and injectionMode to the test helper method. - Checks injection permission in the test against the default PID and UID used for injection. Adding this caused a regression in many tests. Since the tests never gave Dispatcher permission for injection, none of the input events were marked with the TRUSTED flag, which, for tests that inject a key DOWN event, disqualified key repeats from taking place. Now that injected events are TRUSTED, the dispatcher can never idle after a key DOWN because it needs to wake up to process the key repeat. Therefore we need to disable key repeats with the policy flag when injecting a key DOWN in tests that need the Dispatcher to idle. Bug: 173733166 Test: atest inputflinger_tests Change-Id: Ie5084ae3e8f2a0b77930bf3943cce0d7bd21d3a6
Diffstat (limited to 'libs/gui/BLASTBufferQueue.cpp')
0 files changed, 0 insertions, 0 deletions