History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ed0e2b44ad5b0bf0c3dedc76bd68272e8511cca3 19-May-2017 Winson Chung <winsonc@google.com> Properly defer entrance animations until after the stack is reloaded.

- Change the enter animation animated event to a normal event (no
animations were being choreographed on the event animation trigger
anyways)
- Remove the code in RecentsActivity, which poorly tried to schedule
the animation after the first layout. Instead, properly defer the
start animation until both the first layout _after stack reload_
and enter animation callback happens (regardless of which one comes
first).

Bug: 38391395
Test: Launch Chrome, dock, and ensure there are tasks visible
Change-Id: I4c2823fe25adbd3c200a0f786c478155541ccf26
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
b502690e2d0a120993279a6fe800ad07dccc8872 03-May-2017 Winson Chung <winsonc@google.com> Updating Overview to work with PiP

- Ensure that an activity that is auto-entering PiP when hitting Overview
does not show up in Overview. This is done by listening for the
onActivityPinned() callback from the system, and remove the pinned task.
- Ensure that we show the PiP task in Overview after it is dismissed, while
Overview is open. This is done by listening for the onActivityUnpinned()
callback from the system and refreshing the task list similar to when
the multi-window mode changes.
- When launching from a PiP activity, or launching back into Overview where
the next task should be PiP, then ensure that we scroll the stack to the
front so that the first task is fully visible.
- Fix two lingering Overview issues, when there are no handlers (ie. with
dynamically registered handlers), ensure that we call pre/post dispatch
callbacks (otherwise it could cause animated events not to work correctly).
Also, ensure that we don't update the dummy stack view TaskStack without
clearing the stack first, since we may be modifying the same stack
that the activity consumed when starting.

Bug: 34185886
Bug: 38207296
Test: Launch PIP activity from hitting Overview in the various ways
described above
Change-Id: I699e655106e6ed7206e163f9d3c15477bbfd52ef
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
2149be1b9b288ee52f142766234717b421f5bb44 25-Apr-2017 Jorim Jaggi <jjaggi@google.com> Fix some "leaks"

When Recents goes into the background, we should release all
references to thumbnails so things can be freed.

Test: Go Recents, go home, take heapdump
Bug: 37630958
Change-Id: I79ec994f031393cda67edd8983195e2c541f13fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
cdef591e52e691a6f57e367caa5670fdc4ee1a8a 03-Apr-2017 Jorim Jaggi <jjaggi@google.com> Improve caching behavior of thumbnails

Remove the retrieval cache on system_server. It's not needed at
this point.

Instead, we cache the low-res thumbnails on SystemUI side that
will be visible when recents launches. For that, we introduce
a strong thumbnail cache, which gets filled up whenever the task
stack changes.

Also fix a couple of issues like that the visibility report was
pretty wrong as well as some tasks got unloaded because tasks were
bound before layout happend.

Also fix a merge issue where we didn't load the reduced resolution
thumbnail :/

Test: TaskSnapshotCacheTest
Test: Open a couple of apps, open recents, make sure all
thumbnails are already loaded.

Fixes: 36374895
Change-Id: Idbf1acd4ceab6a7c4656e9791e245a8b102017f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
6f9dbcb742ee930151444118dd61c2239efce09d 17-Mar-2017 Jorim Jaggi <jjaggi@google.com> Implement new thumbnail loading strategy

- By default, we load only the reduced resolution screenshots.
- As soon as the user stops scrolling fast, we also start loading
full resolution screenshots.
- We prefetch reduced resolution screenshots when scrolling from
back to front, as the other direction is automatically prefetched
because the thumbnails aren't immediately visible.

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
527df54e58fda25d124fdc4a57a490baaff0a0d2 06-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: use correct layout logic for drawing transition headers am: de3cfb0c1f
am: 8e08d0e828

Change-Id: I048d8bb5e3eff94ad87d302f000a6739ad51fc49
8e08d0e8284f52fb404e57ae0fac96ba3f4c6360 06-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: use correct layout logic for drawing transition headers
am: de3cfb0c1f

Change-Id: I46c45fed648858212a31e477f46ad25475b0710a
925d8626568429876abaaa24b95d730e02bcd30d 06-Feb-2017 Manu Cornet <manucornet@google.com> Merge "2D Recents: use correct layout logic for drawing transition headers" into nyc-mr2-dev
13476b7747776c2933071ea3b41f5fb612f17bbb 03-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: fix toggling behavior am: a96a617a4e
am: 7a1a3d4529

Change-Id: I0945901cd50e98b9dc4e7b10a23077fbd1e0350c
7a1a3d45297aa981f472a0cebb87df5d63da210a 03-Feb-2017 Manu Cornet <manucornet@google.com> 2D Recents: fix toggling behavior
am: a96a617a4e

Change-Id: I8978e8ae81e3566e83ca3d7819b95d54c5861b67
f69e421f480df3e4f97bdae6259adb44aadcbe98 03-Feb-2017 Manu Cornet <manucornet@google.com> Merge "2D Recents: fix toggling behavior" into nyc-mr2-dev
a96a617a4e722b3e3cacfae9f1ecf7b552f011b0 19-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: fix toggling behavior

This changes the toggling behavior so that a quick double tap on
the Recents button still does the same thing as Alt-Tab, but if
the second tap is slow, we go back to the most recent task.

Bug: 34636734
Test: Checked toggle and alt-tab behavior on local sw600dp device.
Change-Id: Idb6f30a370192be2490c74c04d9ea81f223ecfb1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
de3cfb0c1fa839e69a24d2a9e02e3b97ec8baaa7 25-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: use correct layout logic for drawing transition headers

Bug: 33752154
Test: Checked/screencasted app -> recents -> app transitions on sw60dp device
Change-Id: Ib29e5feaadb4bdacae6c60d25526d0c7af95361f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
76b2e0a21af34cd7e964b4d5c158f0ec4988f077 20-Jan-2017 Jiaquan He <hejq@google.com> 2D Recents: round task thumbnails properly.

Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
90f4f5290b971aefcf7cab306b3e95168ed53585 10-Jan-2017 Jiaquan He <hejq@google.com> 2D Recents: round task thumbnails properly.

Test: Checked that on local sw600dp devices, task views are rounded with
8dp. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
f2d9521a35a942735b2e761918f2f1f88a17acc1 19-Jan-2017 Jiaquan He <hejq@google.com> Add arrow key navigation support to Grid-based Recents. am: c0e1813944
am: 514bbfd880

Change-Id: I076eeea2f035bef9c3c2ec39aa900a3f2e9d585c
e53960d10b8f9a13889be5f77a6ab685a482b579 18-Jan-2017 Jiaquan He <hejq@google.com> Add keyboard support to Grid-based Recents. am: 21f495f07b
am: de934359ef

Change-Id: I224b4576c4ebf1e200003d554916b52a1319a387
c0e181394431fb13420f7bd0415231075cb1b469 11-Jan-2017 Jiaquan He <hejq@google.com> Add arrow key navigation support to Grid-based Recents.

Test: Checked that arrow key navigation works in Recents on local
sw600dp devices. Also checked that Recents works properly on phones.
Bug: 32101881

Change-Id: I8ece3fc4c9ae82916efcbbde72d40805e43cc70d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
21f495f07b1b9ace99986a110d01a763847687b1 05-Jan-2017 Jiaquan He <hejq@google.com> Add keyboard support to Grid-based Recents.

Test: Checked that pressing tab, shift + tab, alt + tab, alt + shift +
tab work for task navigation in Recents on local sw600dp device. Also
checked that Recents on phones work properly.
Bug: 32101881
Change-Id: I3e4cd212d2900523ece30a85cae7fb73a9594efb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
896235c9a797003f48b4b74c15934bd1ad306e4e 17-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Always use grid layout even in split view am: c0432c63de
am: 1342e0e7cd

