History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1d581bcb094291114b2f4ffaa6a1e2ef924019b1 13-Jun-2016 Winson <winsonc@google.com> Ensuring we don't try and dismiss task views that are already removed.

Bug: 29240786
Change-Id: I724e7c366b2fb835fd81fa966689f999953ef4c8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
f9e79e0499a114b184e0d0f4dbd45b3d690a4657 05-May-2016 Winson <winsonc@google.com> Fix edge case crash with invalid bitmap dimensions.

- In these cases, skip returning an animation spec for that task

Bug: 28235453
Change-Id: I611dc4390c0cbd2ca5f16112e4784848b2d6896f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
3ca1028e74499e9beec33c144ccdd87df7df1171 22-Apr-2016 Winson <winsonc@google.com> Closing system windows when dismissing recents to app or home.

Bug: 28314924
Change-Id: I35f484c7c594bb39d7983965e0f706175cf92253
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
fc48b072e8caa62849ee305f89f38d248d4a1ded 21-Apr-2016 Winson <winsonc@google.com> Caching the display rect to reduce binder calls.

- Only update the display rect and orientation on configuration change.

Bug: 28122871
Change-Id: I2e87e7643902d5f45ac4a311109f5e1870f48d3b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
db21bbd2caf05322864f09ec45a0c572cf071123 19-Apr-2016 Jorim Jaggi <jjaggi@google.com> Fix wrong transition when recents is growing when entering

Bug: 27855229
Change-Id: I050305d16df6fe53abf5e74e1f9ee6c882dd7ead
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
3664426dcf3a603a52d630a74f3caef9da682457 18-Apr-2016 Winson <winsonc@google.com> Fixing animation spec animation problem.

- We were always using the stack layout to get the task transforms, but
when we are animating to a given task position (ie. hitting recents
while the home->recents transition is happening), we would start the
animation with the final task rect, instead of the current task rect.
Instead, use the current transform of the task view, and transform
that to screen coordinates and use it.

Bug: 27154882
Change-Id: I25af8fad97ee78669c952dd81708e6cee5dfab05
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
0f051f5abdb31024d862a954cc4c4716b1dde616 14-Apr-2016 Andrii Kulian <akulian@google.com> Remember task which is being locked

We need to remember task which requested to be locked
because we can accidentally lock another task after
user interacts with pinning request dialog.

Bug: 27876860
Change-Id: Ie8e607df4380dd33ea9b3474afc247b02e31de07
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
a6b81e0615c6c30a6b8003f69f728b08ccfb5174 07-Apr-2016 Winson <winsonc@google.com> Cancel recents animations after the transition starts.

Bug: 27864076
Change-Id: Ibe677704245534018db9051060ad5fa99332576b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
7845e8c4946f6b5dadfcd9c1d64e826bacc50edb 29-Mar-2016 Winson <winsonc@google.com> Adding logging to track down bitmap issues.

Bug: 27849282
Change-Id: Ie763a2a6cc968896e1ec0c4d89859cb49bd89e85
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
64ae08aa16fdf7ee33073979400afa40692342f1 28-Mar-2016 Wale Ogunwale <ogunwale@google.com> Show non-top tasks in the docked stack in recents.

Allows the user to access the task through recents since
it isn't currently visible on screen.

Also, changed recents to launch task currently in the docked
stack in the fullscreen stack when selected from recents list.

Bug: 27864383
Change-Id: I58549023920d064a30b6355367c3193ce3207bbd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
a1ededd056d51532ab18354f17f8065ec1134535 25-Mar-2016 Winson <winsonc@google.com> Launch state/config change audit. (Part 1)

- Fixing issue with onResume logic being run even when the window focus
is changing. This only needs to be run when we are launching into
Recents again.
- Removed a bunch of launch state flags that are no longer necessary
because of changes to configuration handling. This reduces the work
that we have to do on resize, etc.
- Decoupled the resume with the stack-update, which fixes a couple
issues where we were updating the layout unexpectedly.
- Fixed an issue where we were not updating the nav bar scrims on
configuration change
- Fixing margin start/end regression in header bar
- Fixing small issue with paddings being scaled beyond their base size
- Fixing issue where the clip state was not properly getting reset
causing lots of overdraw.

