History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0553cbcf3654734438fa8f2fc88b9c6f2578daa9 17-May-2017 Winson Chung <winsonc@google.com> Merge "Updating Overview to work with PiP" into oc-dev
34795e31971b5495fcf91c1063dcb689957e2c9f 12-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize hot launching recents

Rearrange how we generate the transition specs, which involves
creating a thumbnail on the mainthread (about 10ms on large
devices): First, we put launching the activity onto a handler
thread (with default priority), to free up the main thread. Then,
we immediately start generating the thumbnail such that when the
future calls us we have the generated spec already handy.

For that we need to be able to supply a specs future into
ActivityOptions, to avoid race conditions. Furthermore we need to
make sure not to call into WM while creating specs, to avoid WM
lock contention.

Test: App -> Recents -> Same app, inspect app transition logs
Test: Double tap recents for quick switching

Bug: 32668632
Change-Id: I6001e29145f8e56deb9c4ead46c53c87c9191436
Merged-In: Ic6ec65c2560f67cade3b5ddde9f79ee13e9ba32c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
b7035f3a4738efdf40dc0ad06f19303ffcd784f7 19-Jan-2017 Matthew Ng <ngmatthew@google.com> Added open, dismiss and split screen as custom accessibility actions

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

Test: manual - used talkback with running all three actions in
landscape and portrait
Fixes: 29360763
Change-Id: Ie0bec99b849c5754d45577c66b17fa6b0c7e985c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
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
9577cb827a7e2515ac5f70101679f66c84d341d8 29-Dec-2016 Manu Cornet <manucornet@google.com> 2D Recents: use a slightly darker scrim background am: 48de4e6afe
am: bec5fee38d

Change-Id: Id67d6d2cbc81588dd6163cfbc25d6ff9f073e08a
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/RecentsView.java
48de4e6afeee904cddb4327910b80572c3e6365b 21-Dec-2016 Manu Cornet <manucornet@google.com> 2D Recents: use a slightly darker scrim background

Bug: 32101881
Test: Checked recents layout on local sw600dp device
Change-Id: Ic5ae1c1c805896a4cd8d6c3473fa2c693e94d304
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
b7164cd0d108d5ab047aeb6a2a9de3a419fcd89e 26-Oct-2016 Matthew Ng <ngmatthew@google.com> Removed old stack member variable in RecentsView

Since mTaskStackView contains and correctly maintains a task stack,
there is no need for mStack in RecentsView as it does not maintain
any task removal states.

Bug: 32414287
Test: manual - ran through multiple overview scenarios
Change-Id: I1b744fbc4cd7bb5ed382f55157fa7b5446e20301
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
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/RecentsView.java
c54c748ede08ee79dee2397d2e0820a4067ab3aa 04-Aug-2016 Winson <winsonc@google.com> Ensuring that the dock state is opposite of the nav bar.

- The nav bar now moves to follow a specific edge of the device, so we
should always choose the opposite end of the screen to ensure a valid
drop target is accessible.

Bug: 30548794
Change-Id: Icac8adfb167a4115377d42ddd897ac94e02077a3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
b34b7deb1e5dacab2b3dd54dfd63918ce139083f 20-Jul-2016 Teng-Hui Zhu <ztenghui@google.com> Use a round rect background drawable for "clear all"

Such that we can remove the outline clip, which is triggering a new shader
compilation when "clear all" show up the first time.

b/28795315

Change-Id: Ib3c4283e46c932090ec97233a5551da7b359c8c8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
b677bcbee460a3246872d8090b64db1d8ec9c276 19-Apr-2016 Winson <winsonc@google.com> Hiding clear-all button on drag start.

Bug: 27702186
Change-Id: Ibec23fdb1ce4853f52a449cbe6d8c6454f0b027c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
99ef458ff1b79c93a8dfdc289fb6ff80fd7aacf6 19-Apr-2016 Winson <winsonc@google.com> Adding hint text for drop targets.

Bug: 28192178
Change-Id: Id7be5129488622b56082d2dfa328b751311cabd7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
f21c3dace89b168f5e5e4e96532d977b8b0a1cf5 14-Apr-2016 Winson <winsonc@google.com> Fixing crash.