Change-Id: I8d9d57787e3adcebfd01b4466f90c8fa636b13c6
c0432c63de3def1f00f93aedee8050c30c2dc291 13-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Always use grid layout even in split view

Simplify the logic a bit, and polish the algorithm to accommodate the
various layout possibilities.

Bug: 32101881
Test: Checked layout in all orientations, with and without split view
Change-Id: I4a6dd3f7f34664908294ddaf5ea516d8e258edbf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
a4e29361b6c406b52ff5a5cf267a9828e290b860 13-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Use a different task dismiss animation am: 5df7667edb
am: bc6bdb3ef8

Change-Id: Ia6eddc26efd3ab101f575bdb06b10691a2346cbc
5df7667edbabdf8bf43bc08ef7df2859fd620314 12-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Use a different task dismiss animation

Bug: 32101881
Test: Checked layout and animation on local sw600dp device
Change-Id: Ic92a6a5aa0c25fac5553de9a0145a0b39ae6ddb1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
5303427bc69b322bbb9b1031c62d510838d93b11 30-Dec-2016 Jiaquan He <hejq@google.com> Cut the Grid-based Recents title if it's too long. am: 8f34df423d
am: e7d2311593

Change-Id: I91f090f72790bf77480a4bd393c1e1bf1c1ff8ca
e7d231159398e2b5a3c2bd353980a18270c03c73 30-Dec-2016 Jiaquan He <hejq@google.com> Cut the Grid-based Recents title if it's too long.
am: 8f34df423d

Change-Id: I941f6d96bd6dab4c3bf6c09e5dbf4b136407a055
e606e999a72ff1d094f465fa4a70a7f94b04dda6 30-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Cut the Grid-based Recents title if it's too long." into nyc-mr2-dev
71cfaee77888a1123c94e3acf9715867c077f563 29-Dec-2016 Jiaquan He <hejq@google.com> Move grid checking into the layout algorithm. am: 26f637b555
am: c29cd0fdca

Change-Id: Icf69a78743697daaad7e55ca6116d24f716c88ef
c29cd0fdca95a7309c8a9c388d1d8cf04992029d 29-Dec-2016 Jiaquan He <hejq@google.com> Move grid checking into the layout algorithm.
am: 26f637b555

Change-Id: Ie65d71bd7f6edb5e92f6dd331999424a592c8073
c87fcb0963b9fd76427ff3af543d594d68f8443d 29-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move grid checking into the layout algorithm." into nyc-mr2-dev
fc16b764b6bd9ff66f3ae06c869b3a78553a4d2d 29-Dec-2016 Manu Cornet <manucornet@google.com> 2D recents: show all close buttons right away am: 8ff7854c4b
am: ca0e55646b

Change-Id: I42325561cc94f816701f4c9cd3edaca31efd5a22
ca0e55646bdf66730211249084cb3c220d5efdef 29-Dec-2016 Manu Cornet <manucornet@google.com> 2D recents: show all close buttons right away
am: 8ff7854c4b

Change-Id: I18e3729f5e09601a6548647fa16ba90bf2147cb0
3b430f7d0cf76f2f4f36f02c7b6e6327956e3458 29-Dec-2016 Jiaquan He <hejq@google.com> Merge "2D recents: show all close buttons right away" into nyc-mr2-dev
8f34df423d9f65c692d9bcf59d224e0f938f78ac 28-Dec-2016 Jiaquan He <hejq@google.com> Cut the Grid-based Recents title if it's too long.

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

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

Bug: 32101881

Change-Id: I174fe33ef7ed3c04987771dbb42d831a4b9bdab2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
1060c9dcfd0d115c16209bbceeba84bc25aa9c16 28-Dec-2016 Jiaquan He <hejq@google.com> Check split screen properly. am: 5fac212e8b
am: e3ecb097b0

Change-Id: Ic534ab1ef2c6c0067e1d43f31b662ea23e221e8d
5fac212e8b15fd84782bd6c914c3a7a5e646d945 23-Dec-2016 Jiaquan He <hejq@google.com> Check split screen properly.

This commit detacts split screen by checking whether there's
a docked task instead of multi window mode.

Bug: 33847223
Bug: 32101881
Change-Id: I23ee11e57ded7c5e81d51cfbfea05500a879945c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
8ff7854c4bb12bf0a4a57ca313ed8b7396fbd367 21-Dec-2016 Manu Cornet <manucornet@google.com> 2D recents: show all close buttons right away

Bug: 32101881
Test: Checked recents layout on local sw600dp device.
Change-Id: Ib9b40cdc3fdb912315d52d3b47cbcd32fec9842f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
5db30f099d8d8beea48a91013a783df196f57e09 20-Dec-2016 Manu Cornet <manucornet@google.com> 2D Recents: Show / hide / layout the Clear all button as needed

Bug: 33751088
Bug: 32101881
Test: On sw600dp device, checked recents layout and docking transitions
Change-Id: I011f6d1f73648662a9c937037c6547cdd1bbfcc8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
c0a1acdebffeac3a35ba15c9d0d95eea583ad255 13-Dec-2016 Jiaquan He <hejq@google.com> Add a grid-based layout algorithm for Recents.

This commit adds a layout algorithm for Recents so that task views are
layouted in a grid mode, to take full use of the screen space.

Change-Id: Ia0e388ea2e8a6ae348ed002a830212e8fea546fc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
26eec78179deaa056ddf707369afe0d5ac5ddb18 11-Nov-2016 Manu Cornet <manucornet@google.com> Move the 'next launch target' logic into the task stack

For better reusability in other flavors of Recents.

Bug: 32101881
Test: Behavior is covered by existing automated tests.
Change-Id: Ibe39cbae0b5973210cad478a9c5ab75280ee0ac2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
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/TaskStackView.java
72350cb4fb79e738b862338633d5a19f7d2ebc5c 19-Oct-2016 Winson <winsonc@google.com> Skip getting transforms for ignored tasks. am: 448c0adb78 am: cfdbd7b2e2
am: a0e36bafad

Change-Id: I78780193c8e7a4ee47a607fda68b5e42d4eaba4e
cfdbd7b2e278968793702949c23823f5c41b3390 19-Oct-2016 Winson <winsonc@google.com> Skip getting transforms for ignored tasks.
am: 448c0adb78

Change-Id: Ie929c699ee466b1298acab07eefa68006a92cdb1
448c0adb7835076fd3ff8e9900896cae0ce3c19b 19-Oct-2016 Winson <winsonc@google.com> Skip getting transforms for ignored tasks.

- If the stack does not contain the existing ignored task view on
relayout, then we should not try and get the transform for it
since it will be skipped.

Bug: 32001762
Change-Id: I23182c76ac41b036c25edf92374622191e9d4ce3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
9da862e8bcfb69cc56a39db48efc0a5bead59bbb 23-Sep-2016 Winson <winsonc@google.com> Defer launching next task until after first layout. am: bd53a314f4 am: 6dcd21e5da
am: ce5dc9236f

Change-Id: Idb713092d5fb1f1ffc81f2c48ef0cbcee38f67db
bd53a314f454e37687ceebe0dc5574bd49c47254 21-Sep-2016 Winson <winsonc@google.com> Defer launching next task until after first layout.

Bug: 30192607
Change-Id: I04cd182a795ea9600c9782056dc0adbe9a288af6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
ca9dddb3bf63cd25cbf09fdacd5e1d3b8933658c 09-Aug-2016 Winson <winsonc@google.com> Reverting ag/1288123 am: 08deff0a67 am: 5ce0a4fb0f
am: 8ac2f28c31

Change-Id: If23888a4bd762115891f8cae2e62dd487dabcfd7
08deff0a67bd1e2d44477ed7c84c39fb3299fb7c 05-Aug-2016 Winson <winsonc@google.com> Reverting ag/1288123

