• Home
  • History
  • Annotate
  • only in /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
987cd20acfadb7d29d6c9422946e442eee15d71e 14-Jun-2016 Winson Chung <winsonc@google.com> Merge "Fixing several issues with accessibility" into nyc-dev
1d581bcb094291114b2f4ffaa6a1e2ef924019b1 13-Jun-2016 Winson <winsonc@google.com> Ensuring we don't try and dismiss task views that are already removed.

Bug: 29240786
Change-Id: I724e7c366b2fb835fd81fa966689f999953ef4c8
ecentsTransitionHelper.java
18227e483167c590121fd300d03c999dd057204c 08-Jun-2016 Winson <winsonc@google.com> Forcing software in header button background ripples.

Bug: 29133575
Change-Id: I21125e28208335f5b2c2adf06cb1c8199b3ca476
askViewHeader.java
f00098805c2af4dc7abc51fe7a5e77b04a5fb0fe 01-Jun-2016 Winson <winsonc@google.com> Fixing several issues with accessibility

- Only reset the focused task if the task that we removed actually had
accessibility focus.
- Only reset the focused task on scroll if we are not in touch
exploration mode
- Ensure the focused view has accessibility focus when entering recents
in touch exploration mode
- Instead of using the focused task, query for the accessibility focused
task view when setting the focused task in response to the scroll
gesture. In addition, use this accessibility focused task to
determine whether we need to add the accessibility actions
- No longer explicitly requesting accessibility focus on view focus
- Removing some unused code

Bug: 29046351
Change-Id: I5701a408bd919e47990f0d2fc6e4686eb9530d8e
askStackView.java
askStackViewTouchHandler.java
askView.java
399d21e37c83fc543668880ff28e929d47c7629d 18-May-2016 Winson <winsonc@google.com> Tweaking layout to make two-task stacks to closer match design.

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

Bug: 27859654
Change-Id: Ia4aaa3fe445032493c94a8dee7f6fea33bee36ec
askStackLayoutAlgorithm.java
askStackView.java
814358a24f7bf045cdd8261f15aefff59936287b 26-May-2016 Winson Chung <winsonc@google.com> Merge "Fixing crash in SysUI due to invalid group." into nyc-dev
8a3ef375ee299e4a84936c87f66098fa9fb84258 26-May-2016 Winson <winsonc@google.com> Fixing crash in SysUI due to invalid group.

- Adding a null check for tasks that have already been removed, but may
be launched.

Bug: 28890599
Change-Id: Idde322c737a5543e639e693fbe7615e720a12c1e
askStackAnimationHelper.java
6c8217ab3072fa65851316a922b482506b3c2a4c 25-May-2016 Winson <winsonc@google.com> Defer calling the stack task removed callbacks.

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

Bug: 28941269


Change-Id: I37b93bd959a625096925a16a426269a0c79de4e7
askStackView.java
c5887ea7a0b82cc5909743ce14cbda1dcf1dfc82 14-May-2016 Jorim Jaggi <jjaggi@google.com> Fix janky multi-window entry animation