b/28179361

Change-Id: I5c6049efcd0c43f3b0e595648fd331c2a82d4d73
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
29379ec859bf7118dec9f3248c63ee369218ad6b 12-Apr-2016 Jorim Jaggi <jjaggi@google.com> TRON refinements for multi-window

Bug: 26013430
Change-Id: I89b139b4ca3e7b6a06d8b5b351d67ffac240f73f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
24251b68f15c503a88bfdcd2faeb34e50a7d6747 05-Apr-2016 Winson <winsonc@google.com> Fixing tiny issue with empty state graphic not being centered correctly.

- The centering is based on the size not including insets, so it should
be offset by the top/left insets.

Bug: 28005632
Change-Id: I114bcaadddb0d4777d4c013097c0d1a20e4fab0b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
47c78f93c2cf9fd62b1c32ceb9717285f3f26b3b 01-Apr-2016 Winson <winsonc@google.com> Fixing small regression in clear-all button and scrim alpha animation.

Bug: 27702186
Change-Id: Ie26fa7e2cd73fe8e5e6800e47859ac3bbd763fe4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
198523763af21c49d1d2c71fb65c1f7da356712b 31-Mar-2016 Winson <winsonc@google.com> Putting clear-all button on the right to match design.

- Moving Clear-all button on drop-target change
- Fixing issue with end-margin on title

Change-Id: I589425980cd4503275b33a555f3dcb8391ba2695
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
e8a4eff9d919481f021903be8389d4b6e93d2ca5 29-Mar-2016 Winson <winsonc@google.com> Moving the background to the window.

- Make sure to remove the background from the DecorView while
resizing, so we don't draw it twice.

Bug: 27869246
Change-Id: I7f830e5c825749fdf2b5bbda7af92239702b70ad
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
c69bd2246f4ec5000591fdc381f84cd90be85b7f 15-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #6

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

Bug: 27607141
Change-Id: I7d0c75b88775ab467927b8cf94303ddb60222e7f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
192086eb8aff3fb873a7e03ade0b81652aacf25f 11-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #1

- When the docking transition is happening, defer updating
the bounds of the home stack until the transition is done.
This is to preserve the scrim which is drawn in the recents
activity.
- Use the PROLONG_AT_START infrastructure to hide the task
in recents when starting the app transition.
- When recents finally get resized at the end of the transition,
reset it's draw state so we don't move the old surface around,
and the new surface gets drawn at the new position, to avoid
flickering.
- Remove hack around not layouting docked divider if it's not
visible, it's not needed anymore and resulted in a wrong
initial position.
- Fix animation selection for docked stack divider.
- Make sure win.moved() always gets called.

Bug: 27607141
Change-Id: I76c35f09461f044a90e2c88335008284b5839cc0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
196e861b2ac4b8a55661f05bd2d03b2494102848 15-Mar-2016 Winson <winsonc@google.com> Updating empty state graphic.

Change-Id: I7fb1f704dfbf0a300e00805d75c08b2fdabf7260
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
91b225d41f0522c6c106fe2df106ecd5c1f87df9 17-Feb-2016 Winson <winsonc@google.com> Disabling history

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

Change-Id: Ib68495a2e3b34f92a4971dd6b32b7bc6c616ac23
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
e161f08e98fdbe6fe83f70ffa1ea11142a027ebe 05-Feb-2016 Jorim Jaggi <jjaggi@google.com> Multi-window optimizations #3

- Make sure divider is pushing frames only if necessary
- When starting recents while docking, make sure no unnecessary
animations are played to reduce system load.

Change-Id: I536f009aef7282ed85dde79b853aeae62644f3e3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
f6e9228b8a97603d3ceb8f0d61e8d87cf19bd21f 27-Jan-2016 Chris Wren <cwren@android.com> move framework metrics over to new proto

Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
c8a4cdc067d3e3ed2c94b481d446e5ed75cfdb73 19-Jan-2016 Winson <winsonc@google.com> Fix regression with drop targets not being visible.