- Reverts the change to draw the drop targets opposite of the nav bar
- Fixes the issue with the drop divider being occluded by the nav bar
when the phone is in landscape orientation. Instead, expand the
drag overlay to include the nav bar space.

Bug: 30548794
Change-Id: I70ed3513547e101e49c8eba114a153c5a1f36bee
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
9377110f6372ee59fd5c333ddb7ecfc65ff804db 12-Jul-2016 Winson <winsonc@google.com> Ensure that all places we bind tasks also update the doze state.

Bug: 29548227
Change-Id: I352afa7fc0039b951f94a9de4a538aad7d1462f4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
2ecfb62feb5dc22c293279d9b074dd9c0074aaf8 07-Jul-2016 Winson <winsonc@google.com> Merge \\"Fixing app transition due to left-nav bar inset.\\" into nyc-mr1-dev am: 8d90128bc9
am: 117a8ae090

Change-Id: I0109a617b58fa9f792209382ba57c0075c579f93
cbb625bc6d22ad806560dd192d3945cdd5021cfb 07-Jul-2016 Winson <winsonc@google.com> Fixing app transition due to left-nav bar inset.

- Also center in available space regardless of which side the bar inset
is on.

Bug: 29917174
Change-Id: If84dfb3bbff3c3d3de70473c74f5bfc5a8f32a59
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
434523b9c419cc7dc4ca4d5a167174b1c1333b86 15-Jun-2016 Winson Chung <winsonc@google.com> Merge changes If61a2c1f,I06679897

* changes:
Fixing header bar icons.
Show the correct pointer when dragging task in Recents.
edaffc5792ee4e32aaf622bad9278a981a5e51fe 14-Jun-2016 Winson <winsonc@google.com> Fixing header bar icons.

Bug: 28402665
Change-Id: If61a2c1fbfb881a61e67d8bc6f3a79236e01c7fa
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
399d21e37c83fc543668880ff28e929d47c7629d 18-May-2016 Winson <winsonc@google.com> Tweaking layout to make two-task stacks to closer match design.

- In the small-stack cases, set the initial state to top-align the
back-most task. In addition to offsetting the position, ensure that
the dim for the back-most task is offset by this new position.
- Fixing issue with wrong return value when update insets.
- Fixing issue where tasks disappear after rotating while scrolling the
stack, due to the scrollering setting the stack scroll to an invalid
scroll position in the new layout in the new orientation.

Bug: 27859654
Change-Id: Ia4aaa3fe445032493c94a8dee7f6fea33bee36ec
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
6c8217ab3072fa65851316a922b482506b3c2a4c 25-May-2016 Winson <winsonc@google.com> Defer calling the stack task removed callbacks.

- When updating a TaskStack, defer calling any callbacks until the stack
is updated. Otherwise, the handler may incorrectly check the size of
the stack to be empty, which triggers Recents to go home.
- This CL also removes an erroneous double call to onStackTaskRemoved()
when updating, one explicit call and the call that is made internally
in removeTask().

Bug: 28941269


Change-Id: I37b93bd959a625096925a16a426269a0c79de4e7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
409d99a090dd3dc1525aa24ca405b0df44e2c818 11-May-2016 Winson <winsonc@google.com> Fixing flashing when animation the launch task.

- When we are setting the tasks during the initialization of the tasks,
only animate if we are not awaiting the first layout (since those
should override the existing layout).

Bug: 28701153
Change-Id: I4ccb38417df15f43408b2ae77708ba9de407e753
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
aa0dea7a4a5b0861bc040e3f5db633a272146fb7 28-Apr-2016 Winson <winsonc@google.com> Pipe the dismiss button logic through the touch handler.

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

Bug: 28443410
Change-Id: I309c38253e9c2dc78a5882dc663eec84a11619dd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
95ee8736dacd52c4e909815d3e524cf2f64657f9 26-Apr-2016 Winson <winsonc@google.com> Skip scroll-to animation when undocking and there are no tasks.

Bug: 28367678
Change-Id: Iafd064196cae43f60ff6d356843d1e431d15daea
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
60df24648e7ce6293124256ea565615f88df3c38 24-Apr-2016 Winson <winsonc@google.com> Fixing animation regression due to ag/957220.

- Ensure we clear deferred relayouts after finishing all animations in
case they trigger a deferred layout in the animation-end callback.

Bug: 28287904
Change-Id: I6d71328fb3dc4595ea67ee18cfa57d85d741e6c6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
eca47ef813c49c8d8cee2cdc93c296bbc59ed73b 22-Apr-2016 Winson <winsonc@google.com> Fixing issue with swipe-dismiss animation clobbering home animation.

- Finish all dismiss animations when a dismiss-to-home animation is
started, and prevent lingering deferred layout animation requests
from running as they will be overwritten anyways.

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

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

Bug: 27154882
Change-Id: Ia8a90434da2174d3c78a353b881509a8b1d525ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
50c410c1c91922e91fb8d1b873f6a541d1e2fd6c 20-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix wrong transition when recents is growing when entering" into nyc-dev
db21bbd2caf05322864f09ec45a0c572cf071123 19-Apr-2016 Jorim Jaggi <jjaggi@google.com> Fix wrong transition when recents is growing when entering

Bug: 27855229
Change-Id: I050305d16df6fe53abf5e74e1f9ee6c882dd7ead
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
0a461f0111287a0c0b77dd7ec0454b40195c8d88 19-Apr-2016 Winson <winsonc@google.com> Ensure that the drag view is not dimmed.

- When picking up a task view to dock it, we should animate remove the
dim on the task view so that when you drop it, there is no jump from
the dimmed version to non-dimmed app.

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

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

Bug: 27154882
Change-Id: I25af8fad97ee78669c952dd81708e6cee5dfab05
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
670ea71f1b4ae59a0cd6608ae44b0fb78a1144c4 13-Apr-2016 Winson <winsonc@google.com> Reducing work on configuration change (Part 1)

- Don’t reinflate the header bar and dummy stack view
- Only update the header bar layout params when values change

Change-Id: I47bb699e35b10caea2ab8640be8d3f9a3d445c58
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
da8d2285e59fc57361308a3c59b32b9dd7d406aa 12-Apr-2016 Winson <winsonc@google.com> Fixing issue with scrolling tasks upwards

- When scrolling the stack away from the task overrides, we should
actually lock the stack scroll and instead apply the changes in scroll
to the override tasks.

Bug: 27376567
Change-Id: Idd1874ab0f6f5eb273bf6e9623b84277961f4291
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
d72c315d5eed3a684eee303364b97129cb821689 06-Apr-2016 Winson <winsonc@google.com> Adding more logging of the state to the bug report.

Bug: 28009206
Change-Id: I0efc513bb6fc5ea4c9724b0a411ca5d60a71f27e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
44849b8abdcdefbe3112324d98afdea220a37376 29-Mar-2016 Winson <winsonc@google.com> Should not update initial state at all on resize.

This fixes an issue with the stack scrolling upon resizing. We only
need to update the initial state if docking, or upon rotation.

Change-Id: Ie59ed72cb22c9b000289db3f04b1a71ad5f64816
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
c69249fd6f30398780342baed8752ef0eeff7d22 28-Mar-2016 Winson <winsonc@google.com> Fixing regression in recents entrance animation when docking app

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

Bug: 27859626
Change-Id: I2571c1660820e21fde87ef82808098809b4d3c24
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
f9357d9b31e7ad671db3c75a7aa8ad589fb04f78 25-Mar-2016 Winson <winsonc@google.com> Fixing issue with tasks being laid out with the wrong bounds.

- When hovering over a drop target, we update the stack bounds, which
changes the task rect. If we happen to pick up new tasks and measure
them during this point, they will be measured with the wrong rect, and
once you stop dragging over a drop target, they will not have the
right bounds.