Change-Id: I9aeb191a99ff23807b3f5d905f6480b10157a060
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
c69bd2246f4ec5000591fdc381f84cd90be85b7f 15-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #6

- Use a future to provide the app thumbnail so the app can restart
in parallel when recents draws the bitmap (extremely expensive).
- Don't call startRecents from AM when recents is already running - this
messes up the transition information.
- Make sure to put the task into resizing mode if it needs to be restored
from the disk.
- Some minor fixes for the transition animation spec.
- Add NO_MOVE_ANIMATION to recents flags to prevent wallpaper
flickering.

Bug: 27607141
Change-Id: I7d0c75b88775ab467927b8cf94303ddb60222e7f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
0b46f3c72c324bc9b8890ed9b81951bbeec70fdd 14-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #2

- Put window into resizing mode when docking it from recents,
so it fills the "void".
- Send whole task bitmap window as the thumbnail, to make
the transition smoother.

Bug: 27607141
Change-Id: Ib647d44d9777f1155deab818d1fd5425c1bdd3d1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
59924fe0d9136cf349759bea1e06b661603f95fe 17-Mar-2016 Winson <winsonc@google.com> Iterating on stack layout

- Tweaking initial layout to show more of the next task
- Bounding the width of the stack to the smallest display edge length
- Fixing issue where the screen pinning button was not shown when
entering recents from home, and the task view clip state was not
restored correctly for tasks in front of the launch task.
- Fixing issue where there was no alpha during the transition to/from
home
- Refactoring and removing unused dimens, and moved remaining layout
calculation logic out of RecentsConfiguration.
- Fixing small regression in finding task anchor scroll points. This
caused tasks to be animated strangely when swiping to dismiss and
the task had an override task progress.
- Fixing several regressions in drag and drop due to override progresses

Change-Id: I1eac1dcea19e502bc7fe6362011b38977e3f3d6d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
73492c5d7a5fdc19cfda750e4476d3188aca414e 10-Mar-2016 Winson <winsonc@google.com> Fixing issue with animations not being cancelled.

Bug: 27533931
Change-Id: I724643ec8a2c6cdaa3cade72ae40abcf9d28bae5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
8873754f66527d2cc9feab295dd4eef23298212a 17-Feb-2016 Winson <winsonc@google.com> Refactoring to update stack in onResume.

This CL fixes a long-standing issue in which Recents is not updated
correctly if it is not completely hidden and shown. In particular, it
would cause animation issues when launching into a non-fullscreen
activity or if the user quickly toggles between recent tasks. It
contains several fixes:

- The visual state in Recents is no longer reset until the activity is
fully hidden (onStop() is called), and the task stack state is saved
allowing us to return to the same initial state. When restarting the
activity, we propagate whether the activity was hidden down the view
hierarchy, so that each task can decide whether to reset itself.
- When the recents activity is started, we now merge the new stack with
the current stack instead of replacing it completely. This unifies
the logic when dismissing multi-window while Recents is open, and this
CL fixes an issue with the merging where onStackTaskAdded() was called
before the stack was updated with the new task. As a result of this
change, we can just rebind the task views without having to return and
pick them up from the view pool.
- This CL also fixes an issue with flashing when the screen turns off.
The activity onStop() can be called before the activity is fully
hidden, which would trigger a reset(), which would return all views to
the pool.

Bug: 23815609
Bug: 25411120
Bug: 27186407
Change-Id: I83d74c947f9b47766d6778b7f5c421bb6df833e9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
e693aafe0511c2a7ffc571b22abeefba44046225 01-Mar-2016 Winson <winsonc@google.com> Disabling timer

- Disabling the timer by default
- Adding flag to enable/disable paging (disabled by default). When
disabled, the second tap will just launch the next task.
- Updating the initial state to put tasks at specific points on the
curve. This allows us to allocate specific space for the front most
tasks, as well as the tasks behind it.
- Removing hardware layer config (no devices targeting N depend on it)
- Fixing issue with the header not having the final dim applied when
transitioning into recents.
- Fixing issue where the stack range would not be reloaded after docking
or undocking a task.