- This happened because the RecentsView had the same priority as the
touch handler, which updates the visible dock states, which RV uses
to determine what to draw, resulting in the first time after rotation
to not show the right targets. The touch handler should now have a
higher priority than the view that depends on it.

Change-Id: I9441e34f677fe105757c237db0f6970e7cf8203b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
f298e908b97a5a56ccb52d9f015e5408fe523af9 18-Jan-2016 Filip Gruszczynski <gruszczy@google.com> Enable enter animation when docking by dragging from recents.

This requires further work on the sysui side (the view disappears
before the animation starts), but it shows that existing
infrastructure on the WMS side is sufficient.

Bug: 24913915
Change-Id: I7ce20fdd21ee76db4720a3d0fefdfa221b0e96bf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
036693cf71f8c4d2dd0dfb57ad05e8827ed6df60 15-Jan-2016 Winson <winsonc@google.com> Preventing dock target from showing for single tasks.

Change-Id: I2a73c085e3777ac79f2846e1ba59f7c65bc3f9d0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
b4f4dc4e4db5fd65cd457eecd3c98cfa11367615 08-Jan-2016 Winson Chung <winsonc@google.com> Merge "Refactoring and unifying TaskView animations."
3b8e5a1c951c5598a367e2edfdb23d2da186611f 08-Jan-2016 Winson Chung <winsonc@google.com> Merge "Moving more callbacks to animated events."
55e20d502f3037920de6598e2350ba9c35216589 07-Jan-2016 Winson <winsonc@google.com> Removing workaround causing full view inflation.

Bug: 26420766

Change-Id: I0bb0eeada5002460de47fe4b3e23bc8a8d6e751d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
d8b1d63f96580fe961e1751e7b4f56c90c1e0a76 05-Jan-2016 Winson <winsonc@google.com> Fixing issue with exit animation due to incorrect visibility state.

- This CL ensures that only Recents updates the SysUI visibility state
for itself, ensuring that the visibility state reflects the state in
Recents, and allows us to skip unnecessary work to close system
dialogs when it is not required.

Bug: 26390248
Change-Id: Ib6301a8300cc3da6da75fcbbceceb0e1da3beab4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
9756755db76aeda2065322aa3c26e1a19578d45f 16-Dec-2015 Winson Chung <winsonc@google.com> Fixing merge issue from ag/830529

- A whole slew of changes didn't make that CL

Bug: 26043233
Change-Id: I470005f1afbf4ca23e6cfe40a497c5c67bb794aa
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
fe412b551bcfddabcaf5f4bf3c6c7ce4dd38c72c 12-Dec-2015 Jorim Jaggi <jjaggi@google.com> Merge "Add multi-window entry points logging"
92de6b63819d7af4a93f1e1da33e89d453a0ad65 10-Dec-2015 Jorim Jaggi <jjaggi@google.com> Add multi-window entry points logging

Bug: 26116313
Change-Id: I159ca53857d382cb74ef8e49f7955946ccea93ca
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
fca2a63f8b8492559809434a5c250962042b0c4a 11-Dec-2015 Winson Chung <winsonc@google.com> Temporarily workaround rendering issues.

- Disable reusing old stack view tasks

Bug: 25998134
Change-Id: Idf74f9b371a9ae6d89f5752708ac6adb675b55a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
0ca88260694262928bf4b980667e82ab27e55572 08-Dec-2015 Jorim Jaggi <jjaggi@google.com> Reset recents translation when launching

So we don't end up with empty content after having cancelled
the drag in gesture.

Change-Id: If00c526806816df58c751cd715e0575dbb7adf17
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
8fccfe28145f59f6620e37b7f34190bca4c4dbcd 04-Dec-2015 Jorim Jaggi <jjaggi@google.com> Make it harder to dismiss recents when dragging up

Change-Id: I5883f754125e978ebac470a2c72a1dc13b05b052
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
870ab5a15cf8dfff16148868c0397445087e8462 03-Dec-2015 Jorim Jaggi <jjaggi@google.com> Drag up gesture improvements

- Use current velocity of finger for the animation, makes it feel
smoother.
- When flinging downwards, maximize the docked stack again to cancel
the gesture.