- Add tracing when drawing ImageWallpaper.
- Don't force a redraw in onSurfaceRedrawNeeded. This only adds
another unnecessary draw and doesn't do anything useful.
onSurfaceRedrawNeeded is only here so the client can block.
- Delay entrance animation by one frame so wallpaper can be drawn
before the transition is starting.
- Add some delay for animating the tasks up in recents to match that
delay (it wasn't matched before at all).
- Fix an issue where launchedFromHome was wrong while docking.

Bug: 28769940
Change-Id: I2b763ed40078541328a1e04ffecf5b0a520fe019
askStackAnimationHelper.java
409d99a090dd3dc1525aa24ca405b0df44e2c818 11-May-2016 Winson <winsonc@google.com> Fixing flashing when animation the launch task.

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

Bug: 28701153
Change-Id: I4ccb38417df15f43408b2ae77708ba9de407e753
askStackView.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
ecentsView.java
ystemBarScrimViews.java
askStackView.java
askView.java
f9e79e0499a114b184e0d0f4dbd45b3d690a4657 05-May-2016 Winson <winsonc@google.com> Fix edge case crash with invalid bitmap dimensions.

- In these cases, skip returning an animation spec for that task

Bug: 28235453
Change-Id: I611dc4390c0cbd2ca5f16112e4784848b2d6896f
ecentsTransitionHelper.java
61560f065a334343d9c552796e1c702f4dfb664b 03-May-2016 Winson <winsonc@google.com> Fixes several animation issues related to a dismissing task.

- Previously we did not properly cancel the animations when the user
interacted with the stack while a task was being dismissed. Now, on
touch down, we only cancel the non-dismissing tasks, and in doing so,
set their task override if there is a dismissing task (so that the
stack can scroll correctly), and update the surrounding task views
if the dismiss update comes from the currently dismissing task.
(or in other words, the surrounding task animations will only be a
function of the current task being dismissed)

Bug: 28448670
Change-Id: If7b8ed3f1fe342114ae0f6dd9dbff0d48204f31e
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
aa0dea7a4a5b0861bc040e3f5db633a272146fb7 28-Apr-2016 Winson <winsonc@google.com> Pipe the dismiss button logic through the touch handler.

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

Bug: 28443410
Change-Id: I309c38253e9c2dc78a5882dc663eec84a11619dd
askStackAnimationHelper.java
askStackView.java
askStackViewTouchHandler.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
askStackView.java
9832f8f463a7d5448af2294bce05eac85f4dbef0 26-Apr-2016 Winson <winsonc@google.com> Fixing issue with docking being disallowed for secondary user.

- When a task is docked, the context is not correct for the given user.

Bug: 28195260
Change-Id: I59f73caf818d294c146d215c2bd31dbe1d4c7c5a
ecentsViewTouchHandler.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
askViewHeader.java
f300badbf10505fbcb884aebb0f2c3120e018748 25-Apr-2016 Jorim Jaggi <jjaggi@google.com> Fix bug with cancelled drag

Bug: 28257206
Change-Id: Ic7342f4284185486e884836220b05423e308f7ae
ecentsViewTouchHandler.java
60df24648e7ce6293124256ea565615f88df3c38 24-Apr-2016 Winson <winsonc@google.com> Fixing animation regression due to ag/957220.

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

Bug: 28287904
Change-Id: I6d71328fb3dc4595ea67ee18cfa57d85d741e6c6
askStackLayoutAlgorithm.java
askStackView.java
eca47ef813c49c8d8cee2cdc93c296bbc59ed73b 22-Apr-2016 Winson <winsonc@google.com> Fixing issue with swipe-dismiss animation clobbering home animation.

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

Bug: 28287904
Change-Id: Ie40c66c0f25705b56f6808607d2b7b8ae4e5a112
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.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
nimationProps.java
ecentsView.java
askStackAnimationHelper.java
askStackView.java
3ca1028e74499e9beec33c144ccdd87df7df1171 22-Apr-2016 Winson <winsonc@google.com> Closing system windows when dismissing recents to app or home.

Bug: 28314924
Change-Id: I35f484c7c594bb39d7983965e0f706175cf92253
ecentsTransitionHelper.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
ecentsTransitionHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewThumbnail.java
6c83c7aa5f84680ffd53d3e318279cbead8b1af5 22-Apr-2016 Winson Chung <winsonc@google.com> Merge changes I222e50f6,I9832874d into nyc-dev

* changes:
Removing legacy calculation of Recents visibility.
Adding additional dump logging to track down bugs.
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
ystemBarScrimViews.java
a20eeda52951021da758fefba7bf956c9c9d15a2 21-Apr-2016 Jorim Jaggi <jjaggi@google.com> Fix a few weird state issues from race-conditions

- When starting another transition while the dock transition
is already set, always override that because that transition
starts prolonged animations which will never be ended.
- Only dock if we get a good UP event.

Bug: 28257206
Change-Id: Icabfcf475f419696d2bcff8fbb53cf3b29dedd69
ecentsViewTouchHandler.java
50c410c1c91922e91fb8d1b873f6a541d1e2fd6c 20-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix wrong transition when recents is growing when entering" into nyc-dev
db21bbd2caf05322864f09ec45a0c572cf071123 19-Apr-2016 Jorim Jaggi <jjaggi@google.com> Fix wrong transition when recents is growing when entering

Bug: 27855229
Change-Id: I050305d16df6fe53abf5e74e1f9ee6c882dd7ead
ecentsTransitionHelper.java
askStackLayoutAlgorithm.java
askStackView.java
b77d0bcc840fbda8372c4042a1f2e83df8e12a83 20-Apr-2016 Winson Chung <winsonc@google.com> Merge changes Ie3125ec8,Ifa149322,Ifa2ed84a into nyc-dev

* changes:
Tweaking accessibility actions for dock divider.
Ensure that the drag view is not dimmed.
Disallowing scrim activity from setting TaskDescription.
0a461f0111287a0c0b77dd7ec0454b40195c8d88 19-Apr-2016 Winson <winsonc@google.com> Ensure that the drag view is not dimmed.

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

Bug: 27154882
Change-Id: Ifa1493227593dd950e49650b69f178cef82bc82e
askStackView.java
25160db73f37619a26a3d87a06625925d881b0fd 19-Apr-2016 Jorim Jaggi <jjaggi@google.com> Optimize some binder calls when recents configuration changes

Bug: 28122871
Change-Id: I54249428792c3ad4b3b6d3dcc0f405675b3b23b4
ecentsViewTouchHandler.java
ystemBarScrimViews.java
askStackLayoutAlgorithm.java
askViewHeader.java
askViewThumbnail.java
b677bcbee460a3246872d8090b64db1d8ec9c276 19-Apr-2016 Winson <winsonc@google.com> Hiding clear-all button on drag start.

Bug: 27702186
Change-Id: Ibec23fdb1ce4853f52a449cbe6d8c6454f0b027c
ecentsView.java
99ef458ff1b79c93a8dfdc289fb6ff80fd7aacf6 19-Apr-2016 Winson <winsonc@google.com> Adding hint text for drop targets.

Bug: 28192178
Change-Id: Id7be5129488622b56082d2dfa328b751311cabd7
ecentsView.java
ecentsViewTouchHandler.java
3664426dcf3a603a52d630a74f3caef9da682457 18-Apr-2016 Winson <winsonc@google.com> Fixing animation spec animation problem.

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

Bug: 27154882
Change-Id: I25af8fad97ee78669c952dd81708e6cee5dfab05
ecentsTransitionHelper.java
askStackLayoutAlgorithm.java
askStackView.java
bde852dbf5ba8c423da85aedfe6012ca67ee497c 16-Apr-2016 Winson <winsonc@google.com> Making the dismiss animation feel smoother.

Bug: 27154882
Change-Id: Idbabfe396bc75b598861fd12b78c846f08243a90
askStackViewTouchHandler.java
19ecc8ce2d8ca5d27e8098521c9668b7882d271c 16-Apr-2016 Winson <winsonc@google.com> Fixing issue with gap between task views.

- Now that we changed the way the landscape tasks clipped, we no longer
have to worry about the aspect ratio scaled height.

Bug: 27921659
Change-Id: I86b10805e92decb9995caa3790649f9f7d211784
askStackLayoutAlgorithm.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
ecentsView.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
askViewThumbnail.java
e370e15056d45eba83d6ad96d9be46a17eddff29 15-Apr-2016 Jorim Jaggi <jjaggi@google.com> Slow down entrance animation on tablets a bit

Also fix an issue where resize was not called.

And make the translation a bit larger, because the
animation is longer.

Bug: 27870534
Change-Id: Ia6128db8108fe57bee96816fc95fd0811d941ffb
askStackAnimationHelper.java
5981b8c2e8f6363d1f3bf09e7f1b3b5fb9a3846a 15-Apr-2016 Andrii Kulian <akulian@google.com> Merge "Remember task which is being locked" into nyc-dev
0f051f5abdb31024d862a954cc4c4716b1dde616 14-Apr-2016 Andrii Kulian <akulian@google.com> Remember task which is being locked

We need to remember task which requested to be locked
because we can accidentally lock another task after
user interacts with pinning request dialog.

Bug: 27876860
Change-Id: Ie8e607df4380dd33ea9b3474afc247b02e31de07
ecentsTransitionHelper.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
ixedSizeFrameLayout.java
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.java
askViewTransform.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
ystemBarScrimViews.java
askStackView.java
askViewHeader.java
f21c3dace89b168f5e5e4e96532d977b8b0a1cf5 14-Apr-2016 Winson <winsonc@google.com> Fixing crash.

b/28179361

Change-Id: I5c6049efcd0c43f3b0e595648fd331c2a82d4d73
ecentsView.java
ecentsViewTouchHandler.java
545c5c20d3b1f424b2f1917a262a5e8130dab6d0 13-Apr-2016 Jorim Jaggi <jjaggi@google.com> Refine long-press enter and exit animations

Bug: 27154882
Change-Id: I13a1a6ea7eabdefc7e5c32ae0471d9fa14cc3f86
askStackAnimationHelper.java
a74888ddf6657b41aed28dff0b0b1d47a80f107f 13-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "TRON refinements for multi-window" into nyc-dev
29379ec859bf7118dec9f3248c63ee369218ad6b 12-Apr-2016 Jorim Jaggi <jjaggi@google.com> TRON refinements for multi-window

Bug: 26013430
Change-Id: I89b139b4ca3e7b6a06d8b5b351d67ffac240f73f
ecentsView.java
ecentsViewTouchHandler.java
608f65b1442bc99fd1ee7c9b282217fe428647f1 13-Apr-2016 Winson Chung <winsonc@google.com> Merge "Fixing issue with larger clip bounds being specified than in the view." into nyc-dev
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
askViewThumbnail.java
da8d2285e59fc57361308a3c59b32b9dd7d406aa 12-Apr-2016 Winson <winsonc@google.com> Fixing issue with scrolling tasks upwards

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

Bug: 27376567
Change-Id: Idd1874ab0f6f5eb273bf6e9623b84277961f4291
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
9b001396c26e5b5ee95e0a54213a8a421179e365 08-Apr-2016 Winson <winsonc@google.com> Updating visuals for incompatible apps.

Bug: 26774190
Change-Id: I688d5dbab0305e794cad832ae92a8e5c9440737a
ecentsViewTouchHandler.java
askView.java
askViewHeader.java
19cf2972582198484816ac15ba83a4f46946082b 08-Apr-2016 Jorim Jaggi <jjaggi@google.com> Disable snap targets that make apps <220dp

- Make minimal task size 220dp.
- Disable upper and lower targets if they result in less
than 220dp task size.
- If even the middle target doesn't allow 220dp task size,
disable entering split screen altogether.

Bug: 26451260
Change-Id: I06e358c9b3da0172c5def75cdadf975f87f9fa57
ecentsViewTouchHandler.java
a6b81e0615c6c30a6b8003f69f728b08ccfb5174 07-Apr-2016 Winson <winsonc@google.com> Cancel recents animations after the transition starts.

Bug: 27864076
Change-Id: Ibe677704245534018db9051060ad5fa99332576b
ecentsTransitionHelper.java
askView.java
d72c315d5eed3a684eee303364b97129cb821689 06-Apr-2016 Winson <winsonc@google.com> Adding more logging of the state to the bug report.

Bug: 28009206
Change-Id: I0efc513bb6fc5ea4c9724b0a411ca5d60a71f27e
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
aeb298c4db913b376fb6053ec30c132a93e04635 05-Apr-2016 Winson <winsonc@google.com> Fixing bad regression in alt-tab layout.

- Removing the notion of drawing the task header thumbnail on preload.
This would not work because we could not know the stack state until
showRecents() is actually called. Instead, we keep a cached thumbnail
bitmap that we draw into when we start the activity, which is only
updated when the layout changes.
- Ensuring that with the smaller task views in the focused layout
overlap and do not show a gap between them (this was introduced when
the task views were made smaller to show more of the task behind it)
- Ensure that both alt-tab and paging both default to focused state
- Always reset the stack layout to clear the task overrides so that
we don’t inadvertently get overrides when alt-tabbing

Bug: 28014191
Change-Id: Ibc93597e9c027ce5abd65a8b77c0628864814c9b
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
24251b68f15c503a88bfdcd2faeb34e50a7d6747 05-Apr-2016 Winson <winsonc@google.com> Fixing tiny issue with empty state graphic not being centered correctly.

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

Bug: 28005632
Change-Id: I114bcaadddb0d4777d4c013097c0d1a20e4fab0b
ecentsView.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
askViewHeader.java
500ba75c9a53786ce3f60a9cd985b6cc29eb665d 30-Mar-2016 Winson <winsonc@google.com> Disabling the nav bar scrim when Recents is docked.

Bug: 27869246

Change-Id: I554b299c7e577f40811fc02d6ff4a46313ff1622
ystemBarScrimViews.java
askStackLayoutAlgorithm.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
askViewThumbnail.java
dec4430d52f038148f53a9df9958e3553c8a5216 01-Apr-2016 Winson <winsonc@google.com> Always force update the transform when calling from RecentsImpl.

- Workaround for crash in RecentsImpl where we could be retrieving the
transform for a task that is not at the front of the stack (can happen
if time changes, etc.) However, since we only use the size for the
transition, we can always force-update the transform.

Bug: 27849282
Change-Id: I86eee4c158748e4f13a2daeac5cf040c0874f967
askStackLayoutAlgorithm.java
47c78f93c2cf9fd62b1c32ceb9717285f3f26b3b 01-Apr-2016 Winson <winsonc@google.com> Fixing small regression in clear-all button and scrim alpha animation.

Bug: 27702186
Change-Id: Ie26fa7e2cd73fe8e5e6800e47859ac3bbd763fe4
ecentsView.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
ecentsView.java
askViewHeader.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
askStackView.java
7845e8c4946f6b5dadfcd9c1d64e826bacc50edb 29-Mar-2016 Winson <winsonc@google.com> Adding logging to track down bitmap issues.

Bug: 27849282
Change-Id: Ie763a2a6cc968896e1ec0c4d89859cb49bd89e85
ecentsTransitionHelper.java
askViewTransform.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
ecentsView.java
3b6ba1ab144c53752841869627a1b9f6d357c404 22-Mar-2016 Winson <winsonc@google.com> Adding clear-all button.

Change-Id: Ife637438b191c4a5004f3c6551bc75691e8e426b
ecentsView.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
9007136ee9b9423c948b3bed06fe304d8737d46d 29-Mar-2016 Winson Chung <winsonc@google.com> Merge "Fixing regression in recents entrance animation when docking app" into nyc-dev
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
ecentsView.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
64ae08aa16fdf7ee33073979400afa40692342f1 28-Mar-2016 Wale Ogunwale <ogunwale@google.com> Show non-top tasks in the docked stack in recents.

Allows the user to access the task through recents since
it isn't currently visible on screen.

Also, changed recents to launch task currently in the docked
stack in the fullscreen stack when selected from recents list.

Bug: 27864383
Change-Id: I58549023920d064a30b6355367c3193ce3207bbd
ecentsTransitionHelper.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
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.java
f9357d9b31e7ad671db3c75a7aa8ad589fb04f78 25-Mar-2016 Winson <winsonc@google.com> Fixing issue with tasks being laid out with the wrong bounds.

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

Change-Id: I6711152878a4afd48518e01477fd793a4c132648
askStackView.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
ecentsTransitionHelper.java
ecentsView.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.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
ecentsTransitionHelper.java
ecentsView.java
0b46f3c72c324bc9b8890ed9b81951bbeec70fdd 14-Mar-2016 Jorim Jaggi <jjaggi@google.com> Implement transition for docking task in recents #2

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

Bug: 27607141
Change-Id: Ib647d44d9777f1155deab818d1fd5425c1bdd3d1
ecentsTransitionHelper.java
ecentsView.java
askStackView.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
ecentsView.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
askStackLayoutAlgorithm.java
askView.java
askViewHeader.java
askViewThumbnail.java
22574afa00b7e32b7c4c5a1b98deebd67751b364 24-Mar-2016 Winson <winsonc@google.com> Adding workaround for crash.

Bug: 27815919
Change-Id: I04d70d16dd8b8281ba1ffbba056d475d834d5b54
askViewHeader.java
f8597b2aef7c52f8bbf3715f42b33f70cee0b81e 24-Mar-2016 Winson <winsonc@google.com> Tweaking scroll-to-launch task animation.

- Always scroll so that the launch task is focused

Change-Id: I84516d0799ad0b308cfa458f4ce79c82acc48f51
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.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
ecentsView.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
008ee15fe82c8216e8e4f67e3032de468cc6c92a 19-Mar-2016 Winson <winsonc@google.com> Completely removing dead code related to search widget.

Bug: 27742174
Change-Id: Ie478c562f6152338417aca5262b7f33ee4ca7ed5
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.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
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
ecentsView.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
2068408d08ca39a5b036daac01e80de45e8c1eab 17-Mar-2016 Winson <winsonc@google.com> Allow dragging to dock single tasks.

Bug: 27696141
Change-Id: I538cd4753d47a3606a87ac096d4ea86f6263a2ed
ecentsView.java
ecentsViewTouchHandler.java
askStackView.java
96e613412fe2e8fa6e99b54f5b596a99e4c5cd28 16-Mar-2016 Winson <winsonc@google.com> Scroll to the launch-task when toggling overview.

Bug: 27680710
Change-Id: I3eba2cdbe0a92ef05dd6882a5e41db2a5875c98a
askStackView.java
askStackViewScroller.java
bc0f8cd332bc4fea6944bec41a2d9a50d6812221 15-Mar-2016 Winson <winsonc@google.com> Ensure that recents toggles even in the empty state.

Bug: 27604213
Change-Id: Ie529f27e7e8110be8e86224bbad7622300fa87a7
askStackView.java
196e861b2ac4b8a55661f05bd2d03b2494102848 15-Mar-2016 Winson <winsonc@google.com> Updating empty state graphic.

Change-Id: I7fb1f704dfbf0a300e00805d75c08b2fdabf7260
ecentsView.java
003eda6c230a1b1c4e3709466c46660e7602d740 11-Mar-2016 Winson <winsonc@google.com> Fix issue with the component layout not having updated on config change

Bug: 27618066

Change-Id: I362c893222439c0dd1faa0000b29ead7ef621606
askStackView.java
c694a509ff768b6a942616676dd8103e20d06e66 11-Mar-2016 Winson <winsonc@google.com> Adding docking checks for multi-window support.

Bug: 27387257
Change-Id: I9f16302e1f9475225538871d9fc09c0706e4dbfb
ecentsViewTouchHandler.java
d2130267a77c968c6f5384298fcfdb85daa0763a 10-Mar-2016 Winson Chung <winsonc@google.com> Merge "Fix regression when setting initial offset when docked." into nyc-dev
809a5b128d20368ca24b974521ba88e7bd0eba99 10-Mar-2016 Winson <winsonc@google.com> Fix regression when setting initial offset when docked.

Change-Id: Ide8e9eb2d97b5540186736fc73b093e4385613bd
askStackLayoutAlgorithm.java
44ffd922dc61e0855026763b8d53453f0a1eda17 10-Mar-2016 Winson Chung <winsonc@google.com> Merge "Fixing issue with animations not being cancelled." into nyc-dev
73492c5d7a5fdc19cfda750e4476d3188aca414e 10-Mar-2016 Winson <winsonc@google.com> Fixing issue with animations not being cancelled.

Bug: 27533931
Change-Id: I724643ec8a2c6cdaa3cade72ae40abcf9d28bae5
ecentsTransitionHelper.java
askStackLayoutAlgorithm.java
6348b712c2c644936394577ee687ab3628402c7f 09-Mar-2016 Jorim Jaggi <jjaggi@google.com> Merge "Animation for docking task gesture" into nyc-dev
899327f5cbbfb0eae5562b262ccea860c98f6bc4 26-Feb-2016 Jorim Jaggi <jjaggi@google.com> Animation for docking task gesture

- Don't move recents window around during the animation
- Set the correct task size shortly after docking, so recents
starts with the correct size to avoid jank.
- Add staggered animation in recents.

Bug: 27154882
Change-Id: I7c56102feba9c3f6cb86cb5f1d87f0ad3b29c721
askStackAnimationHelper.java
askStackView.java
askView.java
askViewTransform.java
4cfea695112f2f61d9f4391e6d928561a68a7db3 08-Mar-2016 Winson <winsonc@google.com> Fixing crash in Recents

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

Bug: 27538945
Change-Id: I4ff0413cb2fb961a4dedcad42471293bab4f955a
ecentsView.java
askStackView.java
fbc32f158b7bff7aa5872af5acd8d161a59f20e1 08-Mar-2016 Winson Chung <winsonc@google.com> Merge "Preventing users from over scrolling too far." into nyc-dev
12cb920ebacaba0b70535b1a0a98c4c18ad04a94 05-Mar-2016 Winson <winsonc@google.com> Preventing users from over scrolling too far.

- Also tweaking the second part of the unfocused curve to make it more
linear to touch.

Bug: 27478701
Bug: 27376567

Change-Id: If187ea333579221ef24986d8d37d0606e50ab7bc
askStackLayoutAlgorithm.java
askStackViewTouchHandler.java
4333694d8a7024a141ffb12cd59b0b56a362baa5 07-Mar-2016 Winson <winsonc@google.com> Fixing screenshot regression from ag/879131.

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

Change-Id: I33916aecf004afdb88a2462e69437ad1d9e8017d
askStackView.java
1d5ff7e71e50d0649911df7b41e77801c170797e 04-Mar-2016 Winson <winsonc@google.com> Just return the task to the pool if it is not in the current stack.

Bug: 27467025
Change-Id: I5c414d674fb0db152b77c2025b4885d340e81880
askStackView.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
ecentsTransitionHelper.java
ecentsView.java
ystemBarScrimViews.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
8f97c83b2eec19965782edcaa9fedad43db2d06f 04-Mar-2016 Winson <winsonc@google.com> Use the non-override task progress for calculating the z.

- This guarantees that they won’t collide, where as the override task
progresses will as tasks animate while dragging to dismiss.

Change-Id: I25eded22c13b38428d849062c6d95893f3fff5c5
askStackLayoutAlgorithm.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
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
ecentsView.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
e83cd6147be45afd57722e414239d2dd15e257c0 02-Mar-2016 Chris Wren <cwren@android.com> Merge "add all those great comments from the other file" into nyc-dev
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
askView.java
6b03ff8d57bd8c211eb3b3dc2abdb96a1bfa81dc 01-Mar-2016 Winson Chung <winsonc@google.com> Merge "Skip animation in error case, log for further investigation." into nyc-dev
3f3d744d5c51d3ecc06af22ac7d69f4437671915 01-Mar-2016 Winson <winsonc@google.com> Skip animation in error case, log for further investigation.

Bug: 27389156
Change-Id: Idc2ebdf04ab72d326f68a47627b27d6e61315d1e
askStackAnimationHelper.java
d93429076cd3cef2868da4613092515148f8a6fb 25-Feb-2016 Winson <winsonc@google.com> Track double taps to launch the previous task.

Change-Id: Icd792ed4f508f8a8540a5cd2d12c3bdfd5827410
askStackView.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
ecentsView.java
ecentsViewTouchHandler.java
askStackView.java
askViewHeader.java
c438702740cd2893fe3bcec5546049e6b6172eb4 24-Feb-2016 Winson <winsonc@google.com> Fixing crash when focusing tasks.

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

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

Bug: 27295423

Change-Id: Ib309e9de3095cacb178ae9ff5c53b8ee2c7ddac0
askStackView.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
askStackLayoutAlgorithm.java
askViewHeader.java
askViewThumbnail.java
66474134a7dfaf2e63946e2d021dc162365f3a90 24-Feb-2016 Winson <winsonc@google.com> Improving transition from paging to stack.

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

Change-Id: I055b08257fe1427e00e26ffa02f261cf51a8a2e0
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
15d6eafec54f8631c908b8a81c997fef8dd4cd8a 19-Feb-2016 Mady Mellor <madym@google.com> Merge "Initial implementation of dismiss gesture + inline settings icon" into nyc-dev
4b80b1025f82fa7becc8e126bfa4aea39affcf65 22-Jan-2016 Mady Mellor <madym@google.com> Initial implementation of dismiss gesture + inline settings icon

- Added a view to display / control the gear behind the noti
- Updated SwipeHelper to hide / show the gear based on the gesture
- Only one notification or notification group can show the gear
at a time

Couple of things left to do that will come in a follow up CL:
- Animation (to / from inline controls, fading gear based on movement)
- For children in a group there needs to be a grey background

Bug: 22451710
Change-Id: I2f93edf48109a82bab0839c73cbaba1535caee9a
askStackViewTouchHandler.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
ecentsView.java
askStackAnimationHelper.java
8a5c64062f78b96c05638171a78331a2f8d422b5 13-Feb-2016 Jorim Jaggi <jjaggi@google.com> Fix recents transitions

- Also animate when there is no thumbnail, which can frequently
happen after exiting multi-window.
- Also animate when the target stack id is INVALID, because we
currently don't persist stack id's in the tasks.

Change-Id: I280c85e62f55d712408a3e77c43f665acb19bc4c
ecentsTransitionHelper.java
23b0d3f66e8280c8638d8b0954edc0409d14de7f 16-Feb-2016 Winson <winsonc@google.com> Better focus handling after dismissing task/scrolling.

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

Change-Id: I2555c9340f40affc371f52d51d88af0eeda53b2e
askStackView.java
askStackViewTouchHandler.java
be8f35747c11e2be642c65b4d387458c373702c4 16-Feb-2016 Winson <winsonc@google.com> Fixing issue with front task dimming when scrolled back.

Change-Id: I30d88796e7af13734c9a33def05b62bed4fb2e96
askStackLayoutAlgorithm.java
1499150478b2836a7d2549129ccaed005b24bc06 16-Feb-2016 Winson <winsonc@google.com> Tweaking stack shadows and layout.

- Properly setting view outline alpha
- Ensuring that dismissing while in focused state will return to
non-focused state
- Fixing mis-calculation with bottom stack area

Change-Id: I281b7707421ffde4225180c63c7d40bf325f7f72
nimateableViewBounds.java
reeformWorkspaceLayoutAlgorithm.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewTransform.java
680888123db816ad0c5f082d1e9b3f9b756bc7b6 13-Feb-2016 Winson <winsonc@google.com> Minor tweaks

- Initializing to focused state when going into Recents
- Dimming the front-most tasks to highlight the focused task
- Fixing wrong call to resize in the LruCache

Change-Id: I41833a9dc59a9bdf4a94b698e4800c1019bceb01
nimateableViewBounds.java
nimationProps.java
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewTransform.java
14e15b2ca1f1d1c97f4ee50331c8dedb88315c47 12-Feb-2016 Winson <winsonc@google.com> Adjusting the tuner flags to allow disabling fast toggle.

Change-Id: I0da29479c075a41ddb49e9852eb912604efa9aa8
askStackLayoutAlgorithm.java
1bcf3c4742da5a1d9c04c73efac5c2418142c262 10-Feb-2016 Winson <winsonc@google.com> Moving dim calculation into the stack layout.

- This simplifies code and also prepares the code for dimming certain
tasks when focused.
- Ensuring that cancelling transitions will completely remove all
listeners in a given animation.

Change-Id: I77050d94097f9af404250c287522d83c146cfb25
nimateableViewBounds.java
nimationProps.java
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewTransform.java
231bc9c54a48921f9c6a1ae187969c9bfe9d121f 09-Feb-2016 Winson <winsonc@google.com> Adding view debug annotations to simplifying debugging state.

Change-Id: If90955f44be55ff09208998214bc1bb47f93a872
nimateableViewBounds.java
ecentsView.java
ecentsViewTouchHandler.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
askViewThumbnail.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
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.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>
askViewThumbnail.java
05e46ca8f3d24cf333e745c8cebb420b2996e9ea 06-Feb-2016 Winson <winsonc@google.com> Updating paging animation to spec.

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

Change-Id: Ic5fd54500fd8ce8284c7aaeddb102b2291bcecac

Signed-off-by: Winson <winsonc@google.com>
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
iewPool.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>
ecentsView.java
askStackView.java
askStackViewTouchHandler.java
askView.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
ecentsView.java
f5b32be5bfd4ee2a82eb4c367dd577ddac987689 05-Feb-2016 Winson Chung <winsonc@google.com> Merge "Revert "Drawing thumbnail background color for empty space in view.""
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
askViewThumbnail.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
askViewThumbnail.java
9bbd2861ad0c44ff95463090b303f131b118a2bd 03-Feb-2016 Winson <winsonc@google.com> Fixing issue with task animating from 0,0.

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

Bug: 26964326
Change-Id: I4db9cd1b072d3841351c2e84b219ca224a3045f9
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.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
askStackLayoutAlgorithm.java
askStackView.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
ystemBarScrimViews.java
askStackAnimationHelper.java
askView.java
50448630a49a9602eb53561d1c022890d07449d0 02-Feb-2016 Winson <winsonc@google.com> Tweaking enter from/exit to home animations.

Change-Id: Idedf00457055b6f0268c0f93a0a14c6a553e1168
ecentsView.java
askStackAnimationHelper.java
askStackView.java
be8e696a1f40a61c52a74022f4f084fdc0600f90 01-Feb-2016 Winson <winsonc@google.com> Allow animation controls for each animated property.

- Using onDrawForeground() instead of dispatchDraw()

Change-Id: Iae107a1ba14250f8c496264c60a29edc76df88e2
nimationProps.java
ecentsView.java
askStackAnimationHelper.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewAnimation.java
askViewHeader.java
askViewTransform.java
70f0bf7d5d30c8d20b28af2134d8c21862e2a294 01-Feb-2016 Winson <winsonc@google.com> Fixing regression in animation of drag task.

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

Change-Id: Id798cc39216d7ccbaa106c687aa0a518e7d5155f
askStackView.java
c6c89a82144f59475242c75d67529fed943ae30b 29-Jan-2016 Jorim Jaggi <jjaggi@google.com> Fix transition to recents in docked mode

Transition for non-compatible apps will be handled in a separate CL.

Change-Id: I9c474f7aa394e4f3eacd1845c78bee5874bd8a59
ecentsTransitionHelper.java
askStackLayoutAlgorithm.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
ixedSizeImageView.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.java
c0848f11794abcecc89bd05fea73e103e887eff6 30-Jan-2016 Winson Chung <winsonc@google.com> Merge "Revert "Re-enabling fade-in of header bar icons.""
133ad44269e4b45e056793b579a7628aa4d91ccb 30-Jan-2016 Winson Chung <winsonc@google.com> Revert "Re-enabling fade-in of header bar icons."

This reverts commit 9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc.

Change-Id: Ie9e6ba685654622a9a1e76a405cc4d47477d9e13
ixedSizeImageView.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.java
4b164b6d4cd6a253454ac988c83b441ae2a8e4e0 30-Jan-2016 Winson Chung <winsonc@google.com> Merge "Re-enabling fade-in of header bar icons."
9b5c847a19bf7dbfe3fe00f11cbbdf581794fccc 29-Jan-2016 Winson <winsonc@google.com> Re-enabling fade-in of header bar icons.

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

Change-Id: I6879b30a985ca8274ee77126b152daa985054371
ixedSizeImageView.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.java
d952961977a0eb6c1fefcb0707d1c61741515f68 28-Jan-2016 Winson <winsonc@google.com> Fixing some drag and drop issues.

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

Change-Id: I15436ac21f05ff521492d8ae1c682a414503101a
ecentsViewTouchHandler.java
askStackView.java
askStackViewScroller.java
c0d7058b14c24cd07912f5629c26b39b7b4673d5 29-Jan-2016 Winson <winsonc@google.com> Referencing static interpolators.

Change-Id: I5d2292016e869ed533f5873e373a1eccce651fc5
akeShadowDrawable.java
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
ecentsView.java
ecentsViewTouchHandler.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewAnimation.java
askViewHeader.java
askViewThumbnail.java
6d5b8b8e4473cc5d3ad2ace3376207c53d48ada3 27-Jan-2016 Winson <winsonc@google.com> Part 3: Fade in app icons

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

Change-Id: I8f5dc65f867e60c2d062bb8222c91bf98f54f6d6
askStackView.java
214f0f0dc8018b135e2394982c79f1bced4a5fec 26-Jan-2016 Winson <winsonc@google.com> Part 2: Adding clear-all to history

Change-Id: I9cd51f2a97ebe0f306e4934cdcac1a522526cf50
ecentsView.java
askStackView.java
askViewHeader.java
askViewThumbnail.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
nimateableViewBounds.java
ecentsView.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askViewAnimation.java
c573aa7c3a886f88dc308958268053a8a68f031e 27-Jan-2016 Jorim Jaggi <jjaggi@google.com> Merge changes I80100f39,I4b39c1c4,I65ce9a23,I5094a137,Id898752f, ...

* changes:
Make sure SysUI is not constantly redrawing status bar
Fix app staying in drag resizing when undocking
Fix flicker when dismissing non-docked stack
Start drawing immediately
Improve dismiss/scrolling handling in recents
Dim harder when dismissing
9b0a2c921a9268b89f3e72866b0f011749454c71 27-Jan-2016 Jorim Jaggi <jjaggi@google.com> Improve dismiss/scrolling handling in recents

Make sure to only enter dismiss mode if xDiff is bigger than yDiff,
and only start scrolling if yDiff is bigger than xDiff.

Change-Id: Id898752ff7a08df549e234678aed0dad074b202d
askStackViewTouchHandler.java
f6e9228b8a97603d3ceb8f0d61e8d87cf19bd21f 27-Jan-2016 Chris Wren <cwren@android.com> move framework metrics over to new proto

Change-Id: Ie46e946dc787350c15c10aa4385a6b7df7e181a8
ecentsView.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
askStackView.java
askViewHeader.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
ixedSizeFrameLayout.java
ixedSizeImageView.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.java
1c8461402bd25912b61c166552cd60be4b7089d9 22-Jan-2016 Winson <winsonc@google.com> Fix issue with stack not invalidating when only focus state changes.

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

Change-Id: I218ec78dc0e4e22e59ffcef03a1bc91d08b7c18b
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
35a8b04140598a5b5c4865254b942adb6a830991 22-Jan-2016 Winson <winsonc@google.com> Fixing crash with retrieving the first stack task.

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

Bug: 26739531
Change-Id: I27037a480201396011d7f9b8d094b4d9afe66f0e
askStackView.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
askView.java
askViewHeader.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
askStackView.java
askView.java
askViewHeader.java
b433c5be013803ca742565c018de0cf456828cd7 21-Jan-2016 Winson <winsonc@google.com> Fixing issue with multiple focus timer animations running.

Change-Id: I7243f30b917bb311e46efa1e09b44440a0236f07
askStackView.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
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.java
8aa9959413a06c3d2ff75e0c7be9e3cb7ac7cd2e 20-Jan-2016 Winson <winsonc@google.com> Starting the dismiss animation in parallel with the gesture.

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

Change-Id: I1eb0864a52e53562e4d573a6ed4f8a5a1615aff9
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askViewTransform.java
c5fd350522d9269e6239af818f7261a6ead51570 19-Jan-2016 Winson <winsonc@google.com> Removing extraneous calls.

- Removing calls to ensureCapacity, which was causing reallocations when
using a temporary set with multiple uses.
- Fixing issue with update callback not being called when immediately
updating a TaskView’s transform
- Adding utility methods in preparation for refactoring code


Change-Id: If62c3751ed6af15092a34435df08bb4d627536ea
nimateableViewBounds.java
reeformWorkspaceLayoutAlgorithm.java
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
c8a4cdc067d3e3ed2c94b481d446e5ed75cfdb73 19-Jan-2016 Winson <winsonc@google.com> Fix regression with drop targets not being visible.

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

Change-Id: I9441e34f677fe105757c237db0f6970e7cf8203b
ecentsView.java
f298e908b97a5a56ccb52d9f015e5408fe523af9 18-Jan-2016 Filip Gruszczynski <gruszczy@google.com> Enable enter animation when docking by dragging from recents.

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

Bug: 24913915
Change-Id: I7ce20fdd21ee76db4720a3d0fefdfa221b0e96bf
ecentsView.java
036693cf71f8c4d2dd0dfb57ad05e8827ed6df60 15-Jan-2016 Winson <winsonc@google.com> Preventing dock target from showing for single tasks.

Change-Id: I2a73c085e3777ac79f2846e1ba59f7c65bc3f9d0
ecentsView.java
ecentsViewTouchHandler.java
6ea2588a5d2e11e955d63609b6c5f51171260e85 13-Jan-2016 Winson <winsonc@google.com> Fixing issue with action button not showing/animating.

- The system flags need to be reread when the task stack is reset.
- Since we check for alpha before doing the animation, we need to
initialize the action button alpha back to zero when we reset the
task view.

Change-Id: I97530a7bdd5e934ab1d5831ef30cf7774418ed95
askStackView.java
askView.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
ecentsTransitionHelper.java
ecentsView.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
671e8f91aae080dc66a0136ce1fc1c1ae0a90db4 12-Jan-2016 Winson <winsonc@google.com> Removing custom swipe helper.

Change-Id: Ic28ab343f86ab6f80d8c0409a3218513bd8880af
wipeHelper.java
askStackView.java
askStackViewTouchHandler.java
5500390a006f2bbea565068234774a36cea076c0 12-Jan-2016 Winson <winsonc@google.com> Reducing numerous extraneous allocations.

Change-Id: Icca49f12a9e0be08eb6d4dbbbf2fd5994a3a25a5
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
407d8d08f0c6f20b28c554b5daaad752f564f4f3 09-Jan-2016 Winson <winsonc@google.com> Ensure that the front-most task never dims when scrolling the stack.

Change-Id: I370311b78203c079c4bbfa67753da13f91a15cbc
askStackLayoutAlgorithm.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
ropTarget.java
ecentsView.java
ecentsViewTouchHandler.java
askStackLayoutAlgorithm.java
askStackView.java
askViewHeader.java
b124d5607fb6bdfcc9e6c2e9ae24cadaf7f0b55b 12-Dec-2015 Peter Schiller <peterschiller@google.com> Indicator for task auto-select

Change-Id: I081222b84a5f90e77890724977821ed481fe3924
askStackView.java
askView.java
askViewHeader.java
b4cc67a3f68b41eb84628c7797202b5c8a5b0e0e 12-Jan-2016 Filip Gruszczynski <gruszczy@google.com> Pass correct task for retrieving of overview task bounds.

This fixes the recents to freeform animation.

Bug: 24913782
Change-Id: I7df32f08c72c86d46d8b25b49bd7e063b8ba214b
ecentsTransitionHelper.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
askView.java
askViewHeader.java
askViewThumbnail.java
ad66efa813cf1b291d6e0d6e5e56d37462d10148 09-Jan-2016 Winson <winsonc@google.com> Removing HW layers for task view transitions.

Change-Id: I00377e12d779519bd0fc102480d37382b3ac4ea6
askView.java
askViewTransform.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
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askView.java
askViewThumbnail.java
askViewTransform.java
9317f8698417a45a9ad32fabcbc5b50b250d31d3 08-Jan-2016 Winson <winsonc@google.com> Fix crash when trying to use uninitialized layout.

Bug: 26453007
Change-Id: I006cf2f622b267163230eae4a07ef676c805f5c3
askStackLayoutAlgorithm.java
dc8de848201f64542ad87940cfaa7a5e3d1343ad 07-Jan-2016 Winson <winsonc@google.com> Cleaning up imports and dead code.

Change-Id: Ie59fa7fc7c69eb375792c9227295d75c4672e802
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
ecentsView.java
ecentsViewTouchHandler.java
ystemBarScrimViews.java
askStackAnimationHelper.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewAnimation.java
b4f4dc4e4db5fd65cd457eecd3c98cfa11367615 08-Jan-2016 Winson Chung <winsonc@google.com> Merge "Refactoring and unifying TaskView animations."
3b8e5a1c951c5598a367e2edfdb23d2da186611f 08-Jan-2016 Winson Chung <winsonc@google.com> Merge "Moving more callbacks to animated events."
55e20d502f3037920de6598e2350ba9c35216589 07-Jan-2016 Winson <winsonc@google.com> Removing workaround causing full view inflation.

Bug: 26420766

Change-Id: I0bb0eeada5002460de47fe4b3e23bc8a8d6e751d
ecentsView.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
nimateableViewBounds.java
ecentsView.java
ecentsViewTouchHandler.java
askStackAnimationHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewAnimation.java
askViewHeader.java
askViewTransform.java
iewAnimation.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
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.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
ecentsView.java
askStackLayoutAlgorithm.java
931c51f54599a227422b2a1c71e922e1458e0291 17-Dec-2015 Winson Chung <winsonc@google.com> Refactoring lock-to-task state out of Task

- Moving the logic out of Task to the stack view which is more logical
and easier to manage
- This also includes a fix for the issue of the screen pinning not
showing up immediately after toggling it in Settings

Change-Id: I0357d59fc30b0327bbe6eeca10b310911aba3cc4
askStackView.java
askView.java
iewAnimation.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
ecentsTransitionHelper.java
askStackView.java
askView.java
askViewHeader.java
aaeaac17831090594e4927b1531c4658d239a3ea 16-Dec-2015 Winson Chung <winsonc@google.com> Refactoring to AnimatedEvent.

Change-Id: I87ce63201120dc687eccd63024801cc2c19bebd6
ecentsView.java
ecentsViewTouchHandler.java
askStackView.java
askView.java
aa4f800891e801e78cc4a0a9839fc59938cabdd3 17-Dec-2015 Winson Chung <winsonc@google.com> Fixing minor issue with freeform workspace not showing.

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

Change-Id: I0e877e64acba5dd165c0d7a2cffb24dea88d673f
askStackLayoutAlgorithm.java
askStackView.java
d27dae20859f29a2cf9fc4c5609a23d909f7418d 16-Dec-2015 Winson Chung <winsonc@google.com> Merge "Minor fixes to freeform workspace"
509d0d0c9e2ee165d04e898fea59f8941ac7138d 16-Dec-2015 Winson Chung <winsonc@google.com> Minor fixes to freeform workspace

- Fixing regression where we were clobbering the freeform stack order
- Ensure there is padding between tasks
- Fix the header bar animation

Change-Id: I69ced3e3cb2f0c761ddf0c3bd00b17c847d74c0b
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
askStackLayoutAlgorithm.java
6545fbfa510ddb5e89f238fc691993712a630f6c 16-Dec-2015 Winson Chung <winsonc@google.com> Merge "Fixing merge issue from ag/830529"
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
ecentsView.java
askViewThumbnail.java
75ca185730e0a96fbcb2267b861231618ae4a763 16-Dec-2015 Winson Chung <winsonc@google.com> Merge changes Ide26856c,I68bbef59,I2186bdfc

* changes:
Allowing tasks to be swiped away in the history view.
Loading activity icons in History view.
Ensuring that the undocked task is visible in Overview.
4e5fb2f4e1ed4eb119a201541ad89aafac8c53fe 15-Dec-2015 Winson Chung <winsonc@google.com> Allowing tasks to be swiped away in the history view.

Change-Id: Ide26856c291bcdd1b4ab5e15ae9eb876a9af719b
askStackView.java
b169ebd4c40b78d8a4c79e416c288af2ab5b5046 14-Dec-2015 Winson Chung <winsonc@google.com> Loading activity icons in History view.

Change-Id: I68bbef59d380ce7abe251fca75135775528429d5
askView.java
062667710edcad7a01d7ece3e2bc4a83ee2a2ca3 11-Dec-2015 Winson Chung <winsonc@google.com> Ensuring that the undocked task is visible in Overview.

Bug: 26043233
Change-Id: I2186bdfc64af161b8e828061a8e064f90c5cae24
ecentsView.java
askStackView.java
1d61863bd812a213722ac0beaa695dd3b84b328c 16-Dec-2015 Filip Gruszczynski <gruszczy@google.com> Fix sysui crash.

Bug: 26228707
Change-Id: I34e2362fecda06380e4640483a71365311f99d57
askView.java
d6b78a330bf6a74ff9bfa18d1ebe67a8665d4cfa 15-Dec-2015 Winson Chung <winsonc@google.com> Cancelling window transition when starting focus animation.

Change-Id: I34926215098c3226e99cc224c36d315fd1736b0a
askStackView.java
ead5c0fc20e5c60a68cd017af0b8eacaf1167a1c 14-Dec-2015 Winson Chung <winsonc@google.com> Enabling history and paging by default

- Removing associated tuner flags

Change-Id: Ia69bf273489b0079c389e7feb1428071569092d5
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.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
nimateableViewBounds.java
ecentsView.java
askStackView.java
askView.java
askViewHeader.java
de750de53127e42b71867dd5c17e873d7e9ba47e 11-Dec-2015 Winson Chung <winsonc@google.com> Only show historical tasks in history.

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

Change-Id: I7b9dcf79e2feef61f96b720f586144de4c5033e3
ecentsView.java
askStackView.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
askStackView.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
ecentsView.java
ecentsViewTouchHandler.java
ystemBarScrimViews.java
askStackView.java
0a3d3884c43cc4445b41f245746f9eedd1b8fc0c 14-Dec-2015 Winson Chung <winsonc@google.com> Merge "Revert "Saving the stack state when you rotate.""
8c38fd32ba9644323fc6fae19220bee9ab0faee5 14-Dec-2015 Winson Chung <winsonc@google.com> Revert "Saving the stack state when you rotate."

This reverts commit bf0be0a8030b91c7e75c23230c1f89a1536aa7eb.

Change-Id: I40b852889980473aea02828b5b0fe29c21951638
askStackView.java
02ba0fd81b3b92da8250724683ba5ec90c0a99e4 14-Dec-2015 Winson Chung <winsonc@google.com> Merge "Saving the stack state when you rotate."
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
askStackView.java
fe412b551bcfddabcaf5f4bf3c6c7ce4dd38c72c 12-Dec-2015 Jorim Jaggi <jjaggi@google.com> Merge "Add multi-window entry points logging"
92de6b63819d7af4a93f1e1da33e89d453a0ad65 10-Dec-2015 Jorim Jaggi <jjaggi@google.com> Add multi-window entry points logging

Bug: 26116313
Change-Id: I159ca53857d382cb74ef8e49f7955946ccea93ca
ecentsView.java
fca2a63f8b8492559809434a5c250962042b0c4a 11-Dec-2015 Winson Chung <winsonc@google.com> Temporarily workaround rendering issues.

- Disable reusing old stack view tasks

Bug: 25998134
Change-Id: Idf74f9b371a9ae6d89f5752708ac6adb675b55a7
ecentsView.java
dd64243d26239e7a71e6c96a722ee58810308a06 05-Dec-2015 Winson <winsonc@google.com> Fixing stack scroll when dismissing tasks.

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

Change-Id: I93158287a168f407a0a024e0be24f264dd0c2b6e
askStackView.java
7b3ccf54cb541cca40d44634c2ded1ff42ef4d07 05-Dec-2015 Winson <winsonc@google.com> Removing old focus animation on the header bar.

Change-Id: I892fda95ec5e74ee779283a5873210f301fbe778
askView.java
askViewHeader.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
reeformWorkspaceLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.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
nimateableViewBounds.java
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.java
askViewTransform.java
0ca88260694262928bf4b980667e82ab27e55572 08-Dec-2015 Jorim Jaggi <jjaggi@google.com> Reset recents translation when launching

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

Change-Id: If00c526806816df58c751cd715e0575dbb7adf17
ecentsView.java
644c6f70a873fc9a345b2a2689fb3597b371f373 04-Dec-2015 Winson Chung <winsonc@google.com> Merge "Minor tweak to initial paging state."
8589600035fbcae6979bc8e6bcf0476185a94fc3 04-Dec-2015 Jorim Jaggi <jjaggi@google.com> Merge "Make it harder to dismiss recents when dragging up"
116b2c2c5430122ad7dfa14470bc640bf3c1c59f 04-Dec-2015 Winson <winsonc@google.com> Minor tweak to initial paging state.

- Making the scroll and focus animations identical so that it doesn't
cause a weird flicker.

Change-Id: If1e3d23cd5ef45e429341c6bf7ac62b3a17eb662
askStackLayoutAlgorithm.java
askStackViewScroller.java
8fccfe28145f59f6620e37b7f34190bca4c4dbcd 04-Dec-2015 Jorim Jaggi <jjaggi@google.com> Make it harder to dismiss recents when dragging up

Change-Id: I5883f754125e978ebac470a2c72a1dc13b05b052
ecentsView.java
e759cd58bda6652e5413e7ca2a39b77bb776a610 04-Dec-2015 Winson <winsonc@google.com> Add tuner params to change the initial stack state and navbar gesture.

Change-Id: I114b8342f5293589eb96a1fd3a14da1757e75a95
askStackLayoutAlgorithm.java
389a3069ff30348015f100621eefffe2b3ce50cd 04-Dec-2015 Jorim Jaggi <jjaggi@google.com> Merge changes I284c851e,I3b1229e0,Ifbb10bac,I518521e6,I1f6a0efd

* changes:
Drag up gesture improvements
When dragging from the left side, dock on the right
Draw status bar background in BackgroundFrameRenderer while resizing
Don't remove colored bar views when relaunching
Add flag so apps always draw status bar background
870ab5a15cf8dfff16148868c0397445087e8462 03-Dec-2015 Jorim Jaggi <jjaggi@google.com> Drag up gesture improvements

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

Change-Id: I284c851e2e418d21e890b9dfe983cfe63300fe10
ecentsView.java
47f98ae56bd22ea0720bfb581bcd1b8a5a6ee605 03-Dec-2015 Winson Chung <winsonc@google.com> Merge changes I1e345044,I8c00aba3,I91536ce4

* changes:
Fixing crash when the focused task was removed.
Freeform workspace fixes
Fixing jump when second finger touches the stack.
aaf33bc2b27fa0c4b59484059434a0fad3187af4 03-Dec-2015 Winson <winsonc@google.com> Fixing crash when the focused task was removed.

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

Bug: 25975225
Change-Id: I1e345044165d3a0a5eab29fb8c2a3f59df615832
askStackView.java
a78a8f31d2e7f00cccfbe326f03bcc3d3cb1de77 03-Dec-2015 Winson <winsonc@google.com> Freeform workspace fixes

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

Change-Id: I8c00aba377601da92195ef301ba5da1ffb0045c5
askStackLayoutAlgorithm.java
askStackView.java
40149bfe8cd677d9a05e6c62d03e63a434be24f9 03-Dec-2015 Winson <winsonc@google.com> Fixing jump when second finger touches the stack.

Change-Id: I91536ce49d04bc13cbd54f230139592d1d3a3cf1
askStackViewTouchHandler.java
1c8a1d7becb228c709c5c84549a68816434cf35d 03-Dec-2015 Winson Chung <winsonc@google.com> Merge "Adding workaround to prevent flicker in Recents when resizing."
b495300183855a0d72ceca97c21dda347dca2513 03-Dec-2015 Winson <winsonc@google.com> Adding workaround to prevent flicker in Recents when resizing.

Change-Id: Id5b12e1208f2a624b386c2388081565205aeca54
ecentsView.java
askStackView.java
askView.java
askViewHeader.java
95bdfae278d34123c76153d340bf5f413442d2a3 03-Dec-2015 Winson Chung <winsonc@google.com> Merge "Temporary workaround for b/25980198"
0e0d85c23c4174a66a04336d5294cfd9231c819a 03-Dec-2015 Winson <winsonc@google.com> Fixing regression when animating in new views after dismissing task.

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

Change-Id: I21cb5c7c8c3cc3648867626a516de9ab01e704c8
askStackLayoutAlgorithm.java
askStackView.java
160f4c0d5c41c1e8e3de6687e7da4e9be6c9c445 03-Dec-2015 Winson <winsonc@google.com> Temporary workaround for b/25980198

Change-Id: I467758ad45c499d72b1756a7e4f5c379089b3049
ecentsView.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
ecentsTransitionHelper.java
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewHeader.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
nimateableViewBounds.java
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewThumbnail.java
askViewTransform.java
f0d1c44a59a10707baa0cca8dd377302260710c1 01-Dec-2015 Winson <winsonc@google.com> Adding notion of stack state to the layout.

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

Change-Id: I659e66d89f7205ccb0c2ba22c57aee95c8d4b3ab
reeformWorkspaceLayoutAlgorithm.java
ecentsTransitionHelper.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
a0a8ae466f7acfd66fc5a6e9a4584e419037af73 01-Dec-2015 Winson <winsonc@google.com> Fixing regression in drag view

- We should be removing the dragged task view after it is dropped on a
drag target
- Also fixing issue with ViewPropertyAnimator listeners not being reset
causing callbacks to be called in later animations

Change-Id: Ib9815d77f4e427c575f5a77fa58ea5a22f39f10f
ecentsView.java
askStackView.java
askView.java
askViewTransform.java
d759a7123a7cacf431399b310421c59a6c818e53 01-Dec-2015 Winson <winsonc@google.com> Fixing issue where the configuration can have stale docked state.

- Fixing issue where you could not drag after undocking a task while
Overview is open, since we did not update the docked state. We can
just read the state directly in that case.

Change-Id: I5d2844edf024ba379e13be1a625bda8579d971b1
ecentsViewTouchHandler.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
askView.java
askViewHeader.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
nimateableViewBounds.java
ragView.java
reeformWorkspaceLayoutAlgorithm.java
ecentsView.java
ecentsViewTouchHandler.java
askStackView.java
askView.java
askViewThumbnail.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
nimateableViewBounds.java
reeformWorkspaceLayoutAlgorithm.java
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
askViewThumbnail.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
ecentsTransitionHelper.java
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.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
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askView.java
7afe8c900244e37e70863f56a86bb27ead45f9a1 25-Nov-2015 Winson <winsonc@google.com> Fixing two small regressions in stack layout.

- Fixed issue with max scroll position being placed beyond the max
scroll if the task height is larger than the stack height.
- Fixed issue with single task offsets being calculated incorrectly

Change-Id: I3cb1ecf2c13de7196bd68cd4f9d9f4f4736ed3ce
askStackLayoutAlgorithm.java
54b1a6deeb77011ee658d11ac1924a47b8ac8cad 25-Nov-2015 Jorim Jaggi <jjaggi@google.com> Crash when exception in event bus handler happens

Also fixes another crash when dragging in recents.

Change-Id: I24eff235adc63190369a7e054e65c55fdf594931
ecentsView.java
c4d49cd6840140179482c5b7b0deff76f674b9dc 24-Nov-2015 Jorim Jaggi <jjaggi@google.com> Make sure to clear pending spec

So when it gets out of sync it only fails once

Change-Id: If494fddfcbcb0145e2db1caa3b7612d8452c70d4
ecentsTransitionHelper.java
805578d8483a53c50896a808b0aec1bf152e5216 23-Nov-2015 Winson <winsonc@google.com> Fixing animation jump when dismissing paged task.

Change-Id: Ida07053da59f14f8ef3820e48a7bc73eef15840f
ecentsTransitionHelper.java
ecentsView.java
askStackView.java
askViewHeader.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
ecentsView.java
askStackView.java
askView.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
askStackView.java
askStackViewScroller.java
askView.java
397ae74733ce934a3fc260258c2902f4e3b995a2 20-Nov-2015 Winson <winsonc@google.com> Removing unused code

- Removing code related to dismiss-all and stack filtering

Change-Id: Ife3c300970b234a5f7828a3c04f1eb9cb861399f
ecentsView.java
askStackView.java
askStackViewFilterAlgorithm.java
askView.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
askStackLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
4993c2f17ec16ed16d3659f0fe7903d2f37e5295 19-Nov-2015 Winson <winsonc@google.com> Initial changes to stack layout to support paging and nonsquare thumbs.

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

Change-Id: I4108da77986d86896576e36fa8f31189d6fcb6f3
askStackLayoutAlgorithm.java
askStackView.java
7c149b529595a158b8954f338554a2b0a5f9ad91 20-Nov-2015 Jorim Jaggi <jjaggi@google.com> Merge "Add gesture to drag in recents from navigation bar"
dd98d41e3a65b3bcb37007ea5b29371cf013f563 19-Nov-2015 Jorim Jaggi <jjaggi@google.com> Add gesture to drag in recents from navigation bar

Change-Id: I672ed08f1019835891411b87e2d0de0290defff7
ecentsView.java
49c0ea0c8342f543fbea0a8492ac1c4293d9eb16 19-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Merge "Fix crash when docking from recents."
96daf32e4ed40619419ddef1cf96a870a3c0f193 19-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Fix crash when docking from recents.

The crash was happening because we were sending a future from sysui, but
that future would always return null animation specs when docking. This
makes it returns proper specs in that case. However, we need to still
protect ourselves from null specs when executing the future.

Bug: 25765339
Change-Id: I02d842ea31503169f6e053a1695d8896d2e4d97c
ecentsTransitionHelper.java
7a8fa60962110878ff4e5db67f3b2710189dffb9 19-Nov-2015 Wale Ogunwale <ogunwale@google.com> Allow apps to set launch bounds for activities.

unhide ActivityOptions APIs for setting launch bounds for
an activitiy so apps can use it. Only works on devices that
support PackageManager#FEATURE_FREEFORM_WINDOW_MANAGEMENT.

Bug: 25499677
Change-Id: I75424681f25cbb9fe92f2ed73e6afbab765dab29
ecentsTransitionHelper.java
a2236f11c650519f20509f62f48fbb371653bc65 14-Nov-2015 Winson <winsonc@google.com> Fixing some Recents landscape issues.

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

Change-Id: Id301dc6891e7ff2692cb040a7df1a5a854ac84a3
askStackLayoutAlgorithm.java
askStackView.java
iewPool.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
ecentsTransitionHelper.java
askView.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
ecentsTransitionHelper.java
b38b0003e2124a466e15cb49942cf1bf7c33f6b6 13-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Merge "Fix recents to freeform animation."
fe9823f64cb41e8aed8ab61417acb57f6c588e0c 12-Nov-2015 Filip Gruszczynski <gruszczy@google.com> Fix recents to freeform animation.

We should use freeform animation spec not only when the task is already
freeform, but also when it is entering freeform.

Bug: 25669457
Change-Id: I30cba79a149183b0a8b9e1e4751a215cef6a490f
ecentsTransitionHelper.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
ystemBarScrimViews.java
askStackView.java
askView.java
askViewThumbnail.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
ecentsTransitionHelper.java
ecentsView.java
askStackView.java
142af42fd683445b23c7d4e3878cd8b1c9d2e693 09-Nov-2015 Winson <winsonc@google.com> Fixing issue with regression with launching focused task.

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

Bug: 25590404

Change-Id: I5ef1b66ec74aa1a3131993ed84905210f1e45f18
ecentsView.java
askStackView.java
29deb334cd895414e5bd43fabbc9532f9724bcf0 09-Nov-2015 Jorim Jaggi <jjaggi@google.com> Reset mAppTransitionAnimationSpecs so they are only used once

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

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

Bug: 25583739
Change-Id: Ifcccf2d3cee649f66b4ded1d92c059acfa02ba5b
ecentsView.java
7af8ea8a7cf18bdd84f51954aeb32ad442f85754 09-Nov-2015 Jorim Jaggi <jjaggi@google.com> When recent changes its layout, update contents

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

Bug: 25584567
Bug: 25584399
Change-Id: I27d6738cb4984ce91ce79671298bcdc0d317c6e1
nimateableViewBounds.java
askStackView.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
ecentsView.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
ecentsView.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewFilterAlgorithm.java
askStackViewTouchHandler.java
askView.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
ecentsView.java
986739a65d8f2ae79ab199af400a204f70f5da9e 05-Nov-2015 Winson Chung <winsonc@google.com> Merge "Adding dnd to/from freeform workspaces."
eca4ab6e99bcb2a7b31b8b4b1c3b5474297b6b25 04-Nov-2015 Winson <winsonc@google.com> Adding dnd to/from freeform workspaces.

Change-Id: I5b75fe5a942e9a2e344e62229e860b5108f9872e
ropTarget.java
reeformWorkspaceLayoutAlgorithm.java
ecentsView.java
ecentsViewTouchHandler.java
askStackLayoutAlgorithm.java
askStackView.java
askView.java
5da4347b41b105dc6c6c01bf2810af3ce3013229 05-Nov-2015 Winson <winsonc@google.com> Fixing regression in alt-tab task.

Change-Id: Iee73baded04616ee92046609c37257d1551520fb
ecentsView.java
askStackView.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
ecentsView.java
a5e6b36034fa66549dd71601a86397381c6bf02b 03-Nov-2015 Winson <winsonc@google.com> Updating freeform layout to be static at the top of recents.

Change-Id: I5118d03c115080e05447d325097419b9a1c6f8b4
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
02a5a6bb9ba05bdf7517de90ede49fb535ea06ca 02-Nov-2015 Wale Ogunwale <ogunwale@google.com> Merge "Added StackId object for checking what features a stack supports"
3797c22ea16e932329ebffdc7e7ce09f9ecd9545 27-Oct-2015 Wale Ogunwale <ogunwale@google.com> Added StackId object for checking what features a stack supports

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

Bug: 25282299
Change-Id: Ifa6864a1ef56ce2eca4c94f87a4e0b993de987cd
ecentsView.java
askStackView.java
c28098f69b8ba5d3039ecd0fa154e880f4613843 30-Oct-2015 Winson <winsonc@google.com> Add ability to cancel task window transitions.

Bug: 25392381

Change-Id: I45f48edc21c058df0e4c22ceaf7e9aef5899a29c
ecentsView.java
15ca73ac5114055d125d95246c9e461fd8772868 31-Oct-2015 Winson Chung <winsonc@google.com> Merge "Ensuring that tasks in the back are always visible."
2a1d77ef16f459c399d269e76f1cd2246c0b04e2 31-Oct-2015 Winson Chung <winsonc@google.com> Merge "Fixing crash when swiping away last task."
0711be5cefb798eebd1e9b1622f7ab6ec292c36b 31-Oct-2015 Winson <winsonc@google.com> Ensuring that tasks in the back are always visible.

Change-Id: Ic64a1eac4b312c1efdb8c3ab005903a53b4a61d2
askStackLayoutAlgorithm.java
3e9964ffdb199286b59af237208f8800e5d9653f 30-Oct-2015 Winson <winsonc@google.com> Fixing crash when swiping away last task.

Change-Id: I53e8e619b42ac2069aafce66f74281e72fcffa21
askStackView.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
ecentsView.java
36a5a2c7003ef8157f276b411c3fda47ad2f75e3 30-Oct-2015 Winson <winsonc@google.com> Initial layout/behaviour for freeform workspace.

Change-Id: Idc878862747d0d726cbf10be9893c48736673d0e
reeformWorkspaceLayoutAlgorithm.java
askStackLayoutAlgorithm.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
53ec42cb17693b2d631746e1e5d31021a3359163 28-Oct-2015 Winson <winsonc@google.com> Moving static RecentsConfiguration instance to Recents.

- Matches the other static instances

Change-Id: I25bf474ceb0b8d6cc52c22e83273ffb2fb64cc9d
nimateableViewBounds.java
ecentsView.java
ecentsViewTouchHandler.java
ystemBarScrimViews.java
askStackView.java
askStackViewLayoutAlgorithm.java
askView.java
23afcae84422ac7c9687b17a6193f74264361303 28-Oct-2015 Winson <winsonc@google.com> Fixing touch handling on resized tasks.

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


Change-Id: Ib3a8ce2caa1437cfc09eaa5b36aff310e29e35f5
wipeHelper.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askViewTransform.java
e92440ee5fad343c680d889136f9a9847a80a418 28-Oct-2015 Winson <winsonc@google.com> Re-enabling docking on left/right on tablets in landscape.

Change-Id: I3b02f5bbd653ea79a0d148e5454bd5755c85aba7
ecentsViewTouchHandler.java
b6489e11da1df9a3bba1f4ba1429e7e3ec8b0711 27-Oct-2015 Winson Chung <winsonc@google.com> Merge "Fixing regression with launch target task."
0983e02b920b1c346547e943feaa7a1664fb7583 14-Oct-2015 Winson <winsonc@google.com> Fixing regression with launch target task.

Change-Id: I7e3ed55081a90309290aba290b4acbadb172283d
askStackView.java
980606d01b1746ff93c7859580ae89ddcd291300 27-Oct-2015 Winson Chung <winsonc@google.com> Merge "Refactoring the focus state to be independent of view focus."
75b2597e5826662c1740d6f3b81966a9e6a9e7b4 21-Oct-2015 Jorim Jaggi <jjaggi@google.com> Add long press on recents to dock top most task

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

Change-Id: I1386151e781f4034cfb97d3c8d46c709d19fe779
ecentsView.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
ecentsView.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
2364f26dc24191e5bfbab45bc1bdf9babe13af80 26-Oct-2015 Winson <winsonc@google.com> Adding flag for disabling search bar.

Change-Id: I988912c8209f1e49c71e4db2a7b926c808dbc975
ecentsViewTouchHandler.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
ecentsView.java
askStackView.java
askViewTransform.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
ecentsView.java
askStackView.java
askView.java
askViewHeader.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
ecentsView.java
ystemBarScrimViews.java
askStackView.java
askStackViewTouchHandler.java
askView.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
askStackViewTouchHandler.java
c89d516e094b83c52fb209aadbbf2d69ca90e17a 14-Oct-2015 Winson <winsonc@google.com> Fixing merge conflict from DR to master.

Change-Id: Id76602204dffa2745534e8290a14e407de639c0b
askStackViewTouchHandler.java
1723305878621eaa6d18cc59eacd3c69d99c25bb 14-Oct-2015 Winson Chung <winsonc@google.com> am f3eb33f4: am 1c36cfd2: am d8fed39f: am c7a873e3: Merge "Ensure we update the active pointer id on pointer up/down." into mnc-dr-dev

* commit 'f3eb33f437948118a9b08767f18b76f6f83ca52d':
Ensure we update the active pointer id on pointer up/down.
d477d53dee66bfad32473ce5abba9ed287c38975 14-Oct-2015 Winson <winsonc@google.com> Fixing issue with transparent recents.

Bug: 24742707
Change-Id: I4ef66bdb15b2c8f8a98c9d1f87d12e1c191733d4
askView.java
f48b585725c63d15f674dbfcba9e805f49a3ba84 13-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Pass target stack id when launching from recents.

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

Bug: 24814340
Change-Id: Iea589d458c29c3644f351b29f51e8f8cfb5f90e3
ecentsView.java
askStackView.java
c14a11e88241cb0b75f98a9af2c4061d14e1b4a6 13-Oct-2015 Winson <winsonc@google.com> Ensure we update the active pointer id on pointer up/down.

Bug: 24841350
Change-Id: Id5d91ee8adbb638caf66976d701cfbc0befaca04
askStackViewTouchHandler.java
882072baacaee4ecd43f0209b691a9af746462f2 12-Oct-2015 Winson <winsonc@google.com> Allowing multiple preferred drag regions for tablets.

Change-Id: I514e501d185f4139ce21798fc92bc931626c8239
ecentsView.java
ecentsViewTouchHandler.java
09d8a184c6d9d996663da1756ab4ac7d54c04b45 10-Oct-2015 Winson <winsonc@google.com> Fixing merge issue with last CL.

Change-Id: I71444dafd11427e47387b0652664be21af0c5651
ecentsViewTouchHandler.java
4165d336b6cd69715eda7fbdfd272a878097170e 10-Oct-2015 Winson <winsonc@google.com> Fixing crash when dragging tasks to docked state.

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

Change-Id: Idf99c88fdb216823637e2436e54b392b661b9849
ecentsView.java
ecentsViewTouchHandler.java
askView.java
42be431c3d129871d257768e185334d49c071ec5 10-Oct-2015 Winson <winsonc@google.com> Tweaking animation after dismissing task.

Change-Id: Ia85e876ec08f4103ff5c3799309cf4731922624f
askStackView.java
88f00ab1df35928ad0aa0c64f75ecad88d86096c 06-Oct-2015 Winson <winsonc@google.com> Cleaning up stack layout.

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

Change-Id: I8ec3bf062b0451543bd8a297aa810405f68c84cb
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askViewTransform.java
2b9c1d38e62f97294abed19a9640b010382dadb6 06-Oct-2015 Winson <winsonc@google.com> Removing multiwindow debug flag.

- Also removing unused code for dismissing recents.

Change-Id: I6dcfbdb43cd08f4adfa362d4bf2247c0172fb92a
askStackView.java
askView.java
askViewHeader.java
be7607af8875236b9cf7bdb5f5aa089c207529af 02-Oct-2015 Winson <winsonc@google.com> Initial changes to drag and drop to docked task.

Change-Id: I5e7a435a4061d902e5de0a54cc386388bc2b565e
ragView.java
ecentsView.java
ecentsViewTouchHandler.java
askStackView.java
askView.java
askViewHeader.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
ecentsView.java
ystemBarScrimViews.java
askStackView.java
askStackViewFilterAlgorithm.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
askViewThumbnail.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
ecentsView.java
askStackView.java
ec417e4cc082e1734e7184c51762d21a430c0b38 29-Sep-2015 Winson <winsonc@google.com> Update task bounds for recents enter animation.

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

Change-Id: Id4a6d4cfa9d98ca3ecf5f237573bf240f232de54
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.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
akeShadowDrawable.java
ecentsView.java
wipeHelper.java
ystemBarScrimViews.java
askStackView.java
askStackViewFilterAlgorithm.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
askViewThumbnail.java
98cbceeda79a98cd68717b59d3fdb4ecfdbc7a00 26-Sep-2015 Winson Chung <winsonc@google.com> Merge "Adding debug ui to dock windows."
b1bbaedb1a02fb74dd1f85977783e9cb446331e4 24-Sep-2015 Winson <winsonc@google.com> Adding debug ui to dock windows.

Change-Id: I9cd51763ef6089eabba734bf3bf9f52ddf540069
ecentsView.java
dab26488b475bd49cc0e2aa5cac11e5e52f84764 25-Sep-2015 Winson <winsonc@google.com> Removing unused debug overlay code.

Change-Id: I80d98b38001ca37bf5017b1631038fb574c324af
ebugOverlayView.java
akeShadowDrawable.java
ecentsView.java
askStackView.java
147ecaf3ba5d72872e8ff324aa32c0d228ada7f5 17-Sep-2015 Winson <winsonc@google.com> Ensure RecentsActivity is resizeable.

- Removing old code related to multi-stack layouts.

Change-Id: Ib9b820d2a65ff15e9cd8e5255e3e858b611e5aa9
ecentsView.java
ecentsViewLayoutAlgorithm.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
0fa656b95256b7ad6d3dce287107a79ace3abdb8 01-Sep-2015 Chong Zhang <chz@google.com> Allow apps to pass in launch bounds when moving/starting a task

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

Set bounds to null in RecentsView for full screen layout.

Change-Id: I0ff79fd75068f4ba82d5e2c0a21881fabebdadb8
ecentsView.java
askStackView.java
170192ab55812bd25124cf602042477c3ea042d1 17-Aug-2015 Filip Gruszczynski <gruszczy@google.com> Improve animating from recents to multi window state.

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

Change-Id: I6f45c94af6bcbf6898b8ed757d83505af99ed6b1
ecentsView.java
f304c729ee5526445803fb49ac237e944eb2c80a 11-Aug-2015 Winson Chung <winsonc@google.com> am 641363e8: am bfa04f49: am b12ca163: am bc58c945: am c00b1067: Merge "Pushing the startActivity before the calls to remove task." into mnc-dev

* commit '641363e8941f490cda95f9b2f764d51937cd2694':
Pushing the startActivity before the calls to remove task.
1df9c3c6bd985cf5819b6c1e9fb8ff096950dfa8 07-Aug-2015 Winson <winsonc@google.com> Pushing the startActivity before the calls to remove task.

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

Bug: 22760556
Change-Id: I7564a2f0e43414686419d3657379bbd0ca6b4152
askStackView.java
51a50ee1795529a8f59241520489c62214f66102 01-Aug-2015 Winson Chung <winsonc@google.com> am fdeddad8: am 08e714c3: am afa039c9: am 183b589f: am 92e0c86f: Merge "Ensuring that we don\'t try to use and propagate null activity labels." into mnc-dev

* commit 'fdeddad86776664f0070057749411e479522681d':
Ensuring that we don't try to use and propagate null activity labels.
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
askViewHeader.java
fce23748c49e0c303efd72296dcdba13b099f622 31-Jul-2015 Winson Chung <winsonc@google.com> Ensuring that we don't try to use and propagate null activity labels.

- Also fixes issue with tapping outside bounds not working to dismiss recents

Bug: 21774486
Bug: 22241587
Change-Id: Ib50f6fece8fb150929a1f8cdb01b8e8fe7b665cd
askStackViewTouchHandler.java
5c9f4b90bf56b242467f0b5b4d2c7c5b71e6a777 26-Jun-2015 Winson Chung <winsonc@google.com> Adding metrics to overview.

Bug: 21528167
Change-Id: Ice1ce892682aa4599b9a689b47af373780897548
ecentsView.java
askStackView.java
askStackViewTouchHandler.java
askView.java
af3bb6936786a8c14ac01da3d81d196d17b68b96 04-Jun-2015 Winson Chung <winsonc@google.com> Refactoring recents search bar widget logic.

Bug: 19062975

Change-Id: I303710598675aeebca8f34ac57de6249462ec033
ecentsView.java
83ea6f71ebf666cbf708280425cb43490ab989c9 17-Jun-2015 Winson Chung <winsonc@google.com> Fixing a few accessibility issues.

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

Bug: 19997561
Change-Id: I042666775862f4a20e8f22960e1f34e45fc5664e
askStackView.java
askStackViewTouchHandler.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
askViewHeader.java
81f2992fac1667336cc526a380c696258569de09 05-Jun-2015 Jorim Jaggi <jjaggi@google.com> Merge "Speed up recents -> app #2" into mnc-dev
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
c51c3f6436bc4e101c63c388fd6ba8b46f2d4189 04-Jun-2015 Vadim Tryshev <vadimt@google.com> Merge "Processing non-long clicks on application icon." 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
askView.java
askViewHeader.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
ecentsView.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
ixedSizeImageView.java
ecentsView.java
askView.java
askViewHeader.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
ecentsView.java
askStackView.java
askView.java
askViewHeader.java
981975a3e7b439324bdfbf4076f350f7655135d7 03-Jun-2015 Winson Chung <winsonc@google.com> Merge "Fixing case where we were not preloading tasks correctly." into mnc-dev
e1e20e11a758ee82753e8052773664823ca74746 02-Jun-2015 Winson Chung <winsonc@google.com> Fixing case where we were not preloading tasks correctly.

- Should use the actual isTopTaskHome check when preloading.

Bug: 21516523
Bug: 20882957

Change-Id: I60cf1e97f7704828426f72a45329c8c7b962a78c
ecentsView.java
c85cd734bdf75a55608fae1d5a47b4ac72db4ee8 02-Jun-2015 Winson Chung <winsonc@google.com> Merge "Don't focus view for invalid task index." into mnc-dev
daa4a78682dfc838602f870aabb7fd003c919477 02-Jun-2015 Winson Chung <winsonc@google.com> Don't focus view for invalid task index.

Bug: 21322861
Change-Id: I7b8397d18b488bd8f459e578b64d6e82e4f1437d
askStackView.java
a74f385ba08922c09aa812f0d6fd2903a633da01 30-May-2015 Winson Chung <winsonc@google.com> Allow long-pressing task icon to show app-info.

Bug: 17369696
askView.java
5ac56502e3babcd43fd32bd0d4a295466b076500 12-May-2015 Riley Andrews <riandrews@google.com> Make recents use immutable ashmem bitmaps for things it frequently passes across binder.

Bug 21037890
Change-Id: Ieb29be3ff68f3db3f07df02f171325ed77915fdf
ecentsView.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
askViewHeader.java
edecbd9881e974ebe2ad3e3267266855a2be2bf2 03-Apr-2015 Winson Chung <winsonc@google.com> Merge "Ensuring that we reload a widget that was updated in another orientation."
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
ecentsView.java
d70f58c28132591e8038d143c0ce14ad9d35c780 30-Mar-2015 Winson Chung <winsonc@google.com> Prevent the dismiss icon from fading when multistack debugging is enabled.

Change-Id: I52db4222391cb7d922b9778cbc10a269451d10c5
askStackView.java
5c143e7ead06aa7016e786cf1c9b8bd969a9c72c 27-Mar-2015 Skuhne <skuhne@google.com> Unopened tasks should show the fullscreen item in recents

BUG: 19947524
Change-Id: I83d2143f312ed016264c8bc54fda31720100ff1f
askViewHeader.java
4976d6b52588772117dff43fb814fe6661bfe598 26-Mar-2015 Skuhne <skuhne@google.com> Merge "Fixing layout button in caption and adding quarter functionality"
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
askViewHeader.java
9ebb685b038b325fde76d4f81d2adb584e522f5c 25-Mar-2015 Winson Chung <winsonc@google.com> Merge "Fixing issue with floating task headers."
3040484265bf5fe9f5bc7a1974b5c78d69eba01f 24-Mar-2015 Winson Chung <winsonc@google.com> Fixing issue with floating task headers.

Bug 19516828
askViewTransform.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
ecentsView.java
askViewHeader.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
askViewHeader.java
7438f814f16ff1ced53d93a2fe9e3973490f3843 18-Mar-2015 Skuhne <skuhne@google.com> Merge "Change resize logic: Use resizeTask and remove stack resize UI/logic"
ece738b5bc532d90bbdc42d0b5b63701c773a6f9 17-Mar-2015 Skuhne <skuhne@google.com> Change resize logic: Use resizeTask and remove stack resize UI/logic

Change-Id: I5af8171a4ca55252c009cf80d180c5d024c0fa03
ecentsView.java
askStackView.java
askView.java
4bd79b7556177a3d52d43916f8dd52c44017048a 17-Mar-2015 James Cook <jamescook@google.com> Recents: Tapping on background returns to launcher

Conceptually the area outside the recents task stack looks like a
"desktop". Make a non-scroll tap outside the task stack close
recents and return to the launcher.

Bug: 19271451
Change-Id: I9e639d6b5c6127bc37e1003152ef7a6fcbc2c2f3
askStackViewTouchHandler.java
4939e2bf3672a3260354263763a50d5f64758f21 03-Mar-2015 Chris Craik <ccraik@google.com> Merge "Improve docs for drawable tint and color filters"
bd3bfc5285dcacff0a69fecf3baeeeb90d887a58 02-Mar-2015 Chris Craik <ccraik@google.com> Improve docs for drawable tint and color filters

bug:19564477
Change-Id: I7e11baae2d4dd245965904c85b8855de71f6b6ac
akeShadowDrawable.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
ecentsView.java
askViewHeader.java
askViewTransform.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
askStackView.java
askViewHeader.java
93847da2c2ad8ecd2862bb05b6111121acd25407 03-Feb-2015 Winson Chung <winsonc@google.com> Ensuring that the list of stack views are mutable. (Bug 19245963)

Change-Id: I5a298bf389d8756492cce2777f127fc214f6d6be
ecentsView.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
ecentsView.java
ecentsViewLayoutAlgorithm.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
6ac8bd6198f67b64aea2258bdb5f8ed371b5bec1 08-Jan-2015 Winson Chung <winsonc@google.com> Adding dismiss-all button.

Change-Id: Iad7d5d1eddeff6af6b88a1afdf23677c8b2f3b49
ecentsView.java
askStackView.java
askStackViewFilterAlgorithm.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.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
ecentsView.java
askStackViewTouchHandler.java
e494c382c0caf35f225dfb55f0e3b992c14d79f5 17-Dec-2014 Winson Chung <winsonc@google.com> Bug 18784289: Fix issue with transition animation callback.

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

Bug: 18784289

Change-Id: I73f745c33b9f8aed91f8d9cd975f37cf7e4128f1
ecentsView.java
16158852e2d91041df6d3c031cefe4b77f0583aa 08-Dec-2014 Winson Chung <winsonc@google.com> Merge "Ensure that loading and unloading of tasks happen symmetrically with lifecycle events. (Bug 18574950)" into lmp-mr1-dev
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.
askStackView.java
askStackViewLayoutAlgorithm.java
askView.java
askViewHeader.java
70941f203c13bbd475f2434b69155123cf5ae863 04-Dec-2014 Justin Harrison <astyrrian@google.com> Merge "Revert "Revert "Improve fling physics for recents""" into lmp-mr1-dev
31d9837284f5a443b065420e8ebb7fbc9e91bb99 04-Dec-2014 Justin Harrison <astyrrian@google.com> Revert "Revert "Improve fling physics for recents""

This is now BC-triaged, so reverting the revert.

This reverts commit 3f7dac5a1ccf5d464070c1a067d1d50741bdbd0e.

Change-Id: Iae9ffc74a44918a83d9cd4dfb7011810c770e135
wipeHelper.java
askStackViewTouchHandler.java
21af21ca07cd07d7164bf7b7d70513c193785247 04-Dec-2014 Justin Harrison <astyrrian@google.com> Merge "Revert "Improve fling physics for recents"" into lmp-mr1-dev
3f7dac5a1ccf5d464070c1a067d1d50741bdbd0e 04-Dec-2014 Justin Harrison <astyrrian@google.com> Revert "Improve fling physics for recents"

This reverts commit 00d947bda0b9a2ea133dfd7b0e445245a0e2c23c.

Change-Id: I3d6696227a381d232baed8fdbcbe34d3c4976ebe
wipeHelper.java
askStackViewTouchHandler.java
54daab1009e7be849fa1dcbf4ee3f9d0ba40d732 04-Dec-2014 Jorim Jaggi <jjaggi@google.com> Merge "Improve fling physics for recents" into lmp-mr1-dev
fc33cdf71dc58652cb15b7d2f1143affff404fc9 03-Dec-2014 Winson Chung <winsonc@google.com> Fix crash when user is both scrolling and tabbing through Recents. (Bug 18552776)
askStackView.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
ecentsView.java
iewAnimation.java
00d947bda0b9a2ea133dfd7b0e445245a0e2c23c 26-Nov-2014 Jorim Jaggi <jjaggi@google.com> Improve fling physics for recents

- Don't limit swipe out velocity
- Make sure we pick up all touch events in VelocityTracker
- When already scrolling and touching again, don't reset scroll
state, so we don't wait for the touch slop again to start
scrolling (this makes it more consistent with ScrollView).

Bug: 18536759
Change-Id: I1d43c77db78beec6d0b8c949e67141a2665de892
wipeHelper.java
askStackViewTouchHandler.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
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askView.java
askViewHeader.java
6aa73cf2668e1d4b5b7534995dcc8891b4a7a279 18-Nov-2014 Winson Chung <winsonc@google.com> Merge "Tweaking animation XMLs and removing dead code. (Bug 17672056, Bug 18415217)" into lmp-mr1-dev
c041d883c3591670441d4c2da8fd1108dfd28acd 15-Nov-2014 Winson Chung <winsonc@google.com> Tweaking animation XMLs and removing dead code. (Bug 17672056, Bug 18415217)

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

Change-Id: I11eec1f3b0386b4354c8c5e3deca2b17cff83be1
nimateableViewBounds.java
ystemBarScrimViews.java
askStackView.java
askStackViewScroller.java
askView.java
askViewHeader.java
askViewThumbnail.java
fe79d62db3f5de7671763b4bbafc83feb1c7694c 17-Nov-2014 Winson Chung <winsonc@google.com> Merge "Adding additional null checks to prevent crash after task stack view callback is reset. (Bug 18376798)" into lmp-mr1-dev
fe03b40da4a513af759851dd399e39dfa90c3363 17-Nov-2014 Winson Chung <winsonc@google.com> Adding additional null checks to prevent crash after task stack view callback is reset. (Bug 18376798)

Change-Id: I46a324b3b6acba6b6519506ff2431d285e3b57f9
askStackView.java
askView.java
86677c9a511f4478bf94418208e600b1f40db733 14-Nov-2014 Winson Chung <winsonc@google.com> Fixing regression in screen pinning button visibility. (Bug 18390050)
askView.java
4ff2526ef8d168d3c591f1a19de4dca76745c157 12-Nov-2014 Winson Chung <winsonc@google.com> Merge "Adding null checks for unset stack. (Bug 18329447)" into lmp-mr1-dev
4ee0eb3c468d0b0e17a90298f7991b147f8927e1 12-Nov-2014 Winson Chung <winsonc@google.com> Adding null checks for unset stack. (Bug 18329447)
askStackView.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
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.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
ecentsView.java
7ae4b7e1965951ac74fc10204bb238ff174b52c6 07-Nov-2014 Winson Chung <winsonc@google.com> Fixing Recents crash when resetting focus of TaskView already returned to the pool.

Change-Id: Iee789e4e726d5f035ec518f4fec444afecc2bbf2
askStackView.java
e0325fe956c2a33b79added92f0e53be2246506a 06-Nov-2014 Winson Chung <winsonc@google.com> Merge "Don't reload the layout every time we enter Recents. (Bug 18160176)" into lmp-mr1-dev
b0a28ea5d381cd3a8477cf7fd82797199c80ca67 28-Oct-2014 Winson Chung <winsonc@google.com> Don't reload the layout every time we enter Recents. (Bug 18160176)

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

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

Change-Id: I169fea3cf07a6da3f90b32b005819773c6049ada
ecentsView.java
askStackView.java
askView.java
askViewHeader.java
iewPool.java
d54b578e47fb410c776bb3a4272c2c523153f657 24-Oct-2014 Wale Ogunwale <ogunwale@google.com> Fix issue #17305377: Don't kill process if it still has tasks.

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

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

Bug: 17305377
Change-Id: Ibc39bb328d13c7eab05c04798c2f14887923d9d4
ecentsView.java
04400672962d2e12132f9465928cbf7615c147c4 17-Oct-2014 Winson Chung <winsonc@google.com> Ensuring that user-specific Recent tasks are removed. (Bug 18036610)

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

Change-Id: Ib08ab70dba1d3f9e5aa0a92f3c5e5382567c96ba
ecentsView.java
askStackView.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
nimateableViewBounds.java
askStackViewScroller.java
askView.java
askViewHeader.java
askViewThumbnail.java
ca8686af744f30992904ead71db7bb39866d4f99 14-Oct-2014 Winson Chung <winsonc@google.com> Fixing regression with screen pinning button not animating for the first task. (Bug 17985087)

Change-Id: I81b8b5d6521c99023bbaf903d1bfb95015fbe756
askView.java
606b3da71ab64e489e8f65e0b1092138dbfaf7b7 07-Oct-2014 Winson Chung <winsonc@google.com> Removing unused/dead code related to footer and screenshot transition.

Change-Id: I205de9047413d1ff2da68cdd062eeba59267b10f
nimateableViewBounds.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewFooter.java
askViewHeader.java
d213a1e53c7b31e9d7c072b5f0332127ed781d5a 02-Oct-2014 Winson Chung <winsonc@google.com> Adding mouse wheel support. (Bug 17323718)

Change-Id: I51bf159369983789933767813bbf8a785ff1bda3
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewHeader.java
0dad6a0732633a11fa780135c3c1f52defac9f16 02-Oct-2014 Winson Chung <winsonc@google.com> am d8ab73d7: am d092fc70: Merge "Ensure that we don\'t show excluded tasks when we are not in that task (Bug 17657618) - Fix regression with launching an affiliated task due to clipping changes (Bug 17755902) - Tweaking previous changes to home transition - Disable th

* commit 'd8ab73d71c50f8695ee8b671fdb838f2fd18790d':
Ensure that we don't show excluded tasks when we are not in that task (Bug 17657618) - Fix regression with launching an affiliated task due to clipping changes (Bug 17755902) - Tweaking previous changes to home transition - Disable the debug mode option
9cb5c4e3854aa7f2ddab707920b688c3108cbc85 29-Sep-2014 Winson Chung <winsonc@google.com> Ensure that we don't show excluded tasks when we are not in that task (Bug 17657618)
- Fix regression with launching an affiliated task due to clipping changes (Bug 17755902)
- Tweaking previous changes to home transition
- Disable the debug mode option
askStackView.java
askView.java
104aae1dccbaa8102b67b2a2407d58d5ddfce5f9 22-Sep-2014 Selim Cinek <cinek@google.com> Only show FAB for the frontmost task

Bug: 17522143
Change-Id: I882185f27a4e9da57007818f678451a7e6e1ef81
askStackView.java
askView.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
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
nimateableViewBounds.java
askStackView.java
askView.java
askViewHeader.java
askViewThumbnail.java
askViewTransform.java
iewAnimation.java
cb5570316d55c6fe2ff717fa6b94b14d13980263 16-Sep-2014 Jorim Jaggi <jjaggi@google.com> Add option for recents to use fake shadows

Bug: 17522143
Change-Id: I61fdecf8c5aa86b6dacd65ff8729590553d0854a
nimateableViewBounds.java
akeShadowDrawable.java
ecentsView.java
askStackView.java
askView.java
askViewTransform.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
nimateableViewBounds.java
askView.java
askViewHeader.java
askViewThumbnail.java
4e96eb709d2f1b6b1cd233c8a99f6706fde70bb1 17-Sep-2014 Winson Chung <winsonc@google.com> Handling broader set of exceptions when startingActivity from Recents. (Bug 17481968)

Change-Id: Ia11e0f77e6c1f28f3d6946362d5a6333b57ac80e
ecentsView.java
81e0c8491f22c64300182c652ac2add96888dd2e 12-Sep-2014 Jorim Jaggi <jjaggi@google.com> Aggressive tuning of recents memory usage

Limit the thumbnail count to a maximum of 10 thumbnails and the app
icon count to a maximum of 20 thumbnails, instead of using a
byte-size based limit.

Also prune entries immediately when leaving recents.

Bug: 16513124
Change-Id: Id9a32f87ca3f9f19e5cad5f115d54b19b26f4f93
askView.java
ee44595bd53c4f3f6a2eeb664ea96a268636c041 09-Sep-2014 Winson Chung <winsonc@google.com> Announcing the task list as you scroll. (Bug 15699050)

Change-Id: I7453f41a2c87241e538cdc7281cdc20a8710ebbb
askStackView.java
69550456e34da774a92a67769b913f516d0acb36 09-Sep-2014 Winson Chung <winsonc@google.com> Merge "Fixing issue with screen pinning not working. (Bug 17436123)" into lmp-dev
3751c359b4eaac9a7f149d791c8bf811e41fc61b 09-Sep-2014 Winson Chung <winsonc@google.com> Fixing issue with screen pinning not working. (Bug 17436123)
askView.java
19d62382d0acafa0ffe8e48ebb4c737031b3e9c6 08-Sep-2014 Winson Chung <winsonc@google.com> Ensuring that the start delay matches the transition delay. (Bug 16987565)

- Also ensure that the empty text is normal weight

Change-Id: I3227a62fcb39910a402b13f42a6cb9e418f992aa
askView.java
2e7f3bdcc9ec0b3e95b565b943ecee2210f4b937 05-Sep-2014 Winson Chung <winsonc@google.com> Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)

