diff options
| author | 2021-03-11 15:05:30 -0800 | |
|---|---|---|
| committer | 2021-03-18 15:37:42 -0700 | |
| commit | 93f342c9198b195bff3a0e09689d41dd1f5250ba (patch) | |
| tree | a41f5b957f7e833a3804ec1aa5a8992c6934d48a /libs/gui/BLASTBufferQueue.cpp | |
| parent | f0ca8651c21abc18f3fba893e78afab93f61a58c (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