History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6519c1b0fe85c5f25115539e936e4333e8537098 14-Oct-2017 Winson Chung <winsonc@google.com> Moving some recents logic into the shared lib.

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

Bug: 67510855
Test: It builds, Recents runs

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

Bug: 67510855
Test: Code removal
Change-Id: I608eda163318acbb53c67ed96e3f81383b7c17c0
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
462497632db844942163c2a20ee9c90c0e241261 09-Jun-2017 Winson Chung <winsonc@google.com> Preemptively create Bitmap from GraphicBuffer

- This call moves up the code to create a ThumbnailData from the
TaskSnapshot to ensure that it is registered with the GC even if there
is no active TaskView bound to process the event.

Bug: 62360156
Test: Run "bit CtsMediaTestCases:.DecodeAccuracyTest", and ensure that
the "Lost RAM" is relatively unchanged afterwards

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

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

Test: Open many apps, adb restart, scroll fast and slow in recents
Test: runtest systemui -c com.android.systemui.recents.model.HighResThumbnailLoaderTest
Bug: 34829962
Change-Id: I7f7a9842eb28a09a18573426fa9677cee2877124
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
f75aac6239e488df00480768eb9912f94d51c5d3 27-Feb-2017 Jorim Jaggi <jjaggi@google.com> Update paint filer when updating thumbnail

Test: Enable task snapshots, go to recents, scroll, make sure no
jump in darkness of thumbnail

Change-Id: I5448192bd87259eb8a4e1e7b7c55c1aa82693d2e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
7e9a26fb1836fc7ab49f82b5a690e4ca2873ba1e 14-Feb-2017 Robin Lee <rgl@google.com> Redact GridTaskViewThumbnail

This inherits from TaskViewThumbnail but has its own drawing logic that
skips work redaction for locked users. This is required by CTS Verifier,
so it needs to be done here as well.

Test: visual, instructions --
Test: (1) set up work profile on ryu with a password
Test: (2) turn screen off and on again
Test: (3) go to recents, verify work apps redacted with correct color
Test: (4) open a work app, unlock, go back to recents, verify work apps
Test: are not redacted any more.
Bug: 34836435
Change-Id: I2239fe4c035332a9c9b93d2d2b1c354f204358a8
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
366a5b27dd2637c224bf8847ae92cd099eaf9e2d 20-Jan-2017 Jorim Jaggi <jjaggi@google.com> Fix thumbnails in landscape in recents

Bug: 31339431
Change-Id: If657df7889d43f1f6eafe50ae0581dd70013888e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
76b2e0a21af34cd7e964b4d5c158f0ec4988f077 20-Jan-2017 Jiaquan He <hejq@google.com> 2D Recents: round task thumbnails properly.

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

Change-Id: I6f7a09a12c3e3f1f7270bed1ae25b291fadfb8f2
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
fb9d78afb77b1d304b24f470a637244d52a7e1df 05-Jan-2017 Jorim Jaggi <jjaggi@google.com> Add a listener when task snapshots change

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

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

Test: Open app, press recents, make sure thumbnail is up-to-date
Bug: 31339431
Change-Id: I01e81b9cd11886da734da671c68d5732aa51009f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
b64bfd9f951d251bb74074d67035eaf96bf66dd0 14-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "2D Recents: Make sure thumbnail fills task view in all orientations"
f4bed374f33a1a44057a669c8b9e1e404bbb5d09 13-Jan-2017 Manu Cornet <manucornet@google.com> 2D Recents: Make sure thumbnail fills task view in all orientations

This is a manual cherrypick of change 1775039 because automerging had
conflicts.

Bug: 32101881
Test: Checked layout in various situations when switching orientation
Change-Id: I26eb92320e381504daf5c1f54dddd15ea4601ac9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
e2c77f903504766102fe545af40c3e4ebcb3adc7 29-Dec-2016 Jorim Jaggi <jjaggi@google.com> Handle content insets for snapshots

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

Test: Open app, go to recents, make sure app aligns before
and after the animation.
Bug: 31339431
Change-Id: I2ff9bd44534bd8f66b591385da1e1e3aec40b6c5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
02886a82d876aa5e31a92444fec70208599c509c 06-Dec-2016 Jorim Jaggi <jjaggi@google.com> Initial implementation of snapshots