Bug: 27409035

Change-Id: I13a03fba2b1a770f15d0033d43ef4c28415041c9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
8a5c64062f78b96c05638171a78331a2f8d422b5 13-Feb-2016 Jorim Jaggi <jjaggi@google.com> Fix recents transitions

- Also animate when there is no thumbnail, which can frequently
happen after exiting multi-window.
- Also animate when the target stack id is INVALID, because we
currently don't persist stack id's in the tasks.

Change-Id: I280c85e62f55d712408a3e77c43f665acb19bc4c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
c6c89a82144f59475242c75d67529fed943ae30b 29-Jan-2016 Jorim Jaggi <jjaggi@google.com> Fix transition to recents in docked mode

Transition for non-compatible apps will be handled in a separate CL.

Change-Id: I9c474f7aa394e4f3eacd1845c78bee5874bd8a59
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
c0d7058b14c24cd07912f5629c26b39b7b4673d5 29-Jan-2016 Winson <winsonc@google.com> Referencing static interpolators.

Change-Id: I5d2292016e869ed533f5873e373a1eccce651fc5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
4b057c6787624b75613769a857ccdf51114bb7f2 13-Jan-2016 Winson <winsonc@google.com> Fixing crash when dismissing last stack task.

- The crash was due to us trying to get an anchor task when there were
no more tasks in the stack. The original call to check the stack
task count was poorly named so updating the name of that call as well.

Bug: 26500050

Change-Id: I9652e90a6a2e19008c5c84ce877afca576b3175f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
b4cc67a3f68b41eb84628c7797202b5c8a5b0e0e 12-Jan-2016 Filip Gruszczynski <gruszczy@google.com> Pass correct task for retrieving of overview task bounds.

This fixes the recents to freeform animation.

Bug: 24913782
Change-Id: I7df32f08c72c86d46d8b25b49bd7e063b8ba214b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
dc8de848201f64542ad87940cfaa7a5e3d1343ad 07-Jan-2016 Winson <winsonc@google.com> Cleaning up imports and dead code.

Change-Id: Ie59fa7fc7c69eb375792c9227295d75c4672e802
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
ef06413afce31800dc8dfee65e5f89bb610f192a 05-Jan-2016 Winson <winsonc@google.com> Moving more callbacks to animated events.

- In preparation for the animation refactoring, this CL just moves the
enter/exit callbacks that route though RecentsView into events that
the task stack can handle directly.

Change-Id: I90f602c5486e1781129225a73dbf97af29477479
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
296278a0679375b8c43962a9e3c9bb4e8ab201e7 17-Dec-2015 Winson Chung <winsonc@google.com> Fixing potential issue with wrong task descriptions being loaded.

- Also cleaning up the Task to remove some confusing nomenclature
related to task properties. Now there is a single icon and title,
and we keep a copy of the TaskDescription for future icon loading.
- Also changing a few cases where we should be calling isFreeformTask()

Bug: 26221779
Change-Id: Iac20cc7b4912f76c14232a323981ab2e8f62628a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
509d0d0c9e2ee165d04e898fea59f8941ac7138d 16-Dec-2015 Winson Chung <winsonc@google.com> Minor fixes to freeform workspace

- Fixing regression where we were clobbering the freeform stack order
- Ensure there is padding between tasks
- Fix the header bar animation

Change-Id: I69ced3e3cb2f0c761ddf0c3bd00b17c847d74c0b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
a0731a1a2611d5a89c5960fe39a7ff09cc8fd5ea 03-Dec-2015 Winson <winsonc@google.com> Fixing crash when trying to reset focused task after removing task.

- Moving the focused state back into the stack, since the task view
is transient and can be rebound. Also ensuring that we update the
task view focus state as we return and pick up views from the view
pool
- Fixing issue where going back from recents would not go back home
- Properly calculating the task visibility (regression)

Bug: 25975225

Change-Id: Ica861f0d8996e4e254e875199a2d704a65bf8e58
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
f0d1c44a59a10707baa0cca8dd377302260710c1 01-Dec-2015 Winson <winsonc@google.com> Adding notion of stack state to the layout.

