OSDN Git Service

PIP: Fix transition to and from PiP when letterboxed
authorAdrian Roos <roosa@google.com>
Tue, 15 May 2018 18:13:13 +0000 (20:13 +0200)
committerAdrian Roos <roosa@google.com>
Fri, 18 May 2018 12:38:07 +0000 (12:38 +0000)
commit604ef951ce5704910c6367a622dcd4a6a0123703
tree78289dd64fd9e6fb44a7d8a3e48245929a0bb4f6
parent6d0842154bb063632f937ef360557af281b6c2cb
PIP: Fix transition to and from PiP when letterboxed

When an app is letterboxed, it cannot always take up the full
task bounds, and we need to constrain the PIP animations to
the constraints imposed by the layout.

Change-Id: If238ddfb4462c7e1e5c975f76666ad1d4ec3b076
Fixes: 77802617
Test: Enable cutout emulation, enter landscape, verify transitions both into and out of pip work as intended.
Test: atest ActivityManagerPinnedStackTests
services/core/java/com/android/server/wm/WindowState.java
services/core/java/com/android/server/wm/WindowStateAnimator.java