All this functionality is hidden behind a flag. If this flag is
active, we disable the regular screenshots.

Instead, we take a screenshot when an app transition for which a
task is disappearing is starting. The screenshot gets stored
into a gralloc buffer. SystemUI uses a new method to retrieve
a snapshot gralloc buffer and then draws it using GraphicBuffer.
createHardwareBitmap().

When starting an existing activity in an existing tasks, or when
bringing an existing tasks to front from recents, we add a new
snapshot starting window. For that, we reuse the existing
starting window, but when creating the window, we use a fake
window that draws the contents of the starting window.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotControllerTest
Bug: 31339431
Change-Id: If72df07b3e56f30413db5029d0887b8c9665aaf4
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
31c568274b8522d08e36f5553cdf409077b842d1 05-Jan-2017 Winson Chung <winsonc@google.com> Add logging for task view thumbnail state. am: eb2206cb51
am: 96a5c216b7

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

Test: adb shell dumpsys activity com.android.systemui

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

Bug: 32101881
Test: Checked Recents layout/behavior on local sw600dp device
Change-Id: I40be7dbaf8bc017b4c7c449f9bca657817107ceb
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
dd0f83f393788caa40a1b28ea665d69898945e3f 19-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixing NPE when checking locked state."
b6b9950d13fd9f16be6ba7903d69f54a01639467 19-Dec-2016 Winson Chung <winsonc@google.com> Fixing NPE when checking locked state.

- Regression from change 9f4ab32b1c62d16f03d14a50f13f04ddb58c541f.

Change-Id: I31ada9f4c051cf0aaa9a7bfa54c1b9bda1c64c16
Fixes: b/33738356
Test: Dock an app repeatedly
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
5f61536cba19352e2833a35521f02b6618f804fd 17-Dec-2016 Manu Cornet <manucornet@google.com> 2d Recents: show full task thumbnail and don't overlap header

Bug: 32101881
Test: On local sw600dp, tested recents layout
Change-Id: Ibc3bf720f7ae3303b6283707c8114643a0e8d0af
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
9f4ab32b1c62d16f03d14a50f13f04ddb58c541f 13-Dec-2016 Robin Lee <rgl@google.com> Blank out recents for locked work tasks

Bug: 31001762
Test: WIP TaskViewThumbnailTest.java
Change-Id: I259fa95f642b83728904653c75efc7e417b0ab60
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
4387190d8ec9fe4e953fcfeb093a644b82cf85ed 01-Aug-2016 John Reck <jreck@google.com> Eliminate recents upload jank

Bug: 30342017

Upload recents thumbnails in the
dead gaps between frames instead of
at the start of a frame. This eliminates
jank caused by the large texture
upload.

Change-Id: I507cd286d199109c7a9a1511d68ba5ab5d28069f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
fc48b072e8caa62849ee305f89f38d248d4a1ded 21-Apr-2016 Winson <winsonc@google.com> Caching the display rect to reduce binder calls.

- Only update the display rect and orientation on configuration change.

Bug: 28122871
Change-Id: I2e87e7643902d5f45ac4a311109f5e1870f48d3b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.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/views/TaskViewThumbnail.java
d2a030613154e2007d9816e090c39e9726e7adba 15-Apr-2016 Winson <winsonc@google.com> Adding desired undocking animation.

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

Bug: 27154882
Change-Id: Ia970597d57857a74b5d008e91a93703d8fb70c1e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
67c79578f94646bade5d336af0d4491179c1b37d 13-Apr-2016 Winson <winsonc@google.com> Fixing various layout issues when docking

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

Change-Id: I17d3e33e159ff250c11a504ef87558051926a974
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
c406f52446a912776c3709c3f154fcb82c575842 13-Apr-2016 Winson <winsonc@google.com> Fixing issue with larger clip bounds being specified than in the view.

Bug: 28145358
Change-Id: Ic3e1042ace6bde9bfe0c647e038d484fd4a05d9b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
9a54ac4a463190ef8b94eb45abbb2c27eb7395ea 01-Apr-2016 Winson <winsonc@google.com> Fixing regression in drawing thumbnail background.

- Between the time that the task view is bound and the thumbnail is
loaded, we should still draw the background color instead of nothing.

