Set trusted overlay on SurfaceControl instead of InputWindow
When trusted overlays are set on the SC, the property is inherited so
children will also be trusted overlays. This is the expected behavior
since there are often child layers created outside system server that
should also be trusted overlays when their parent is
InputWindow also has a way to set trusted overlays, but that way is only
set on the immediate window and not children. Convert all places setting
trusted overlay on their InputWindow to instead set on the
SurfaceControl.
Test: TrustedOverlayTests
Bug: 292032926
Bug: 300094445
Change-Id: I6e0b6a9f023210e7ef1515f534792e5f8a2db4b3
11 files changed