Move input sink on top of the Activity when needed

An Activity below the TaskFragments could be exposed to user touches
since (1) the upper TaskFragments do not fill the entire Task, and (2)
the bounds of the Activity within the TaskFragment and the Activity
below in the hierarchy can be different.
Therefore, we will need an input sink above the Activity to block the
touches between the TaskFragments. This change could avoid the risk of
tapjecking within the Task.

Bug: 490083213
Test: atest WmTests:ActivityRecordInputSinkTests
Test: atest WmTests:ActivityRecordInputSinkWithTaskFragmentTests
Test: atest CtsWindowManagerDeviceActivity:ActivityRecordInputSinkTests
Test: atest CtsWindowManagerDeviceInput:WindowUntrustedTouchTest
Test: atest CtsWindowManagerSdk35TestCases:ActivityRecordInputSinkTestsSdk35
Test: atest CtsWindowManagerSdk35TestCases:WindowUntrustedTouchTestSdk35
Flag: EXEMPT CVE_FIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:42b79155a6b7ffdf1cfc2552d854b9cd9692d381
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:c4d386118c62c352a0189ed48fecfcf8105894aa
Merged-In: Ia9ea05e190cb809516de5765262b8cbee7676769
Change-Id: Ia9ea05e190cb809516de5765262b8cbee7676769
2 files changed