Change-Id: Ic104876c5fe16997eca00e0a2b3d8644c927120c
ecentsView.java
askView.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
ystemBarScrimViews.java
02d4927082d80e1f49f4c6dcaf615376cdf3f3d6 29-Aug-2014 Winson Chung <winsonc@google.com> Workaround to prevent starting the same task from Recents twice. (Bug 17322903)
ecentsView.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
nimateableViewBounds.java
ecentsView.java
wipeHelper.java
askStackView.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
4610545dd28ebf316704e119572521e97dbbd6bd 26-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #16311398: Limit number of documents a process can open" into lmp-dev
89ad456ea49cb62615ebdcac83a2515743bbe5fa 25-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16311398: Limit number of documents a process can open

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

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

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

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

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

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

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

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

Change-Id: I2bb81c3f92819350c868c7a7470b35817eb9bea9
ecentsView.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
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askView.java
askViewHeader.java
askViewThumbnail.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
askViewHeader.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
askView.java
askViewHeader.java
abedcab44cc56d28ad57fec2d12104818a555dbc 15-Aug-2014 Winson Chung <winsonc@google.com> Small tweaks to the stack curve and header transition. (Bug 16656169)

Change-Id: I96120063a66f267ad0b6a39b3dd020bc030083b8
askStackViewLayoutAlgorithm.java
askView.java
askViewHeader.java
78cc96af8ca9ef4f2edccbb1b5d494b3a357782d 12-Aug-2014 Winson Chung <winsonc@google.com> Anchoring the front most task to make the dismiss animation more stable. (Bug 16939699)