Change-Id: I284c851e2e418d21e890b9dfe983cfe63300fe10
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
1c8a1d7becb228c709c5c84549a68816434cf35d 03-Dec-2015 Winson Chung <winsonc@google.com> Merge "Adding workaround to prevent flicker in Recents when resizing."
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/RecentsView.java
160f4c0d5c41c1e8e3de6687e7da4e9be6c9c445 03-Dec-2015 Winson <winsonc@google.com> Temporary workaround for b/25980198

Change-Id: I467758ad45c499d72b1756a7e4f5c379089b3049
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
54b1a6deeb77011ee658d11ac1924a47b8ac8cad 25-Nov-2015 Jorim Jaggi <jjaggi@google.com> Crash when exception in event bus handler happens

Also fixes another crash when dragging in recents.

Change-Id: I24eff235adc63190369a7e054e65c55fdf594931
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
dd98d41e3a65b3bcb37007ea5b29371cf013f563 19-Nov-2015 Jorim Jaggi <jjaggi@google.com> Add gesture to drag in recents from navigation bar

Change-Id: I672ed08f1019835891411b87e2d0de0290defff7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
29deb334cd895414e5bd43fabbc9532f9724bcf0 09-Nov-2015 Jorim Jaggi <jjaggi@google.com> Reset mAppTransitionAnimationSpecs so they are only used once

Because we didn't reset it after sending it to window manager,
they were used again in the next transition, leading to a
wrong animation.

Also fix a bug where we waited forever because
getAppTransitionAnimationSpecs returned null.

Bug: 25583739
Change-Id: Ifcccf2d3cee649f66b4ded1d92c059acfa02ba5b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
13d30660ef6da2d924e4fc943ccd187767ee0cd2 07-Nov-2015 Winson <winsonc@google.com> Fixing issue with canceling the thumbnail in addition to the app window.

Bug: 25392381
Change-Id: Ib507f53bcd2aad4771c2546f5e8bfe771769e9a2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
2f7d292596bdba15e441046e3a2e047f37d6ea59 29-Oct-2015 Jorim Jaggi <jjaggi@google.com> Supply app transition specs with a future

Because we retain activity surfaces now, the app transition specs
which were calculated/generated after the onPause() call when going
from recents -> app were too slow. Instead, supply a cross-process
future, which gets fetched when the window manager is about to be
ready to execute the app transition. In practice, this still gets
executed immediately after the onPause call.

If we have a retained surface, this adds some latency, but since we
absolutely need the specs to execute the transition, we have that
latency no matter where exactly we generate the specs.

If we don't have a retained surface, the specs are not calculated on
the critical path, so it's faster.

Bug: 19940527
Change-Id: I80d2c6f6b3a6568a70339619ecefbc3bd8409bd8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
14b4e57c1ba427f07186dbff8491242162028c71 04-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Remove blink during the freeform -> recents transition.

We achieve the desired result by prolonging the last frame of the
animation until recents tells that it drew its content. The CL also
includes cleanup that moves code that depends heavily on WindowState
fields into that class.

Bug: 24913782
Change-Id: I5ee5b18504dd4a86c24033d17eca21cd31936bca
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
c28098f69b8ba5d3039ecd0fa154e880f4613843 30-Oct-2015 Winson <winsonc@google.com> Add ability to cancel task window transitions.

Bug: 25392381

Change-Id: I45f48edc21c058df0e4c22ceaf7e9aef5899a29c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
1a5203dfd5264104db018b8a09d50075b1af9b2d 30-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Hide recents during freeform to recents animation.

Bug: 24913782
Change-Id: I6a5d3a638640571a902e095c4c0650b88eea0fb6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
980606d01b1746ff93c7859580ae89ddcd291300 27-Oct-2015 Winson Chung <winsonc@google.com> Merge "Refactoring the focus state to be independent of view focus."
75b2597e5826662c1740d6f3b81966a9e6a9e7b4 21-Oct-2015 Jorim Jaggi <jjaggi@google.com> Add long press on recents to dock top most task

