History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
18227e483167c590121fd300d03c999dd057204c 08-Jun-2016 Winson <winsonc@google.com> Forcing software in header button background ripples.

Bug: 29133575
Change-Id: I21125e28208335f5b2c2adf06cb1c8199b3ca476
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
3e5f0af085293004b378c07d2c52e51f1b32d1a2 26-Apr-2016 Winson <winsonc@google.com> Mark header bar buttons as clickable only when they are made visible.

- We were incorrectly setting the OnClickListener to null to try to do
this, which still causes the touch event to be consumed by the button
view, so instead we should just set the clickable state directly.

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

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

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

Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
b92dd6358180eb7e6b7a57de1efa38e16597e650 04-Apr-2016 Winson <winsonc@google.com> Adding content description for app-info button when talkback is enabled.

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

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

Change-Id: I589425980cd4503275b33a555f3dcb8391ba2695
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
619e40cd56266a362ab7da80cb9e4eba6c33b204 26-Mar-2016 Winson <winsonc@google.com> Fix config change layout. (Part 2)

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

Change-Id: I2586b90d1e869708b97bcd1a4446f4d87fa521cc
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.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/TaskViewHeader.java
22574afa00b7e32b7c4c5a1b98deebd67751b364 24-Mar-2016 Winson <winsonc@google.com> Adding workaround for crash.

Bug: 27815919
Change-Id: I04d70d16dd8b8281ba1ffbba056d475d834d5b54
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
59924fe0d9136cf349759bea1e06b661603f95fe 17-Mar-2016 Winson <winsonc@google.com> Iterating on stack layout

- Tweaking initial layout to show more of the next task
- Bounding the width of the stack to the smallest display edge length
- Fixing issue where the screen pinning button was not shown when
entering recents from home, and the task view clip state was not
restored correctly for tasks in front of the launch task.
- Fixing issue where there was no alpha during the transition to/from
home
- Refactoring and removing unused dimens, and moved remaining layout
calculation logic out of RecentsConfiguration.
- Fixing small regression in finding task anchor scroll points. This
caused tasks to be animated strangely when swiping to dismiss and
the task had an override task progress.
- Fixing several regressions in drag and drop due to override progresses

Change-Id: I1eac1dcea19e502bc7fe6362011b38977e3f3d6d
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
e693aafe0511c2a7ffc571b22abeefba44046225 01-Mar-2016 Winson <winsonc@google.com> Disabling timer

- Disabling the timer by default
- Adding flag to enable/disable paging (disabled by default). When
disabled, the second tap will just launch the next task.
- Updating the initial state to put tasks at specific points on the
curve. This allows us to allocate specific space for the front most
tasks, as well as the tasks behind it.
- Removing hardware layer config (no devices targeting N depend on it)
- Fixing issue with the header not having the final dim applied when
transitioning into recents.
- Fixing issue where the stack range would not be reloaded after docking
or undocking a task.

Bug: 27409035

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

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

Bug: 26774190
Change-Id: I020dcbac9b1230dba166eecaa12366986e684f9e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.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/TaskViewHeader.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/TaskViewHeader.java
be8e696a1f40a61c52a74022f4f084fdc0600f90 01-Feb-2016 Winson <winsonc@google.com> Allow animation controls for each animated property.

- Using onDrawForeground() instead of dispatchDraw()

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

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

Change-Id: Id1ca3cd035f4eded5141b2b333a2cab5434b79ee
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.java
4c84a8c481093e81c2e27de4cecf92c41992f4a1 22-Jan-2016 Winson <winsonc@google.com> Fixing some small issues with the overlay.

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

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

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

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

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

Bug: 26685208

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

Change-Id: Icca49f12a9e0be08eb6d4dbbbf2fd5994a3a25a5
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
3e8747414520ee348cf4b9c4a6afd9ff80b5a8f8 07-Jan-2016 Winson <winsonc@google.com> Improving drag and drop animations.

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

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

Change-Id: I081222b84a5f90e77890724977821ed481fe3924
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.java
f24f21695f5609d06402cf61e3500d408b99bdcb 05-Jan-2016 Winson <winsonc@google.com> Refactoring and unifying TaskView animations.

- Adding notion of a TaskViewAnimation to animate a TaskView to a
specific TaskViewTransform
- Refactoring task view enter/exit/launch/delete animations into
a separate class so that we can improve them easier
- Removing individual TaskView view property animations in favor
of using the existing TaskStackView stack animation. This ensures that
we don't have to add separate logic when animating TaskViews. It is
all handled by the TaskStackView now.
- Breaking down the TaskStackView synchronize method into binding
TaskViews and updating them to transforms. This allows us to
synchronously update in many cases and is cleaner than the many
request* calls.

Change-Id: Ib26793568a14e837e6782358155f21158a133992
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
296278a0679375b8c43962a9e3c9bb4e8ab201e7 17-Dec-2015 Winson Chung <winsonc@google.com> Fixing potential issue with wrong task descriptions being loaded.

- Also cleaning up the Task to remove some confusing nomenclature
related to task properties. Now there is a single icon and title,
and we keep a copy of the TaskDescription for future icon loading.
- Also changing a few cases where we should be calling isFreeformTask()

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

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

Bug: 26043230
Bug: 24815256

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

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

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

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