Change-Id: I49aa14bbc7fdb2fb0884a8255af385dbbbe656f8
askStackView.java
askStackViewLayoutAlgorithm.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
askStackView.java
askView.java
askViewThumbnail.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
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askView.java
askViewHeader.java
242bbb86e8811ad8759790c1b499d0918baece8b 09-Aug-2014 Winson Chung <winsonc@google.com> Fixing transition animation in landscape on tablets (Bug 16867731)

- Also fixing the scroller, initial scroll state, and scroll bounds on large tablets

Change-Id: I886153748156fb442e4dc2b7ec6cf052da43ab88
askStackViewLayoutAlgorithm.java
e41ab847a5c12cb7a6a5b2d0f40e101bc9ea6b59 08-Aug-2014 Winson Chung <winsonc@google.com> Fixing regression with scrolling and launching an out-of-view task. (Bug 16875419)

Change-Id: Ib64e18f9a0f1de02de28a29251dd1d159d5d89ee
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
fb7d2c4cc41ae73859c6df997a595c0283c19b94 07-Aug-2014 Kenny Guy <kennyguy@google.com> Merge "Launch application details for correct profile from recents." into lmp-dev
94a07acba7e43028e98da1082b5b8b1d95667a6c 07-Aug-2014 Kenny Guy <kennyguy@google.com> Launch application details for correct profile from recents.