Change-Id: I6711152878a4afd48518e01477fd793a4c132648
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
0b46f3c72c324bc9b8890ed9b81951bbeec70fdd 14-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #2

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

Bug: 27607141
Change-Id: Ib647d44d9777f1155deab818d1fd5425c1bdd3d1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
f8597b2aef7c52f8bbf3715f42b33f70cee0b81e 24-Mar-2016 Winson <winsonc@google.com> Tweaking scroll-to-launch task animation.

- Always scroll so that the launch task is focused

Change-Id: I84516d0799ad0b308cfa458f4ce79c82acc48f51
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
8f6ee48225ad1cdf966c8f406c85113b13833c7b 19-Mar-2016 Winson <winsonc@google.com> Completely removing dead code related to history view.

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

Bug: 27742174
Change-Id: I1da274bf88c77bdc09d91072683b2ea7ca022432
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
008ee15fe82c8216e8e4f67e3032de468cc6c92a 19-Mar-2016 Winson <winsonc@google.com> Completely removing dead code related to search widget.

Bug: 27742174
Change-Id: Ie478c562f6152338417aca5262b7f33ee4ca7ed5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
2068408d08ca39a5b036daac01e80de45e8c1eab 17-Mar-2016 Winson <winsonc@google.com> Allow dragging to dock single tasks.

Bug: 27696141
Change-Id: I538cd4753d47a3606a87ac096d4ea86f6263a2ed
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
96e613412fe2e8fa6e99b54f5b596a99e4c5cd28 16-Mar-2016 Winson <winsonc@google.com> Scroll to the launch-task when toggling overview.

Bug: 27680710
Change-Id: I3eba2cdbe0a92ef05dd6882a5e41db2a5875c98a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
bc0f8cd332bc4fea6944bec41a2d9a50d6812221 15-Mar-2016 Winson <winsonc@google.com> Ensure that recents toggles even in the empty state.

Bug: 27604213
Change-Id: Ie529f27e7e8110be8e86224bbad7622300fa87a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
003eda6c230a1b1c4e3709466c46660e7602d740 11-Mar-2016 Winson <winsonc@google.com> Fix issue with the component layout not having updated on config change

Bug: 27618066

Change-Id: I362c893222439c0dd1faa0000b29ead7ef621606
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
6348b712c2c644936394577ee687ab3628402c7f 09-Mar-2016 Jorim Jaggi <jjaggi@google.com> Merge "Animation for docking task gesture" into nyc-dev
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/TaskStackView.java
4cfea695112f2f61d9f4391e6d928561a68a7db3 08-Mar-2016 Winson <winsonc@google.com> Fixing crash in Recents

- The change to setTasks() was causing us to queue items to be loaded
before the activity had even started. This change ensures that we
don’t do this for the dummy-transition-only stack view, and only when
setting stack tasks for real.

Bug: 27538945
Change-Id: I4ff0413cb2fb961a4dedcad42471293bab4f955a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
4333694d8a7024a141ffb12cd59b0b56a362baa5 07-Mar-2016 Winson <winsonc@google.com> Fixing screenshot regression from ag/879131.

- We were not poking existing TaskViews from updating after their tasks
have been updated (ie. with a new screenshot)

Change-Id: I33916aecf004afdb88a2462e69437ad1d9e8017d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
1d5ff7e71e50d0649911df7b41e77801c170797e 04-Mar-2016 Winson <winsonc@google.com> Just return the task to the pool if it is not in the current stack.

Bug: 27467025
Change-Id: I5c414d674fb0db152b77c2025b4885d340e81880
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
d93429076cd3cef2868da4613092515148f8a6fb 25-Feb-2016 Winson <winsonc@google.com> Track double taps to launch the previous task.

Change-Id: Icd792ed4f508f8a8540a5cd2d12c3bdfd5827410
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
931845fcb3823ce175fcfc7c6ce2d9751102c331 25-Feb-2016 Winson <winsonc@google.com> Dev preview changes for incompatible apps.

- Disable drop targets when picking up a task that can’t be docked, and
show toast notifying user (for now)
- When a task is docked, update the task headers for non-dockable tasks
to indicate that they don’t support multi window. Update these
headers every time the multi window state changes.

Bug: 26774190
Change-Id: I020dcbac9b1230dba166eecaa12366986e684f9e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
c438702740cd2893fe3bcec5546049e6b6172eb4 24-Feb-2016 Winson <winsonc@google.com> Fixing crash when focusing tasks.

- We call bindVisibleTaskViews() at the new scroll value expecting all
visible task views at that scroll to be bound synchronously, however,
the call to computeVisibleTaskTransforms() would not produce the
correct visible range if the visible range at the current and new
scroll resulted in gaps (ie. at scroll 0, 0-3 are visible, and at
scroll s, 5-8 were visible). As a result, the task view would not be
bound, causing a later crash.

Instead of the optimization before, which would assume every task
after the first non-visible task would also be non-visible, we can
just update the transforms for all task views. This ensures that
all visible task views should be bound, even if they are not in a
contiguous range. A global range is still provided in the call to
allow accessibility to focus the next task when a task is unbound at
the two ends of the stack.
- Also removing expensive calls to remove all listeners and cancel
animations that are not even started.

Bug: 27295423

Change-Id: Ib309e9de3095cacb178ae9ff5c53b8ee2c7ddac0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
66474134a7dfaf2e63946e2d021dc162365f3a90 24-Feb-2016 Winson <winsonc@google.com> Improving transition from paging to stack.

- When we start scrolling, project the tasks onto the unfocused curve,
then reduce the offsets from the projected task indices back to the
normal indices as you scroll. This doesn’t give you a perfect result,
especially when scrolling in the same direction as the tasks are
offset, but is better than what we have now.

Change-Id: I055b08257fe1427e00e26ffa02f261cf51a8a2e0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
23b0d3f66e8280c8638d8b0954edc0409d14de7f 16-Feb-2016 Winson <winsonc@google.com> Better focus handling after dismissing task/scrolling.

- When there is no focused task, focus the next task closest to the
stack scroll in the focus direction.
- Fixing small regression where no task would focus when alt-tabbing
because the index was out of bounds.

Change-Id: I2555c9340f40affc371f52d51d88af0eeda53b2e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
05e46ca8f3d24cf333e745c8cebb420b2996e9ea 06-Feb-2016 Winson <winsonc@google.com> Updating paging animation to spec.

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

Change-Id: Ic5fd54500fd8ce8284c7aaeddb102b2291bcecac

Signed-off-by: Winson <winsonc@google.com>
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
b61e654b9a46e79827355104760a3ac5228380bc 04-Feb-2016 Winson <winsonc@google.com> Fallback 1 for Recents timeout behaviour

- Removing initial timeout
- Adding double tap to switch tasks

Change-Id: Ice6a508b842377809bf0dcea0997522164d0ccdf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
9bbd2861ad0c44ff95463090b303f131b118a2bd 03-Feb-2016 Winson <winsonc@google.com> Fixing issue with task animating from 0,0.

- When we get all the initial task transforms when swiping to dismiss,
the tasks that are not visible at the original scroll position but are
in the final position are not initialized correctly. Instead when
getting the current transforms for all tasks, always calculate their
transforms regardless of whether they are currently visible or not.
- This revealed another issue where on snap-back, a task that was
visible at the new scroll and not at the old scroll was not getting
removed until the next update (which would cause a task view to linger
if you press home for example).

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

Change-Id: Idedf00457055b6f0268c0f93a0a14c6a553e1168
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
70f0bf7d5d30c8d20b28af2134d8c21862e2a294 01-Feb-2016 Winson <winsonc@google.com> Fixing regression in animation of drag task.