- This allows us to choose which layout to show, either freeform, stack,
or a combination of the two
- Fixing crash with null bitmap

Change-Id: I659e66d89f7205ccb0c2ba22c57aee95c8d4b3ab
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
250608a5cd08862f4752a924d51710805850db8a 25-Nov-2015 Winson <winsonc@google.com> Separating the stack vs the historical tasks.

- Adding a notion of session to the stack. If the history is enabled,
the stack will now be constrained to show either tasks that were last
active in a window of time, or a minimum number of tasks.
- Giving the history button the full space above the stack so that it
looks more balanced.

Change-Id: If7b647349e8bb164ae86fd6dba3f7e974257eb5b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
c4d49cd6840140179482c5b7b0deff76f674b9dc 24-Nov-2015 Jorim Jaggi <jjaggi@google.com> Make sure to clear pending spec

So when it gets out of sync it only fails once

Change-Id: If494fddfcbcb0145e2db1caa3b7612d8452c70d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
805578d8483a53c50896a808b0aec1bf152e5216 23-Nov-2015 Winson <winsonc@google.com> Fixing animation jump when dismissing paged task.

Change-Id: Ida07053da59f14f8ef3820e48a7bc73eef15840f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
49c0ea0c8342f543fbea0a8492ac1c4293d9eb16 19-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Merge "Fix crash when docking from recents."
96daf32e4ed40619419ddef1cf96a870a3c0f193 19-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Fix crash when docking from recents.

The crash was happening because we were sending a future from sysui, but
that future would always return null animation specs when docking. This
makes it returns proper specs in that case. However, we need to still
protect ourselves from null specs when executing the future.

Bug: 25765339
Change-Id: I02d842ea31503169f6e053a1695d8896d2e4d97c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
7a8fa60962110878ff4e5db67f3b2710189dffb9 19-Nov-2015 Wale Ogunwale <ogunwale@google.com> Allow apps to set launch bounds for activities.

unhide ActivityOptions APIs for setting launch bounds for
an activitiy so apps can use it. Only works on devices that
support PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT.

Bug: 25499677
Change-Id: I75424681f25cbb9fe92f2ed73e6afbab765dab29
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
c742f973b1e506732911c156c5869fd377afc5bf 12-Nov-2015 Winson <winsonc@google.com> Adding tuner param to enable fast-toggling.

- Moving constants to a more explicit flags class, which also handles
tuner changes.
- Removing some unused flags

Change-Id: If370581d431784f606c4b8d0c0face5b9a4b9fad
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
1a4dfe593aafda057ac9cb3086b84588d88cd09f 15-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Synchronize recents to freeform transition.

Recents to freeform animation must hang on the first frame and inform
Recents to hide its views. This mirrors the transition from freeform
to Recents, where the animation needs to hang on the last frame.

We need a special window flag for recents to force a redraw after the
animation launches. At this point Recents will become not visible
from the perspective of the activity manager, which would prevent
further drawing. We make recents ignore that and instead depend on
window visibility which will change after recents exit animation
finishes.

Bug: 24913782
Change-Id: Ief743b7e6fcebb3d8789d4745fb122ac607c1cf0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
fe9823f64cb41e8aed8ab61417acb57f6c588e0c 12-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Fix recents to freeform animation.

We should use freeform animation spec not only when the task is already
freeform, but also when it is entering freeform.

Bug: 25669457
Change-Id: I30cba79a149183b0a8b9e1e4751a215cef6a490f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java
83c1b07a99a6ddd80c30cfc101f3de037a0d215d 09-Nov-2015 Winson <winsonc@google.com> Fixing issue with wrong transition when tasks are offscreen.

- Fixing issue with wrong animation specs being created for tasks that
are offscreen
- Removing unused code and simplifying the logic for task launching, also
pulling this out into another file so that it is easier to read and
understand
- Removing old incorrect call to moveTaskToFront() instead of
startActivityFromRecents()

Bug: 25590404

Change-Id: I25d9530d089a7984fb8c94954a34dd124420755a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsTransitionHelper.java