Bug: 16681400
Change-Id: Ia80d9c83809b07b1cdc4be8a4fc8a406bdfcf55e
ecentsView.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
askBarView.java
askFooterView.java
askStackView.java
askThumbnailView.java
askView.java
askViewFooter.java
askViewHeader.java
askViewThumbnail.java
b99b18e78e8aa9a27596c13ea05a188ab43c7e12 05-Aug-2014 Winson Chung <winsonc@google.com> Fixing scrolling regression with layout changes.

Change-Id: Ic440d147ca13bf13d7f311b6d9876e3c02d4f189
askStackView.java
askStackViewTouchHandler.java
19fc117c2f8f0719aa40a1ff0efe27e2bd6d1efc 01-Aug-2014 Winson Chung <winson.chung@gmail.com> Unregistering receiver in onStart/Stop vs onCreate/Destroy. (Bug 16513124)

Change-Id: I11ccc3cea41311d74811dc19e6950da3bbddbfe2
ecentsView.java
012ef36a6c5e9745d112c734aed916cab052558c 01-Aug-2014 Winson Chung <winson.chung@gmail.com> Updating the stack layout to use a parameterized curve.

- Fixing issue with search box not being layered on top of the task stack view (Bug 16643875)
- Fixing issue with there being no animation when dismissing recents while the stack is scrolling.

