History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
27b3b2bc1bde242686d87590343740faf034f607 04-Oct-2017 Matthew Ng <ngmatthew@google.com> Hides the statusbar in recents for low ram devices

When entering recents on a low ram device, the system will hide the
statusbar to match the spec (go/android-go-recents).

Test: manual - enter recents
Bug: 67346921
Change-Id: I180899560aa1379b0a68cf63ae9b780fdef1746d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
90d1adbe9e79e975ef59afc0fe90a9e656c92498 30-Aug-2017 Matthew Ng <ngmatthew@google.com> Fixes recents entrance animation when launching before onStop happens

If RecentsActivity was launched before its onStop runs then it would
have skipped the entrance animation because its launch flags were reset
in onStop. To trigger this, going home and immediately pressing recents
will bring it back up. To fix this, skip reset launch flags (because it
is set before onStop runs) when recents is requested to launch again.

Change-Id: I768f48c33fe77ab2e8f6957611930bf7605bc674
Fixes: 65205705
Test: manual - run recents with apps, press home and immediately recents
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d45aac439509e7cb54c0b6ac39cef7fd5f4e1f21 18-Aug-2017 Winson Chung <winsonc@google.com> Fix issue with resizing background and incorrectly outline.

- Revert to simple color drawable to ensure that we still see a visible
outline in Overview while it is resized in split screen. We can't use
the gradient drawable in this case because both the window background
and the background in the backdrop frame renderer are visible, which
would look weird.
- Also use the screen dimensions for both drawables to ensure that we
get the right outline bounds for the DecorView when the window bg
bounds change.

Bug: 64645364
Test: Enter split with overview, dismiss docked app and ensure that it
draws under the nav bar.

Change-Id: I07c885f1148163ff59876f3bd2448655fe5928a1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
73e3d9f58c9edd2db254f072bd82bcecb2c13275 15-Aug-2017 Winson Chung <winsonc@google.com> Merge "Add fallback to reset the waiting for transition state." into oc-dr1-dev
am: 684b056531

Change-Id: I77816bf56dedac6127301dc7ffd1f1de3e91031d
a9c4127ece9e72093685f33df9617b41d834ba03 15-Aug-2017 Winson Chung <winsonc@google.com> Add fallback to reset the waiting for transition state.

- When launching into recents directly in another orientation, it
appears that the animation start callback is not made, which then
causes the transition-waiting state to persist until Overview is
next hidden. As a fallback, if we get onEnterAnimationComplete()
on the activity, then the animation has started and completed, so
we can reset the state.

Bug: 64694148
Test: Launch fixed-portrait app, hold device in landscape and then hit
recents button, ensure that recents button still works after.

Change-Id: Ibac8554c1f71324838fef1f04db2d88b16ffe219
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
f49f8f6f246e99978ad1cd14431877d2e0a7674b 09-Aug-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixes recents from disappearing when split and restarted" into oc-mr1-dev
b4f03805c9ada37094ecf26b3b0dd4d8358b5b57 28-Jul-2017 Matthew Ng <ngmatthew@google.com> Fixes recents from disappearing when split and restarted

The launch flags are interpreted incorrectly when minimized causing
Recents to start an entrance animation by moving off screen and being
invisible when Recents is destroyed and shown again by density or font
system changes. When recents is restarted, reset the flags to ignore the
entrance animation from moving them off screen.

Fixes: 62195106
Test: Open settings, go to page to change font size, dock by holding
recents button, with at least one task in Recents, change density. Also
can minimize and unminimize and changing density would also get fixed.
Change-Id: I519f59faf5e98c9d116bf66297f033c7f5fb7138
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
3817fd201199d369405588656bb8d8cd679e1aa0 01-Aug-2017 Matthew Ng <ngmatthew@google.com> Dismiss recents after switching users

Switching users was causing Recents to load the other user's tasks. This
is bypassed by dismissing Recents when user is changed to match to how
turning the screen off dismisses Recents. When a user is switched, home
is shown after keyguard is unlocked. Then when Recents is launched again
it will load the usual tasks by the user.

Fixes: 63336488
Test: make 2nd user, open recents with at least one task, switch to 2nd
user and switch back, unlock keyguard to recents

Change-Id: I46dcec9954007068ff28cd0671a4242aa009bd2a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
e17ce5286f2c25c2ce440b30f476e9e88a6d1e8e 18-Jul-2017 Lucas Dupin <dupin@google.com> Fix jank when switching themes

Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: Ie8860d00dbb0705ed76edf60a9d3030618dd21ca
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x packages/SystemUI/tests/src/com/android/keyguard/KeyguardSecurityContainerTest.java
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
6498f962836ff75d55510fbe0d8ddfd3c5f5dc34 24-Jul-2017 Jorim Jaggi <jjaggi@google.com> Revert "Fix jank when switching themes"

This reverts commit e5d0b9dddbcd8e6be7725a89b82fb990db2dade7.

Fixes crashloop with lock pattern

Change-Id: I3721444c91e2be625c59ec3e6ba14f1080badc07
Fixes: 63980375
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
e5d0b9dddbcd8e6be7725a89b82fb990db2dade7 18-Jul-2017 Lucas Dupin <dupin@google.com> Fix jank when switching themes

Turning overlays on and off takes time,
it also doesn't allow us to have fine control
over which view is using which theme.
Lock screen colors are now driven by themes.