- Should be ignoring the drag task, caused by a bad merge in ag/854463.
- Preventing relayout when picking up a new task view. This issue
caused the task view to be relaid out mid-drag if the animation in the
stack causes a new TaskView to be picked up from the pool (ie. when
dragging immediately after starting recents from scratch)

Change-Id: Id798cc39216d7ccbaa106c687aa0a518e7d5155f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
c0848f11794abcecc89bd05fea73e103e887eff6 30-Jan-2016 Winson Chung <winsonc@google.com> Merge "Revert "Re-enabling fade-in of header bar icons.""
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/TaskStackView.java
4b164b6d4cd6a253454ac988c83b441ae2a8e4e0 30-Jan-2016 Winson Chung <winsonc@google.com> Merge "Re-enabling fade-in of header bar icons."
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/TaskStackView.java
d952961977a0eb6c1fefcb0707d1c61741515f68 28-Jan-2016 Winson <winsonc@google.com> Fixing some drag and drop issues.

- When opening recents while there is a task docked, initialize the
stack scroll to the front of the stack
- When undocking a task while recents is open, scroll to the front of
the stack
- Fixing offset when adjusting the task stack size due to top inset
being double applied in some dock states
- Fixing issue with task view not scaling when picking up from the
freeform workspace

Change-Id: I15436ac21f05ff521492d8ae1c682a414503101a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
6d5b8b8e4473cc5d3ad2ace3376207c53d48ada3 27-Jan-2016 Winson <winsonc@google.com> Part 3: Fade in app icons

- Fixing misordered call to remove the callbacks when recycling before
unloading the actual task data
- Prevent thumbnails from being fetched while loading icons in the
history view.

Change-Id: I8f5dc65f867e60c2d062bb8222c91bf98f54f6d6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
214f0f0dc8018b135e2394982c79f1bced4a5fec 26-Jan-2016 Winson <winsonc@google.com> Part 2: Adding clear-all to history

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

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

Change-Id: I665baefcdd619de5e9366923eaaf4c558261141a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
4b9cded14346a7d8781ee6549c44888eb4ec9d83 27-Jan-2016 Winson <winsonc@google.com> Enabling fast switching for all users.

- Consolidating notion of fast toggling and indicator in the tuner - if
it is enabled, the indicator will be enabled
- Upon entering recents, immediately enable the timer to jump to the
previous task
- Allowing for multiple durations in the first and subsequent toggles
- Disabling fast-toggle on freeform devices and when touch exploration
is enabled
- Simplifying UserInteractionEvent to a reusable event

Change-Id: Id1ca3cd035f4eded5141b2b333a2cab5434b79ee
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
1c8461402bd25912b61c166552cd60be4b7089d9 22-Jan-2016 Winson <winsonc@google.com> Fix issue with stack not invalidating when only focus state changes.

- Adding callback to invalidate when focus state changes.
- Fixing issue where we were posting the invalidate, causing everything
to lag by 1 frame
- Fixing issue where we weren’t passing the cancel-enter animation flag
down when setting focused tasks

Change-Id: I218ec78dc0e4e22e59ffcef03a1bc91d08b7c18b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
35a8b04140598a5b5c4865254b942adb6a830991 22-Jan-2016 Winson <winsonc@google.com> Fixing crash with retrieving the first stack task.

- We should be retrieving the first stack task for calculating the
thumbnail transition, regardless of whether it is freeform or not.

Bug: 26739531
Change-Id: I27037a480201396011d7f9b8d094b4d9afe66f0e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
b433c5be013803ca742565c018de0cf456828cd7 21-Jan-2016 Winson <winsonc@google.com> Fixing issue with multiple focus timer animations running.

Change-Id: I7243f30b917bb311e46efa1e09b44440a0236f07
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
8aa9959413a06c3d2ff75e0c7be9e3cb7ac7cd2e 20-Jan-2016 Winson <winsonc@google.com> Starting the dismiss animation in parallel with the gesture.

- Introduces notion of ignored tasks for the purposes of layout in
TaskStackView. This can be used during drag and drop, and while
dismissing to calculate the state of the stack without the task that
the user is currently interacting with.
- Fixing minor layout issue when the front/back task transforms are
improperly calculated when there is a single task
- Fixing minor issue when the anchor task is calculated incorrectly when
dismissing task views

Change-Id: I1eb0864a52e53562e4d573a6ed4f8a5a1615aff9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
4b057c6787624b75613769a857ccdf51114bb7f2 13-Jan-2016 Winson <winsonc@google.com> Fixing crash when dismissing last stack task.

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

Bug: 26500050

Change-Id: I9652e90a6a2e19008c5c84ce877afca576b3175f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
671e8f91aae080dc66a0136ce1fc1c1ae0a90db4 12-Jan-2016 Winson <winsonc@google.com> Removing custom swipe helper.

Change-Id: Ic28ab343f86ab6f80d8c0409a3218513bd8880af
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
3e8747414520ee348cf4b9c4a6afd9ff80b5a8f8 07-Jan-2016 Winson <winsonc@google.com> Improving drag and drop animations.

- Expanding drop targets to indicate the size of the to-be docked window
- Fixing animation when dropping task
- Fixing drag view z order
- Fixes issue where the dock divider position in WM is not exact
- Requiring user to move the slop distance before accepting drops

Change-Id: I2f6eab504db7126c19e0c680629e89a39e7512e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
aa4f800891e801e78cc4a0a9839fc59938cabdd3 17-Dec-2015 Winson Chung <winsonc@google.com> Fixing minor issue with freeform workspace not showing.

- Also slightly tweaking drop target sizes to be a bit smaller

Change-Id: I0e877e64acba5dd165c0d7a2cffb24dea88d673f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
4e5fb2f4e1ed4eb119a201541ad89aafac8c53fe 15-Dec-2015 Winson Chung <winsonc@google.com> Allowing tasks to be swiped away in the history view.

Change-Id: Ide26856c291bcdd1b4ab5e15ae9eb876a9af719b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
062667710edcad7a01d7ece3e2bc4a83ee2a2ca3 11-Dec-2015 Winson Chung <winsonc@google.com> Ensuring that the undocked task is visible in Overview.

Bug: 26043233
Change-Id: I2186bdfc64af161b8e828061a8e064f90c5cae24
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
d6b78a330bf6a74ff9bfa18d1ebe67a8665d4cfa 15-Dec-2015 Winson Chung <winsonc@google.com> Cancelling window transition when starting focus animation.

Change-Id: I34926215098c3226e99cc224c36d315fd1736b0a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
ead5c0fc20e5c60a68cd017af0b8eacaf1167a1c 14-Dec-2015 Winson Chung <winsonc@google.com> Enabling history and paging by default

- Removing associated tuner flags

Change-Id: Ia69bf273489b0079c389e7feb1428071569092d5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
de750de53127e42b71867dd5c17e873d7e9ba47e 11-Dec-2015 Winson Chung <winsonc@google.com> Only show historical tasks in history.

- Also only show the history button if there are
historical tasks (and reflect that in the
button text)

Change-Id: I7b9dcf79e2feef61f96b720f586144de4c5033e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
4ab4d838d5a1c9d9fb94a6f0c82f77862f4cb5ee 11-Dec-2015 Winson Chung <winsonc@google.com> Saving the stack state when you rotate.

- Saving the focus and stack scroll, along with
the history visibility on configuration change.

Change-Id: I788fa06de9af8f7769de26442c804e27daa7e627
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
9a74290a95e27fc6478758f32a681ccdf495f1e4 11-Dec-2015 Winson Chung <winsonc@google.com> Coordinating empty view with the history view.

- Moving the empty view into the RecentsView so
that we can coordinate its animation with the
history button and the task stack (when history
is visible, all of the other views are animated
away, and vice versa)
- Removing unnecessary launch state flag to keep
track of recent task empty state just for deciding
animations for system bar scrims.
- Fixing issue with overview button not dismissing
the history view while it is open
- Fixing issue with swiping the last recent task
away causing both Overview and the docked task
to be dismissed to home