Change-Id: I990f3c527de655d62fbf8a4539dcbaed3ed422c8
ebugOverlayView.java
ecentsView.java
askBarView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewScroller.java
askStackViewTouchHandler.java
askView.java
askViewTransform.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
ebugOverlayView.java
askBarView.java
askStackView.java
askView.java
2b92253021f6b117786ed445a42e19df9916d619 25-Jul-2014 Winson Chung <winsonc@google.com> Announcing when a task is dismissed (for accessibility). (Bug 9181212)
askStackView.java
a4cc966050aeb406dbf3d9d262e281c40826e354 25-Jul-2014 Winson Chung <winsonc@google.com> Adding content description for task view buttons.
askBarView.java
askStackView.java
1907cd478209f01a4215d9a3a76294c2c77c9a63 24-Jul-2014 Winson Chung <winsonc@google.com> Adding fallback transition for animating in/out of affiliate groups.
ecentsView.java
askStackView.java
askView.java
iewAnimation.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
nimateableViewBounds.java
askFooterView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewTouchHandler.java
askView.java
d6c3db5e5a0a4087b46dd2cdac8e7f90695dd8b8 23-Jul-2014 Winson Chung <winsonc@google.com> Fixing animation when dismissing certain tasks.
askStackView.java
askStackViewLayoutAlgorithm.java
7ea62ba97b4645fe0c21e9c2df73503c259db62a 23-Jul-2014 Winson Chung <winsonc@google.com> Always enable HW layers on task views. (Bug 15986310)