- Change the gesture to unpin a locked task into long pressing
the back button.
- When long pressing recents, dock top most task.

Change-Id: I1386151e781f4034cfb97d3c8d46c709d19fe779
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
882072baacaee4ecd43f0209b691a9af746462f2 12-Oct-2015 Winson <winsonc@google.com> Allowing multiple preferred drag regions for tablets.

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

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

Change-Id: Idf99c88fdb216823637e2436e54b392b661b9849
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
98cbceeda79a98cd68717b59d3fdb4ecfdbc7a00 26-Sep-2015 Winson Chung <winsonc@google.com> Merge "Adding debug ui to dock windows."
b1bbaedb1a02fb74dd1f85977783e9cb446331e4 24-Sep-2015 Winson <winsonc@google.com> Adding debug ui to dock windows.

Change-Id: I9cd51763ef6089eabba734bf3bf9f52ddf540069
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
170192ab55812bd25124cf602042477c3ea042d1 17-Aug-2015 Filip Gruszczynski <gruszczy@google.com> Improve animating from recents to multi window state.

Previously all windows would start animating from a single thumbnail
that was clicked. Now each animates from its thumbnail, including
properly animating the thumbnail header. This involves System UI
providing information about the thumbnail setup and app transition code
using it to setup each individual animation.

Change-Id: I6f45c94af6bcbf6898b8ed757d83505af99ed6b1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
af3bb6936786a8c14ac01da3d81d196d17b68b96 04-Jun-2015 Winson Chung <winsonc@google.com> Refactoring recents search bar widget logic.

Bug: 19062975

Change-Id: I303710598675aeebca8f34ac57de6249462ec033
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
6e18e00a249e4cc27cb590901a3cdd4718218b04 03-Jun-2015 Jorim Jaggi <jjaggi@google.com> Speed up recents -> app #2

Creating the thumbnail of the header for the transition was on the
critical path for starting the activity. This moves it off this path
by doing it after onPause().

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

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

Change-Id: I59343a92726665f72215a0699c52ead76e78a4b3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
e1e20e11a758ee82753e8052773664823ca74746 02-Jun-2015 Winson Chung <winsonc@google.com> Fixing case where we were not preloading tasks correctly.

- Should use the actual isTopTaskHome check when preloading.

Bug: 21516523
Bug: 20882957

Change-Id: I60cf1e97f7704828426f72a45329c8c7b962a78c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
5ac56502e3babcd43fd32bd0d4a295466b076500 12-May-2015 Riley Andrews <riandrews@google.com> Make recents use immutable ashmem bitmaps for things it frequently passes across binder.

Bug 21037890
Change-Id: Ieb29be3ff68f3db3f07df02f171325ed77915fdf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
aee097c5802adcd3d52028fbd1ad3ab2cf92e46b 03-Apr-2015 Winson Chung <winsonc@google.com> Ensuring that we reload a widget that was updated in another orientation.

Bug: 20044969
Change-Id: Iecdbe01d06c44653781ddef749e319f6b5b8afa1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
8aa7d161a11965cd75eace74e1bcf15421bbea18 20-Mar-2015 Skuhne <skuhne@google.com> Adding menu to arrange one or two tasks and arrange them accordingly

Added dialog with buttons for task arrangement upon click on decorator
icon.

BUG: 19492945,19868830,19656507

Change-Id: Ie31e2788efb097db1c1f54f0ef1b2fda1ccc71ec
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
93847da2c2ad8ecd2862bb05b6111121acd25407 03-Feb-2015 Winson Chung <winsonc@google.com> Ensuring that the list of stack views are mutable. (Bug 19245963)

Change-Id: I5a298bf389d8756492cce2777f127fc214f6d6be
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
2cf8b221fca18dbee3703388ae7970491c86ec7f 20-Jan-2015 Winson Chung <winsonc@google.com> Cherry picking recents fixes to screen pinning and visibility.

Screen pinning fix - 98e8f7ac5e75a47abaa0061aab343b9f06770258
Visibility fix - 5675f018681faefeb50c9003bc9e02cd9ce5659d

Bug 18986736, 18802531