Change-Id: I4b5db6234cafebbe8eaa952781c038370a11488b
Fixes: 63751714
Test: Visual. Set wallpapers, unlock.
Test: runtest -x tests/Internal/src/com/android/internal/colorextraction/ColorExtractorTest.java
Test: systrace
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
427cec4fe926734ef86352657d2e0fc306775970 17-Jul-2017 Winson Chung <winsonc@google.com> Fix issue with configuration update check.

- We can hold a reference to the same configuration since it is updated
and re-dispatched. Instead, make a copy of the configuration to store
the last configuration state.

Fixes: 63755686
Test: Open Recents, rotate, ensure that the display bounds and task bounds
are calculated correctly.

Change-Id: Ie0d2b5a0fa479428614d9593a2379420ccbd2fb4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
3ceaa0abbb0ed0128dbe86903e953f5291b3291c 28-Jun-2017 Lucas Dupin <dupin@google.com> Dark text support on Recents

Also changed target package.

Test: visual. Set light and dark wallpapers
Change-Id: I188bc21b5372e541509bdd739c825fc5ac53ca47
Fixes: 62346335
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d78aa5d0cf2bb279d374b7e025e95ff194d42f27 29-Jun-2017 Lucas Dupin <dupin@google.com> Revert "Support dark text on Recents"

This reverts commit 512ce6c9b75ce7d3f4f70280a414ab8fb994e809.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
512ce6c9b75ce7d3f4f70280a414ab8fb994e809 28-Jun-2017 Lucas Dupin <dupin@google.com> Support dark text on Recents

Test: visual. Set light and dark wallpapers
Change-Id: I100c7d6dac066168636b1741ed1ed7fc309988ef
Fixes: 63080632
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
ae90ba8927f1fc68f4d5c947ba40f7b7dff43c1d 17-Jun-2017 Lucas Dupin <dupin@google.com> Vary opacity based on number of tasks.

Change-Id: I2e2c154ae62ec6539e777b02fa75dc83e814587c
Fixes: 62724435
Test: visual
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
f676ac8ce5bb0f46c0bfb36382cd2e2656a0b8f8 07-Jun-2017 Winson Chung <winsonc@google.com> Merge "Run explicit GC to clear references to bitmaps earlier." into oc-dev
am: fd6b3c6da3

Change-Id: Ia156853dacf464f80ea46b35806c1f40d3107ecd
69a9c170b39cf26293a5b6d80e9aeed47b17b385 06-Jun-2017 Winson Chung <winsonc@google.com> Run explicit GC to clear references to bitmaps earlier.

Bug: 38258699
Test: Open Recents, dump meminfo, close Recents, wait, dump meminfo
Change-Id: Ibdcf94aee4fac9abcde64e30ae1f13cbb551fec0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d9f25618051dfb96f2327071e67960c5ae2b6ec2 23-May-2017 Winson Chung <winsonc@google.com> Merge "Properly defer entrance animations until after the stack is reloaded." into oc-dev am: bc13f7174a
am: 9862cd02be

Change-Id: I69dbb891acbfefb7c9547cb5b58e4d19011fdb3a
ed0e2b44ad5b0bf0c3dedc76bd68272e8511cca3 19-May-2017 Winson Chung <winsonc@google.com> Properly defer entrance animations until after the stack is reloaded.

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

Bug: 38391395
Test: Launch Chrome, dock, and ensure there are tasks visible
Change-Id: I4c2823fe25adbd3c200a0f786c478155541ccf26
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
ef496ea80dfcc468bd051b9379f61e8fe141814d 13-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize App -> Recents

- Use same strategy to draw thumbnail bitmap by moving
startActivity off from the main thread and start caching the future
when AM is busy executing startActivity.
- Move some binder calls off the main thread.
- Add some trace points for better analysis in the future.
- Make toggleRecentApps asynchronous so we don't have to wait on
the next app-vsync - it's totally not needed.

Test: com.android.apptransition.tests.LatencyTests

Fixes: 32668632
Change-Id: Id6483e26e9d6c1e319bceaa8268da976cedfbca3
Merged-In: I15db41f2e821779972ab3b430033c70aa1dfd907
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
6b46038e6a0e4c45cebe655f1c3bcf8986319853 13-May-2017 Jorim Jaggi <jjaggi@google.com> Optimize App -> Recents

- Use same strategy to draw thumbnail bitmap by moving
startActivity off from the main thread and start caching the future
when AM is busy executing startActivity.
- Move some binder calls off the main thread.
- Add some trace points for better analysis in the future.
- Make toggleRecentApps asynchronous so we don't have to wait on
the next app-vsync - it's totally not needed.

Test: com.android.apptransition.tests.LatencyTests

Change-Id: I15db41f2e821779972ab3b430033c70aa1dfd907
Fixes: 32668632
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d691cc14c8fa82ea98d9bab4dc1ae2d8dc49108c 17-May-2017 Winson Chung <winsonc@google.com> Merge "Updating Overview to work with PiP" into oc-dev am: 0553cbcf36
am: fbdd98ef69

Change-Id: I54bac22c4c5963773d886e9f18da8f90b4aac2a6
0553cbcf3654734438fa8f2fc88b9c6f2578daa9 17-May-2017 Winson Chung <winsonc@google.com> Merge "Updating Overview to work with PiP" into oc-dev
56cf9ad1b0ded8f9888025d17f4c2eb47747c33b 13-May-2017 Jorim Jaggi <jjaggi@google.com> Merge changes I7b5504d0,I10c263dc into oc-dev am: 8902bbe4e3
am: ae8e0149cf