Bug: 27971061
Change-Id: I5b7a607b86a0da20fc6ca183b1d7bc4e9db9e377
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
a1ededd056d51532ab18354f17f8065ec1134535 25-Mar-2016 Winson <winsonc@google.com> Launch state/config change audit. (Part 1)

- Fixing issue with onResume logic being run even when the window focus
is changing. This only needs to be run when we are launching into
Recents again.
- Removed a bunch of launch state flags that are no longer necessary
because of changes to configuration handling. This reduces the work
that we have to do on resize, etc.
- Decoupled the resume with the stack-update, which fixes a couple
issues where we were updating the layout unexpectedly.
- Fixed an issue where we were not updating the nav bar scrims on
configuration change
- Fixing margin start/end regression in header bar
- Fixing small issue with paddings being scaled beyond their base size
- Fixing issue where the clip state was not properly getting reset
causing lots of overdraw.

Change-Id: I9aeb191a99ff23807b3f5d905f6480b10157a060
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
217009356efa2b854ab3981dff8d315a0d679c73 25-Mar-2016 Winson <winsonc@google.com> Don’t scale task thumbnails.

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

Bug: 27504677
Change-Id: Ic9b6fdde6dd728d9f2d20a8b89c05b3a350edfbf
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
12858a6eaea8ae85e7244bd904e1e31291ceea3c 24-Feb-2016 Winson <winsonc@google.com> Minor tweaks to layout and visuals.

- Constructing max dim paths to be dependent on focused range
- Reducing highlight on tasks
- Making header/icons smaller

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

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

- Also desaturates out the disabled task

Bug: 25785926
Change-Id: I9fa48c062cfaf6d9cb60a9e49291ca6e15c6b343
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
1af8eda6ea1c89d44123b2bfd5fa0293bb9d68cb 05-Feb-2016 Winson Chung <winsonc@google.com> Drawing thumbnail background color for empty space in view.

Change-Id: I2e8dfbe9c11a61876956658eff0674adb26d855d

Signed-off-by: Winson <winsonc@google.com>
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
781c77b3818a2cb0638f6c630b649a5763884989 05-Feb-2016 Winson Chung <winsonc@google.com> Revert "Drawing thumbnail background color for empty space in view."

This reverts commit 3e85f9e48c0b30c8a7e5cd4512b091d00dcac4fa.

Change-Id: I3d86dc8ce34ff246f5b8a74d1346bed8492b05fc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
3e85f9e48c0b30c8a7e5cd4512b091d00dcac4fa 04-Feb-2016 Winson <winsonc@google.com> Drawing thumbnail background color for empty space in view.

- When showing landscape thumbnails in portrait, the thumbnails are
aspect scaled to fit the width of the view, this change will draw
a solid color to fill the other part so that we don't see the
current edge-clamp texture effect.

Change-Id: Icf08239942f9179c66ba0f8d8ddd00f7d2a09d3c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
bbb3d3de3c058f115ab1fba0ddb7238e54745c0b 30-Jan-2016 Winson Chung <winsonc@google.com> Re-enabling fade-in of header bar icons.

This reverts commit 133ad44269e4b45e056793b579a7628aa4d91ccb.

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

This reverts commit 9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc.

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

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

Change-Id: I6879b30a985ca8274ee77126b152daa985054371
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
c0d7058b14c24cd07912f5629c26b39b7b4673d5 29-Jan-2016 Winson <winsonc@google.com> Referencing static interpolators.

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

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

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

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

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

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

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

Change-Id: I156ae915af76055b5177a6bdf0f929bdf6acea01
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
9756755db76aeda2065322aa3c26e1a19578d45f 16-Dec-2015 Winson Chung <winsonc@google.com> Fixing merge issue from ag/830529

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

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

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

Change-Id: Iec9352acb5cb3ce95c09ff6d1026a9900717d3e6
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java
5b7dd536aa6cb8ce323b47cee109f879feb0d33a 02-Dec-2015 Winson <winsonc@google.com> Updating the freeform workspace layout

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

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

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

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

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

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

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

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

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

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

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

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

- Additional code cleanup for previous performance CLs

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

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

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

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

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

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

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

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

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

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

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

- Fixing issue with focus animations not happening for new views

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

- Fixing issue with launch-in-background animation
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewThumbnail.java