Change-Id: Ia37dbcd4f82e80f47f9c0686ed2ad4f534f946a7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
e494c382c0caf35f225dfb55f0e3b992c14d79f5 17-Dec-2014 Winson Chung <winsonc@google.com> Bug 18784289: Fix issue with transition animation callback.

This is a regression where we changed the source view for the transition
to dummy view, but since it was not yet attached, it could not get the
handler implicitly to post the onAnimationCompleted callback. This CL
modifies these ActivityOption transitions to also take an explicit
handler to process the callback on.

Bug: 18784289

Change-Id: I73f745c33b9f8aed91f8d9cd975f37cf7e4128f1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
740c3ac782675d190941b2ab1905e56f246c1b11 13-Nov-2014 Winson Chung <winsonc@google.com> Initial changes to add callback on task stack changes. (Bug 17672056, Bug 18291345)

Add a listener to listen for changes in the Task stacks to preload thumbnails from the
system. In addition, reduce the amount of synchronous work done in activity creation
and first measure/layout passes.

Change-Id: I8bd9155d7a05e89c190a20429acff69a17808208
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
975590f22916e184204678758bb339c1d2b6b57f 07-Nov-2014 Jason Monk <jmonk@google.com> Merge "Material design for screen pinning cling" into lmp-mr1-dev
18f99d91349a4f5ce55e22ed33f1f57eb1b0297b 11-Sep-2014 Jason Monk <jmonk@google.com> Material design for screen pinning cling

Switching from a dialog to a cling-like view to be more material.
Also moving it into SysUI as it highlights the buttons in nav bar.
This will be triggered directly from recents, but from apps it
will be triggered by the PhoneStatusBar. In the case that apps
trigger the request, there will be a 'no thanks' button so that
users can refuse.

Bug: 16957435
Change-Id: Ie880f82c66f4b2be98283ed3fa789703c4bd7ed5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
e0325fe956c2a33b79added92f0e53be2246506a 06-Nov-2014 Winson Chung <winsonc@google.com> Merge "Don't reload the layout every time we enter Recents. (Bug 18160176)" into lmp-mr1-dev
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/RecentsView.java
d54b578e47fb410c776bb3a4272c2c523153f657 24-Oct-2014 Wale Ogunwale <ogunwale@google.com> Fix issue #17305377: Don't kill process if it still has tasks.

We previously killed a process when one of its task was
swiped away in the recents UI. This had negative performance
implications for apps with multiple tasks in recents. Now we
will only kill the process if there are no more tasks associated
with it.

Changed also removes the need for the
ActivityManager.REMOVE_TASK_KILL_PROCESS since ActivityManager
will now only kill a task process if it process has no out
standing tasks.

Bug: 17305377
Change-Id: Ibc39bb328d13c7eab05c04798c2f14887923d9d4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
f7dd908171a12f6a3f91575ac9fd1ef8ba7fefe6 19-Sep-2014 Winson Chung <winsonc@google.com> Merge "Handling broader set of exceptions when startingActivity from Recents. (Bug 17481968)" into lmp-dev
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/RecentsView.java
4e96eb709d2f1b6b1cd233c8a99f6706fde70bb1 17-Sep-2014 Winson Chung <winsonc@google.com> Handling broader set of exceptions when startingActivity from Recents. (Bug 17481968)

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

Change-Id: Ic104876c5fe16997eca00e0a2b3d8644c927120c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
02d4927082d80e1f49f4c6dcaf615376cdf3f3d6 29-Aug-2014 Winson Chung <winsonc@google.com> Workaround to prevent starting the same task from Recents twice. (Bug 17322903)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.java
4610545dd28ebf316704e119572521e97dbbd6bd 26-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #16311398: Limit number of documents a process can open" into lmp-dev
89ad456ea49cb62615ebdcac83a2515743bbe5fa 25-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16311398: Limit number of documents a process can open

In application processes, monitor for when we start getting close
to the Dalvik heap limit, and ask the activity manager to try to
prune old activity instances in that case.

Add an explicit API for apps to ask that they have their own
activity instances cleaned up, if they want.