Change-Id: Ibb220dc05fcf2713943bdd1287e46b896f4d2df6
44f4bcb80df76608d4db048aacc27760472d6a2d 12-May-2017 Jorim Jaggi <jjaggi@google.com> Fix recents entry delay

- Start loading things after we drew our first frame.
- Don't load high res task until low res tasks have been loaded:
In case the snapshot is already in cache in system_server the
low-res task loader will load the full res snapshot, leading to
GC pressure due to registerNativeAlloc. Now, if both task loader
load the same snapshot at the same time we are very likely
to trigger a blocking GC alloc.

Test: Open recents, look at systrace
Change-Id: I10c263dc8929742611ad9fbb32f65bc8ac3100bd
Fixes: 36851903
Bug: 32668632
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
314d41f5c0e6004482b2638778d7b9b02c63e592 09-May-2017 Lucas Dupin <dupin@google.com> ColorExtractor available through Dependency

Having only one instance of ColorExtractor instead of
multiple. Also registering listeners since 1 won't be
enough anymore.

Test: set wallpaper, check scrim color
Change-Id: Ic7f08f98e0671f5b9b5d25d7f0263ad3a1443fa7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
f3cfa89d0960e2a450b25ca7c9196762c683dcd3 24-Apr-2017 Winson Chung <winsonc@google.com> Move RecentsImpl task stack listener to background.

- In RecentsTaskLoader, synchronize on anything that might use the
thumbnail cache
- In RecentsLoadPlan, remove synchronization when preloading/executing
since that is done in the loader now
- In RecentsImpl, synchronize on anything that might use the dummy stack
view

Bug: 37550083
Test: Launch Overview and some other tasks, ensure everything still works

Change-Id: I36d04566ebb04296f67a3233730c1dc5bc1569f4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
51efddbd3bb304de2dd47fa8cd1114ac555958bb 05-Apr-2017 Alan Viverette <alanv@google.com> Remove unnecessary casts on calls to findViewById

Just frameworks/ this time. More paths to come.

Bug: 24137209
Test: make -j32
Change-Id: Iff27abd26fa43296ac2fff8f534fc6742d2ae80c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
6f9dbcb742ee930151444118dd61c2239efce09d 17-Mar-2017 Jorim Jaggi <jjaggi@google.com> Implement new thumbnail loading strategy

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

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
28217a4ca271c262dd00167728d510a60c2bdabf 15-Feb-2017 Winson Chung <winsonc@google.com> Ensuring that there are per-user last stack active times.

- This fixes an issue where the last stack active time would be clobbered
when switching between users. With the policy in the phone/stack
recents, this is fine, but with the grid recents, it no longer only
applies when out of the historical window, so it is always wrong (it
would normally be wrong if switching back from another user after the
historical time of six hours).

This CL will migrate the last stack active time to a per-user secure
setting, which will be used going forward.

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
return to the original user

Change-Id: I9941526de5d1dd52d1f9003e795995389064b19d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
2a6ea9c2a1b52b0386270ec73e1e6d6a9b614a34 26-Jan-2017 Jason Monk <jmonk@google.com> Delete BaseStatusBar

It is a relic of a more complex time, but has passed out of all
knowledge for too long.

Test: manual testing on phones and TV
Change-Id: I62a15d9413ea4bda3ac82bf6f7d22c096e2c1cdc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
f2d9521a35a942735b2e761918f2f1f88a17acc1 19-Jan-2017 Jiaquan He <hejq@google.com> Add arrow key navigation support to Grid-based Recents. am: c0e1813944
am: 514bbfd880

Change-Id: I076eeea2f035bef9c3c2ec39aa900a3f2e9d585c
514bbfd8803ac936481a6ab80b47e7bc2f3c1256 19-Jan-2017 Jiaquan He <hejq@google.com> Add arrow key navigation support to Grid-based Recents.
am: c0e1813944

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

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

Change-Id: I8ece3fc4c9ae82916efcbbde72d40805e43cc70d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
ae563e99c946fb4ac2fcd55c332aacc0e9feb394 08-Dec-2016 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Merge "Don't include front most excluded task in Multi-Window mode" am: a8c2c229d7 am: 435db7e690 am: 14ea407321
am: aa6018c735

Change-Id: Ibb292f07718a9782404a84502e475abf0c26c8aa
a8c2c229d734cc5c94aafcdaea06824bcb668c2c 08-Dec-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Don't include front most excluded task in Multi-Window mode"
7bccd43fa9559ae2f2e94038392ead93e44854b5 21-Nov-2016 Yoshinori Hirano <yoshinori.hirano@sonymobile.com> Don't include front most excluded task in Multi-Window mode

A front most excluded task is shown on Overview when changing font size
in Multi-Window mode. To fix this issue, RecentActivity should not reset
the config launch flags when it is restarted by configuration changes and
it should not reload the tasks which include a front most excluded task
when it is launched while docking a task.

Bug: 33031985
Test: manual - display app task excluded from Overview screen and then
change font size in Multi-Window mode

Change-Id: Ic0c35cd06c14d9ed8d2dc46a01f2153738bad849
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
d05651790af7c3dced153876de6db00366f9f9e5 16-Sep-2016 Jorim Jaggi <jjaggi@google.com> Add latency tracking for checking PIN (1/2)

Also move tags to Keyguard as we need it in Keyguard.