- Use color filter to apply dim to the task view layer
- Fixing bug where you would see a flash of the task view when animating out of Recents.
askBarView.java
askStackView.java
askStackViewTouchHandler.java
askView.java
askViewTransform.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
nimateableViewBounds.java
ebugOverlayView.java
ixedSizeImageView.java
ullscreenTransitionOverlayView.java
ecentsView.java
askBarView.java
askFooterView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askThumbnailView.java
askView.java
askViewTransform.java
iewAnimation.java
dc00cbe2c15eef5141656311a6d05c753d7c6db6 21-Jul-2014 Craig Mautner <cmautner@google.com> Create API for launching from recents

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

Fixes bug 16358208.

Change-Id: I340800bfee79926b197929360d69f1d570bbf1eb
ecentsView.java
31ba192dd201df2cad96a8c503f730130ab0d80f 18-Jul-2014 Chris Craik <ccraik@google.com> Tweaks to outline API

b/15283203
b/16142564

Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.

Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
askView.java
57eea0f78846271ea06caf075a01769eb7c1447f 19-Jul-2014 Winson Chung <winsonc@google.com> Merge "Add setting to guard the lock-to-app recents icon" into lmp-dev
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
askStackViewTouchHandler.java
askView.java
3e3365babdf5b979e98afeb2544eb99421084eb7 18-Jul-2014 Winson Chung <winsonc@google.com> Fixing issue where we weren't restoring touch state on dismissed Task cards. (Bug 16322100)
askStackViewTouchHandler.java
ff88d7b39ebe3a0453977092a30c3b2a53a19a00 17-Jul-2014 Winson Chung <winsonc@google.com> Fixing optimization in Task loading. (Bug 16372369)
ecentsView.java
4fc90de51b58771c079f2e0d51d15abd28a5015b 17-Jul-2014 Winson Chung <winsonc@google.com> Fixing regression in flinging not updating the stack. (Bug 16371020)

Change-Id: I6397c854dc0d305206eb3b48de855c58cf2740ea
askStackView.java
dc9b7e7e6a7706b7903e14332f5c40561259a92d 16-Jul-2014 Winson Chung <winsonc@google.com> Don't clobber intent flags when starting recent activities anew. (Bug 16327074)

Change-Id: I3bfee312d5e3167d443be48580da55d8b69b485e
ecentsView.java
82c8c5e9872b984ba6f43b01da0c7731fd5bf762 15-Jul-2014 Winson Chung <winsonc@google.com> DO NOT MERGE Using a fixed sized ImageView to prevent unnecessary layouts.

- Preparing for task view clipping using the view outline

Change-Id: I4aae4189a759a48057f1e3729cc2a9e6d553c11e
ixedSizeImageView.java
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askThumbnailView.java
askView.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
ullscreenTransitionOverlayView.java
ecentsView.java
wipeHelper.java
askStackView.java
askStackViewTouchHandler.java
askView.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)
ecentsView.java
askBarView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askView.java
5f1970cc4d13dfd706df0b8b2c415c00477ce920 12-Jul-2014 Winson Chung <winsonc@google.com> Merge "Piping through task affiliation to Recents."
305addefcdd0ababef9e532996e6a26491a282d1 12-Jul-2014 Winson Chung <winsonc@google.com> Piping through task affiliation to Recents.
askStackViewLayoutAlgorithm.java
7b7ca3cdf25bee73aa9e58aaaf6ce75fe81bd045 11-Jul-2014 Chris Craik <ccraik@google.com> Disable setOutline() functionality, pending full removal

bug:15283203
Change-Id: Ibf127fecfcda835117c6087180c64f622b3041e4
askView.java
1f24c7e37bc794057a156a730c7e4b53b01212ed 12-Jul-2014 Winson Chung <winsonc@google.com> Initial changes to support lock-to-app on the foremost task. (Bug 16221876)
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewTouchHandler.java
askView.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
askStackView.java
askView.java
iewAnimation.java
bdbb87dd7410dda10be04e01ec3a7e8344919293 09-Jul-2014 Winson Chung <winsonc@google.com> Fixing random crash when transitioning to Recents, ensuring we don't update the TextView unnecessarily.

Change-Id: I93ab512642f6e95ee96e041614f063f46420bb39
askBarView.java
askStackView.java
askView.java
a433fa9c17772f563163ff7db177d091d6aebd5b 09-Jul-2014 Winson Chung <winsonc@google.com> Updating task grouping logic.

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

Change-Id: I93fab1c2a9cc727c68d8f8fbd506bedaf681715f
ecentsView.java
askStackView.java
askStackViewLayoutAlgorithm.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
ullscreenTransitionOverlayView.java
askStackView.java
askView.java
iewAnimation.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
ullscreenTransitionOverlayView.java
ecentsView.java
wipeHelper.java
askBarView.java
askStackView.java
askStackViewLayoutAlgorithm.java
askStackViewTouchHandler.java
askView.java
iewAnimation.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.
ecentsView.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
ecentsView.java
askBarView.java
askStackView.java
askStackViewTouchHandler.java
askView.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
ecentsView.java
askStackView.java
askView.java
iewAnimation.java
d7b2cb12ac90956843413c212769639044a0b6f2 27-Jun-2014 Winson Chung <winsonc@google.com> Continuing refactor of TaskStackView.

