History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ab216609f1608e61827d955fcc9fd0560bc52e4d 09-Aug-2016 Winson <winsonc@google.com> Removing private system ui flags from status bar flags logic.

- Prevent third party apps from inadvertently changing internal SystemUI
flags through a call to setSystemUiVisibility(). These flags are only
set in the individual SystemUI components and can be updated in WMS
directly.

Bug: 29875297
Change-Id: I5ea238c8fb16a0eccd6e993d95a912acb359cee6
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
177801c2736579cbb734596be59d737005a308fd 06-Sep-2016 Jaewan Kim <jaewan@google.com> Keep the PIP at the shifted position when the Settings is shown

Some top level Settings menus launch activities from other packages.
In that case, they should be considered as a part of the Settings
if they follow the Leanback's side panel style.

Add such activities to the whitelist to keep the PIP position.

Bug: 31142005
Change-Id: I12cab611b346154048cbd61f6a678f23b5a10c00
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
73ef3516d213b2fb37daeb57edcb26907997d614 18-Jul-2016 Jaewan Kim <jaewan@google.com> PIP: Handle layoutDirection changes

Bug: 30145777, Bug: 28826668
Change-Id: I43c39b3d3dff279c0a61f8d5872819457ccad4d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
8290f8f66a75e89ac3ef4d399798486e7d8682a8 01-Jul-2016 Andrii Kulian <akulian@google.com> Always send task stack change updates if PiP is enabled

PiP stack repositioning is triggered when task stack change
is detected. Usually these updates are sent when there was
a visibility change since last pause. In case when we're
navigating from setting back to launcher on TV there is no
visibility change. This happened to work in most cases
because PipOverlayActivity was shown or hidden somewhere
between user actions.

This CL always notifies about task stack changes if pinned
stack is present on activity pause.

Bug: 29344059
Change-Id: I5ab3f2b8a97983fcb79d58626b6494f8ec31dbf3
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
a9e0621f33233c43f29e876b6c1055cf1dc855fc 16-May-2016 Jaewan Kim <jaewan@google.com> PIP: Improve PIP control row's focus change animation in Recents

This includes following changes for performance
1. Passes the key events directly between the windows instead of using
dummy Views and OnFocusChangeListener to prevent main thread from
handling unnecessary focus changes.
2. Limits the window size for PIP controls to reduce unnecessary draw.

Here's the test result. Test is performed with paused PIP video
1. 5 visible recents task
Focus down: 48.14 fps -> 85.396 fps (+77.39%)
Focus up: 24.67 fps -> 45.33 fps (+83.77%)
2. 3 visible recents task
Focus down: 51.98 fps -> 132.72 fps (+155.34%)
Focus up: 30.91 fps -> 53.38 fps (+72.69%)

Bug: 28042495
Change-Id: I363232176975b160e122748c9997ef4b46b73a28
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
2d4d07c66329bad4ad7cabf13eedca5bfe9a1a66 20-May-2016 Jaewan Kim <jaewan@google.com> PIP: Handle configuration changes

Bug: 28727532
Change-Id: I2a566082fa88984ef56d6ed8515c9bcd6a6ea868
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
fa255f6ead7097acba8400998c47685cc3defc67 27-Apr-2016 Rob Carr <racarr@google.com> Merge "Revert "Prevent recents from closing while moving PiP to fullscreen."" into nyc-dev
f0fd218382b96f052d22a2e8ee00510cc23a6d1e 20-Apr-2016 Jaewan Kim <jaewan@google.com> PIP: Send KEYCODE_WINDOW to app first if PIP isn't exist

Bug: 27954955
Change-Id: I517e378d5c1672ac0eb87bdf4375b7d733276e58
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
b003364bc7e31e7f85865ef298d399ed61c372a2 22-Apr-2016 Jaewan Kim <jaewan@google.com> Revert "Prevent recents from closing while moving PiP to fullscreen."

This reverts commit 744e6e3aef4d4b6cb3a75e8ecbbc1796da2388b2
to prevent Recents from shown again after an activity is PIPed
immediately after the fullscreen.

Bug: 28333917
Change-Id: Ifeceb910eefc3eef109bdc3ed24e11109f2cf9b4
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
744e6e3aef4d4b6cb3a75e8ecbbc1796da2388b2 20-Apr-2016 Robert Carr <racarr@google.com> Prevent recents from closing while moving PiP to fullscreen.

If we close recents when beginning the animation, we will
trigger a resume of the previous fullscreen app, which will
attempt to aniamte in at the same time we are animating
the PiP to fullscreen. These conflict causing flicker and
churn.

Bug: 27793381
Change-Id: I520181dadab938bbf62b25891f5ba0e4e9783967
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
353d8d78ac9f581536abd35840be87ad9f72650e 14-Apr-2016 Dongwon Kang <dwkang@google.com> PipManager: Revisit the logic for PIP close for TV app case

Bug: 26644185
Change-Id: I566f965796bc5a50b4e2ecf08b7217c6565cb163
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
d89a6944aadf3ca8d3838f84aa7dec27538cadd6 08-Apr-2016 Jaewan Kim <jaewan@google.com> PIP: Move PIP to left when Settings is visible

Default PIP location hides the upper part of the Settings,
so it should be moved a bit not to cover it.

Bug: 27891236
Change-Id: I6f13419cc9dc91522696c14a202e25652bd2232a
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
10a86910aa66781ba3343bbb782d449a5a78248e 04-Apr-2016 Jaewan Kim <jaewan@google.com> PIP: Fix regressions caused by previous commit a0d4d25

This includes two fixes
- Restore PIP location when PIP menu is closed.
- Prevent PIP from moving to fullscreen when it's resized directly
via ActivityManager with animation.

These are regressions caused by
a0d4d25 PIP: Apply the animation spec for the PIP in Recents

Bug: 27540465
Change-Id: Id5b131faa3052a809138ab058bcfe65ce6a820b7
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
a0d4d2588dfa5cbd09100c5b06c8ecfeaaf3a279 31-Mar-2016 Jaewan Kim <jaewan@google.com> PIP: Apply the animation spec for the PIP in Recents

Bug: 27540465
Change-Id: Ibdd4a4e3fd194978ccbc29235a1c620ebddff942
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
8f584b8dee2a2a15a1777fabf6ba033b78419b9a 22-Mar-2016 Jaewan Kim <jaewan@google.com> PIP: Apply the new UX spec for PIP in Recents

Detailed animations will be applied in another CL.

Bug: 27540465
Change-Id: I3664dc10efadeb8f183a4871a684c706e1472999
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
938a50b424eb73ee96d34c96b5e2cbd11f733d7a 14-Mar-2016 Jaewan Kim <jaewan@google.com> Refactor SystemServicesProxy to manage ITaskStackListener locally

This reduces the IPC calls between system service and SystemUI app.

Bug: 27635150
Change-Id: I6886edbc8e3736416af06c8de204f2a3b470ccd1
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
82ac50d607ac252905bf8a095d6e6061f023664e 21-Mar-2016 Jaewan Kim <jaewan@google.com> PIP: Fix NPE when an activity is PIPed again immediately

More proper fix would be not showing Recents after an activity is PIPed,
but NPE shouldn't be happen so let me propose the CL as the first step.

Bug: 27634771
Change-Id: Ie98293b7dd2d206567ded08d54134164aa78ca9c
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
742983e711ba3132cd09e1b277e9de53ae6596d5 22-Mar-2016 Jaewan Kim <jaewan@google.com> Merge "PIP: Prevent PipOverlayActivity from restarting" into nyc-dev
e75a9adfbd37f9ec1a9324caceb9d5d7ceed217c 19-Mar-2016 Wale Ogunwale <ogunwale@google.com> Added support to specify animation duration when resizing stack

Needed for sys-ui to control the duration of various Pip transitions.

Bug: 27674339
Change-Id: I7bad27aaa19755a73c594e88b88b56db033e1a45
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
21e0421235b2b0b29119264b99504eccad099744 21-Mar-2016 Jaewan Kim <jaewan@google.com> PIP: Prevent PipOverlayActivity from restarting

PipManager moves the PIPed activity to fullscreen if the activity is
restarted. It's because the activity may be started by the Launcher or
an intent again, but we don't want do so for the PipOverlayActivity.

Bug: 27689029
Change-Id: Icebc09e22e5f5f4650fcdbfdd8c452b7cf23844b
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
1ea8722f933b761ef791813968ff0cc202a2f8b9 10-Mar-2016 Jaewan Kim <jaewan@google.com> Merge "PIP: Close PIP if media session is gone" into nyc-dev
f40fcdca2cabbebb59826191a3ec2fca11f0d93a 04-Mar-2016 Jaewan Kim <jaewan@google.com> PIP: Close PIP if media session is gone

This keeps the PIP if there's no media session from the beginning.

Bug: 26717072
Change-Id: Idf5bab14d8979c0e50f4451f61bb9355d4562b96
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
c64b0eeee30e5248291a3b662f4348ece7fa166f 04-Mar-2016 Jaewan Kim <jaewan@google.com> PIP: Provide a way to show onboarding everytime

This is for development and debug purpose.
To use this,
$ adb shell 'setprop debug.tv.pip_force_onboarding true; stop; start'

Change-Id: I9755266f8de00b87ce3ad1efbe9c57261aaf38c7
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
623381921c4b9c26c888cdbe3307d5bfb9c23db1 25-Feb-2016 Jaewan Kim <jaewan@google.com> PIP: Implement play/pause button in menu

Bug: 26685243
Change-Id: Id3138cc35dbef90d91767797e7f26f3c60191b1a
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
1a9dc566bea8abc8293ab9db40711147e99a65ea 17-Feb-2016 Jaewan Kim <jaewan@google.com> PIP: Apply the latest UI spec for PIP menu

Bug: 27190196
Change-Id: I71b5f2eb46ee90af8601f4ec02e20e2792ebc4de
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
c92a7d12e345e05272f3e84d49d75c77dc6e3edc 16-Feb-2016 Jaewan Kim <jaewan@google.com> PIP: Make PIPed activity to be focused from Recents

This makes PIPed activity to look like part of the Recents.

Bug: 26946155
Change-Id: Ic0ac441e57af5594c06701fa9d30400f0f7cc5a5
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
336007ba719dab28a1837abfef0d6fcbbf4b7fb2 22-Feb-2016 Youngsang Cho <youngsang@google.com> PIP: Rename closeInternal to closePipInternal

Change-Id: I6e1e98a1a75728d057a7dee3edbd2f2a6f32112d
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
23df699451c3bb4fcb0121702a48f38c0fe19b04 27-Jan-2016 Youngsang Cho <youngsang@google.com> Close PIP when PIP activity is finished

Bug: 26717072
Change-Id: I5dd431b0ee64ca152bd49013bb6bbb3e8d9fba71
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
06e8ee0c8ad2527add3db3dd1a1d4eee9d8631f8 12-Feb-2016 Wale Ogunwale <ogunwale@google.com> Added AM API to remove a stack

Use the new API when closing Pip.

Bug: 26982752
Change-Id: I074d23b5535a4534626183ab77142d3932a803f0
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
480dca0d1b08f8895f66f857e9bd341033fab2d9 06-Feb-2016 Wale Ogunwale <ogunwale@google.com> Reduce jank during pinned stack animation

- Don’t launch Pip overlay activities during pinned stack animation.
This causes extra CPU load and takes a way resources from the running
animation.
- Finish Pip overlay activities before starting pinned stack resize
animation. Reduces the amount of work the system needs to do to keep
the overlays in-sync with the other activities in the pinned stack.
- Use AM.resizeStack with null bounds to take Pip to fullscreen so that
we can animate the bounds changed.
- Also, fixed Activity.enterPictureInPicture API to animate the transition
if Pip is entered from the app instead of Pip manager.

Bug: 25672053
Change-Id: I82399c10f1b8c675ea3861ba973dc8ecfbfbe50f
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
977dcdc3cda467b9bad63ed6c2c363326d976ddd 20-Jan-2016 Jaewan Kim <jaewan@google.com> PIP: Implement the initial version of onboarding screen

Redlines and assets will be applied later.

Bug: 26676479
Change-Id: I1a42fad0b918681c64ae84abb1bff8fac3289004
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
54fa566ab74368bd0f0a8e9da7c695b2d33d6124 30-Jan-2016 Jaewan Kim <jaewan@google.com> Merge "PIP: Use StatusBarService to handle PIP key"
c0d7058b14c24cd07912f5629c26b39b7b4673d5 29-Jan-2016 Winson <winsonc@google.com> Referencing static interpolators.

Change-Id: I5d2292016e869ed533f5873e373a1eccce651fc5
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
c552b04cb4aac9d31dbaf9744f32ddc14886e222 18-Jan-2016 Jaewan Kim <jaewan@google.com> PIP: Use StatusBarService to handle PIP key

Bug: 26591829
Change-Id: I7051fab966e2fc0887b2a21ddbf11aff7e16804b
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
6a00b709f9ceda69c3abbf24051c518bc4fb22a5 26-Jan-2016 Youngsang Cho <youngsang@google.com> Handle TaskStackListener.onPinnedActivityRestartAttempt in PIP system UI

Bug: 26452296
Change-Id: Ic828462dce0b6f88c9b00fac36ade5492cec94fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
cc25a8a24ea85409f440c052fdf36dc304cd7111 23-Jan-2016 Wale Ogunwale <ogunwale@google.com> Send notification we attempted to start an already running pinned acitvity

API will be used by Android TV sys-ui to decide what to do next with the
Pinned activity.

Bug: 26452296
Change-Id: I5411515d079468616422ba9e5093164a924cd6a2
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
efbbd496f97c82088ff0722ef9bc6f60e75abff4 21-Jan-2016 Youngsang Cho <youngsang@google.com> Use ActivityOptions.setLaunchBounds to resize PIP

Bug: 26574470
Change-Id: I5444ae40a51cf2746d78b4c006e5936c91d01ae4
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
ad8ceb037ea54573e4e9b869641c56cb63abba53 16-Jan-2016 Youngsang Cho <youngsang@google.com> Close picture-in-picture when a fullscreen app starts to play a video

Bug: 26549507
Change-Id: I27e8f7b1847bf0e34e7c47bf6303c425c3eb9127
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java
f164792472dae77b14a47a30ad66c1a0e41340b0 17-Dec-2015 Youngsang Cho <youngsang@google.com> Initial check-in of picture-in-picture system-ui

Bug: 26549507
Change-Id: I6c69b5e2b5492858fc997657b5a06d3e50ca16e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/tv/pip/PipManager.java