Change-Id: I718581cb4081830da1c3a2f4ad9b9f0ec6f09ae5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
4105e55a0e4423ea2fb7ace9d20932aff09834c5 21-Sep-2016 Winson <winsonc@google.com> Workaround for not showing previous tasks when time is set. am: a4fab41e8b am: 71a61dce0e
am: 346439473b

Change-Id: Ib98cf487ce2151400c1db6096811998613d5a8f0
a4fab41e8b24fd4129cec1f1c4c7c03bfe404f0a 16-Sep-2016 Winson <winsonc@google.com> Workaround for not showing previous tasks when time is set.

Bug: 28908500
Change-Id: I32201d4ce1af0bca1c73c2e0c7862771dac7a8d7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
e05256e2a1edf6f57f9fb48ef4f98dc4261ab8a7 08-Sep-2016 Jorim Jaggi <jjaggi@google.com> Add LatencyTracker to track important SystemUI latencies for testing

Add a new class that can record latencies for various actions. Add a
new system property debug.systemui.latency_tracking to enable/disable
latency as well as a broadcast to reload the property if it changes.

This will be used to write lab latency tests to track important
transitions/latencies.

Change-Id: I11f96f1c410d83f2d3dbbdf903b29e3035744fb8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
36f3f0337de86baf8cf8a5fdd67a95e61dff4bcd 09-Sep-2016 Winson Chung <winsonc@google.com> Revert "Fixing issue with old tasks being visible in Overview"

Bug: 28908500

This reverts commit b258f6a4bd685e5efcb36c02d5817f659e10479b.

Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
b258f6a4bd685e5efcb36c02d5817f659e10479b 26-Aug-2016 Winson <winsonc@google.com> Fixing issue with old tasks being visible in Overview

- This CL does two things, firstly, it ensures that all first & last
active times are monotonically increasing and independent of the
current system time. This allows us to better keep track of which
tasks are historical and should be hidden, and which are not.
Secondly, this CL moves the tracking of the last visible active time
into the system (per user) where it can be adjusted along with the
task active times when they are loaded.
- Following this CL, all active times in the future will be adjusted on
boot such that old tasks are made relative to the current boot time.
It’s not important exactly what time they are, only that they are
adjusted along with the last visible task active time so that we
always keep track of what is visible.

Bug: 28908500
Change-Id: I4f789df3a6bd825517cf3a70e26fb60deff89d06
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
a0b4b167557731868df6d9b653821408695e2be1 07-Jul-2016 Winson <winsonc@google.com> Adding debugging for last active time.

Bug: 29947804
Change-Id: I4ab1dc3c380d3552aaaff4f811171cdc66e05474
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
2b8dcdeda484c3ed92969420a19ba48c2f877c81 13-May-2016 Winson Chung <winsonc@google.com> Merge "Workaround for empty recents, defer the enter animation." into nyc-dev
449a4e2f0226651569b8bba06731de81fd9f7644 11-May-2016 Winson <winsonc@google.com> Workaround for empty recents, defer the enter animation.

- When docking the first time after starting up, the enter-animation
callback is not dispatched in the same way, and we end up with the
callback before the first layout. In such cases, defer sending the
event which triggers the animation until the next frame when the
layout is stable.

Bug: 28705801
Change-Id: If62eb03d6f297bff06982325ada9cd7f388438c3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
dfd7be012b889f92d3e7e6d80ff7fe6b55c75901 10-May-2016 Winson <winsonc@google.com> Fixing issue with excluded task showing when docking.

- On multi-window state changes, we should not include the front most
excluded task when fetching the task list. This CL also clarifies
which tasks are included and excluded.

Bug: 28452689

Change-Id: Ia30eaf75382286a9d4ee5a5b11013dddf8e4ac82
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
6976f7bae901d81a354287088ae232ba7236f30e 03-May-2016 Winson <winsonc@google.com> Disabling movement of entire affiliated task set.

- This CL removes the dependency on the last-active-time of the task
record, since that is dependent on the current system time (which can
be changed by the user). Instead of working around the previous
behavior in ActivityManager which moves all affiliated tasks to the
top when one task is launched, we change the behavior in the AM
directly, and prevent re-sorting the list of recent tasks improperly
(aside from the stable sort which puts the freeform tasks first).

Bug: 27398177

Change-Id: I9fa9b3497d08082fe00aa724538255de87e746d6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
3273f31c40ce36010df9c6aa9324102bab9a2464 06-May-2016 Jorim Jaggi <jjaggi@google.com> Also notify divider when getting DockedTopTaskEvent

Under some circumstances we never go through the activity lifecycle
if we call startActivity before it gets stopped, so we never notified
the divider about that we have drawn.

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

Bug: 28367678
Change-Id: Iafd064196cae43f60ff6d356843d1e431d15daea
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d6a39495881ee89c9217ab0764b948b6eb773aea 26-Apr-2016 Jorim Jaggi <jjaggi@google.com> Make sure to notify divider always

In some cases, recents didn't get resumed, so divider was never
notified and thus we didn't start the animation. Instead, move
the first drawn logic into onStart.

Bug: 28366529
Change-Id: Ia71d6b517451bba727ae31a184bb55cecf5af198
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
3ca1028e74499e9beec33c144ccdd87df7df1171 22-Apr-2016 Winson <winsonc@google.com> Closing system windows when dismissing recents to app or home.

Bug: 28314924
Change-Id: I35f484c7c594bb39d7983965e0f706175cf92253
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d46b72788e8811d2e423ea1e5b2ff104ecb7f721 20-Apr-2016 Winson <winsonc@google.com> Removing legacy calculation of Recents visibility.

