Dispatch the requested visibility if the client has the control

Otherwise, we would think its visibility needs to be cleared.

This CL:
- reverts parts of eb5a5920b79e60d179751ca84167c15251548c39,
- prevents sending redundant MSG_DISPATCH_SYSTEM_UI_VISIBILITY, and
- cancels clearing visibility if a new reversed visibility is set.

Fix: 156994866
Test: atest --iterations 100 LayoutTests#testAddingImmersiveWindow
      atest WindowInsetsControllerTests InsetsAnimationControlImplTest
Change-Id: I8b8b7541523c0a94daf336f3be415aa5fa3f33da
3 files changed