Fix missing test condition of TransparentPolicy

These code should be included in [1], but it was dropped accidentally
when rebasing patchset. This simply restores the changes. Otherwise
the tests will fail when enabling the flag.
[1]: Id9861c908420961efb945e36fb50a13ea4de7e8f

Bug: 278097747
Flag: com.android.window.flags.respect_non_top_visible_fixed_orientation
Test: atest TransparentPolicyTest
Change-Id: I168e72bfbe3727b0420ae5cb77c9ae63488bd387
3 files changed