summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/RegionSamplingThread.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2021-09-24 06:57:33 -0700
committer Prabir Pradhan <prabirmsp@google.com> 2021-10-04 04:00:45 -0700
commitaa561d166f41be8c7ced8f429c3c9a4cd2831ff0 (patch)
tree98953b0bf7b265689632ee90752dc65389eebcb6 /services/surfaceflinger/RegionSamplingThread.cpp
parentb5cb957254201f19a434898c249d59752e2a88b7 (diff)
InputDispatcher: Inject to default display if display unspecified
Injecting a MotionEvent requires the target display to be known, because the display projection must be applied to the event. If the displayId for an injected MotionEvent is not specified, then inject to the default display. This is safe to do from a security standpoint because the permisson check for input injection is based on the target of the input event, and it happens later on in the dispatch cycle. Bug: 179274888 Test: atest VerifyInputEventTest Change-Id: I95970a46646fccfbfbc0f47b31d5c9df02254795
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions