History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.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/TaskView.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/TaskView.java
44f036fd5a5ea3253f8df979898f720edbc1af82 29-Sep-2017 Wale Ogunwale <ogunwale@google.com> Removed remaining use of static stack ids.

Replace by windowingMode and activityType.

Test: Existing tests pass.
Test: go/wm-smoke
Bug: 64146578
Change-Id: I2ff026de3ead1a3e7136df17c68ed37d7aae5495
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
89be5761bcacfb27bbc63d0e94a86b666f52f294 04-Oct-2017 Wale Ogunwale <ogunwale@google.com> Removed sys-ui's use of static stack ids.

Test: Existing tests pass
Test: go/wm-smoke
Bug: 64146578
Change-Id: Ia74b363358cbae383e74dbc33fdcbb37191f0419
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
0568aed2af35bdfe878afa307dd6ab1a21f20104 08-Sep-2017 Wale Ogunwale <ogunwale@google.com> ActivityOptions.set/getLaunchStackId() be gone!

Removed ActivityOptions.set/getLaunchStackId() and replacement
ActivityOptions.set/getWindowingMode() and set/getActivityType()

Test: Existing tests pass.
Test: go/wm-smoke
Bug: 64146578
Change-Id: Ifc1c35f7b13c335cdf1a1694208e9fe0aea0c1fa
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
b69258b23d3c422e25557813f86cb21c302244c4 08-Jun-2017 Winson Chung <winsonc@google.com> Fix crash when deleting task

- There are several code paths from the loaders (which run on a background
thread) which post the call to notify an update on the task which was
loaded. Not all of these are cleared when a task is unbound, and can
result in a notifyTaskDataLoaded() after the task is unbound. For now,
just ensure that the TaskView is bound to the Task before updating.

Bug: 62194807
Test: Have not been able to repro, just ensure that recents thumbnails still
load

Change-Id: Id9301025275f4b14a2832f7f6c1ebd5a1ce124ea
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
635c115c4c020a15f44a9b7d90aeca63da0838c7 13-Apr-2017 Jon Miranda <jonmiranda@google.com> Calls cancel on mDimAnimator to ensure that ref counts are accurate.

When we used cancelAnimationWithoutCallbacks on mDimAnimator,
the decrementOnAnimationEnd listener is removed. This created
a bug where the ReferenceCountedTrigger was not able to
flush its last decrement runnables.

ie. The Close icon was not always visible for the apps in Recents/Overview.

Bug: 37132803
Test: Manual testing.
Change-Id: Idbb1a1e42313db71328990577b3163b0d16b28d6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
51efddbd3bb304de2dd47fa8cd1114ac555958bb 05-Apr-2017 Alan Viverette <alanv@google.com> Remove unnecessary casts on calls to findViewById

Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
80f7b015ca02dc568c5df30e09510e87a94ee6b1 29-Mar-2017 Winson Chung <winsonc@google.com> Removing duplicate string in Recents.

- Use the same string when showing incompatible apps as the string that
we show when launching an incompatible app.

Bug: 35373622
Test: Launch recents with incompatible app while docked, verify string
Change-Id: I8d9a7d6e96a384ccff80ab6ff8a5e53c13d8d420
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ca170752d8850bd5b8d2710ebf7abdd3671f7f84 14-Feb-2017 Manu Cornet <manucornet@google.com> Merge "2D Recents: Fix a glitch during task relayout after a dismiss" into nyc-mr2-dev am: f47658f120
am: ec42e34422

Change-Id: Ifc42633a2d1b9250e7b5183338687a907e53035c
551e80c34fc3dc7154a9637cf0cbe38017ebfa3a 10-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: Fix a glitch during task relayout after a dismiss

This delays the resizing of the focus frame until all task views
relayout animations have ended.

Bug: 35258018
Test: Took before/after screencasts on local sw600dp device
Change-Id: Ifbf8932f4141bf90a3dfef20b2938d6801383706
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
d916d103ebde6bee3b7335c8f4b0dd5271866e7f 08-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: Slightly darken header to differentiate from thumbnail am: 017a3acc3c
am: b72edcc21c

Change-Id: I310f5388c501f851eb78bd7d0a619ffe0a8f1270
017a3acc3c05e6282e7990590690f92cd10c0e4d 07-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: Slightly darken header to differentiate from thumbnail

Bug: 34771148
Test: Locally on sw600dp device, sent screenshot to UX to confirm
Change-Id: I74282c6ed81d3b48d554f9acf55d4fafca2c73f4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
32acecc073b4e8b11a25f7b590f42d20dc611cbe 26-Jan-2017 Matthew Ng <ngmatthew@google.com> Reverts ag/1803954 and ag/1828349 and left only split custom action

Test: manual - used Talkback
Fixes: 29360763
Change-Id: I50a5fd8fb438cba045ab4e86b4495af8a8fdf8f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
85362e5f02e88fd82491201a9eb960dd48001b1a 21-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added open, dismiss and split screen as custom accessibility actions"
b7035f3a4738efdf40dc0ad06f19303ffcd784f7 19-Jan-2017 Matthew Ng <ngmatthew@google.com> Added open, dismiss and split screen as custom accessibility actions

In overview with talkback, swiping would select the individual apps
instead of the open and dismiss views. The open and dismiss actions
are changed to accessibility custom actions with the additional action
to split the current app into multi-window mode.

Test: manual - used talkback with running all three actions in
landscape and portrait
Fixes: 29360763
Change-Id: Ie0bec99b849c5754d45577c66b17fa6b0c7e985c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
fb9d78afb77b1d304b24f470a637244d52a7e1df 05-Jan-2017 Jorim Jaggi <jjaggi@google.com> Add a listener when task snapshots change

Since we start recents before we take the snapshot, we need to add
a mechanism to inform recents about task snapshots changes.

We add a new method to TaskStackChangedListener,
onTaskSnapshotChanged, which gets called whenever a task snapshot
changes. Then, SystemUI registers such a listener and updates the
task thumbnail view for the specific task.

Test: Open app, press recents, make sure thumbnail is up-to-date
Bug: 31339431
Change-Id: I01e81b9cd11886da734da671c68d5732aa51009f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
e2c77f903504766102fe545af40c3e4ebcb3adc7 29-Dec-2016 Jorim Jaggi <jjaggi@google.com> Handle content insets for snapshots

Pass information about content insets of a snapshotted task to
SystemUI and use it there to correctly offset the snapshot
when drawing.

Test: Open app, go to recents, make sure app aligns before
and after the animation.
Bug: 31339431
Change-Id: I2ff9bd44534bd8f66b591385da1e1e3aec40b6c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
31c568274b8522d08e36f5553cdf409077b842d1 05-Jan-2017 Winson Chung <winsonc@google.com> Add logging for task view thumbnail state. am: eb2206cb51
am: 96a5c216b7

Change-Id: Id6f8fbdac18861ea1244b2c43885d978851694e7
eb2206cb51a2fe5e5834e98f1203960b98f50d23 03-Jan-2017 Winson Chung <winsonc@google.com> Add logging for task view thumbnail state.

Test: adb shell dumpsys activity com.android.systemui

Bug: 32735667
Change-Id: Ieb06b1c11f833f7489d1d4994e634efea4227db2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
5f61536cba19352e2833a35521f02b6618f804fd 17-Dec-2016 Manu Cornet <manucornet@google.com> 2d Recents: show full task thumbnail and don't overlap header

Bug: 32101881
Test: On local sw600dp, tested recents layout
Change-Id: Ibc3bf720f7ae3303b6283707c8114643a0e8d0af
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
5a2eb83383c013ea0481e6688f22d892c61286ff 13-Dec-2016 Jiaquan He <hejq@google.com> Avoid clipping in Grid-based Recents.

This commit avoids clipping in Grid-based Recents by:
- extending TaskView and AnimatableViewBounds in Recents and removing
all clipping logic;
- returning early in TaskStackView when it wants to clip TaskViews.

Change-Id: I52819a828f84ce42fc8a63085e15a8264000d271
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c733803433cc80667fdef41579a4568b5b357bee 13-Dec-2016 Manu Cornet <manucornet@google.com> Revert "Grid recents: tweak task header layout to better match mocks"

This reverts commit 4701b993569cc5c9347571f84db8973a95c35495.

Change-Id: Id1a2f93f55b32e6544083254bb16e3d3722aa3dd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
4701b993569cc5c9347571f84db8973a95c35495 22-Nov-2016 Manu Cornet <manucornet@google.com> Grid recents: tweak task header layout to better match mocks

Test: Checked layout on local sw600dp device
Bug: 32101881
Change-Id: Ic205beea47fc67fca9b3c95b3d1318c156ccc9c1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c13df1eb30f098ac6d4703f4790f8ff792bd17cc 11-Nov-2016 Manu Cornet <manucornet@google.com> DO NOT MERGE - 2-dimensional Recents activity.

This is a simple first version in the spirit of small, incremental CLs.
It is fully functional but the following will come in later changes:

* Split screen support
* Potential animations
* Alt-tab behavior
* Relayout on orientation changes

The new activity is only started when a specific system property is set.

Test: Tested new activity behavior on local Ryu. Added tests for layout logic.
Bug: 32101881
Merged-In: I550f6e7ea0de3937dbf80e5f0294676cfe567d47
Change-Id: I46a537646e98b312d831510e1d331948888ae5ce
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
67387af732f1b5e9b9bc270f03dbb1aedd5632cc 09-Nov-2016 Tamas Berghammer <tberghammer@google.com> Merge "Update package names to work with the proto3 compiler"
bbeb4fc13241549509fcf47f1669e4174b57ef7b 08-Nov-2016 Manu Cornet <manucornet@google.com> Merge "Slight generalization of task view hit test logic"
383db5ebcc3a4a615faf249bf4f126f42e80b82e 22-Jun-2016 Tamas Berghammer <tberghammer@google.com> Update package names to work with the proto3 compiler

Bug: b/28974522
Change-Id: I5f3adf4946ee4ba1e09e4f40afe83c151405972a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
23861dc19228992953017f4cd2b72a0404063b06 07-Nov-2016 Manu Cornet <manucornet@google.com> Slight generalization of task view hit test logic

The existing logic does not work if task views happen not to be
clipped. This makes the logic a little more generic.

Bug: 32101881
Test: Locally on Ryu device with existing Recents implementation as well as another, in-progress implementation.
Change-Id: I177aa5c2a020741175b2e9c85a48165fa7294b4e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1afcea499d329f2a543fbb42a2e2251888ddc2cf 18-Oct-2016 Manu Cornet <manucornet@google.com> 2-dimensional Recents activity.

This is a simple first version in the spirit of small, incremental CLs.
It is fully functional but the following will come in later changes:

* Split screen support
* Potential animations
* Alt-tab behavior
* Relayout on orientation changes

The new activity is only started when a specific system property is set.

Test: Locally on Ryu device. Added tests for layout logic.
Bug: 32101881
Change-Id: I550f6e7ea0de3937dbf80e5f0294676cfe567d47
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
a3a769af5b73619b55e8ad545f95037f1ff61732 07-Jul-2016 Winson <winsonc@google.com> Fixing regression in button clickability.

Bug: 29548227
Change-Id: I01fb29423133a0445de27fb69ce9ced02e31dc90
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
2ed7c47e2788ff0f008b106c67672c271a6cf958 15-Jun-2016 Winson <winsonc@google.com> Disabling fading icons when freeform mode is enabled.

Bug: 28398344
Change-Id: If0c38c10153f490a7443ce36b0a5d17bb685b1a8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
f00098805c2af4dc7abc51fe7a5e77b04a5fb0fe 01-Jun-2016 Winson <winsonc@google.com> Fixing several issues with accessibility

- Only reset the focused task if the task that we removed actually had
accessibility focus.
- Only reset the focused task on scroll if we are not in touch
exploration mode
- Ensure the focused view has accessibility focus when entering recents
in touch exploration mode
- Instead of using the focused task, query for the accessibility focused
task view when setting the focused task in response to the scroll
gesture. In addition, use this accessibility focused task to
determine whether we need to add the accessibility actions
- No longer explicitly requesting accessibility focus on view focus
- Removing some unused code

Bug: 29046351
Change-Id: I5701a408bd919e47990f0d2fc6e4686eb9530d8e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
27c28f8da2925fd6fdaa91603c1740447b8fc195 06-May-2016 Winson <winsonc@google.com> Fix exception when docking task.

- If a task fails to dock, animate the stack back to original state so
that the layout is not stuck in a "docked" state.

Bug: 28577229
Change-Id: If927b898a48cd5949764cb3b0c0798d22efd850a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.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/TaskView.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/TaskView.java
67c79578f94646bade5d336af0d4491179c1b37d 13-Apr-2016 Winson <winsonc@google.com> Fixing various layout issues when docking

- Fixing regression where we were scrolling to front immediately on
dragging-to-dock a task, we should only scroll to the front on
configuration change.
- Accounting for the inset when calculating the final stack bounds
(similar to b/27921362)
- Fixing issue with task views being clipped as user drags a view due
to the bounds of the view changing. We manually now set the frame on
the view to the current stack task bounds.
- Simplifying calls to animate the task view bounds
- Removing old instance state code

Change-Id: I17d3e33e159ff250c11a504ef87558051926a974
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
9b001396c26e5b5ee95e0a54213a8a421179e365 08-Apr-2016 Winson <winsonc@google.com> Updating visuals for incompatible apps.

Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.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/TaskView.java
619e40cd56266a362ab7da80cb9e4eba6c33b204 26-Mar-2016 Winson <winsonc@google.com> Fix config change layout. (Part 2)

- Fixing issue where the initial state was not correct after rotating
the screen. We needed to update the layout, but that could only be
done after the task stack view is laid out. Now we set a flag to
update the initial state of the layout on configuration change, and
only scrolling to the front when it makes sense.

Change-Id: I2586b90d1e869708b97bcd1a4446f4d87fa521cc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
217009356efa2b854ab3981dff8d315a0d679c73 25-Mar-2016 Winson <winsonc@google.com> Don’t scale task thumbnails.

- Changing task view thumbnail layout. In portrait, scale the thumbnail
to width for portrait screenshots, and apply the same scale to
landscape screenshots. In landscape, scale screenshots up to 1:1, and
tweak the app transition to clip the sides instead of scaling.
In both orientations, fill with the background color in the remaining
space.
- Moving some resources related to the title bar to be calculated
programmatically so that we can have different header bar sizes which
completely overlap the action bar in the screenshot in each
orientation.
- Constraining the task stack width in landscape to portrait

Bug: 27504677
Change-Id: Ic9b6fdde6dd728d9f2d20a8b89c05b3a350edfbf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.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/TaskView.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/TaskView.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/TaskView.java
7c5168457be5befa9f89721cbb8e9f8e117041b0 01-Mar-2016 Chris Wren <cwren@android.com> add all those great comments from the other file

also pick up some enum renaming

Bug: 27429645
Change-Id: Id26ddea46755b43e8db298b87b3a47b69be0f728
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
680888123db816ad0c5f082d1e9b3f9b756bc7b6 13-Feb-2016 Winson <winsonc@google.com> Minor tweaks

- Initializing to focused state when going into Recents
- Dimming the front-most tasks to highlight the focused task
- Fixing wrong call to resize in the LruCache

Change-Id: I41833a9dc59a9bdf4a94b698e4800c1019bceb01
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1bcf3c4742da5a1d9c04c73efac5c2418142c262 10-Feb-2016 Winson <winsonc@google.com> Moving dim calculation into the stack layout.

- This simplifies code and also prepares the code for dimming certain
tasks when focused.
- Ensuring that cancelling transitions will completely remove all
listeners in a given animation.

Change-Id: I77050d94097f9af404250c287522d83c146cfb25
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
231bc9c54a48921f9c6a1ae187969c9bfe9d121f 09-Feb-2016 Winson <winsonc@google.com> Adding view debug annotations to simplifying debugging state.

Change-Id: If90955f44be55ff09208998214bc1bb47f93a872
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
8be1634a543022bd6ee0c1e974d3201d452981e8 09-Feb-2016 Winson <winsonc@google.com> Disallow launching third party apps in safe mode.

- Also desaturates out the disabled task

Bug: 25785926
Change-Id: I9fa48c062cfaf6d9cb60a9e49291ca6e15c6b343
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
423295222c356e6d2b2d79e94d6a097abbc1a5d9 05-Feb-2016 Winson <winsonc@google.com> Adding logging for timeout and other features.

Change-Id: Ife9fca1a2ced08c6cbd38ab55d9ea878928de439

Signed-off-by: Winson <winsonc@google.com>
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.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/TaskView.java
bbb3d3de3c058f115ab1fba0ddb7238e54745c0b 30-Jan-2016 Winson Chung <winsonc@google.com> Re-enabling fade-in of header bar icons.

This reverts commit 133ad44269e4b45e056793b579a7628aa4d91ccb.

Change-Id: I45095211aaa63b133ad5a4076df25823fa91efa3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
133ad44269e4b45e056793b579a7628aa4d91ccb 30-Jan-2016 Winson Chung <winsonc@google.com> Revert "Re-enabling fade-in of header bar icons."

This reverts commit 9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc.

Change-Id: Ie9e6ba685654622a9a1e76a405cc4d47477d9e13
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc 29-Jan-2016 Winson <winsonc@google.com> Re-enabling fade-in of header bar icons.

- Removing extra syscall when rebinding tasks
- Only bind the click listeners on the header bar after they are visible

Change-Id: I6879b30a985ca8274ee77126b152daa985054371
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
3c107166fc1f719f3b94a706fdf52a23b1820761 23-Jan-2016 Winson <winsonc@google.com> Fixing layout issue causing overlay to sometimes not appear.

- We were incorrectly making calls that could request layout after the
view was detached from the parent, causing a messed up
layout-invalidation hierarchy path. Now ensuring that we always reset
the view before detaching, and after attaching. As a result of this,
we need to ensure that the same optimization as before applies, which
is that children of TaskView don’t affect the relayout of TaskView.
We do so by making TaskView a subclass of FixedSizeFrameLayout which
only takes layout updates uni-directionally down the view hierarchy.
- This CL also fixes an issue with missing task bar buttons due to an
optimization which did not update the visibility and translation of
buttons if a view is laid out after the task view size has changed.
- Removing double measurement of TaskView sub-children
- Removing unnecessary invalidate after marking the thumbnail as
invisible

Change-Id: If8a330733941add1f4214af792227345d6a26309
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
4c84a8c481093e81c2e27de4cecf92c41992f4a1 22-Jan-2016 Winson <winsonc@google.com> Fixing some small issues with the overlay.

- Should be updating the app text color to match the activity text color
- Fixing issue with indicator showing when fast toggle is disabled but
the indicator flag is enabled
- Tweaking layout so that the buttons are flush with the borders so that
we capture the full area for press/long press

Change-Id: Ia9b081883562ef4fd1c01fd42bc786a1feeb0854
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c5ef63f4e95329158d88a6cbb05789b57098222d 21-Jan-2016 Winson <winsonc@google.com> Adding reveal transition to show app-overlay.

- Instead of long-pressing the icon to launch into app info directly,
this will mirror notifications and reveal a space that can show the
app name and a link to app info.

Change-Id: I91c5839719b030a65744f5e677a436e9c719c578
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
c5fd350522d9269e6239af818f7261a6ead51570 19-Jan-2016 Winson <winsonc@google.com> Removing extraneous calls.

- Removing calls to ensureCapacity, which was causing reallocations when
using a temporary set with multiple uses.
- Fixing issue with update callback not being called when immediately
updating a TaskView’s transform
- Adding utility methods in preparation for refactoring code


Change-Id: If62c3751ed6af15092a34435df08bb4d627536ea
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
6ea2588a5d2e11e955d63609b6c5f51171260e85 13-Jan-2016 Winson <winsonc@google.com> Fixing issue with action button not showing/animating.

- The system flags need to be reread when the task stack is reset.
- Since we check for alpha before doing the animation, we need to
initialize the action button alpha back to zero when we reset the
task view.

Change-Id: I97530a7bdd5e934ab1d5831ef30cf7774418ed95
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
5500390a006f2bbea565068234774a36cea076c0 12-Jan-2016 Winson <winsonc@google.com> Reducing numerous extraneous allocations.

Change-Id: Icca49f12a9e0be08eb6d4dbbbf2fd5994a3a25a5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b124d5607fb6bdfcc9e6c2e9ae24cadaf7f0b55b 12-Dec-2015 Peter Schiller <peterschiller@google.com> Indicator for task auto-select

Change-Id: I081222b84a5f90e77890724977821ed481fe3924
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
94a0e89adb30b050f4b3319d93753b34d48e8490 09-Jan-2016 Winson <winsonc@google.com> Simplifying the task header highlight drawing.

- Removed unused ripple logic in the task header background, simplifying
the background and highlight drawing
- Calculating the header highlight from the actual task color now
- Preventing some extra work from happening when the task view size
changes

Change-Id: I775651f4b9ce8c1cdfa6fb3d77fd6912fd99a93b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ad66efa813cf1b291d6e0d6e5e56d37462d10148 09-Jan-2016 Winson <winsonc@google.com> Removing HW layers for task view transitions.

Change-Id: I00377e12d779519bd0fc102480d37382b3ac4ea6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
778f495f0431be15c4c4f4305960465afe0e6d3a 08-Jan-2016 Winson <winsonc@google.com> Removing code to animate thumbnail scale now that we animate bounds.

- This CL reverts the code to the previous state where we can just
calculate the thumbnail scale from the view bounds.

Change-Id: I156ae915af76055b5177a6bdf0f929bdf6acea01
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.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/TaskView.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/TaskView.java
931c51f54599a227422b2a1c71e922e1458e0291 17-Dec-2015 Winson Chung <winsonc@google.com> Refactoring lock-to-task state out of Task

- Moving the logic out of Task to the stack view which is more logical
and easier to manage
- This also includes a fix for the issue of the screen pinning not
showing up immediately after toggling it in Settings

Change-Id: I0357d59fc30b0327bbe6eeca10b310911aba3cc4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
aaeaac17831090594e4927b1531c4658d239a3ea 16-Dec-2015 Winson Chung <winsonc@google.com> Refactoring to AnimatedEvent.

Change-Id: I87ce63201120dc687eccd63024801cc2c19bebd6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
75ca185730e0a96fbcb2267b861231618ae4a763 16-Dec-2015 Winson Chung <winsonc@google.com> Merge changes Ide26856c,I68bbef59,I2186bdfc

* changes:
Allowing tasks to be swiped away in the history view.
Loading activity icons in History view.
Ensuring that the undocked task is visible in Overview.
b169ebd4c40b78d8a4c79e416c288af2ab5b5046 14-Dec-2015 Winson Chung <winsonc@google.com> Loading activity icons in History view.

Change-Id: I68bbef59d380ce7abe251fca75135775528429d5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1d61863bd812a213722ac0beaa695dd3b84b328c 16-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Fix sysui crash.

Bug: 26228707
Change-Id: I34e2362fecda06380e4640483a71365311f99d57
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
48f2cda829ddb761697a0efb0cad42a62480c130 11-Dec-2015 Winson Chung <winsonc@google.com> Removing the debug header bar icon.

- Repurposing resize button to move tasks between
stacks when freeform is enabled
- Enabling freeform workspaces for supported
devices
- Removing old debug dialog

Bug: 26043230
Bug: 24815256

Change-Id: If3236999dd236de5d5bd665d69edfc17f18f74f0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
7b3ccf54cb541cca40d44634c2ded1ff42ef4d07 05-Dec-2015 Winson <winsonc@google.com> Removing old focus animation on the header bar.

Change-Id: I892fda95ec5e74ee779283a5873210f301fbe778
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
de0591a0788c96757cce1eed93a7e8bc8bd0ef01 05-Dec-2015 Winson <winsonc@google.com> Updating the header bar item visibility with the task view frame.

- In freeform mode, we hide the buttons depending on the available width
of the task view
- Also fixes the rounded corners on the task views as the frame changes
- Tweaking the freeform workspace background

Change-Id: Iec9352acb5cb3ce95c09ff6d1026a9900717d3e6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
bb410951b9ae373999c058fa141b3522ba169960 04-Dec-2015 Winson <winsonc@google.com> Updating layouts to use frame vs translation and clipping.

- This greatly simplifies the freeform layout as well, since we don’t
need to scale and clip the views to match the freeform task bounds.
- Also fixing the animation from the back of the stack

Change-Id: Iba998a788dbdc48d031da8a8c908ea1a9f8f795f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b495300183855a0d72ceca97c21dda347dca2513 03-Dec-2015 Winson <winsonc@google.com> Adding workaround to prevent flicker in Recents when resizing.

Change-Id: Id5b12e1208f2a624b386c2388081565205aeca54
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
5b7dd536aa6cb8ce323b47cee109f879feb0d33a 02-Dec-2015 Winson <winsonc@google.com> Updating the freeform workspace layout

- Updating layout for freeform workspaces
- Consolidates the clipping and bitmap scale with the transform to make
the transitions more unified
- Updating clipping as we synchronize scroll instead of afterwards

Change-Id: I33de4e2646c75f0bc0eb75bd6909fe94557196b5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
a0a8ae466f7acfd66fc5a6e9a4584e419037af73 01-Dec-2015 Winson <winsonc@google.com> Fixing regression in drag view

- We should be removing the dragged task view after it is dropped on a
drag target
- Also fixing issue with ViewPropertyAnimator listeners not being reset
causing callbacks to be called in later animations

Change-Id: Ib9815d77f4e427c575f5a77fa58ea5a22f39f10f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
37fc513d01503f15ee611595c248374696056bd8 30-Nov-2015 Winson <winsonc@google.com> Fixing several bugs.

- Prevent long pressing to drag when a task is already docked
- Ensure that the history button has a bit of background protection
- When fast-toggling, the second tap should actually activate the
second task and not the third
- Align the history view with the stack view
- Fixing regression launching affiliated tasks

Bug: 25931916