- This was causing us to try and launch the Recents activity again after
docking because the running task was the newly docked task and not
Recents.

Bug: 28177001
Change-Id: I222e50f6de00a9d7881da2182eebc61564fd3266
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
29a763b83c3a5cb65b2eb682e8404efc47e4dc19 20-Apr-2016 Winson <winsonc@google.com> Adding additional dump logging to track down bugs.

Bug: 28177001
Change-Id: I9832874d3b9b1fceb28cfac6e899739b6dba0896
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
25160db73f37619a26a3d87a06625925d881b0fd 19-Apr-2016 Jorim Jaggi <jjaggi@google.com> Optimize some binder calls when recents configuration changes

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

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

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

Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
500ba75c9a53786ce3f60a9cd985b6cc29eb665d 30-Mar-2016 Winson <winsonc@google.com> Disabling the nav bar scrim when Recents is docked.

Bug: 27869246

Change-Id: I554b299c7e577f40811fc02d6ff4a46313ff1622
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
933076d80561751618f462b26309ce9e4c3ff3bf 30-Mar-2016 Andrii Kulian <akulian@google.com> Refactor usages of Picture In Picture and Multi Window (1/4)

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

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

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

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

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

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

Bug: 27504677
Change-Id: Ic9b6fdde6dd728d9f2d20a8b89c05b3a350edfbf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
96e613412fe2e8fa6e99b54f5b596a99e4c5cd28 16-Mar-2016 Winson <winsonc@google.com> Scroll to the launch-task when toggling overview.

Bug: 27680710
Change-Id: I3eba2cdbe0a92ef05dd6882a5e41db2a5875c98a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
a180985411dca31409642c6915abfd9cbfae34c1 15-Mar-2016 Winson <winsonc@google.com> Fixing issue with the stack layout not being updated on config change.

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

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

also pick up some enum renaming

Bug: 27429645
Change-Id: Id26ddea46755b43e8db298b87b3a47b69be0f728
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
b61e654b9a46e79827355104760a3ac5228380bc 04-Feb-2016 Winson <winsonc@google.com> Fallback 1 for Recents timeout behaviour

- Removing initial timeout
- Adding double tap to switch tasks

Change-Id: Ice6a508b842377809bf0dcea0997522164d0ccdf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
40a227337712a881cca4d7dd04323380287b9e40 03-Feb-2016 Winson <winsonc@google.com> Minor tweak to enter/exit animation for the home activity.

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

Change-Id: I88bd0f79f386304373fe63b49e92f02eeb882e55
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
3b93a4d351aeb154fba8a4b2fa66ca25a951993d 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed Activity class multi-window APIs

As requested by API council.

Bug: 26507736
Change-Id: I2a87c5eb3c1b48d52703103c2a4f72c250a9a827
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
4b9cded14346a7d8781ee6549c44888eb4ec9d83 27-Jan-2016 Winson <winsonc@google.com> Enabling fast switching for all users.

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

Change-Id: Id1ca3cd035f4eded5141b2b333a2cab5434b79ee
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
11cc01df271fce5ec3eb05a7281032d1271cc782 23-Jan-2016 Jorim Jaggi <jjaggi@google.com> Add animation when docking top task with long press

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

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

Bug: 26685208

Change-Id: I0f6e9dbf8deec2e4fc15364e686367cc0f57b41f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
d8d896cefaa694abd83bdf190c1fb3c9c34af0ac 13-Jan-2016 Winson <winsonc@google.com> Adding logging for history and paging.

Change-Id: Ibd9ff72858897c0a3680e81b94172e667e1291cc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
df3012bc8d8469a3767745bd6eb5c7fe78e3b7c8 13-Jan-2016 Winson <winsonc@google.com> Enforce single deletion per key press.

Bug: 26467824
Change-Id: I88542cfbd52a4a60bc8319390f2688fac5f2c754
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
5500390a006f2bbea565068234774a36cea076c0 12-Jan-2016 Winson <winsonc@google.com> Reducing numerous extraneous allocations.

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

Change-Id: I081222b84a5f90e77890724977821ed481fe3924
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
4e5fb2f4e1ed4eb119a201541ad89aafac8c53fe 15-Dec-2015 Winson Chung <winsonc@google.com> Allowing tasks to be swiped away in the history view.

Change-Id: Ide26856c291bcdd1b4ab5e15ae9eb876a9af719b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
4ab4d838d5a1c9d9fb94a6f0c82f77862f4cb5ee 11-Dec-2015 Winson Chung <winsonc@google.com> Saving the stack state when you rotate.

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

Change-Id: I788fa06de9af8f7769de26442c804e27daa7e627
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
8c38fd32ba9644323fc6fae19220bee9ab0faee5 14-Dec-2015 Winson Chung <winsonc@google.com> Revert "Saving the stack state when you rotate."

This reverts commit bf0be0a8030b91c7e75c23230c1f89a1536aa7eb.

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

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

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

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

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

Change-Id: I33de4e2646c75f0bc0eb75bd6909fe94557196b5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
435b2e43cb131d0b38ba19f335aec78bb83944b2 25-Nov-2015 Jorim Jaggi <jjaggi@google.com> Reload tasks when doing drag gesture

To make sure we always have the updated stack id's
for the task.

Change-Id: I8bfda33aa26b470cb5f087cee9e8e8560c0e3ba2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
e5f1faa9f8009a723ab21aed6fe5ab325c61442b 20-Nov-2015 Winson <winsonc@google.com> Porting over keyboard changes from other branch.

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

