Fix using the base type for checking

When a window is a sub-window, its `mAttr.type` won't be captured by `isSystemAlertWindowType`. Therefore, the window could run into the early return condition and skip the hide/show in `setHiddenWhileSuspended` when its top parent window is a system alert window and the app is suspended, which will lead to security concerns. Therefore, we check the base type of the window instead.

Bug: 493714520
Test: atest WindowStateTests
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:617b18b15e675266e52fd88b69506ad7d5f86778
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:372c0fdbf48e9a7d40a93338fc37fd5a70a3892b
Merged-In: Ia0c154fca56db7c0c89abc2ea09af600d4990323
Change-Id: Ia0c154fca56db7c0c89abc2ea09af600d4990323
2 files changed