Change-Id: Id5b12e1208f2a624b386c2388081565205aeca54
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
a0731a1a2611d5a89c5960fe39a7ff09cc8fd5ea 03-Dec-2015 Winson <winsonc@google.com> Fixing crash when trying to reset focused task after removing task.

- Moving the focused state back into the stack, since the task view
is transient and can be rebound. Also ensuring that we update the
task view focus state as we return and pick up views from the view
pool
- Fixing issue where going back from recents would not go back home
- Properly calculating the task visibility (regression)

Bug: 25975225

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

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

Bug: 25931916

Change-Id: I9d74d0d2427ea0b11f4817d0e635013065e3a792
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
805578d8483a53c50896a808b0aec1bf152e5216 23-Nov-2015 Winson <winsonc@google.com> Fixing animation jump when dismissing paged task.

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

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

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

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

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

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

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

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

- Also removing unused code for dismissing recents.

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

Change-Id: I5e7a435a4061d902e5de0a54cc386388bc2b565e
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.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/TaskViewHeader.java
147ecaf3ba5d72872e8ff324aa32c0d228ada7f5 17-Sep-2015 Winson <winsonc@google.com> Ensure RecentsActivity is resizeable.

- Removing old code related to multi-stack layouts.

Change-Id: Ib9b820d2a65ff15e9cd8e5255e3e858b611e5aa9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
e4a0c5722b1d8db95dfc842d716452dbbf02c86d 30-Jun-2015 Wale Ogunwale <ogunwale@google.com> Allow stacks to hold tasks on various sizes.

Tasks are now resizeable just like stacks. Adjusting the size
of a stack will also adjust the size of all it's containing
tasks. This model allows us to be more flexible
in using stacks as workspaces (like you would have in a
desktop environment) and tasks as the resizeable windows
within the workspace.

Also added "adb shell dumpsys window visible-apps" for
getting the list of visible app windows.

Bug: 22068114
Bug: 19182363

Change-Id: I5bf77063252a5abae4e327f6fc42e607091749f9
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
e790c97787dbc05930ad0c4a708fad7cd7d3f2b9 04-Jun-2015 Chet Haase <chet@google.com> Hide View.getBackgroundColor() prior to removal

Issue #21572678 API Review: android.view.View.getBackgroundColor()

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

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

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

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

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

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

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

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

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

Change-Id: I3e4060af1ac57b3f359fe7f86f9e3814c6490323
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
b7a42fda313b6e5d5e82591ea9fb5d1b30acfc55 23-Apr-2015 Benjamin Franz <bfranz@google.com> Improve Accessibility behaviour in recents

Currently accessibility services use the activity label that is also
displayed in recents, which can be very confusing as it does not
represent necessarily represent the app that the recent item is
running. To improve this we use a combination of the application label
and the activity label. The application label is also badged to
distinguish between different users.

Bug: 19688800
Change-Id: Ibead6c87767649aa11cf2fe086924a4b69bf187c
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
5c143e7ead06aa7016e786cf1c9b8bd969a9c72c 27-Mar-2015 Skuhne <skuhne@google.com> Unopened tasks should show the fullscreen item in recents

BUG: 19947524
Change-Id: I83d2143f312ed016264c8bc54fda31720100ff1f
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
b9026ff592ac781bc12a042cf6451dd927be6dd5 25-Mar-2015 Skuhne <skuhne@google.com> Fixing layout button in caption and adding quarter functionality

Furthermore limit the number of arrangements to the device in use.

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

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

BUG: 19492945,19868830,19656507

Change-Id: Ie31e2788efb097db1c1f54f0ef1b2fda1ccc71ec
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
e0cc2f652bb92acf5105e691b971a9a5e6821c4d 23-Mar-2015 Wale Ogunwale <ogunwale@google.com> Changed recent multi-window UI to use persist.sys.debug.multi_window

Consistent with what is been set under developer options.

Change-Id: I871ba1b612e344846c33fae68ad3286f7bec1b4b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.java
911f400c2eab4eb15e0491a2affd918901867d2e 13-Feb-2015 Winson Chung <winsonc@google.com> Fixing Recents regressions.

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

Bugs: 19382697, 19343393

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

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

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

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

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

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

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

Change-Id: I9b4cd50d76f72ba3d16dd1b8e2d9bbf9f1f24d2b
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.java
b0a28ea5d381cd3a8477cf7fd82797199c80ca67 28-Oct-2014 Winson Chung <winsonc@google.com> Don't reload the layout every time we enter Recents. (Bug 18160176)

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

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

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

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

Change-Id: I51bf159369983789933767813bbf8a785ff1bda3
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.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/TaskViewHeader.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/TaskViewHeader.java
096f36b8db3e513687b78da3e1dd0197fce148a3 21-Aug-2014 Winson Chung <winsonc@google.com> Minor tweaks to recents thumbnails.

- Reducing the size of the recents thumbnails
- Skip persisting if we never update the last thumbnail
- Don't bother loading the last thumbnail file descriptor if we have it in memory
- Fixing warning in getting drawable from resource

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

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

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

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

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

Change-Id: Iaafe408318646a423fd58b51bbe93dbe0f2eed99
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/TaskViewHeader.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/TaskViewHeader.java