Change-Id: I7450f0a280571e98212f321b1e61219d149fed65
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
8b1871d74137d7e36ba0fed5608772f51f62015b 20-Nov-2015 Winson <winsonc@google.com> Adding tuner params for paging and full screen thumbnails.

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

Change-Id: Id72825b8a1b1c0a2238ee184a6695b13c1d8cb1c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
c7b4a79e4f5866267210fcc622710d9065000fa6 20-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Move hiding of stack views into onStart from onResume.

onResume can be called multiple times during launch and it will reset
hiding of stack views that we use to synchronize freeform to recents
transiton.

Bug: 24913782
Change-Id: I6c972d74378ec5d18593fc3f5eb4ed67596b7789
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
cc95391a5330c178641e12be8ce5bdf4cbcf73f5 18-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Make recents visible on resume unless requested otherwise.

If the last interaction left recents invisible, we need to make the
visible again on their next resume.

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

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

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

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

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

Bug: 24913782
Change-Id: Ief743b7e6fcebb3d8789d4745fb122ac607c1cf0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
3fb67562c548662910160d5672b1b9558bd6571c 11-Nov-2015 Winson <winsonc@google.com> Removing hacks to delay app animations until window animations complete.

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

Change-Id: Ib7cd2868283cfe0e5fc79863818a614375072e0f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
57311f7617185374a3b2c4a7cf2ff1ac010f5bf3 30-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Merge "Hide recents during freeform to recents animation."
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/RecentsActivity.java
36a5a2c7003ef8157f276b411c3fda47ad2f75e3 30-Oct-2015 Winson <winsonc@google.com> Initial layout/behaviour for freeform workspace.

Change-Id: Idc878862747d0d726cbf10be9893c48736673d0e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
2364f26dc24191e5bfbab45bc1bdf9babe13af80 26-Oct-2015 Winson <winsonc@google.com> Adding flag for disabling search bar.

Change-Id: I988912c8209f1e49c71e4db2a7b926c808dbc975
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
190fe3bf88388fcb109af64571e3baa0d01f1c37 20-Oct-2015 Winson <winsonc@google.com> Refactoring secondary user recents logic.

- Removing old broadcasts in favor of direct aidl interface between
system and secondary users. Also moving user specific implementation
into RecentsImpl, allowing Recents to handle proxying between users.

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

- Also removing unused code for dismissing recents.

Change-Id: I6dcfbdb43cd08f4adfa362d4bf2247c0172fb92a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
b78bb4fbb3f131b9db7fd26d4e72192207374d7a 25-Sep-2015 Winson <winsonc@google.com> Using EventBus for AppWidgetProviderChanges.

Change-Id: Ifa3bf1527eb733d614374f27fd8afbf5b49faaa6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
25b4d4b280c6aa07656328bd9dd90977781d00e1 12-Aug-2015 Jorim Jaggi <jjaggi@google.com> Require strong authentication after a timeout

Bug: 21594472
Change-Id: Iab169d4fa2e4ad134f8c8579654b28e96b5b1385
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
76ffdafc3cc59ad1749736de58285978e6c73622 06-Aug-2015 Winson <winsonc@google.com> Fixing issue with empty Recents screen.

- We did not expect RecentsActivity to be launched without going through
the normal SystemUI controls, but when the home activity is in the foreground
and killed (via a normal apk update), the RecentsActivity stores the old
launch configuration and believes that it was launched from home and awaits
the animation-complete callback to animate the tasks in.
- This CL adds a workaround where the configuration is reset whenever
RecentsActivity is stopped, which allows the tasks to be shown immediately
if the User is kicked back into Recents due to an update.

Bug: 22542869
Change-Id: I2b4168ccecfbf868fa6d544fe89109dfa74f51df
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
b8f03072d46b0d535415c07655b9fe5a8c41fb8f 23-Jun-2015 Winson Chung <winsonc@google.com> Catching launch errors when trying to go Home while Home is updating.

Bug: 21442898

Change-Id: I7fc74422b220cb02acb195b5c9121ff72bc16dbe
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
fe855d124b3fb3d59262b0fc6d528d91caf36951 18-Jun-2015 Winson Chung <winsonc@google.com> Fixing issue with recents not being hidden for translucent apps.

- When tapping home, we can't depend on the stack state to determine
whether or not hide recents since there can be translucent windows
above it. In this case, we just dismiss recents directly since the
receiver will only be registered while recents is visible.

Bug: 20110140

Change-Id: I6b796cc4cbd790aac9a0857549e34117adb808d8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
2507c34d91bb0d722b6012e85cb47387b2aa6873 04-May-2015 Chris Craik <ccraik@google.com> Cleanup properties

bug:19967854

Separate properties from Caches, into static, RenderThread-only class.

Also rewrites the means for java to set properties to correctly handle
threading, and adds an override for profile bars so that SysUi doesn't clutter
the screen with them.

Change-Id: I6e21a96065f52b9ecc49d1a126244804ba106fa9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
82862573bcf246128782b91ea627285c43133a8d 01-Apr-2015 Andrew Flynn <flynn@google.com> Consolidate SystemUI SharedPreferences.

Makes it easier to use from any place and gets us type-safety.

Change-Id: I472e340e8332d9a173335b6f337525d58d801881
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
e70dfdcd915e42a85b4e56808e5de76af962560f 06-Apr-2015 Wale Ogunwale <ogunwale@google.com> Merge "Dismiss recents to home without animation when resizing task."
d351ada8f93415b09f7536c64e303d55c7b97680 04-Apr-2015 Wale Ogunwale <ogunwale@google.com> Dismiss recents to home without animation when resizing task.

