Add mixed entering pip transition with display change
The case happens when a pip is entering in previous rotation and then display updates. The transition type can be either TRANSIT_CHANGE or TRANSIT_PIP: PipTask CHANGE sb=Rect(0, 0 - 1080, 2340) eb=Rect(0, 0 - 2340, 1080) r=0->3 Display CHANGE sb=Rect(0, 0 - 1080, 2340) eb=Rect(0, 0 - 2340, 1080) r=0->3 The destination pip bounds should be calculated from (2340, 1080). Because a display snapshot should have covered the screen, the pip should go to the end state immediately and only animate the display rotation animation. This also merges [1] and [2]. [1]: I110d1c11f3d3fdcfb83698e5cf1ec4efb062bd10 [2]: Ia9c78105f4a9782c156744e6cb38681f265955a0 Bug: 340367710 Test: Enable auto rotation and home rotation. Swipe up (do not release touch) an auto pip activity in portrait. Rotate the device to landscape. Continue the swipe up to enter pip. The display should show a rotation animation and the pip can show on correct landscape position, Merged-In: Ia1e5e8c7edb8c2a078a66b587d5d26a495166de2 Change-Id: Ia1e5e8c7edb8c2a078a66b587d5d26a495166de2 (cherry picked from commit 6373912c)
Loading
Please register or sign in to comment