summaryrefslogtreecommitdiff
path: root/tests/SystemUIDemoModeController/src
diff options
context:
space:
mode:
author Hongwei Wang <hwwang@google.com> 2022-07-07 13:38:04 -0700
committer Hongwei Wang <hwwang@google.com> 2022-07-14 10:17:38 -0700
commitccfa7d8b507089c8841b285d6147d513b1cfcfd8 (patch)
tree7ae81bba85c903e66e0d9910903661d848d10c59 /tests/SystemUIDemoModeController/src
parent18dfc2fb129ae3a8e6edbc41ffb8e0b790e58c46 (diff)
Adjust PiP source rect hint for window bounds
The source rect hint specified by the app is normally a result of View#getGlobalVisibleRect (or equivalent) that does not count the window offset in scenarios like the app is placed in the middle of display by the system when - app specifies sensorLandscape - display is actually in portrait mode (on large screens) Fixed this by adjust the source rect hint on ActivityRecord whenever the internal PictureInPictureParams is updated. Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dr7uy1qxB1RGjZVvElo7kr Bug: 235599028 Test: Verify entering PiP animation working as intended for \ app specifies sensorLandscape when auto-enter-pip and \ make-launch-into-pip (aka. content-pip). Test: atest WmTests:ActivityRecorderTests \ WmTests:ActivityStarterTests Change-Id: Id991adbae45a7b61d09105a9aee9cbfecd6b66be
Diffstat (limited to 'tests/SystemUIDemoModeController/src')
0 files changed, 0 insertions, 0 deletions