History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2cf6ad832d7be4e86765a2326498b50560af07df 10-Nov-2017 Winson Chung <winsonc@google.com> Removing references to hidden classes in shared lib.

- Restructure assist data receiver to not extend hidden interface
- Restructure animation spec to not use hidden spec class
- Restructure transitions apis to not use graphic buffers
- Remove direct arguments which use hidden animation start listener
- Renaming some methods to be a bit more clear
- Expose AnimateableViewBounds and task stack listener

Bug: 67510855
Test: Sysui and quickstep still build and work
Change-Id: Ibc471c34a725daa3149765960ae0731996ceb854
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
6519c1b0fe85c5f25115539e936e4333e8537098 14-Oct-2017 Winson Chung <winsonc@google.com> Moving some recents logic into the shared lib.

- Creating com.android.system.shared library with recents model code and
corresponding recents tests
- Removing notion of blacklisted apps since that is now obsolete.

Bug: 67510855
Test: It builds, Recents runs

Change-Id: Ib1f5eefa6e4d4964366061246002509e2e15b19e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
247f1d418737814e46cf0b41387a1b969926b98e 07-Oct-2017 Winson Chung <winsonc@google.com> Remove unused recents freeform task code.

Bug: 67510855
Test: Code removal
Change-Id: I608eda163318acbb53c67ed96e3f81383b7c17c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
a0610760f986d9e714e855e21e8bd71267650596 07-Oct-2017 Winson Chung <winsonc@google.com> Remove unused recents affiliated task code.

Bug: 67510855
Test: Code removal
Change-Id: Ib56cdb1153ba85dd09e815b054dc0e12d04cfd38
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
c57b7f6e966f014db65372b3a10ef69e37ec89f5 11-Aug-2017 Matthew Ng <ngmatthew@google.com> Fixes quick switch animations for low end devices

Currently using quick switch is fine but sometimes with animation
glitches but very reproducible if tapping recents button very fast. The
problem is that low end device Recents entrance animation also has the
previous tasks animating downward causing more chances of animation
instability.

The problem is that transition is not finished and it is already
starting to do the next toggled animation. When the transition from
app to recents (RecentsImpl.toggleRecents) starts without finishing
RecentsActivity.onStop, the previous frame will be visible for a couple
of frames before the entrance animation starts (having the previous task
animate down). Therefore restrict toggling to after
RecentsActivity.onStop would allow the previous frame to finish and the
transitions run normally.

Bug: 62251652
Fixes: 64401391
Test: manual - using gobo device, launch multiple apps, rapidly tap recents
button
Change-Id: I4e70434bca3c9bec287fa30559b23a1e71b5ef20
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
43db6d26d8cfc7004c0f71f7e8f8de59081f6ccd 28-Jun-2017 Matthew Ng <ngmatthew@google.com> Android Recents implementation for low ram devices

For now the implementation is set behind the ActivityManager flag if the
device has low memory.

This implementation has a linear list of tasks and less functionality
such as removing split screen and reducing the amount of tasks shown to
9. For more information please check out the bug.

Bug: 62251652
Test: manual
Change-Id: I8e0a822a865089df1e8bef55ca61ed30978748d0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
ed85be92ecc2bb94a99a98c752df9895e6f9ecdb 02-Jun-2017 Matthew Ng <ngmatthew@google.com> Add back recents staggering entrance animation

Since there was a change in ValueAnimator that did not allow setting
initial play time per interpolator grouped in an AnimatorSet, set the
initial play time for each animation to allow the same effect.

Change-Id: I05445bde6e185a99250d7d193bd0e74d5ce98fa0
Fixes: 36175824
Test: manual - launch recents
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
8ea36af22b96189a3f6482d4e5703db34bd48399 24-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Less drastic scale reduction for dismiss animation

Bug: 34651627
Test: Checked dismiss animations on local sw600dp device
Change-Id: I92569d8c908d62aceb7433eb64e8477f6cf3ec92
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
45c8048f4f8996f085c78621efaf710c907ce213 21-Dec-2016 Manu Cornet <manucornet@google.com> 2D Recents: to and from home, animate task views as a block