Change-Id: I9d74d0d2427ea0b11f4817d0e635013065e3a792
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
479f7446cf489fb99c91b3fc2bf96b1dc184f5ba 26-Nov-2015 Winson <winsonc@google.com> Improving drag and drop

- No longer rendering the task view to another drag view, instead we
drag the task view directly. This allows us to do a smooth transition
to and from the freeform workspace and the stack by animating the
thumbnail scale as we clip/unclip the task view.
- Removing the extra code to disable rotation while dragging since the
system does that for us already

Change-Id: I1e02c9319347aace9870eaa4983b3b87c5f0f58e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
387aac6ad7bde21f2c2510cb8a2f3af3959721e0 25-Nov-2015 Winson <winsonc@google.com> Fixing task view heights in paging tasks

- Now, all task views will be bounded by the stack rect, and the
thumbnail bitmaps will be scaled accordingly to fit either by width
(when stacked) or to the view rect (when freeform)
- Fixing issue where the history button was not offset in freeform
- Tweaking thumbnail sizes of fullscreen screenshots
- Still requires changes to fix clipping to the correct aspect ratio in
freeform.

Change-Id: I678b87c2f06947d32f3bb7c60a35f28eb36b5a68
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c29ff0025bf0b1f43b34fe3e2dd6f043b61421ef 21-Nov-2015 Winson <winsonc@google.com> Adding history view.

- Initial changes to show a history view within Overview (behind tuner
flag)
- Restoring the task view dim in the stack

Change-Id: I0503d11768736c86f3145942404391dfacd0ddd6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b1e71d09f24be2c18120146eaae1ffd9444feb9a 23-Nov-2015 Winson <winsonc@google.com> Making stack visibility more specific to the launching tasks.

- When going from freeform -> overview, hide all freeform tasks until
the final frame of the enter transition, if the stack we are
launching to/from is in the freeform stack
- When going from overview -> freeform, hide all freeform tasks after
the first frame of the exit transition, if we are launching a task
in the freeform stack
- Separate the dragging gesture from the freeform launch visibility

Bug: 25842568

Change-Id: Ibcd17a02eeb70244ac73f599b8c23c71d22f73fd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
e5f1faa9f8009a723ab21aed6fe5ab325c61442b 20-Nov-2015 Winson <winsonc@google.com> Porting over keyboard changes from other branch.

- Allow ignoring alt-key release when interacting via touch while
alt-tab is pressed (ag/814903)
- Cancel window animations only if the stack scrolls via alt-tab
(ag/809873)
- Fixing issue with old task load plan being consumed if user alt-tabs
before Recents is resumed (ag/811354)
- Canceling enter animations when the stack scrolls (ag/814461)

Change-Id: I7450f0a280571e98212f321b1e61219d149fed65
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
397ae74733ce934a3fc260258c2902f4e3b995a2 20-Nov-2015 Winson <winsonc@google.com> Removing unused code

- Removing code related to dismiss-all and stack filtering

Change-Id: Ife3c300970b234a5f7828a3c04f1eb9cb861399f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
8b1871d74137d7e36ba0fed5608772f51f62015b 20-Nov-2015 Winson <winsonc@google.com> Adding tuner params for paging and full screen thumbnails.

- Adding “focused” stack state to support paging
- Changing the paging to match UX spec (only auto-page after the first
tap)
- Removing old header focus animation

Change-Id: Id72825b8a1b1c0a2238ee184a6695b13c1d8cb1c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.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/TaskView.java
3fb67562c548662910160d5672b1b9558bd6571c 11-Nov-2015 Winson <winsonc@google.com> Removing hacks to delay app animations until window animations complete.

- We should have been using onEnterAnimationComplete instead, which is
more reliable and respects the window transition developer option.

Change-Id: Ib7cd2868283cfe0e5fc79863818a614375072e0f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1b58561f66a9453754b1b419296899fdc08b4c93 06-Nov-2015 Winson <winsonc@google.com> Fixing up some more focus edge cases.

- Disallow touch while alt-tabbing
- Allow keyboard to focus tab while scrolling
- Cleaning up some old classes that aren’t really being used

Change-Id: Ibabea093afb711b07f398677d25735421b7c7e53
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
eca4ab6e99bcb2a7b31b8b4b1c3b5474297b6b25 04-Nov-2015 Winson <winsonc@google.com> Adding dnd to/from freeform workspaces.

Change-Id: I5b75fe5a942e9a2e344e62229e860b5108f9872e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
36a5a2c7003ef8157f276b411c3fda47ad2f75e3 30-Oct-2015 Winson <winsonc@google.com> Initial layout/behaviour for freeform workspace.

Change-Id: Idc878862747d0d726cbf10be9893c48736673d0e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
53ec42cb17693b2d631746e1e5d31021a3359163 28-Oct-2015 Winson <winsonc@google.com> Moving static RecentsConfiguration instance to Recents.

- Matches the other static instances

Change-Id: I25bf474ceb0b8d6cc52c22e83273ffb2fb64cc9d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
0d14d4da91c3d8b1221269712d5abf43a7cf9f31 27-Oct-2015 Winson <winsonc@google.com> Refactoring the focus state to be independent of view focus.

- This allows us to ensure that a task is always focused in the stack,
which simplified focus logic, and allows us to unify the accessibility
focus and normal view focus handling.
- Refactoring some focus actions to events
- Adding flags to experiment with fast-toggle.

Change-Id: I5623f2a5584994033f1ebf1760b55e8bd019944b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
e7f138c7f0a190c86cec10fb32fa106aacae4093 23-Oct-2015 Winson <winsonc@google.com> Cleaning up task loading code.

- Moving all references of SystemServicesProxy and RecentsTaskLoader to
a single static instance in Recents. This ensures that we only refer
to an instance that is created with the application context.
- Moving ActivityInfo cache into RecentsTaskLoader with the other caches
which allows us to invalidate it less frequently. This requires the
loader to handle package changes to invalidate the cached infos
accordingly.
- Cleaned up old code to handle case where the Recents component for
secondary users might not be initialized (fixed in ag/773159)
- Moving the package monitor to the background thread.
- Cleaning user interaction and visibility changes to events.
- Fixed issue with sending events from binder thread.

Change-Id: Ie785347055736f6dd7802f32454f77073e20b83e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
412e18058dc2cd5779d2451fce7fd74631f9e237 21-Oct-2015 Winson <winsonc@google.com> Additional refactoring interface between component and activity.

- Removing broadcasts for communicating with the Recents activity from
the component in favor of using events.

Change-Id: I2ddfde911bd1fd1b2d63bb84a0e7f0338f955df6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
d477d53dee66bfad32473ce5abba9ed287c38975 14-Oct-2015 Winson <winsonc@google.com> Fixing issue with transparent recents.

Bug: 24742707
Change-Id: I4ef66bdb15b2c8f8a98c9d1f87d12e1c191733d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
4165d336b6cd69715eda7fbdfd272a878097170e 10-Oct-2015 Winson <winsonc@google.com> Fixing crash when dragging tasks to docked state.

- Also tweaking animation when a task is first picked up.

Change-Id: Idf99c88fdb216823637e2436e54b392b661b9849
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
2b9c1d38e62f97294abed19a9640b010382dadb6 06-Oct-2015 Winson <winsonc@google.com> Removing multiwindow debug flag.

- Also removing unused code for dismissing recents.

Change-Id: I6dcfbdb43cd08f4adfa362d4bf2247c0172fb92a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
be7607af8875236b9cf7bdb5f5aa089c207529af 02-Oct-2015 Winson <winsonc@google.com> Initial changes to drag and drop to docked task.

Change-Id: I5e7a435a4061d902e5de0a54cc386388bc2b565e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
2536c7ed446203ea12b38cf05a88e603f8d1b768 02-Oct-2015 Winson <winsonc@google.com> Refactoring several TaskView callbacks.

- Moving header bar event handling to TaskViewHeader
- Removing several proxy callbacks from RecentsView

Change-Id: I7dc99a7b580c1beaa93216d2b29c94246b35ec5d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
35f3050959e43bf378f9a0adcaef13729206c7e4 28-Sep-2015 Winson <winsonc@google.com> Moving resources out of ResourceConfiguration.

- We can no longer make assumptions about the ability to
get resources for the RecentsActivity before the activity
is launched (the configuration of the launched activity
can differ than the current configuration if a window
is docked). As such, we reduce RecentsConfiguration
to the set of values that are context agnostic, or can
be calculated directly given an application context.
This ensures that we will continue to be able to compute
the target task bounds given any context.

Change-Id: I423c90635eb294aa2d78a6f56771b98ee2b9d5e4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
147ecaf3ba5d72872e8ff324aa32c0d228ada7f5 17-Sep-2015 Winson <winsonc@google.com> Ensure RecentsActivity is resizeable.

- Removing old code related to multi-stack layouts.

Change-Id: Ib9b820d2a65ff15e9cd8e5255e3e858b611e5aa9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
5c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777 26-Jun-2015 Winson Chung <winsonc@google.com> Adding metrics to overview.

Bug: 21528167
Change-Id: Ice1ce892682aa4599b9a689b47af373780897548
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
752896648e9c15ea5884b1683ee14daae5147ad3 05-Jun-2015 Jorim Jaggi <jjaggi@google.com> Merge "Speed up recents -> app" into mnc-dev
3a4656e8874a7bfa11ff8c68dfca87b7f399ff36 04-Jun-2015 Jorim Jaggi <jjaggi@google.com> Merge "Make entering recents a lot faster" into mnc-dev
c1a6c658aee702ca9549ada9c208011a2a7cf62a 04-Jun-2015 Vadim Tryshev <vadimt@google.com> Processing non-long clicks on application icon.

This CL alone doens't fix the whole bug, see the bug
for the AI list.

In normal mode, clicking at application icon on a task view
is ignored to avoid accidental clicks. To open app properties,
we need a long click.

In accessibility mode, we want to make it easier to open app
properties, and accidental clicks are less likely. Hence, allowing
"simple" clicks.

Bug: 20945599
Change-Id: Iec3f911dced1eda09175500fc1e798dd09b6f9e2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
88f3db9e2180be5e2d3c524b9f1dd99e05465041 03-Jun-2015 Jorim Jaggi <jjaggi@google.com> Speed up recents -> app

Because we created a bunch of layers, this delayed calling start
activity in the window manager. Disable these layers, as they are
not really needed.

Change-Id: I59343a92726665f72215a0699c52ead76e78a4b3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
900fb48d269e2fbf3baea995c6324e4c08ad7c22 03-Jun-2015 Jorim Jaggi <jjaggi@google.com> Make entering recents a lot faster

- Precache the bitmap for the window animation in the preload phase
- Remove some post's so we have a faster path from UP -> startActivity
- Don't dim the headers in the first frame drawn, because layer
creation is slow. Instead, do it in the second frame, when the window
animation is already running.

All these changes combined make going to recents about 40-50ms faster.

Change-Id: I3e4060af1ac57b3f359fe7f86f9e3814c6490323
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
a74f385ba08922c09aa812f0d6fd2903a633da01 30-May-2015 Winson Chung <winsonc@google.com> Allow long-pressing task icon to show app-info.

Bug: 17369696
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ece738b5bc532d90bbdc42d0b5b63701c773a6f9 17-Mar-2015 Skuhne <skuhne@google.com> Change resize logic: Use resizeTask and remove stack resize UI/logic

Change-Id: I5af8171a4ca55252c009cf80d180c5d024c0fa03
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
d16c565a607de754379fe699a4def21bd0e3de2f 27-Jan-2015 Winson Chung <winsonc@google.com> Adding some debug controls to test multi-window.

Adding some preliminary controls to mirror the currently exposed api
to create new activity stacks, resize stacks, and to move tasks
between stacks.

Change-Id: I3fb51c248f53a1d4c4eb23ca9fb3a76888def1de
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
6ac8bd6198f67b64aea2258bdb5f8ed371b5bec1 08-Jan-2015 Winson Chung <winsonc@google.com> Adding dismiss-all button.

Change-Id: Iad7d5d1eddeff6af6b88a1afdf23677c8b2f3b49
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
860e2d86d8c05b03e985e438664069794825ef0f 04-Dec-2014 Winson Chung <winsonc@google.com> Ensure that loading and unloading of tasks happen symmetrically with lifecycle events. (Bug 18574950)

Since we were unloading tasks when the activity was stopped, but only reloading
tasks on the next onCreate()/onNewIntent(), there were cases where the system
would create the activity but then immediately stop and start it (ie. when the
screen is turned off while the activity has resumeWhilePausing=True set in its
manifest). This CL ensures that we reload the tasks with the same state used
the last time the Recents activity was started.

The CL also cleans up some visibility state that was confusing and is no longer
necessary, fixes a small issue with the dismiss button flashing when toggling
Recents quickly, and fixes some cases where the initial stack scroll is set
incorrectly.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
bc571a980704dc767838935e83c6aed231c406e9 20-Nov-2014 Winson Chung <winsonc@google.com> Reset the task stack instead of the view when Recents is hidden. (Bug. 18436876, Bug. 18394126, Bug. 18432310)

This will remove the need for having all the null checks in TaskStackView.
We also remove the check when launching tasks (the fail case is worse
when the activity fails to load). And the CL also fix the header focus
animation, and an issue with tasks not getting laid out when the stack is
set again.

Change-Id: I9b4cd50d76f72ba3d16dd1b8e2d9bbf9f1f24d2b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
6aa73cf2668e1d4b5b7534995dcc8891b4a7a279 18-Nov-2014 Winson Chung <winsonc@google.com> Merge "Tweaking animation XMLs and removing dead code. (Bug 17672056, Bug 18415217)" into lmp-mr1-dev
c041d883c3591670441d4c2da8fd1108dfd28acd 15-Nov-2014 Winson Chung <winsonc@google.com> Tweaking animation XMLs and removing dead code. (Bug 17672056, Bug 18415217)

- Use shape drawable for pin background instead of asset.
- Includes fix for scrolling regression when task stack scroller was not reset.

Change-Id: I11eec1f3b0386b4354c8c5e3deca2b17cff83be1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
fe79d62db3f5de7671763b4bbafc83feb1c7694c 17-Nov-2014 Winson Chung <winsonc@google.com> Merge "Adding additional null checks to prevent crash after task stack view callback is reset. (Bug 18376798)" into lmp-mr1-dev
fe03b40da4a513af759851dd399e39dfa90c3363 17-Nov-2014 Winson Chung <winsonc@google.com> Adding additional null checks to prevent crash after task stack view callback is reset. (Bug 18376798)

Change-Id: I46a324b3b6acba6b6519506ff2431d285e3b57f9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
86677c9a511f4478bf94418208e600b1f40db733 14-Nov-2014 Winson Chung <winsonc@google.com> Fixing regression in screen pinning button visibility. (Bug 18390050)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b0a28ea5d381cd3a8477cf7fd82797199c80ca67 28-Oct-2014 Winson Chung <winsonc@google.com> Don't reload the layout every time we enter Recents. (Bug 18160176)

Ensure that we don't reinflate new TaskViews whenever we enter Recents by
keeping the existing TaskStackViews active and returning the existing
TaskViews back into the view pool when Recents is no longer visible.

This CL also ensures that we are preloading the appropriate task metadata
when the user first touches the nav bar, and also reverts the change to use
onEnterAnimationComplete() in favor of the explicitly animation-started
broadcast (to ensure we always get the signal) which fixes a regression
with launching Recents in landscape.

Change-Id: I169fea3cf07a6da3f90b32b005819773c6049ada
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
353c0b91daa97fa87f077be0f403fe7db8dedb40 17-Oct-2014 Winson Chung <winsonc@google.com> Should use Activity.onEnterAnimationComplete. (Bug 18031283)

- Additional code cleanup for previous performance CLs

Change-Id: I41c9be9b1541d0717e32732823f5bb0bedcf818f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ca8686af744f30992904ead71db7bb39866d4f99 14-Oct-2014 Winson Chung <winsonc@google.com> Fixing regression with screen pinning button not animating for the first task. (Bug 17985087)

Change-Id: I81b8b5d6521c99023bbaf903d1bfb95015fbe756
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
606b3da71ab64e489e8f65e0b1092138dbfaf7b7 07-Oct-2014 Winson Chung <winsonc@google.com> Removing unused/dead code related to footer and screenshot transition.

Change-Id: I205de9047413d1ff2da68cdd062eeba59267b10f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
d213a1e53c7b31e9d7c072b5f0332127ed781d5a 02-Oct-2014 Winson Chung <winsonc@google.com> Adding mouse wheel support. (Bug 17323718)

Change-Id: I51bf159369983789933767813bbf8a785ff1bda3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
0dad6a0732633a11fa780135c3c1f52defac9f16 02-Oct-2014 Winson Chung <winsonc@google.com> am d8ab73d7: am d092fc70: Merge "Ensure that we don\'t show excluded tasks when we are not in that task (Bug 17657618) - Fix regression with launching an affiliated task due to clipping changes (Bug 17755902) - Tweaking previous changes to home transition - Disable th

* commit 'd8ab73d71c50f8695ee8b671fdb838f2fd18790d':
Ensure that we don't show excluded tasks when we are not in that task (Bug 17657618) - Fix regression with launching an affiliated task due to clipping changes (Bug 17755902) - Tweaking previous changes to home transition - Disable the debug mode option
9cb5c4e3854aa7f2ddab707920b688c3108cbc85 29-Sep-2014 Winson Chung <winsonc@google.com> Ensure that we don't show excluded tasks when we are not in that task (Bug 17657618)
- Fix regression with launching an affiliated task due to clipping changes (Bug 17755902)
- Tweaking previous changes to home transition
- Disable the debug mode option
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
104aae1dccbaa8102b67b2a2407d58d5ddfce5f9 22-Sep-2014 Selim Cinek <cinek@google.com> Only show FAB for the frontmost task

Bug: 17522143
Change-Id: I882185f27a4e9da57007818f678451a7e6e1ef81
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
bf5dbf1c151eb64f4068f233e72b0a867348bf8c 16-Sep-2014 Winson Chung <winsonc@google.com> Enabling recents stack clipping

The taskviews now avoid overdraw by clipping invisible
parts. Also adapted some timings of the animation.

Bug: 17455301
Change-Id: Ifbf7bab363e530cb2ad842baed50fc16dcfcc4c4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
cb5570316d55c6fe2ff717fa6b94b14d13980263 16-Sep-2014 Jorim Jaggi <jjaggi@google.com> Add option for recents to use fake shadows

Bug: 17522143
Change-Id: I61fdecf8c5aa86b6dacd65ff8729590553d0854a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
e8199c582d826a39e6e47b0d8418834c15242fec 17-Sep-2014 Selim Cinek <cinek@google.com> Removed round rect clipping and hardware layers from recents

This saves us a lot of memory and we avoid the clipToOutline.
The view still looks the same, as we now draw the thumbnail
in a rounded rect.
We now only use a hardware layer on the header, which is much
smaller.

Bug: 17522143
Change-Id: I197a1172efe8450ffb0b537c780a240d38f84275
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
81e0c8491f22c64300182c652ac2add96888dd2e 12-Sep-2014 Jorim Jaggi <jjaggi@google.com> Aggressive tuning of recents memory usage

Limit the thumbnail count to a maximum of 10 thumbnails and the app
icon count to a maximum of 20 thumbnails, instead of using a
byte-size based limit.

Also prune entries immediately when leaving recents.

Bug: 16513124
Change-Id: Id9a32f87ca3f9f19e5cad5f115d54b19b26f4f93
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
69550456e34da774a92a67769b913f516d0acb36 09-Sep-2014 Winson Chung <winsonc@google.com> Merge "Fixing issue with screen pinning not working. (Bug 17436123)" into lmp-dev
3751c359b4eaac9a7f149d791c8bf811e41fc61b 09-Sep-2014 Winson Chung <winsonc@google.com> Fixing issue with screen pinning not working. (Bug 17436123)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
19d62382d0acafa0ffe8e48ebb4c737031b3e9c6 08-Sep-2014 Winson Chung <winsonc@google.com> Ensuring that the start delay matches the transition delay. (Bug 16987565)

- Also ensure that the empty text is normal weight

Change-Id: I3227a62fcb39910a402b13f42a6cb9e418f992aa
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
2e7f3bdcc9ec0b3e95b565b943ecee2210f4b937 05-Sep-2014 Winson Chung <winsonc@google.com> Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)

Change-Id: Ic104876c5fe16997eca00e0a2b3d8644c927120c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ebfc6981828b0699eef85c58b23a61f2cac41af3 26-Aug-2014 Winson Chung <winsonc@google.com> Additional changes to improve performance when loading Recents. (Bug 16987565)

- Ensuring that we consistently load activity icon, title and color for both full and shallow stacks
- Adding activity info caches when loading the stacks
- Should not be scaling pin icon when launching from pin
- Tweaking snap-back, over scroll, and shadows

Change-Id: I556b93562bb2c69e4c25ce787a7a34532ab706ca
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
a4ccb86ddc8f9f486aee25fb836f4aff97bf7679 23-Aug-2014 Winson Chung <winsonc@google.com> Multiple performance changes to speed recents invocation/app launching time. (Bug 16987565)

- Reverting changes to the existing thumbnail transition to prevent breaking applications
that currently depend on that transition. As a result, we need to create a new, hidden,
aspect-scaled thumbnail transition, and instead use that thumbnail to animate the
recents header so that we don't have to wait to do that inside the Recents activity.

In order for this to work, we also have to ensure that the thumbnail surface destruction
is synchronized with the application that is currently closing (when going down to
recents) or opening (when coming back up). The current thumbnail is destroyed when the
animation ends, but that can be at least 1 frame before the surface for the animating
window is destroyed. We change this by deferring destruction of this thumbnail window
to the animation that is being closed.

Especially on the way up, not having to wait for us to hide the header before doing the
transition up can save us the duration of that first animation (> 100ms).

