Return USE_OPACITY if the insets source window is being animated

The insets control target can make an insets source window (e.g., IME)
in a persistent state of nearly transparent (alpha=0.0001), and trick
the user to click on the certain area of it. If the area has the auto-
fill hints, clicking on it will leak the info to the app, which can be
a security issue.

This CL returns USE_OPACITY from getTouchOcclusionMode if the window
provides insets and is being animated by the control target. So when
the insets source window is nearly transparent, the user cannot click
on it.

#b/493560718

Fix: 493560718
Flag: EXEMPT BUGFIX
Test: atest WindowStateTests
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:644d73a56d136376c052d641a72ed295a014be93
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:ce4bfb5202295eb3687249639c1b1f35f317dfd4
Merged-In: I7fa456d5746c38eaffd3d9ddb9d7f6f78c3c352f
Change-Id: I7fa456d5746c38eaffd3d9ddb9d7f6f78c3c352f
2 files changed