Bug: 32101881
Test: Checked animations to/from home on local sw600dp device
Change-Id: I74b8b02bb39be6d4e4553f7d74550ff177d47a5e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
5df7667edbabdf8bf43bc08ef7df2859fd620314 12-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Use a different task dismiss animation

Bug: 32101881
Test: Checked layout and animation on local sw600dp device
Change-Id: Ic92a6a5aa0c25fac5553de9a0145a0b39ae6ddb1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
8f34df423d9f65c692d9bcf59d224e0f938f78ac 28-Dec-2016 Jiaquan He <hejq@google.com> Cut the Grid-based Recents title if it's too long.

Bug: 33847657
Bug: 32101881
Change-Id: I040dafcb37c9259dded8fa2cd896e4e4a59aeae5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
26f637b5553facca5f7873c28d19af36ffccd634 27-Dec-2016 Jiaquan He <hejq@google.com> Move grid checking into the layout algorithm.

We move grid layout checking into the layout algorithm, so that we can
hide more computation from the views.

Bug: 32101881

Change-Id: I174fe33ef7ed3c04987771dbb42d831a4b9bdab2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
bf8e290376b8ee6d04c330b22f5275e82103def3 20-Dec-2016 Manu Cornet <manucornet@google.com> DO NOT MERGE - Port 2D recents implementation from master to nyc-mr2

Bug: 32101881
Test: Checked Recents layout/behavior on local sw600dp device
Change-Id: I40be7dbaf8bc017b4c7c449f9bca657817107ceb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
8a3ef375ee299e4a84936c87f66098fa9fb84258 26-May-2016 Winson <winsonc@google.com> Fixing crash in SysUI due to invalid group.

- Adding a null check for tasks that have already been removed, but may
be launched.

Bug: 28890599
Change-Id: Idde322c737a5543e639e693fbe7615e720a12c1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
c5887ea7a0b82cc5909743ce14cbda1dcf1dfc82 14-May-2016 Jorim Jaggi <jjaggi@google.com> Fix janky multi-window entry animation