Bug: 19946163
Change-Id: I87441e03556d775119f851f7ad49368fc1be49f7
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
a92c07809c0803ad1b1c907bf332e50826cad3b5 20-Mar-2015 Winson Chung <winsonc@google.com> Merge "Fixing issue with screen-pinning for secondary users."
d0aa8a374f4de4b02d99d2eef6580ef0f5762912 19-Mar-2015 Winson Chung <winsonc@google.com> Fixing issue with screen-pinning for secondary users.

- Proxy the screen pinning request to the SystemUI for the primary user.

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

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

Bugs: 19382697, 19343393

Change-Id: Ida0984dba1c76526298eb4886f96835fdf871b9f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
d61f2271c40cd7b3b10f39d8ffdaf8c527cb78be 19-Dec-2014 Jorim Jaggi <jjaggi@google.com> Remove dead code #6: Delete old recents implementation

Change-Id: I93b1257563d6352a54141bd4c90d2d4587782fd2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
2002cf5b463737e7f615f1469cb20d324c283544 09-Dec-2014 Winson Chung <winsonc@google.com> Fixing major regressions in Recents with multi-user. (Bug 18574950)

In the process of front-loading a lot of the loading work, we moved logic
into AlternateRecentsComponent, which is not multi-user friendly. This CL
proxies all the necessary events for non-primary users to their own SystemUI
process to ensure that they handle them correctly, and proxies visibility
changes back to the primary user (since that is the only process with the
right callbacks).

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

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

The CL also cleans up some visibility state that was confusing and is no longer
necessary, fixes a small issue with the dismiss button flashing when toggling
Recents quickly, and fixes some cases where the initial stack scroll is set
incorrectly.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
7c122b60b93c9ef4fa428bc142ea61bf4252b70b 20-Nov-2014 Winson Chung <winsonc@google.com> Merge "Use SystemClock time to keep track of last event times. (Bug 17995039)" into lmp-mr1-dev
15a2ba813a3c16ebc52f943ff80d4b67c05af310 18-Nov-2014 Winson Chung <winsonc@google.com> Use SystemClock time to keep track of last event times. (Bug 17995039)

Change-Id: I7df1ee82568cbe3a6adbf948bd4e75dd57791032
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
c041d883c3591670441d4c2da8fd1108dfd28acd 15-Nov-2014 Winson Chung <winsonc@google.com> Tweaking animation XMLs and removing dead code. (Bug 17672056, Bug 18415217)

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

Change-Id: I11eec1f3b0386b4354c8c5e3deca2b17cff83be1
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
90d5136ebd59c9aff9543ea5750d4c5d57ac99dc 13-Nov-2014 Winson Chung <winsonc@google.com> Fixing crash in querying the task stack from a fresh load plan. (Bug 18371946)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
b0a28ea5d381cd3a8477cf7fd82797199c80ca67 28-Oct-2014 Winson Chung <winsonc@google.com> Don't reload the layout every time we enter Recents. (Bug 18160176)

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

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

Change-Id: I169fea3cf07a6da3f90b32b005819773c6049ada
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
bac679b0d47aee0c9f3228ce2957ab4fe5b3609e 20-Oct-2014 Winson Chung <winsonc@google.com> Preloading task metadata to improve Recents startup time after reboot. (Bug 18057321)

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

- Additional code cleanup for previous performance CLs

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

Change-Id: I205de9047413d1ff2da68cdd062eeba59267b10f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
9cb5c4e3854aa7f2ddab707920b688c3108cbc85 29-Sep-2014 Winson Chung <winsonc@google.com> Ensure that we don't show excluded tasks when we are not in that task (Bug 17657618)
- Fix regression with launching an affiliated task due to clipping changes (Bug 17755902)
- Tweaking previous changes to home transition
- Disable the debug mode option
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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
905950abd017b5a135e26179b5ba29378732cf5a 17-Sep-2014 Winson Chung <winsonc@google.com> Listening for widget changes while Recents is in the background. (Bug 17153663)

Change-Id: Ibaff45e988deda21280b684757396a73bb3294c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
4e8dd649b4c72122cdf15da9cfabc45aac789365 06-Sep-2014 Winson Chung <winsonc@google.com> Ensuring that we retry if the callback for animation started comes before the Recents activity starts. (Bug 17316671)

Change-Id: I8e50e2cd9ba6a47dda21f21afbe14bb9d3eda979
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
ee0b12161ab8563378e33e9d694d15ed1a757a26 04-Sep-2014 Winson Chung <winsonc@google.com> Generalizing Recents widget category to Search box. (Bug 17334589)

Change-Id: Id62398255799844cc89affcb4bafc86b6479dad0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
15155519ba9ce8302d5ca1771f7816cd683a2051 02-Sep-2014 Winson Chung <winsonc@google.com> Fixing Recents crash with non-primary user. (Bug 17343688)
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
bf8871db617d76ee66c5cf803f0bafa5e93998e9 29-Aug-2014 Winson Chung <winsonc@google.com> Providing a more seamless transition to Home (Bug. 17012456)

- Fixing landscape N7 transition issue

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

- Fixing issue with focus animations not happening for new views

Change-Id: I3134f25becf06db343aa30ea80cb33514cd99d06
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
cdcd487abad10f728f0542accc42a31d1f7fedac 06-Aug-2014 Winson Chung <winsonc@google.com> Fixing issue where home was triggered on top of other activities being launched. (Bug 16823617)