Bug: 26044055
Change-Id: I731fb0f7efb3de7d5f826673479c602b606453e9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
8c38fd32ba9644323fc6fae19220bee9ab0faee5 14-Dec-2015 Winson Chung <winsonc@google.com> Revert "Saving the stack state when you rotate."

This reverts commit bf0be0a8030b91c7e75c23230c1f89a1536aa7eb.

Change-Id: I40b852889980473aea02828b5b0fe29c21951638
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
bf0be0a8030b91c7e75c23230c1f89a1536aa7eb 11-Dec-2015 Winson Chung <winsonc@google.com> Saving the stack state when you rotate.

- Saving the focus and stack scroll, along with
the history visibility on configuration change.

Change-Id: I159d2f0f6c58dac46cb3b16ee4d9e17c426ffb35
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
dd64243d26239e7a71e6c96a722ee58810308a06 05-Dec-2015 Winson <winsonc@google.com> Fixing stack scroll when dismissing tasks.

- Should be adjusting the offset when pulling forward, not the whole
stack scroll. This caused a visual regression where the whole stack
shifted when you dismiss the non-first task.

Change-Id: I93158287a168f407a0a024e0be24f264dd0c2b6e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
aaf33bc2b27fa0c4b59484059434a0fad3187af4 03-Dec-2015 Winson <winsonc@google.com> Fixing crash when the focused task was removed.

- The previous fix didn’t work when the stack changed and the focused
task indices shifted. It’s easier to just keep track of the focused
task so that we can clean it up directly.

Bug: 25975225
Change-Id: I1e345044165d3a0a5eab29fb8c2a3f59df615832
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
a78a8f31d2e7f00cccfbe326f03bcc3d3cb1de77 03-Dec-2015 Winson <winsonc@google.com> Freeform workspace fixes

- Fixing issue with the wrong task view index being calculated for
freeform workspace tasks causing them to be invisible when dragged
to the stack
- Reducing unnecessary detach/reattach calls for freeform tasks
- Adding freeform workspace background to match exit to home animation

Change-Id: I8c00aba377601da92195ef301ba5da1ffb0045c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
0e0d85c23c4174a66a04336d5294cfd9231c819a 03-Dec-2015 Winson <winsonc@google.com> Fixing regression when animating in new views after dismissing task.

- In the old stack, the range of stack task progress was 0..1, but now
it needs to be offset by the stack range.

Change-Id: I21cb5c7c8c3cc3648867626a516de9ab01e704c8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
f0d1c44a59a10707baa0cca8dd377302260710c1 01-Dec-2015 Winson <winsonc@google.com> Adding notion of stack state to the layout.

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

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

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

Change-Id: If7b647349e8bb164ae86fd6dba3f7e974257eb5b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
805578d8483a53c50896a808b0aec1bf152e5216 23-Nov-2015 Winson <winsonc@google.com> Fixing animation jump when dismissing paged task.

Change-Id: Ida07053da59f14f8ef3820e48a7bc73eef15840f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
4993c2f17ec16ed16d3659f0fe7903d2f37e5295 19-Nov-2015 Winson <winsonc@google.com> Initial changes to stack layout to support paging and nonsquare thumbs.

- Moving to a couple piecewise curves to define the various overview
layout states. Added a new state for focus (to be used in follow up
CL) to control paging of overview from the nav bar button. This
allows us to control the visible range of items on the curve, and
to better fit other UI controls around the stack.
- Removed the scaling of the tasks in the stack
- Also refactoring parametric curve to just use the system Path

Change-Id: I4108da77986d86896576e36fa8f31189d6fcb6f3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
a2236f11c650519f20509f62f48fbb371653bc65 14-Nov-2015 Winson <winsonc@google.com> Fixing some Recents landscape issues.

- Tasks were drawing under the navigation in landscape since we did
not account for the nav bar space
- Fixing issue with tiny tasks in landscape
- Fixing issue where pooled views were not being measured or laid out
after resizing.
- Fixing issue where the stack scroll would have out of bounds when
tasks were resized (we animate them into bounds)

Change-Id: Id301dc6891e7ff2692cb040a7df1a5a854ac84a3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
83c1b07a99a6ddd80c30cfc101f3de037a0d215d 09-Nov-2015 Winson <winsonc@google.com> Fixing issue with wrong transition when tasks are offscreen.

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

Bug: 25590404

Change-Id: I25d9530d089a7984fb8c94954a34dd124420755a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
142af42fd683445b23c7d4e3878cd8b1c9d2e693 09-Nov-2015 Winson <winsonc@google.com> Fixing issue with regression with launching focused task.

- Only update the focused task as you scroll if we are in touch
exploration mode.
- Use stack's notion of focused task as the currently focused task may
not have a TaskView and can be scrolled offscreen.

Bug: 25590404

Change-Id: I5ef1b66ec74aa1a3131993ed84905210f1e45f18
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
7af8ea8a7cf18bdd84f51954aeb32ad442f85754 09-Nov-2015 Jorim Jaggi <jjaggi@google.com> When recent changes its layout, update contents

When the window gets resized, we need to synchronize the
views with the model.

Bug: 25584567
Bug: 25584399
Change-Id: I27d6738cb4984ce91ce79671298bcdc0d317c6e1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
986739a65d8f2ae79ab199af400a204f70f5da9e 05-Nov-2015 Winson Chung <winsonc@google.com> Merge "Adding dnd to/from freeform workspaces."
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/TaskStackView.java
5da4347b41b105dc6c6c01bf2810af3ce3013229 05-Nov-2015 Winson <winsonc@google.com> Fixing regression in alt-tab task.

Change-Id: Iee73baded04616ee92046609c37257d1551520fb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
a5e6b36034fa66549dd71601a86397381c6bf02b 03-Nov-2015 Winson <winsonc@google.com> Updating freeform layout to be static at the top of recents.

Change-Id: I5118d03c115080e05447d325097419b9a1c6f8b4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
02a5a6bb9ba05bdf7517de90ede49fb535ea06ca 02-Nov-2015 Wale Ogunwale <ogunwale@google.com> Merge "Added StackId object for checking what features a stack supports"
3797c22ea16e932329ebffdc7e7ce09f9ecd9545 27-Oct-2015 Wale Ogunwale <ogunwale@google.com> Added StackId object for checking what features a stack supports

Helps make the code easier to follow since we are no longer checking
multiple stack ids at various decision points.

Bug: 25282299
Change-Id: Ifa6864a1ef56ce2eca4c94f87a4e0b993de987cd
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
3e9964ffdb199286b59af237208f8800e5d9653f 30-Oct-2015 Winson <winsonc@google.com> Fixing crash when swiping away last task.

Change-Id: I53e8e619b42ac2069aafce66f74281e72fcffa21
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
23afcae84422ac7c9687b17a6193f74264361303 28-Oct-2015 Winson <winsonc@google.com> Fixing touch handling on resized tasks.

- Simplify touch handling just by keeping everything in screen space,
and just map to the curve proportionally to the arc length. This
makes the movement much closer to that of other lists, and prevents
the issue of touches at the top of the stack scrolling along the
curve faster than at other places (and when Recents is resized, this
becomes more of an issue).
- Add basic functionality (disabled) for freeform task workspaces.


Change-Id: Ib3a8ce2caa1437cfc09eaa5b36aff310e29e35f5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
0983e02b920b1c346547e943feaa7a1664fb7583 14-Oct-2015 Winson <winsonc@google.com> Fixing regression with launch target task.

Change-Id: I7e3ed55081a90309290aba290b4acbadb172283d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
3150e574e6e903a17193e0b90433d69c0e20ae4c 24-Oct-2015 Winson <winsonc@google.com> Fixing regression in stack task clipping.