- Add tracing when drawing ImageWallpaper.
- Don't force a redraw in onSurfaceRedrawNeeded. This only adds
another unnecessary draw and doesn't do anything useful.
onSurfaceRedrawNeeded is only here so the client can block.
- Delay entrance animation by one frame so wallpaper can be drawn
before the transition is starting.
- Add some delay for animating the tasks up in recents to match that
delay (it wasn't matched before at all).
- Fix an issue where launchedFromHome was wrong while docking.

Bug: 28769940
Change-Id: I2b763ed40078541328a1e04ffecf5b0a520fe019
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
61560f065a334343d9c552796e1c702f4dfb664b 03-May-2016 Winson <winsonc@google.com> Fixes several animation issues related to a dismissing task.

- Previously we did not properly cancel the animations when the user
interacted with the stack while a task was being dismissed. Now, on
touch down, we only cancel the non-dismissing tasks, and in doing so,
set their task override if there is a dismissing task (so that the
stack can scroll correctly), and update the surrounding task views
if the dismiss update comes from the currently dismissing task.
(or in other words, the surrounding task animations will only be a
function of the current task being dismissed)

Bug: 28448670
Change-Id: If7b8ed3f1fe342114ae0f6dd9dbff0d48204f31e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
aa0dea7a4a5b0861bc040e3f5db633a272146fb7 28-Apr-2016 Winson <winsonc@google.com> Pipe the dismiss button logic through the touch handler.

- This ensures that we perform the same dismiss animation when
dismissing via the button or via swipe.

Bug: 28443410
Change-Id: I309c38253e9c2dc78a5882dc663eec84a11619dd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
3f32e7eba7aec02edbf542cc11eee13264a5abf2 21-Apr-2016 Winson <winsonc@google.com> Tweaks to make overview animations to match spec.

- Fixing incompatible app message text color
- Fixing drag target hover color
- Fixing final frame jank when animating home from overview
- Adding animation prop setter for initial play time

Bug: 27154882
Change-Id: Ia8a90434da2174d3c78a353b881509a8b1d525ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
d2a030613154e2007d9816e090c39e9726e7adba 15-Apr-2016 Winson <winsonc@google.com> Adding desired undocking animation.

- Separating task binding from task data updating
- Removing unused parameters

Bug: 27154882
Change-Id: Ia970597d57857a74b5d008e91a93703d8fb70c1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
e370e15056d45eba83d6ad96d9be46a17eddff29 15-Apr-2016 Jorim Jaggi <jjaggi@google.com> Slow down entrance animation on tablets a bit

Also fix an issue where resize was not called.

And make the translation a bit larger, because the
animation is longer.

Bug: 27870534
Change-Id: Ia6128db8108fe57bee96816fc95fd0811d941ffb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
545c5c20d3b1f424b2f1917a262a5e8130dab6d0 13-Apr-2016 Jorim Jaggi <jjaggi@google.com> Refine long-press enter and exit animations

Bug: 27154882
Change-Id: I13a1a6ea7eabdefc7e5c32ae0471d9fa14cc3f86
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
aeb298c4db913b376fb6053ec30c132a93e04635 05-Apr-2016 Winson <winsonc@google.com> Fixing bad regression in alt-tab layout.

- Removing the notion of drawing the task header thumbnail on preload.
This would not work because we could not know the stack state until
showRecents() is actually called. Instead, we keep a cached thumbnail
bitmap that we draw into when we start the activity, which is only
updated when the layout changes.
- Ensuring that with the smaller task views in the focused layout
overlap and do not show a gap between them (this was introduced when
the task views were made smaller to show more of the task behind it)
- Ensure that both alt-tab and paging both default to focused state
- Always reset the stack layout to clear the task overrides so that
we don’t inadvertently get overrides when alt-tabbing

Bug: 28014191
Change-Id: Ibc93597e9c027ce5abd65a8b77c0628864814c9b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
3b6ba1ab144c53752841869627a1b9f6d357c404 22-Mar-2016 Winson <winsonc@google.com> Adding clear-all button.

Change-Id: Ife637438b191c4a5004f3c6551bc75691e8e426b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
c69249fd6f30398780342baed8752ef0eeff7d22 28-Mar-2016 Winson <winsonc@google.com> Fixing regression in recents entrance animation when docking app

- Merged the two identical launch state flags
- Only relaying out task views if the bounds have changed
- Always setting the task transform instead of the view properties
directly

Bug: 27859626
Change-Id: I2571c1660820e21fde87ef82808098809b4d3c24
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.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/TaskStackAnimationHelper.java
8f6ee48225ad1cdf966c8f406c85113b13833c7b 19-Mar-2016 Winson <winsonc@google.com> Completely removing dead code related to history view.

- This CL repurposes the history button above the stack to a more
generic “stack action” button in preparation for a future change.

Bug: 27742174
Change-Id: I1da274bf88c77bdc09d91072683b2ea7ca022432
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.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/TaskStackAnimationHelper.java
899327f5cbbfb0eae5562b262ccea860c98f6bc4 26-Feb-2016 Jorim Jaggi <jjaggi@google.com> Animation for docking task gesture

- Don't move recents window around during the animation
- Set the correct task size shortly after docking, so recents
starts with the correct size to avoid jank.
- Add staggered animation in recents.

Bug: 27154882
Change-Id: I7c56102feba9c3f6cb86cb5f1d87f0ad3b29c721
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.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/TaskStackAnimationHelper.java
3f3d744d5c51d3ecc06af22ac7d69f4437671915 01-Mar-2016 Winson <winsonc@google.com> Skip animation in error case, log for further investigation.

Bug: 27389156
Change-Id: Idc2ebdf04ab72d326f68a47627b27d6e61315d1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
91b225d41f0522c6c106fe2df106ecd5c1f87df9 17-Feb-2016 Winson <winsonc@google.com> Disabling history

- Fixing regression in scrolling from the back of the stack to the front
where bindVisibleTaskViews() would be called early causing jank and
task views to be returned to the view pool before the animation was
complete.

Change-Id: Ib68495a2e3b34f92a4971dd6b32b7bc6c616ac23
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
1499150478b2836a7d2549129ccaed005b24bc06 16-Feb-2016 Winson <winsonc@google.com> Tweaking stack shadows and layout.

- Properly setting view outline alpha
- Ensuring that dismissing while in focused state will return to
non-focused state
- Fixing mis-calculation with bottom stack area

Change-Id: I281b7707421ffde4225180c63c7d40bf325f7f72
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
05e46ca8f3d24cf333e745c8cebb420b2996e9ea 06-Feb-2016 Winson <winsonc@google.com> Updating paging animation to spec.

- To handle the specific animation spec, we just animate the views
manually instead of animating the stack scroll (like how we do when
swiping to dismiss)
- Fixing a regression in settings the initial focused index when
alt-tabbing
- Minor tweak to make the front most task smaller when in the initial
non-paging mode

Change-Id: Ic5fd54500fd8ce8284c7aaeddb102b2291bcecac

Signed-off-by: Winson <winsonc@google.com>
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
40a227337712a881cca4d7dd04323380287b9e40 03-Feb-2016 Winson <winsonc@google.com> Minor tweak to enter/exit animation for the home activity.

- Fixing issue where the animation props was not applied to the progress
and callback animations correctly
- Ensuring that all tasks animate the same distance on enter/exit, and
not just to the edge of the screen
- Removing unused styles and animation resources

Change-Id: I88bd0f79f386304373fe63b49e92f02eeb882e55
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
50448630a49a9602eb53561d1c022890d07449d0 02-Feb-2016 Winson <winsonc@google.com> Tweaking enter from/exit to home animations.

Change-Id: Idedf00457055b6f0268c0f93a0a14c6a553e1168
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
be8e696a1f40a61c52a74022f4f084fdc0600f90 01-Feb-2016 Winson <winsonc@google.com> Allow animation controls for each animated property.

- Using onDrawForeground() instead of dispatchDraw()

Change-Id: Iae107a1ba14250f8c496264c60a29edc76df88e2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.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/TaskStackAnimationHelper.java
49df4209cf8a3ee6cf8e09edc14675028a4b1862 26-Jan-2016 Winson <winsonc@google.com> Part 1: Tweaking history transition to match design.

- Adding background scrim that can be controlled across transitions
within recents. As a result, we can remove the status bar scrim.
- Moving the history view into the RecentsView now that it animates in
parallel with the task stack
- Transition home from history no longer goes back to stack view first
- Removing some extra allocations when going into history and loading
tasks

Change-Id: I665baefcdd619de5e9366923eaaf4c558261141a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.java
65c851e6e9e08656744b6f66d3da188e3283b17d 20-Jan-2016 Winson <winsonc@google.com> Fixing several regressions with affiliated tasks.

- Now that we are sorting tasks for freeform and history, ensure that
the affiliated tasks have a useful active time (based on the task
they are affiliated with) for sorting
- Fix issue with the initial stack and focus state not taking the
launch task into account due to the launchTask flag not being set
until the activity was started (now set in RecentsTaskLoadPlan)
- Fixing issue with affiliated tasks not being launched from the stack
due to the animation trigger not firing when the action button is
already hidden/visible
- Fixing issue with title text being occasionally hidden (something we
only need for freeform tasks)
- Tweaking the launch/enter animations for tasks occluded affiliated
tasks

Bug: 26685208

Change-Id: I0f6e9dbf8deec2e4fc15364e686367cc0f57b41f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackAnimationHelper.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/TaskStackAnimationHelper.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/TaskStackAnimationHelper.java
f24f21695f5609d06402cf61e3500d408b99bdcb 05-Jan-2016 Winson <winsonc@google.com> Refactoring and unifying TaskView animations.

- Adding notion of a TaskViewAnimation to animate a TaskView to a
specific TaskViewTransform
- Refactoring task view enter/exit/launch/delete animations into
a separate class so that we can improve them easier
- Removing individual TaskView view property animations in favor
of using the existing TaskStackView stack animation. This ensures that
we don't have to add separate logic when animating TaskViews. It is
all handled by the TaskStackView now.
- Breaking down the TaskStackView synchronize method into binding
TaskViews and updating them to transforms. This allows us to
synchronously update in many cases and is cleaner than the many
request* calls.

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