Fix some bugs in launching activities that were not correctly
applying the "multi task" behavior in the appropriate situations
of document-centric recents.

Clean up the activity manager's process removal code to all share
a common path.

Add a new "Spam" option to ActivityTests, which continually creates
new tasks, checking that the activity manager will now prune old
tasks rather than letting the app run out of RAM.

And while I was was doing this, I found problems with the path
for bringing an empty task to the foreground -- it could make
a new task instead of re-starting the root activity in the
existing task. This is fixed, and some code in the recents
UI for working around the bug is removed.

And as long as I am doing that, we now have nice hooks in to
the activity manager for AppTask to give some APIs for better
managing the task, so add those along with more tests for these
APIs in ActivityTests.

We should look at also having the activity manager try to prune
old tasks when it sees app processes being killed, to better balance
memory use across multiple processes when some processes may host
many documents. That however is for another CL...

Change-Id: I2bb81c3f92819350c868c7a7470b35817eb9bea9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
94a07acba7e43028e98da1082b5b8b1d95667a6c 07-Aug-2014 Kenny Guy <kennyguy@google.com> Launch application details for correct profile from recents.

Bug: 16681400
Change-Id: Ia80d9c83809b07b1cdc4be8a4fc8a406bdfcf55e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
19fc117c2f8f0719aa40a1ff0efe27e2bd6d1efc 01-Aug-2014 Winson Chung <winson.chung@gmail.com> Unregistering receiver in onStart/Stop vs onCreate/Destroy. (Bug 16513124)

Change-Id: I11ccc3cea41311d74811dc19e6950da3bbddbfe2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
dc00cbe2c15eef5141656311a6d05c753d7c6db6 21-Jul-2014 Craig Mautner <cmautner@google.com> Create API for launching from recents

Relaunch apps from recents using the same uid and package as was used
in the original launch.

Fixes bug 16358208.

Change-Id: I340800bfee79926b197929360d69f1d570bbf1eb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
ff88d7b39ebe3a0453977092a30c3b2a53a19a00 17-Jul-2014 Winson Chung <winsonc@google.com> Fixing optimization in Task loading. (Bug 16372369)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
dc9b7e7e6a7706b7903e14332f5c40561259a92d 16-Jul-2014 Winson Chung <winsonc@google.com> Don't clobber intent flags when starting recent activities anew. (Bug 16327074)

Change-Id: I3bfee312d5e3167d443be48580da55d8b69b485e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
772b6b12a323b7999d8d3f335c199e6eb4e621e2 04-Jul-2014 Winson Chung <winsonc@google.com> Fixing regression in search bar not appearing after clearing all your tasks and creating new ones.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
653f70c223f8742e2a3696641fe1d4b82bc2ca36 19-May-2014 Winson Chung <winsonc@google.com> Using new APIs for handling system bar insets.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
9520d1abd40091bb03c5d8db2145c6ec70f77f39 21-Apr-2014 Winson Chung <winsonc@google.com> Fixing transition from tasks excluded from Recents into Recents.

Change-Id: I04efdd65bcda4d0111888a1c5651d1ec9b0c98b0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java
1f1cce1725a2fceee4162aec23518d42c78d6669 04-Apr-2014 Kenny Guy <kennyguy@google.com> Launch recents with the correct user.

Change-Id: I0247d6b4012f8305c84d8b3a455530d9332ed2e6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.java
4be0445c66f19ed985aecbc2a572f5d8c6e2553a 25-Mar-2014 Winson Chung <winsonc@google.com> Fixing issue where we were relaunching each activity from recents instead of bringing them to the front.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
c620bafde865f7599401f5adf0521820ee9d4a9c 20-Mar-2014 Winson Chung <winsonc@google.com> Catching case where the activity we are launching from Recents no longer exists.

- Also bounding the launch task rect to prevent transitions from far far away when launching a task
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.java
bd91297e895410bb27df3e930be5d9eab30129af 18-Mar-2014 Winson Chung <winsonc@google.com> Fixing issue where launching a task was delayed due to a previous start delay being set on a ViewPropertyAnimator.

- adding logging for timing certain paths (including startup and task launch)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.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/RecentsView.java