- Extracting stack and filtering logic.

Change-Id: Id794cb2e36238baa49e614bc436bf07de6680804
ullscreenTransitionOverlayView.java
ecentsView.java
askStackView.java
askStackViewFilterAlgorithm.java
askStackViewLayoutAlgorithm.java
askStackViewTouchHandler.java
askView.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
ecentsView.java
askBarView.java
askStackView.java
askStackViewTouchHandler.java
askThumbnailView.java
askView.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
ecentsView.java
askStackView.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
ullScreenTransitionView.java
ullscreenTransitionOverlayView.java
ecentsView.java
ystemBarScrimViews.java
askBarView.java
askStackView.java
iewAnimation.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
ecentsView.java
ystemBarScrimViews.java
askStackView.java
askStackViewTouchHandler.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
askStackView.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
askStackView.java
7ab650cb43fc75786eadfc1c3f8eae8a358723f6 18-Jun-2014 Winson Chung <winsonc@google.com> Adding start delay to the task view transforms.

- Adding slight delay to task bar buttons to allow touch feedback to show

Change-Id: I9f31ca378541fc34c7b741840c7f038340684b13
askBarView.java
askStackView.java
askView.java
askViewTransform.java
12758423770455f75fede0cb47d743ea18640f2f 18-Jun-2014 Winson Chung <winsonc@google.com> Merge "Re-enabling task based filtering in Recents using package name."
e0e45bc26d02e2c6ec505ea006e7487f3a5bddc5 18-Jun-2014 Winson Chung <winsonc@google.com> Re-enabling task based filtering in Recents using package name.

- Also front-loading creating the new thumbnail when animating up from Recents
ecentsView.java
askBarView.java
askStackView.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
ullScreenTransitionView.java
ecentsView.java
askBarView.java
askStackView.java
askView.java
askViewTransform.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
ullScreenTransitionView.java
ecentsView.java
askBarView.java
askStackView.java
askThumbnailView.java
askView.java
b5ddfc375616bf7dbe9f4ff85ad124f02cc5990f 14-Jun-2014 Winson Chung <winsonc@google.com> Cleaning up some old animation code, only setting view properties that have changed.

- Also drawing a background on the thumbnails if a transparent thumbnail is detected.

Change-Id: I3f5450d207ae0796150c8b04aabc2f910f80e0a7
askBarView.java
askStackView.java
askView.java
askViewTransform.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
ecentsView.java
askBarView.java
askStackView.java
askThumbnailView.java
askView.java
ad6f276670443ac8f9b73497dae185bb005c3a76 13-Jun-2014 Winson Chung <winsonc@google.com> Enabling Home->Recents transition.
askView.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
ecentsView.java
askBarView.java
askStackView.java
askView.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
ullScreenTransitionView.java
ecentsView.java
askBarView.java
askStackView.java
askView.java
askViewTransform.java
iewAnimation.java
b13c46e8b78272c4398068eed41f49ee4d403bcc 10-Jun-2014 Winson Chung <winsonc@google.com> Updating Recents to make the cards slightly more visible.

Change-Id: I876d39f4aac4007a3fe0c509ccb7db130f27a737
askStackView.java
askView.java
askViewTransform.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
ecentsView.java
askStackView.java
askView.java
cd23c849afefe58b213d5abb1c581f15d3ad543a 30-May-2014 Winson Chung <winsonc@google.com> Updating paddings to design spec.

Change-Id: I11286937216494304c38c87280bc69ef9522c596
askBarView.java
askStackView.java
069707ed6fd1399ca90c57741960884773d3cc69 30-May-2014 Winson Chung <winsonc@google.com> Merge "Ensuring that the second card is maximally visible when you go into recents." into lmp-preview-dev
602de03cf3933ddf3c2548d54956ee76e60d1143 27-May-2014 Winson Chung <winsonc@google.com> Enabling shadows again.

Change-Id: I4e4a771a7be3f696383059cb608e78dd6315a47a
wipeHelper.java
askStackView.java
askView.java
b01ed681fe97ff5e98471c120ff9581a78db13c5 29-May-2014 Winson Chung <winsonc@google.com> Fixing issue with configuration states not being reset on configuration change.

- Also updating some interpolators

Change-Id: Ia29fc6f10705c7d286246162f894a25de7b4be40
askBarView.java
askStackView.java
askView.java
24cf152483c03dc446875c8d6440348174317bc5 29-May-2014 Winson Chung <winsonc@google.com> Updating task view style, fixing performance on enter-recents animation.

Change-Id: I42ca9296170a93a14184ae8963abbd3f0494e503
ecentsView.java
askStackView.java
askView.java
4f70dbbc656e0affd0b480c7eceb888449cb6348 28-May-2014 Winson Chung <winsonc@google.com> Ensuring that the second card is maximally visible when you go into recents.

Change-Id: Ia13c56941bfc47de341dd57501d156e925a3b2fc
askStackView.java
47a3e65acc35cd3061bf3867e8b20753870fd892 22-May-2014 Winson Chung <winsonc@google.com> Small perf tweaks.
askStackView.java
askView.java
5a9b0b0c7d220a91d540609fc36ba5998417a73f 21-May-2014 Winson Chung <winsonc@google.com> Enabling clipping on task views.

Change-Id: I2a4b8fe06ae379364081534bd5b02f52b27e4ff2
askStackView.java
askView.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.
ecentsView.java
wipeHelper.java
askStackView.java
askView.java
863db8a4e7906826bc105f49a4596dc7b336088a 20-May-2014 Winson Chung <winsonc@google.com> Removing the info pane.

Change-Id: I5486291144cbcb1b31a7e5b8a234e5ef7cf85325
ecentsView.java
askInfoView.java
askStackView.java
askView.java
c80ad99a33ee49d0bac994c1749ff24d243c3862 20-May-2014 Alan Viverette <alanv@google.com> TouchFeedbackDrawable is now RippleDrawable

Change-Id: I59f5f04b73089215c6320560556ac21beb03db06
askInfoView.java
653f70c223f8742e2a3696641fe1d4b82bc2ca36 19-May-2014 Winson Chung <winsonc@google.com> Using new APIs for handling system bar insets.
ecentsView.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
askView.java
1e8d71b605b4872e93200706a80a88a3ff25498c 17-May-2014 Winson Chung <winsonc@google.com> Initial changes to enable keyboard support with alternate Recents. (Bug 14067913)

Change-Id: Icc5d2a784ed3c3c27143eb04cbb4305549ee223a
ecentsView.java
askStackView.java
askView.java
54e297a5bb143e60e29fd7dfe87e04a8cc96c72c 10-May-2014 Winson Chung <winsonc@google.com> Adding dismiss method on the top cards, and disabling the app info pane.
askBarView.java
askStackView.java
askView.java
askViewTransform.java
918c0723a169cef46b8bf59c06fd3bb8021d0def 09-May-2014 Winson Chung <winsonc@google.com> Better transition between excluded-from-recent applications to recents.

- Also replacing baked bezier interpolator with new quantum interpolators

Change-Id: I8928e35724c16c9603fae861b85215d25ce08819
askInfoView.java
askStackView.java
askView.java
5393dff555641f5666573952498e27c90fd3edca 08-May-2014 Winson Chung <winsonc@google.com> Removing the old tasks on launching recents task if they trigger a new task.

- Only kill processes when removing tasks that are not started as documents
- Tweaking thumbnail animation
ecentsView.java
askStackView.java
9f49df933f01a32d04bdf92d53c943065aa8ddf7 08-May-2014 Winson Chung <winsonc@google.com> Listening for system changes to active recent tasks. (Bug 14260718)
ecentsView.java
askStackView.java
askView.java
814086db674d8eb298541b7e601e29c5c68e2074 08-May-2014 Winson Chung <winsonc@google.com> Disabling shadowing (until bugs are addressed) and refactoring some constants.

Change-Id: Iaf4c98bcb13441be3e66048687ea5b0673d2bce6
ecentsView.java
wipeHelper.java
askStackView.java
askView.java
96e3bc1f8d7c199df6fca603d0c5e59d9b70ca1b 07-May-2014 Winson Chung <winsonc@google.com> Fixing issue with animation not running after SystemUI crashes (Bug 14453240)

- Falling back to default transition if we don't have a thumbnail (Bug 14589475)
- Tweaking over scroll to prevent scrolling past a certain point (Bug 14582630)
- Fixing issue with missing top padding in the stack view
- Adding some shadowing to distinguish similar cards from each other
askInfoView.java
askStackView.java
askView.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
ecentsView.java
askStackView.java
f5e22e71cb5f8699a4312c797af068f655cbe629 03-May-2014 Winson Chung <winsonc@google.com> Incorporating theme colors into task views.

Change-Id: Ie7166d78dacabe4bff7afdade2d1da9d0651e403
askBarView.java
askInfoView.java
askView.java
0553e12bc9b10b65703e2bf96e6d74906b5fea79 01-May-2014 Winson Chung <winsonc@google.com> Disable Filtering.

Change-Id: I5c3aaaead7883b639ba24b28c04c1cafec0275c4
askStackView.java
6513f35cbb2b72d89e5fa72c6d6e7d95b899bd23 22-Apr-2014 Winson Chung <winsonc@google.com> Merge "Fixing transition from tasks excluded from Recents into Recents."
cdc3a47d4f0394893fd8670761ee0078ce7fcce1 22-Apr-2014 Winson Chung <winsonc@google.com> Merge "Overriding application icon with activity icon where available."
11e41baac63a42d7ddb7ba2cab40ee55443d262f 21-Apr-2014 Winson Chung <winsonc@google.com> Overriding application icon with activity icon where available.

Change-Id: I03ee8f806b3853183db7f96e71f1684c72b79c57
askBarView.java
9520d1abd40091bb03c5d8db2145c6ec70f77f39 21-Apr-2014 Winson Chung <winsonc@google.com> Fixing transition from tasks excluded from Recents into Recents.

Change-Id: I04efdd65bcda4d0111888a1c5651d1ec9b0c98b0
ecentsView.java
ecd9b3031c9a322bd69380eae2810d53839e8f64 17-Apr-2014 Winson Chung <winsonc@google.com> Initial changes to add search bar.

- Scaling touch overscroll

Change-Id: Iee0523ca32efaae3491cbf5dbf3ea2e388f9d644
ecentsView.java
askInfoView.java
askStackView.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
askStackView.java
askView.java
9f9679d91ee5f067cd5dcbf4d780a1f5b522e4ba 12-Apr-2014 Winson Chung <winsonc@google.com> Adding experiment for app-info pane.

Change-Id: I647de1a71a2ac82da0a4f8a24125496dd5457441
ecentsView.java
askInfoView.java
askStackView.java
askView.java
11ca76a53c60a1898956614315ae929668c523d6 11-Apr-2014 Winson Chung <winsonc@google.com> Refactoring filter animation logic.

Change-Id: Ic3b57f540da8fa0d2703eef34c43ed9e54f85021
askStackView.java
askView.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
ecentsView.java
askStackView.java
0d767551c55d9e594a0b944bd1926c21a344b5ae 09-Apr-2014 Winson Chung <winsonc@google.com> Allow for different rects when animating to a single task stack view and a multiple task stack view.

- Fixing regression in task bar enter animation duration
- Fixing issue with extra long titles in the task bar
- Cleaning up some constants and unused code
askStackView.java
askView.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
ecentsView.java
askStackView.java
2eadb856d0c3747545fa2d19bec3270d112cf49c 07-Apr-2014 Kenny Guy <kennyguy@google.com> Merge "Launch recents with the correct user."
2f2ca08baa072376b3dfd60506625496aa05903f 04-Apr-2014 Winson Chung <winsonc@google.com> Fixing crash when filtering tasks too quickly.

- Using a translation-based animation duration scheme
- Fixing issue where filtering a task could slide it out of view

Change-Id: Id434b4a98aa671d84d047dad18cbe26f543cdf25
askStackView.java
askView.java
1f1cce1725a2fceee4162aec23518d42c78d6669 04-Apr-2014 Kenny Guy <kennyguy@google.com> Launch recents with the correct user.

Change-Id: I0247d6b4012f8305c84d8b3a455530d9332ed2e6
ecentsView.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
askBarView.java
askView.java
a10370fc2eb8eb95631592160c5f6281b9d75722 02-Apr-2014 Winson Chung <winsonc@google.com> Adding system service proxy to help test UI/performance.

Change-Id: I29851ff7b7ced0a69b041e5aa5c9070fc4ab43a5
ecentsView.java
askStackView.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
ecentsView.java
askStackView.java
askView.java
askViewTransform.java
4be0445c66f19ed985aecbc2a572f5d8c6e2553a 25-Mar-2014 Winson Chung <winsonc@google.com> Fixing issue where we were relaunching each activity from recents instead of bringing them to the front.
ecentsView.java
37c8d8ef855aacb074ee0b702a46dbc62b7551a2 24-Mar-2014 Winson Chung <winsonc@google.com> Moving task view layout into resource.

- Using new activity icon/labels

Change-Id: If27bf60d2df75813213e9f3095baeb03085da8f7
askBarView.java
askStackView.java
askThumbnailView.java
askView.java
4c71aefcbd7f7bef5dab1d05d5f7001aaea1b067 21-Mar-2014 Winson Chung <winsonc@google.com> Fixing crash with multiple touch pointers

- Adding support for force-reloading certain thumbnails (in prep for fix to Bug. 13587139)
- Use withLayer and withEndAction on ViewPropertyAnimator animations
- Ensuring that we close the notifications panel when we toggle recents

Change-Id: Ied2d841de42046fcb09fffb615156b07b4a67136
askStackView.java
askView.java
c620bafde865f7599401f5adf0521820ee9d4a9c 20-Mar-2014 Winson Chung <winsonc@google.com> Catching case where the activity we are launching from Recents no longer exists.

- Also bounding the launch task rect to prevent transitions from far far away when launching a task
ecentsView.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)
ecentsView.java
askView.java
bb5278b663a0a5b05bf7f8d2dfe27f1aa5f01142 18-Mar-2014 Winson Chung <winsonc@google.com> Fixing issue with cards being rendered under the nav bar after a configuration change due to improperly setting the system insets.
askStackView.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
ecentsView.java
askStackView.java
askView.java
7124390f9d03fd451a0291eca679bfc901e84b95 15-Mar-2014 Winson Chung <winsonc@google.com> Fixing crash when ActivityManager does not have a proper thumbnail

- Fixing issue with hw layers ref count not properly being incremented and decremented
- Preventing message handler from keeping a strong ref to the RecentsService
ecentsView.java
askStackView.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
ecentsView.java
askStackView.java
askView.java
iewPool.java
iewPoolConsumer.java
4d7b092a866d2fce3e11b5a12cda2b87a83af52d 14-Mar-2014 Winson Chung <winsonc@google.com> Fixing memory leaks related to Tasks holding onto their callbacks.

- Switching to SwipeHelper
wipeHelper.java
askStackView.java
askView.java
303e1ff1fec8b240b587bb18b981247a99833aa8 08-Mar-2014 Winson Chung <winsonc@google.com> Initial changes for recents.

Change-Id: Ide2c202b4a5b25410f0f32bd0a81ccf817ede38f
ecentsView.java
wipeHelper.java
askStackView.java
askView.java
askViewTransform.java
iewPool.java
iewPoolConsumer.java