- Also fixes issue with the Recents hide message being clobbered
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
2915b9d14876c8e63ca82415807bcfb602ebad43 28-Jul-2014 Winson Chung <winsonc@google.com> Updating lock-to-app look.

- Adding seek bars for tweaking values when in debug mode

Change-Id: I92ae7b431ee170f5d8b31f34349d51a6b7f9ddef
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
480dd72daf927283997bdb4060091299add66832 23-Jul-2014 Winson Chung <winsonc@google.com> Fixing issue with the lock-to-app setting not being refreshed when entering recents.

Change-Id: I8236aebc18a0d7194bfe50fe2c61659caa39b04c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
56e09b42a0f1670970872bef611a8036904ad6bf 18-Jul-2014 Jason Monk <jmonk@google.com> Add setting to guard the lock-to-app recents icon

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

Bug: 16378448
Change-Id: Ide333463f86310eacb7a1d8b6dc7b1aea8722713
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
083baf99ff1228e96ede96aac88c8200c4fdc2b2 11-Jul-2014 Winson Chung <winsonc@google.com> Fixing a few potential crashes, preparing for Task affiliations framework changes.

- Deferring widget host listening to speed up startup
- Ensuring that we animate to the right task position in the stack and not just the front-most
- Removing assumption that we can only get screenshots for the most recent task
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
1e44934f0213caf5c434f63a69c9f05fa76e891d 10-Jul-2014 Winson Chung <winsonc@google.com> Fixing issue where we were responding to SCREEN_OFF and going home even if Recents was not visible. (Bug 16204632)

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

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

Change-Id: I856d29a663f5e8c000ca22fd1025c09f65032893
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
04d0f756782e697a171aebbb35ae86c86b839a27 01-Jul-2014 Winson Chung <winsonc@google.com> Adding back-behavior test.

Change-Id: I85fda478a99ca097f78ad9231b3cdfbba0903f63
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
31d66c60d8f518ce3a70972db348d797db92f42c 30-Jun-2014 Winson Chung <winsonc@google.com> Fixing another case where we weren't properly starting home when Recents is finished due to the screen powering off.

- Reordering broadcast register/unregister to stop listening to the service when Recents is stopped
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
d543c1bea4d227470f5b6d6535b70e5090064c9a 24-Jun-2014 Winson Chung <winsonc@google.com> Ensuring that we fire the right intent when going home from Recents.

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

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

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

Change-Id: I1dc0e203485f517e7384b0f7ee08979bfd286013
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
1f76132d4dc0d96bf34d8580064b8dadf24eb9f4 19-Jun-2014 Winson Chung <winsonc@google.com> Toggling Recents from home should actually toggle Recents instead of launching the first task.

Change-Id: Id60c54839c9f13299ec8d514e73e37c10735f30c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
90dcb6257557d6f62f862a84833b364f23490b4d 18-Jun-2014 Winson Chung <winsonc@google.com> Merge "Adding status bar scrim, reducing extra work updating configuration values."
06795630f62e1e7ad89825db23d7656f8dcd6c5a 18-Jun-2014 Winson Chung <winsonc@google.com> Adding status bar scrim, reducing extra work updating configuration values.

- Making the app icon larger for tapping
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
9214eff52adf56b7c9532e40b784d52f9f94b6d1 12-Jun-2014 Winson Chung <winsonc@google.com> Fix regression in using visibility flags.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java
b13c46e8b78272c4398068eed41f49ee4d403bcc 10-Jun-2014 Winson Chung <winsonc@google.com> Updating Recents to make the cards slightly more visible.

Change-Id: I876d39f4aac4007a3fe0c509ccb7db130f27a737
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.java
aef51c63d7086088b0c245d18f052a181fe1ff45 04-Jun-2014 Winson Chung <winsonc@google.com> Merge "Fixing back regression in Recents." into lmp-preview-dev
56f4692a89a1afb2fe40aec8a9b6f26936b8e9a4 04-Jun-2014 Winson Chung <winsonc@google.com> Fixing back regression in Recents.

Change-Id: I57f4fce3f2b455085b066dd7daa91cc68844b259
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
47a3e65acc35cd3061bf3867e8b20753870fd892 22-May-2014 Winson Chung <winsonc@google.com> Small perf tweaks.
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
6cb485fd2e2f8ace05e1ff281ab0fc824d3652cb 19-May-2014 Winson Chung <winsonc@google.com> Fixing regression in dismissing Recents.

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

Change-Id: I8a20ff5f595eefa20db5528c0d5b1a1f0b110834
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
1492646b792360945fba6bdcacc6aa7c19c6618e 15-Apr-2014 Winson Chung <winsonc@google.com> Adding stack dimming.

- Fixing case where the window scrim was always dark after loading recents with no tasks.
- Restoring rounded task rects and square aspect landscape tasks
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
5e3e5d8945249cfeb8bd59de112be88954ba62bf 03-Apr-2014 Winson Chung <winsonc@google.com> Adding activity icon to the task view

- Also fixing issue where the activity icon was being used as the application icon to filter with
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.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/RecentsActivity.java
4d7b092a866d2fce3e11b5a12cda2b87a83af52d 14-Mar-2014 Winson Chung <winsonc@google.com> Fixing memory leaks related to Tasks holding onto their callbacks.

- Switching to SwipeHelper
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/RecentsActivity.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/RecentsActivity.java