- Removing expensive calls to map coordinates of front task to the tasks
behind it, instead relying on the precalculated task rects that we
already compute on each stack change update. To prevent rounding
issues, the task rects are now float rects.
- Also fixing crash when RecentsActivity starts before the SystemUI
component (only an issue when pushing SysUI apks)

Change-Id: Ia84e9b9d165c0ce171c7fe3797e561ef24157a0a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
f48b585725c63d15f674dbfcba9e805f49a3ba84 13-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Pass target stack id when launching from recents.

This fixes recents to freeform activities animation problem when the
activities where previously in a non-freeform stack. Their stack id
still reports fullscreen, even though they will enter freeform. Because
of this we need to pass the target stack id with the call that creates
animation spec.

Bug: 24814340
Change-Id: Iea589d458c29c3644f351b29f51e8f8cfb5f90e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
42be431c3d129871d257768e185334d49c071ec5 10-Oct-2015 Winson <winsonc@google.com> Tweaking animation after dismissing task.

Change-Id: Ia85e876ec08f4103ff5c3799309cf4731922624f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
88f00ab1df35928ad0aa0c64f75ecad88d86096c 06-Oct-2015 Winson <winsonc@google.com> Cleaning up stack layout.

- Refactoring the layout to remove unused (and confusing) variables,
reducing the number of calculations when updating min/max bounds, and
allow more accurate tracking of stack positions (for attached views).
- Tweaking the transform for single-task stacks so that they behave
better.
- Removing old, unused dismiss-all ui.

Change-Id: I8ec3bf062b0451543bd8a297aa810405f68c84cb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
e6c9073d81822496c038e70361e25b3f1287c2bc 25-Sep-2015 Winson <winsonc@google.com> Incorporating event bus to proxy recents events.

- Initial change to use the event bus by dispatching
package events directly to the TaskStackViews instead
of passing them down the view hierarchy manually.

Change-Id: Ic68df9eeefb79eab8ded84b74264a93719b40643
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
ec417e4cc082e1734e7184c51762d21a430c0b38 29-Sep-2015 Winson <winsonc@google.com> Update task bounds for recents enter animation.

- Follow up to ag/778718, with the resources split up, we can now update
the task bounds before starting recents.
- Also removing the multi-window check for transitions in/out of recents

Change-Id: Id4a6d4cfa9d98ca3ecf5f237573bf240f232de54
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
dab26488b475bd49cc0e2aa5cac11e5e52f84764 25-Sep-2015 Winson <winsonc@google.com> Removing unused debug overlay code.

Change-Id: I80d98b38001ca37bf5017b1631038fb574c324af
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
0fa656b95256b7ad6d3dce287107a79ace3abdb8 01-Sep-2015 Chong Zhang <chz@google.com> Allow apps to pass in launch bounds when moving/starting a task

Pass in bounds via ActivityOptions for moveTaskToFront and
startActivityFromRecents. Allow bounds to be overriden by rects
in starting intents.

Set bounds to null in RecentsView for full screen layout.

Change-Id: I0ff79fd75068f4ba82d5e2c0a21881fabebdadb8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
1df9c3c6bd985cf5819b6c1e9fb8ff096950dfa8 07-Aug-2015 Winson <winsonc@google.com> Pushing the startActivity before the calls to remove task.

- It appears that there is contention between startActivityAsUser() and
removeTask() (called on two separate threads) which can cause jank when
a user removes all the tasks from their recents list. This CL ensures
that startActivityAsUser() is always run first so it is not blocked
by the other call (which should be able to run in the background
uninterrupted).

Bug: 22760556
Change-Id: I7564a2f0e43414686419d3657379bbd0ca6b4152
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
83ea6f71ebf666cbf708280425cb43490ab989c9 17-Jun-2015 Winson Chung <winsonc@google.com> Fixing a few accessibility issues.

- Fixing issue with accessibility focus being incorrect when animating from home
- Fixing issue with accessibility focus being reset too aggressively when the
list is scrolled
- Ensuring that recents handles forward/backwards scrolling

Bug: 19997561
Change-Id: I042666775862f4a20e8f22960e1f34e45fc5664e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
daa4a78682dfc838602f870aabb7fd003c919477 02-Jun-2015 Winson Chung <winsonc@google.com> Don't focus view for invalid task index.

Bug: 21322861
Change-Id: I7b8397d18b488bd8f459e578b64d6e82e4f1437d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
d70f58c28132591e8038d143c0ce14ad9d35c780 30-Mar-2015 Winson Chung <winsonc@google.com> Prevent the dismiss icon from fading when multistack debugging is enabled.

Change-Id: I52db4222391cb7d922b9778cbc10a269451d10c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
911f400c2eab4eb15e0491a2affd918901867d2e 13-Feb-2015 Winson Chung <winsonc@google.com> Fixing Recents regressions.

- Fixes crash when alt-tabbing recents
- Fixes issue with recents not showing after rotating
- Fixes flash when task view header is focused

Bugs: 19382697, 19343393

Change-Id: Ida0984dba1c76526298eb4886f96835fdf871b9f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
fc33cdf71dc58652cb15b7d2f1143affff404fc9 03-Dec-2014 Winson Chung <winsonc@google.com> Fix crash when user is both scrolling and tabbing through Recents. (Bug 18552776)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
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/TaskStackView.java
4ff2526ef8d168d3c591f1a19de4dca76745c157 12-Nov-2014 Winson Chung <winsonc@google.com> Merge "Adding null checks for unset stack. (Bug 18329447)" into lmp-mr1-dev
4ee0eb3c468d0b0e17a90298f7991b147f8927e1 12-Nov-2014 Winson Chung <winsonc@google.com> Adding null checks for unset stack. (Bug 18329447)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
147de3a9766e205af068d1462beaea7a4a9fb9bc 12-Nov-2014 Winson Chung <winsonc@google.com> Merge "Preload only visible thumbnails and task icons. (Bug 17672056, Bug 18291345)" into lmp-mr1-dev
a91c293be26b2deb5434eb827a800fa0c80dc92c 08-Nov-2014 Winson Chung <winsonc@google.com> Preload only visible thumbnails and task icons. (Bug 17672056, Bug 18291345)

This change ensures that only the number of visible thumbnails and task icons are
loaded to minimize the delay required when initializing the stack without the
cache. In addition, this change reduces the number of times that the task stack
is recomposed when launching recents (in addition to the number of calls to
getRecentTasks()).

There is also a fix to a regression where the exit trigger is not run when the
task stack view is empty.

Change-Id: I75834ff3c57c0e5dad6252b982f71c6e740071f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
7ae4b7e1965951ac74fc10204bb238ff174b52c6 07-Nov-2014 Winson Chung <winsonc@google.com> Fixing Recents crash when resetting focus of TaskView already returned to the pool.

Change-Id: Iee789e4e726d5f035ec518f4fec444afecc2bbf2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
04400672962d2e12132f9465928cbf7615c147c4 17-Oct-2014 Winson Chung <winsonc@google.com> Ensuring that user-specific Recent tasks are removed. (Bug 18036610)

- Also ensuring that the package event logic support multiple task stacks.

Change-Id: Ib08ab70dba1d3f9e5aa0a92f3c5e5382567c96ba
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
ee44595bd53c4f3f6a2eeb664ea96a268636c041 09-Sep-2014 Winson Chung <winsonc@google.com> Announcing the task list as you scroll. (Bug 15699050)

Change-Id: I7453f41a2c87241e538cdc7281cdc20a8710ebbb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
78cc96af8ca9ef4f2edccbb1b5d494b3a357782d 12-Aug-2014 Winson Chung <winsonc@google.com> Anchoring the front most task to make the dismiss animation more stable. (Bug 16939699)

