diff options
| author | 2024-04-01 18:40:05 +0000 | |
|---|---|---|
| committer | 2024-04-01 18:46:56 +0000 | |
| commit | ee76c372f58cce87d863333ad46c04b219c05566 (patch) | |
| tree | 37fb494638eba6c7dafa7dd2d6725d642e3b62e9 /services/surfaceflinger/RegionSamplingThread.cpp | |
| parent | 686b965eef8cb608cfa3db2de48a2c0c98ee56ec (diff) | |
Move check for secure windows to InputTracer
We have a requirement where all windows that use FLAG_SECURE must use
InputConfig::SENSITIVE_FOR_TRACING. However, it only makes sense to
enforce this condition on windows that can receive input.
There are many conditions that determine whether a window is configured
to receive input (e.g. touchable region, NOT_TOUCHABLE, NOT_FOCUSABLE,
NO_INPUT_CHANNEL, PAUSE_DISPATCHING, NOT_VISIBLE, etc.), so it is not
straightforward to tell when this condition should be enforced.
Instead of enforcing it when we receive WindowInfos from SF, enforce it
in the InputTracer so that we crash if we're trying to trace an event
going to a FLAG_SECURE window that isn't marked as senstive for tracing.
Bug: 332032185
Test: None
Change-Id: I56161c92cb95f775235695128ebdf6d2c7e9884f
Diffstat (limited to 'services/surfaceflinger/RegionSamplingThread.cpp')
0 files changed, 0 insertions, 0 deletions