Apply visibility policy to window state surface
The client side can access the ViewRootImpl surface and changes
its visibility, so the server side visibility policy should control
the visibility of the surface which is not accessible from the
client side, i.e. the surface of window state instead of the
client surface.
Bug: 452010556
Flag: EXEMPT BUGFIX
Test: atest WindowStateTests#testIsOnScreen_hiddenByPolicy
Test: Show an overlay window and loop to show the VRI surface.
Launch Settings. The overlay window should not be visible.
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:837d1ffa54b637de35558c87dae7d0c155721a43
Merged-In: I326fcaf71f901a11cf4aee3d734494090a1d0fb3
Change-Id: I326fcaf71f901a11cf4aee3d734494090a1d0fb3