Change-Id: I49aa14bbc7fdb2fb0884a8255af385dbbbe656f8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
e41ab847a5c12cb7a6a5b2d0f40e101bc9ea6b59 08-Aug-2014 Winson Chung <winsonc@google.com> Fixing regression with scrolling and launching an out-of-view task. (Bug 16875419)

Change-Id: Ib64e18f9a0f1de02de28a29251dd1d159d5d89ee
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
b99b18e78e8aa9a27596c13ea05a188ab43c7e12 05-Aug-2014 Winson Chung <winsonc@google.com> Fixing scrolling regression with layout changes.

Change-Id: Ic440d147ca13bf13d7f311b6d9876e3c02d4f189
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
2b92253021f6b117786ed445a42e19df9916d619 25-Jul-2014 Winson Chung <winsonc@google.com> Announcing when a task is dismissed (for accessibility). (Bug 9181212)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
a4cc966050aeb406dbf3d9d262e281c40826e354 25-Jul-2014 Winson Chung <winsonc@google.com> Adding content description for task view buttons.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
d6c3db5e5a0a4087b46dd2cdac8e7f90695dd8b8 23-Jul-2014 Winson Chung <winsonc@google.com> Fixing animation when dismissing certain tasks.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.java
4fc90de51b58771c079f2e0d51d15abd28a5015b 17-Jul-2014 Winson Chung <winsonc@google.com> Fixing regression in flinging not updating the stack. (Bug 16371020)

Change-Id: I6397c854dc0d305206eb3b48de855c58cf2740ea
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
a433fa9c17772f563163ff7db177d091d6aebd5b 09-Jul-2014 Winson Chung <winsonc@google.com> Updating task grouping logic.

- More fixes for graphical glitches when picking up task views.

Change-Id: I93fab1c2a9cc727c68d8f8fbd506bedaf681715f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
f1fbd77cf057e43926f9a0347692611386d09f40 25-Jun-2014 Winson Chung <winsonc@google.com> Use Task last active time to ensure we don't reload items for the cache.

Change-Id: I29206de0453f5d7d1370b27a27ef6d3594eff8e7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
8e548f7025ce930810479a8e628c325d09557fa3 24-Jun-2014 Winson Chung <winsonc@google.com> Refactoring Recents layout into an xml.

- Hiding the search bar when entering filtering mode

Change-Id: Ifce8429d6f331406e9688c96cd978f6900879c96
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
cdbbb7e33033d7ae368aa5b7007ec2b20ebdaff1 24-Jun-2014 Winson Chung <winsonc@google.com> Refactoring RecentsActivity and TaskStackViewTouchHandler.

- Pulling out logic related to system bar scrims, and touch handlers to their own classes
- Pulling out shadow reflection code out of RecentsActivity
- Ensuring that we poke the doze trigger when scrolling
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
d543c1bea4d227470f5b6d6535b70e5090064c9a 24-Jun-2014 Winson Chung <winsonc@google.com> Ensuring that we fire the right intent when going home from Recents.

- Refactoring RecentsAppWidgetHost
- Removing some references to the RecentsActivity from the RecentsPackageMonitor
- Fixing the memory leak related to long references to activities
- Working around blank screen when going home from Recents

Change-Id: I7b0ad219b8da197795864a3b90fd02f3a3c1a4ef
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
653b0d6a5938f1eb1e656a63f84f9b3aab8163ab 20-Jun-2014 Winson Chung <winsonc@google.com> Ensuring that we unload all resources after a transition.

- Fixed case where we weren't deleting task data after it was removed via a package event
- Reducing time for dismiss button to appear
- Working around animation issue where we appear to see frames before the animation starts (perhaps it is posted now?)

Change-Id: I1dc0e203485f517e7384b0f7ee08979bfd286013
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
12758423770455f75fede0cb47d743ea18640f2f 18-Jun-2014 Winson Chung <winsonc@google.com> Merge "Re-enabling task based filtering in Recents using package name."
e0e45bc26d02e2c6ec505ea006e7487f3a5bddc5 18-Jun-2014 Winson Chung <winsonc@google.com> Re-enabling task based filtering in Recents using package name.

- Also front-loading creating the new thumbnail when animating up from Recents
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
cd23c849afefe58b213d5abb1c581f15d3ad543a 30-May-2014 Winson Chung <winsonc@google.com> Updating paddings to design spec.

Change-Id: I11286937216494304c38c87280bc69ef9522c596
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
069707ed6fd1399ca90c57741960884773d3cc69 30-May-2014 Winson Chung <winsonc@google.com> Merge "Ensuring that the second card is maximally visible when you go into recents." into lmp-preview-dev
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/TaskStackView.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/TaskStackView.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/TaskStackView.java
4f70dbbc656e0affd0b480c7eceb888449cb6348 28-May-2014 Winson Chung <winsonc@google.com> Ensuring that the second card is maximally visible when you go into recents.

Change-Id: Ia13c56941bfc47de341dd57501d156e925a3b2fc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
47a3e65acc35cd3061bf3867e8b20753870fd892 22-May-2014 Winson Chung <winsonc@google.com> Small perf tweaks.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
5393dff555641f5666573952498e27c90fd3edca 08-May-2014 Winson Chung <winsonc@google.com> Removing the old tasks on launching recents task if they trigger a new task.

- Only kill processes when removing tasks that are not started as documents
- Tweaking thumbnail animation
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
f7bca430d9356c26d6df222d2c90bc7668262f6b 01-May-2014 Winson Chung <winsonc@winsonc-macpro.mtv.corp.google.com> Adding ability to load a search widget into Recents.

Change-Id: Ie17d9b9a47c979774b39a37e87f75d9dadc79ad9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
0553e12bc9b10b65703e2bf96e6d74906b5fea79 01-May-2014 Winson Chung <winsonc@google.com> Disable Filtering.

Change-Id: I5c3aaaead7883b639ba24b28c04c1cafec0275c4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.java
ecd9b3031c9a322bd69380eae2810d53839e8f64 17-Apr-2014 Winson Chung <winsonc@google.com> Initial changes to add search bar.

- Scaling touch overscroll

Change-Id: Iee0523ca32efaae3491cbf5dbf3ea2e388f9d644
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
b44c24fb50845dfbc1f49e78085cf5e01a32067f 10-Apr-2014 Winson Chung <winsonc@google.com> Removing duplicated code in Recents

- Also disabling the animation on the first task view when animating from home
- Fixing a case where filtered and non-filtered state can be exactly the same

Change-Id: I01665391fc0b0745a89e404b12280d3d919aec83
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
6736905dc0e10689f7c63f6da43b31325caf966a 08-Apr-2014 Winson Chung <winsonc@google.com> Prevent Recents from lingering after screen-off.

- Fixing issue with landscape view not spanning the screen
- Simplifying the way we erase bitmaps

Change-Id: Ifc17c4c8f46caa8d3e42607a68bd94fed0c63543
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
a10370fc2eb8eb95631592160c5f6281b9d75722 02-Apr-2014 Winson Chung <winsonc@google.com> Adding system service proxy to help test UI/performance.

Change-Id: I29851ff7b7ced0a69b041e5aa5c9070fc4ab43a5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java
bb5278b663a0a5b05bf7f8d2dfe27f1aa5f01142 18-Mar-2014 Winson Chung <winsonc@google.com> Fixing issue with cards being rendered under the nav bar after a configuration change due to improperly setting the system insets.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.java
7124390f9d03fd451a0291eca679bfc901e84b95 15-Mar-2014 Winson Chung <winsonc@google.com> Fixing crash when ActivityManager does not have a proper thumbnail

- Fixing issue with hw layers ref count not properly being incremented and decremented
- Preventing message handler from keeping a strong ref to the RecentsService
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskStackView.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/TaskStackView.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/TaskStackView.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/TaskStackView.java