summaryrefslogtreecommitdiff
path: root/libs/gui/LayerDebugInfo.cpp
diff options
context:
space:
mode:
author Prabir Pradhan <prabirmsp@google.com> 2024-02-21 23:25:15 +0000
committer Prabir Pradhan <prabirmsp@google.com> 2024-03-08 22:41:13 +0000
commitd6b2b05f75fc82bd9817878d0feb2a6f425dc57d (patch)
tree3a869b56691fefd8e3843e662e64bceabec2b1de /libs/gui/LayerDebugInfo.cpp
parente77016441606674de6d9445d6e6a65ee90a50221 (diff)
InputTracer: Create tracker for tracing synthetic events
Allow the creation of a trace tracker for a synthetic event that does not stem from an inbound input event. This is used for any dispatching cycle that has a non-input event root, such as ANR timers, window removals, API interactions (e.g. pilfer pointers), etc. Any key or motion events generated for this synthetic event should be traced as a derived event. We achieve this by passing the trace tracker through the dispatching pipeline, and tracing all of the synthesized events for that root using the same tracker. Since all synthetic events can now be traced, we can now enforce that all dispatched events have been previously traced as either an inbound or derived event. This makes the event cookie non-nullable. Bug: 210460522 Test: atest inputflinger_tests Change-Id: I3417aee300edc251e2f7cb76c1f719502a5f5b8b
Diffstat (limited to 'libs/gui/LayerDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions