Remove theater-mode wake checks if screen is already on

The purpose of the theater-mode checks before the WindowWakeUpPolicy
wakes is to prevent the screen from turning ON while the user is in
theater mode (by extension, when the user is in an environment where
they do not want the screen to be ON).

Therefore, let's disable the theater-mode guards if a "wake" attempt is
being done while the screen is already ON.

Note that we flagged this new behavior with
FLAG_SUPPORT_INPUT_WAKEUP_DELEGATE, since the situation we're trying
to fix is relevant only when FLAG_SUPPORT_INPUT_WAKEUP_DELEGATE
is ON.

Flag: com.android.server.policy.support_input_wakeup_delegate
Bug: 333762937
Test: atest WindowWakeUpPolicyTests
Change-Id: I5804a5adfd51bed12ca02bc3fea13689adbd24a0
2 files changed