Use WindowInfosListener for TPL
Move TPL logic from surfaceflinger to system server. When a TPL is
registered, start listening to window info updates and start checking
for whether thresholds will be crossed. This allows us to move the logic
away from the composition hot path and optimize to handle multiple
listeners. This change also consolidates all the TPL logic into its own
thread.
Bug: 290795410
Test: atest TrustedPresentationCallbackTest
Change-Id: Ib649f157ddbb6b5a952cedeb235f6ace6f5e43ae
18 files changed