- Other optimizations:
* No longer creating a new stack view on each transition to calculate the target rect
* Removing unnecessary call to get the thumbnail when transitioning up/down (the actual
window does its own animation.
* We reduced numerous system calls per task by adding a flag to ignore home-stack tasks
and caching the activity label and icon (and task description icon). These caches
follow the same eviction schemes as the thumbnail and icon cache.

- Also tweaked the touch slop for the nav bar swiping gesture to prevent conflicting with
tapping on home (Bug 17109581)

Change-Id: Ica697aad788051a9203edd9351c583e1cb038a71
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
dd7930354aaf2baf91810bc7a3e47543dbcc7f28 19-Aug-2014 Winson Chung <winsonc@google.com> Merge "Adding shadows to the focus state and fab button. (Bug 16950262)" into lmp-dev
f95c7f5727e6838e49519e07629683fe89db9ce1 19-Aug-2014 Winson Chung <winsonc@google.com> Adding shadows to the focus state and fab button. (Bug 16950262)

- Fixing regression where we weren't resetting the dim colors properly.

Change-Id: Ib95cc96d40f80bc22b7ecd7c816d5cbaa9b592c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
abedcab44cc56d28ad57fec2d12104818a555dbc 15-Aug-2014 Winson Chung <winsonc@google.com> Small tweaks to the stack curve and header transition. (Bug 16656169)

Change-Id: I96120063a66f267ad0b6a39b3dd020bc030083b8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
60a729c8e93461c9446d0c8cd519b40dec01e8d8 13-Aug-2014 Winson Chung <winsonc@google.com> Adding scrim to task views. (Bug 15704955)

- Fixing issue with focus animations not happening for new views

Change-Id: I3134f25becf06db343aa30ea80cb33514cd99d06
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
a0e88b5013d708ac6ed6518817d83c64c87ae4b1 12-Aug-2014 Winson Chung <winsonc@google.com> Implementing Recents focus states. (Bug 16950262)

- Fixed issue with focus going to send front most task when coming from Home
- Adding shortcut to dismiss a task
- Refactoring code to get secondary overlay and affiliation color
- Throttling alt-tab key presses
- Fixing issue with slivers of the task thumbnail being visible for affiliated tasks

Change-Id: Iaafe408318646a423fd58b51bbe93dbe0f2eed99
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ec396d6399c5c31d697d81e94aff459e9771b0c6 07-Aug-2014 Winson Chung <winsonc@google.com> Initial changes to add task affiliation styling. (Bug 16656169)

- Fixing issue with launch-in-background animation
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
012ef36a6c5e9745d112c734aed916cab052558c 01-Aug-2014 Winson Chung <winson.chung@gmail.com> Updating the stack layout to use a parameterized curve.

- Fixing issue with search box not being layered on top of the task stack view (Bug 16643875)
- Fixing issue with there being no animation when dismissing recents while the stack is scrolling.

Change-Id: I990f3c527de655d62fbf8a4539dcbaed3ed422c8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
2915b9d14876c8e63ca82415807bcfb602ebad43 28-Jul-2014 Winson Chung <winsonc@google.com> Updating lock-to-app look.

- Adding seek bars for tweaking values when in debug mode

Change-Id: I92ae7b431ee170f5d8b31f34349d51a6b7f9ddef
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1907cd478209f01a4215d9a3a76294c2c77c9a63 24-Jul-2014 Winson Chung <winsonc@google.com> Adding fallback transition for animating in/out of affiliate groups.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
480dd72daf927283997bdb4060091299add66832 23-Jul-2014 Winson Chung <winsonc@google.com> Fixing issue with the lock-to-app setting not being refreshed when entering recents.

Change-Id: I8236aebc18a0d7194bfe50fe2c61659caa39b04c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
7ea62ba97b4645fe0c21e9c2df73503c259db62a 23-Jul-2014 Winson Chung <winsonc@google.com> Always enable HW layers on task views. (Bug 15986310)

- Use color filter to apply dim to the task view layer
- Fixing bug where you would see a flash of the task view when animating out of Recents.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
dcfa7976fa836ae90bb4a579892a18a0abf35b3c 22-Jul-2014 Winson Chung <winsonc@google.com> Intermediate refactoring to move towards in-app view transitions.

- Fixing bug where we weren't toggling to the right task when using affiliations
- Refactoring task rect calculation to allow full screen task view to be laid out for transitions
- Refactoring the view bounds animations into a separate class
- Refactoring the footer view (for lock-to-task) out of TaskView
- Refactoring some transform code out of TaskView
- Removing fullscreen overlay view
- Fixing case where extra invalidations and layouts were still happening in FixedSizeImageView
- Adding debug overlay to replace specific debug drawing code

Change-Id: Ibf98b6a0782a68cd84582203c807cece1ff3379f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
31ba192dd201df2cad96a8c503f730130ab0d80f 18-Jul-2014 Chris Craik <ccraik@google.com> Tweaks to outline API

b/15283203
b/16142564

Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.

Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
56e09b42a0f1670970872bef611a8036904ad6bf 18-Jul-2014 Jason Monk <jmonk@google.com> Add setting to guard the lock-to-app recents icon

Lock-to-app (soon to be screen-pinning) will now only show up once
it has been enabled in settings.

Bug: 16378448
Change-Id: Ide333463f86310eacb7a1d8b6dc7b1aea8722713
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
82c8c5e9872b984ba6f43b01da0c7731fd5bf762 15-Jul-2014 Winson Chung <winsonc@google.com> DO NOT MERGE Using a fixed sized ImageView to prevent unnecessary layouts.

- Preparing for task view clipping using the view outline

Change-Id: I4aae4189a759a48057f1e3729cc2a9e6d553c11e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
85cfec811e35025dbde54f4dc09fe0e1337c36b8 14-Jul-2014 Winson Chung <winsonc@google.com> Fixing potential crash when attemping to read null thumbnail (Bug. 16289301)

- Refactoring to remove unnecessary updates of RecentsConfiguration
- Removing unused logs

Change-Id: If427e565ab7260009ffb9be8ca45ba833c8262af
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
93748a11cba1b44edbc2e888c997533461355594 14-Jul-2014 Winson Chung <winsonc@google.com> DO NOT MERGE Fixing some regressions

- Removing some legacy code with task loading
- Ensure that doze triggers are set correctly on configuration change
- Adding WCAGv2 contrast checking for deciding which foreground color to use for labels
- Bumping up the max thumbnail cache size slightly
- Fixing case where visibility state was not correct if you toggle recents too quickly

Change-Id: I5e954890d53948547842edce3c76c34d74e180a8
(cherry picked from commit e99e1009ce49caf220aa51c044ed53ac0a3b7cc6)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
7b7ca3cdf25bee73aa9e58aaaf6ce75fe81bd045 11-Jul-2014 Chris Craik <ccraik@google.com> Disable setOutline() functionality, pending full removal

bug:15283203
Change-Id: Ibf127fecfcda835117c6087180c64f622b3041e4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1f24c7e37bc794057a156a730c7e4b53b01212ed 12-Jul-2014 Winson Chung <winsonc@google.com> Initial changes to support lock-to-app on the foremost task. (Bug 16221876)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
083baf99ff1228e96ede96aac88c8200c4fdc2b2 11-Jul-2014 Winson Chung <winsonc@google.com> Fixing a few potential crashes, preparing for Task affiliations framework changes.

- Deferring widget host listening to speed up startup
- Ensuring that we animate to the right task position in the stack and not just the front-most
- Removing assumption that we can only get screenshots for the most recent task
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
bdbb87dd7410dda10be04e01ec3a7e8344919293 09-Jul-2014 Winson Chung <winsonc@google.com> Fixing random crash when transitioning to Recents, ensuring we don't update the TextView unnecessarily.

Change-Id: I93ab512642f6e95ee96e041614f063f46420bb39
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
6057c91563402f900dfc7714a46e952d86172e2f 08-Jul-2014 Winson Chung <winsonc@google.com> Refactoring a few things with the full screen overlay and enter animation.

- Fixing issue with configuration change triggering enter animation
- Using a proper target task rect when animating into a group

Change-Id: I856d29a663f5e8c000ca22fd1025c09f65032893
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ffa2ec664479bff6b4b61d4c349d9db2cb37ca16 04-Jul-2014 Winson Chung <winsonc@google.com> Refactoring to support groups.

- Removing RecentService, determining animations just in time
- Fixing a few issues with animations of newly picked up tasks from the pool
- Moving helper classes into sub package

Change-Id: Ie10385d1f9ca79eea918b16932f56b60e2802304
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
7aceb9a07fd3883c8f301ba93726d55494b0446e 03-Jul-2014 Winson Chung <winsonc@google.com> Bug fixes and cleanup

- Don't reinflate the search bar view every time you return to recents
- Fixing an issue where the default thumbnail was not being used when querying the thumbnail cache (thought WM still seems to not be giving us screenshots in many cases)
- Fixing an issue where an invisible header bar color was used instead of the default header bar color
- Fixing an issue where swipe-to-dismiss logic was running before the animation back into place
- Using outline clipping instead of doing it ourselves for the rounded TaskView
- Small optimization in finding the visible range
- Renaming some of the callbacks to make them more clear
- Removing some unused code
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c6011deffc80eaee6dfb1c7975e050bc71e5ea96 01-Jul-2014 Winson Chung <winsonc@google.com> Fixing some bugs in Recents keyboard behaviour.

- Ensuring that we don't allow meta-tab to trigger Recents (since meta is a system key now)
- Adding dpad keys support to traverse stack
- Adding workaround for cases where tasks wouldn't be focused depending on how you launch Recents

Change-Id: I4101ced7e47e0d1659d5fa236214be5697c00560
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
d7b2cb12ac90956843413c212769639044a0b6f2 27-Jun-2014 Winson Chung <winsonc@google.com> Continuing refactor of TaskStackView.

- Extracting stack and filtering logic.

Change-Id: Id794cb2e36238baa49e614bc436bf07de6680804
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
8eaeb7dc93ed71b768a2ea8d45021cca010e8263 26-Jun-2014 Winson Chung <winsonc@google.com> Fixing bug where search bar is not updated when search package is first installed.

- Fixing issue where we weren't disabling HW layers when you don't finish a swipe-to-dismiss
- Preventing tapping on a task that is currently being dismissed
- Adding a debug trigger for internal testing
- Minor refactoring

Change-Id: Id7dcc8a4b5a080402c2761cd555b8a882498ad29
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
7ab650cb43fc75786eadfc1c3f8eae8a358723f6 18-Jun-2014 Winson Chung <winsonc@google.com> Adding start delay to the task view transforms.

- Adding slight delay to task bar buttons to allow touch feedback to show

Change-Id: I9f31ca378541fc34c7b741840c7f038340684b13
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c9567c07dd4953f5c5e3821d30525e50ed8b9b29 17-Jun-2014 Winson Chung <winsonc@google.com> Ensuring that null thumbnails have an opaque background.

- Preventing multiple object allocations when updating the stack/clip state.
- Removing double animation of nav bar when launching task

Change-Id: Id12009717135db67bc0ce0e05940dd1c8d6fb5b3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
969f586533096999f10f5587f901949791154fa2 17-Jun-2014 Winson Chung <winsonc@google.com> Tweaking enter/scrim animations/styles. Fixing issue with clipping not saving layers.

Change-Id: I476c68d7df4a8fc59ca3d9be3f99526089183ec2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b5ddfc375616bf7dbe9f4ff85ad124f02cc5990f 14-Jun-2014 Winson Chung <winsonc@google.com> Cleaning up some old animation code, only setting view properties that have changed.

- Also drawing a background on the thumbnails if a transparent thumbnail is detected.

Change-Id: I3f5450d207ae0796150c8b04aabc2f910f80e0a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
743d5c95f3a107639c0ff22f099cab2624da3e27 13-Jun-2014 Winson Chung <winsonc@google.com> Clipping the task bar against the task view.

- Skipping nav bar scrim animation when animating without window transitions

Change-Id: I8652f3956971f07bb410b801bf627d51c5e987cd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
ad6f276670443ac8f9b73497dae185bb005c3a76 13-Jun-2014 Winson Chung <winsonc@google.com> Enabling Home->Recents transition.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
a26fb7822ddf3511796279b847cc216bee9e7f70 13-Jun-2014 Winson Chung <winsonc@google.com> Fixing issues with dim not animating, adding dismiss button delay, tweaking empty recents text. (Bug 15431590, 15573497)

Change-Id: I9c11e04cd52f9e000d8ba3e443f2500c9aa7edbb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
d42a6cfe2bf632222617450a1ed340268e82f06c 04-Jun-2014 Winson Chung <winsonc@google.com> Exploring transitions to/from Recents.

- refactored hwlayers and change view property animations to use a reference counted trigger
- cleaned up RecentsConfiguration, and move it into classes using it
- moved task bar animations back into TaskBarView
- refactoring enter/exit animations to use an animation context

Change-Id: Ia66b622b094f22145c2fab07c2a9bdfd62344be2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b13c46e8b78272c4398068eed41f49ee4d403bcc 10-Jun-2014 Winson Chung <winsonc@google.com> Updating Recents to make the cards slightly more visible.

Change-Id: I876d39f4aac4007a3fe0c509ccb7db130f27a737
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
521e7dc0a6782371a710ee81bf804f7e97aaa292 03-Jun-2014 Winson Chung <winsonc@google.com> Fixing crash, ensuring that we get the post-animation callback, adding nav bar scrim (Bug. 15157307)

Change-Id: I601ee7eda22a4b5ecb2e6835d55ed6539c5cd503
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
602de03cf3933ddf3c2548d54956ee76e60d1143 27-May-2014 Winson Chung <winsonc@google.com> Enabling shadows again.

Change-Id: I4e4a771a7be3f696383059cb608e78dd6315a47a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
b01ed681fe97ff5e98471c120ff9581a78db13c5 29-May-2014 Winson Chung <winsonc@google.com> Fixing issue with configuration states not being reset on configuration change.

- Also updating some interpolators

Change-Id: Ia29fc6f10705c7d286246162f894a25de7b4be40
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
24cf152483c03dc446875c8d6440348174317bc5 29-May-2014 Winson Chung <winsonc@google.com> Updating task view style, fixing performance on enter-recents animation.

Change-Id: I42ca9296170a93a14184ae8963abbd3f0494e503
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
47a3e65acc35cd3061bf3867e8b20753870fd892 22-May-2014 Winson Chung <winsonc@google.com> Small perf tweaks.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
5a9b0b0c7d220a91d540609fc36ba5998417a73f 21-May-2014 Winson Chung <winsonc@google.com> Enabling clipping on task views.

Change-Id: I2a4b8fe06ae379364081534bd5b02f52b27e4ff2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
7bb188521cfaac4138b9dbcee2ee456d6b44fa8f 21-May-2014 Winson Chung <winsonc@google.com> Merge "Wrapping console logs."
10f8139d3b8dd7cd08a2fc688285b3b74a34f0db 21-May-2014 Winson Chung <winsonc@google.com> Wrapping console logs.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
863db8a4e7906826bc105f49a4596dc7b336088a 20-May-2014 Winson Chung <winsonc@google.com> Removing the info pane.

Change-Id: I5486291144cbcb1b31a7e5b8a234e5ef7cf85325
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
6cb485fd2e2f8ace05e1ff281ab0fc824d3652cb 19-May-2014 Winson Chung <winsonc@google.com> Fixing regression in dismissing Recents.

- Restoring app info functionality when developer options are enabled and you long-press on the app icon.

Change-Id: I8a20ff5f595eefa20db5528c0d5b1a1f0b110834
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1e8d71b605b4872e93200706a80a88a3ff25498c 17-May-2014 Winson Chung <winsonc@google.com> Initial changes to enable keyboard support with alternate Recents. (Bug 14067913)

Change-Id: Icc5d2a784ed3c3c27143eb04cbb4305549ee223a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
54e297a5bb143e60e29fd7dfe87e04a8cc96c72c 10-May-2014 Winson Chung <winsonc@google.com> Adding dismiss method on the top cards, and disabling the app info pane.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
918c0723a169cef46b8bf59c06fd3bb8021d0def 09-May-2014 Winson Chung <winsonc@google.com> Better transition between excluded-from-recent applications to recents.

- Also replacing baked bezier interpolator with new quantum interpolators

Change-Id: I8928e35724c16c9603fae861b85215d25ce08819
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
9f49df933f01a32d04bdf92d53c943065aa8ddf7 08-May-2014 Winson Chung <winsonc@google.com> Listening for system changes to active recent tasks. (Bug 14260718)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
814086db674d8eb298541b7e601e29c5c68e2074 08-May-2014 Winson Chung <winsonc@google.com> Disabling shadowing (until bugs are addressed) and refactoring some constants.

Change-Id: Iaf4c98bcb13441be3e66048687ea5b0673d2bce6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
96e3bc1f8d7c199df6fca603d0c5e59d9b70ca1b 07-May-2014 Winson Chung <winsonc@google.com> Fixing issue with animation not running after SystemUI crashes (Bug 14453240)

- Falling back to default transition if we don't have a thumbnail (Bug 14589475)
- Tweaking over scroll to prevent scrolling past a certain point (Bug 14582630)
- Fixing issue with missing top padding in the stack view
- Adding some shadowing to distinguish similar cards from each other
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
f5e22e71cb5f8699a4312c797af068f655cbe629 03-May-2014 Winson Chung <winsonc@google.com> Incorporating theme colors into task views.

Change-Id: Ie7166d78dacabe4bff7afdade2d1da9d0651e403
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
1492646b792360945fba6bdcacc6aa7c19c6618e 15-Apr-2014 Winson Chung <winsonc@google.com> Adding stack dimming.

- Fixing case where the window scrim was always dark after loading recents with no tasks.
- Restoring rounded task rects and square aspect landscape tasks
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
9f9679d91ee5f067cd5dcbf4d780a1f5b522e4ba 12-Apr-2014 Winson Chung <winsonc@google.com> Adding experiment for app-info pane.

Change-Id: I647de1a71a2ac82da0a4f8a24125496dd5457441
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
11ca76a53c60a1898956614315ae929668c523d6 11-Apr-2014 Winson Chung <winsonc@google.com> Refactoring filter animation logic.

Change-Id: Ic3b57f540da8fa0d2703eef34c43ed9e54f85021
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
0d767551c55d9e594a0b944bd1926c21a344b5ae 09-Apr-2014 Winson Chung <winsonc@google.com> Allow for different rects when animating to a single task stack view and a multiple task stack view.

- Fixing regression in task bar enter animation duration
- Fixing issue with extra long titles in the task bar
- Cleaning up some constants and unused code
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
2f2ca08baa072376b3dfd60506625496aa05903f 04-Apr-2014 Winson Chung <winsonc@google.com> Fixing crash when filtering tasks too quickly.

- Using a translation-based animation duration scheme
- Fixing issue where filtering a task could slide it out of view

Change-Id: Id434b4a98aa671d84d047dad18cbe26f543cdf25
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
5e3e5d8945249cfeb8bd59de112be88954ba62bf 03-Apr-2014 Winson Chung <winsonc@google.com> Adding activity icon to the task view

- Also fixing issue where the activity icon was being used as the application icon to filter with
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
c6a1623cc48581380b698ae87b43bfafb9c935ba 01-Apr-2014 Winson Chung <winsonc@google.com> Enabling filtering by base intent package.

- Toggling recents now unfilters the current stack before dismissing recents

Change-Id: Id0d240bf16bc32957ee7e5a9882a453044903d29
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
37c8d8ef855aacb074ee0b702a46dbc62b7551a2 24-Mar-2014 Winson Chung <winsonc@google.com> Moving task view layout into resource.

- Using new activity icon/labels

Change-Id: If27bf60d2df75813213e9f3095baeb03085da8f7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
4c71aefcbd7f7bef5dab1d05d5f7001aaea1b067 21-Mar-2014 Winson Chung <winsonc@google.com> Fixing crash with multiple touch pointers

- Adding support for force-reloading certain thumbnails (in prep for fix to Bug. 13587139)
- Use withLayer and withEndAction on ViewPropertyAnimator animations
- Ensuring that we close the notifications panel when we toggle recents

Change-Id: Ied2d841de42046fcb09fffb615156b07b4a67136
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
bd91297e895410bb27df3e930be5d9eab30129af 18-Mar-2014 Winson Chung <winsonc@google.com> Fixing issue where launching a task was delayed due to a previous start delay being set on a ViewPropertyAnimator.

- adding logging for timing certain paths (including startup and task launch)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
47c4c69575e94635a9356e8a1faf4b56a0120452 17-Mar-2014 Winson Chung <winsonc@google.com> Using the RecentsService connection to toggle recents

- Adding over scroll snap back when flinging stack

Change-Id: Ife9692ece95e0a40649d0b4b72ec4ea99ffabc16
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
04dfe0d26b944324ee920001f40d74cff47281d6 14-Mar-2014 Winson Chung <winsonc@google.com> Simplifying memory management, use Task Keys as resource cache keys.

- Attempts to load non-topmost task thumbnails from cache
- Ensuring that we release all references to the activity from the bg loader
- Removes background loading debug flag
- Moving callbacks into their respective classes
- cleaning up some callbacks when data is loaded in the bg

Change-Id: Ibb968349d08084922d5b28e432b76a165bf20d6b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
4d7b092a866d2fce3e11b5a12cda2b87a83af52d 14-Mar-2014 Winson Chung <winsonc@google.com> Fixing memory leaks related to Tasks holding onto their callbacks.

- Switching to SwipeHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskView.java
303e1ff1fec8b240b587bb18b981247a99833aa8 08-Mar-2014 Winson Chung <winsonc@google.com> Initial changes for recents.

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