Commit Graph

6667 Commits

Author SHA1 Message Date
Winson Chung
12c4ecb015 Fix lock contention while swiping up
- Don't lock when making WM calls (only lock when resetting), and use own
  executor since the background executor is fixed to only two threads and
  other things can be running on them already (like task loading).

Bug: 78585335
Change-Id: I56e24fbbdeb3b673837982df3fa67e485d03b3b2
2018-05-09 12:51:02 -07:00
Sunny Goyal
ef39540dde Adding a carent in the scrim
> Caret is only visible when the accessibility is enabled
> It is visible in NOTMAL and OVERVIEW state and moves out of the
  scrim along with the scrim.
> Acts as an accessible target for various options

Bug: 78172350
Bug: 79215734
Change-Id: I8a968b67e36901859649546295f6491d49cc9ce9
2018-05-09 12:39:30 -07:00
Tony Wickham
6becf7c07d Add atomic recents animation while swiping up
State handlers can now specify atomic and non-atomic components of
their animations to states, which can be specified when creating a
new animation. There is now one atomic animation, when going from
NORMAL to OVERVIEW (and in reverse):
- RecentsViewStateController's animation (scale/alpha) is all atomic
- WorkspaceStateTransitionAnimation has atomic and non-atomic:
  - Hotseat and workspace alpha is atomic, as is workspace scale
  - Everything else (scrim, translation, qsb and drag handle alpha) is
    non-atomic
- All apps progress is non-atomic

Also simplified dragging through overview; no longer pulls against you,
so we use an OvershootInterpolator when flinging instead of our custom
interpolator for the spring effect.

Bug: 76449024
Bug: 78089840
Change-Id: Iafac84d0c2b99ee9cf9dd5b30e2218286713b449
2018-05-09 12:33:46 -07:00
Sunny Goyal
6b4b9b5d71 Removing extra binder call on state or visibility change
> fixing a bug where we do not match task events against managed user

Bug: 78585335
Change-Id: I9183e81ea63f8ab51f45d5140301d281234caf2b
2018-05-09 12:14:18 -07:00
Tracy Zhou
04bf548038 Reset home bounce as unseen for users upgrading from Android O/N to P.
Change-Id: I18b80f874180c8cc94e3101bcbceb75ecd4c28bc
Fixes: 78647939
Test: Manual test
2018-05-09 11:00:20 -07:00
Mehdi Alizadeh
dfd07389e3 Merge "Enforce Swipe Up gesture to be enabled based on the shipped SDK version" into ub-launcher3-edmonton 2018-05-09 17:57:32 +00:00
android-build-team Robot
639b07178f Merge "Using surface rotation instead of insets to determine seascape configuration" into ub-launcher3-edmonton 2018-05-09 16:00:43 +00:00
Mehdi Alizadeh
2a8f265ab0 Enforce Swipe Up gesture to be enabled based on the shipped SDK version
Bug: 79429532
Test: Manual test
Change-Id: I12682ea3555eb3649cba4e1df018a697897f0fb6
2018-05-08 17:33:18 -07:00
Tony
b271ad8972 Improve animation when swiping down on task
- Scale icon down/up atomically at a threshold
- Fix scale of tasks to properly take curve/zoom scale into account

Bug: 78779525
Change-Id: I5909c63b18a993433de7a38b9641f4f38a219807
2018-05-08 15:39:05 -07:00
Sunny Goyal
578890ad93 Fixing task icon not animating when swiping up
Bug: 79236139
Change-Id: I3db7bd098053ebad0d42fa0245a0dbbafb4291c9
2018-05-08 15:35:29 -07:00
Sunny Goyal
927447e71d Chaniging all-apps scrim
> Converting the scrim to View, to better avoid overdraw
> Overview and Spring loaded state have different scrim alpha
> When going from overview to all-apps, there is a color scrim drawn over the overview panel.
  The slef color is merged with this color to prevent overdraw, and the remaining screen is drawn
  with a cut-out round rect path

Bug: 79111591
Change-Id: I26801fde13dd6adb4b06110bbe8087e35cc31847
2018-05-08 08:29:43 -07:00
android-build-team Robot
729020d186 Merge "Insted of animating the icon of the first task, animating the running task icon" into ub-launcher3-edmonton 2018-05-08 04:06:59 +00:00
Vadim Tryshev
68277f0568 Simplifying clear-all transparency calculation
Bug: 78788182
Change-Id: Idb66629f0dcc09240f38f37554a7ff50dbeefb7d
Testing: Manual
2018-05-07 18:15:12 -07:00
Sunny Goyal
59d086c3ce Using surface rotation instead of insets to determine seascape configuration
Insets may not correctly indicate seascape configuration in multi-window or
when the presence of device-cutouts

Bug: 79376298
Change-Id: I8268efca0001fe527a0ffefe48cc71e774fad01c
2018-05-07 17:32:46 -07:00
Vadim Tryshev
0fc0713253 Fixing reverted order of accessibility scrolling in Recents
Bug: 78788182
Change-Id: I275381e65bbd2fa24e427fea0bb9ca44366e0357
Testing: Manual
2018-05-07 16:28:46 -07:00
Sunny Goyal
28254eec60 Insted of animating the icon of the first task, animating the running task icon
Bug: 79236139
Change-Id: Ib85c22e3898c09a84d3a862c407c23d76a600d9d
2018-05-07 14:59:27 -07:00
android-build-team Robot
2f0101778d Merge "Fix bug where launcher closing animation isn't run." into ub-launcher3-edmonton 2018-05-07 18:59:13 +00:00
Jon Miranda
717127186a Fix bug where launcher closing animation isn't run.
In some cases, we prematurely clear the force invisible flag before composing
the launcher animation, causing us to skip the animation.

Bug: 77205145
Change-Id: I4224741649a4fef34e255abac7b66bcf919c042f
2018-05-07 11:46:33 -07:00
android-build-team Robot
ae43d14790 Merge "Removing extra accessibility box from Recents" into ub-launcher3-edmonton 2018-05-07 18:45:06 +00:00
Winson Chung
76a2a6ae66 Clear refs to the controller and saved snapshot upon finishing animation
Bug: 79322746
Change-Id: I8786909615da3368a22300d5e33cefa4b77623fd
2018-05-07 10:22:04 -07:00
Vadim Tryshev
db1903a567 Removing extra accessibility box from Recents
Disabling accessibility of Workspace (not Recents!) while in Overview,
thus removing strange box appearing while navigating with Switch Access
though Overview. See discussing in the bug.

Bug: 78464518
Change-Id: I86b10e3e435af6e45a94c867e7efcdb5553d32d2
Testing: Manual
2018-05-04 19:30:39 -07:00
android-build-team Robot
db05fc28cf Merge "Tweaks to opening app window animation." into ub-launcher3-edmonton 2018-05-04 22:53:05 +00:00
Sunny Goyal
18c699fbc5 Using the system color extraction logic instead of inbuild logic
> Moving the inbuild color extraction logic to the aosp flavor

Bug: 79111591
Change-Id: I766b0397da7224b424cd5f309cedf635d60a5e0f
2018-05-04 10:16:39 -07:00
Tony Wickham
4c7507571c Merge "Only detect swipe directions that lead to new states" into ub-launcher3-edmonton 2018-05-03 21:38:04 +00:00
android-build-team Robot
6e95c8f34c Merge "Fixing wrong padding being set in multi-window + landscape" into ub-launcher3-edmonton 2018-05-03 21:33:16 +00:00
Sunny Goyal
b44e80000c Fixing wrong padding being set in multi-window + landscape
In multi-window, we only have the correct availableWidth and not the correct width.
Use availableWidth for setting padding instead of fullWidth

Change-Id: Id437088eea49ab5ad103ded6eed904d776e728c9
2018-05-03 14:19:39 -07:00
Tony Wickham
52240a3aa0 Only detect swipe directions that lead to new states
This cleans up the code and ensures that the current state animation
is always initialized when we get drag events.

Also log when we pass through states.

Bug: 78017680
Change-Id: I54ab42923ed539940ea708973ad65f5793669c11
2018-05-03 14:04:25 -07:00
Tony Wickham
257c9ea8d1 Merge "Don't crash if getWidth is 0" into ub-launcher3-edmonton 2018-05-03 20:59:40 +00:00
Winson Chung
83f58f2d2c Fix incorrect reporting of launch failure
- Launcher uses the same consumer to handle task launch failure and
  animation-cancel, so only show the notification when it is an
  actual launch failure.

Bug: 79209142
Change-Id: I6b708ac9888673056f2c6de1d5aee4a281c61027
2018-05-03 20:37:35 +00:00
Tony Wickham
181968b87b Don't crash if getWidth is 0
Bug: 79203256
Change-Id: I3f91adbda40931e882c4f768794a0d803730805e
2018-05-03 12:50:05 -07:00
Winson Chung
3f596f649d Also setEarlyWakeup for single frame transaction to hide window.
Bug: 79204453
Change-Id: Ib13f8a0c49b03fdce960b3f480c598bb70a113ef
2018-05-03 18:24:06 +00:00
Winson Chung
9ebc88a381 Fixing transaction regression.
- Need to call setEarlyWakeup() for each transaction, not just the
  first

Bug: 79204453
Change-Id: Ib83bddb9eaeb7563954bc9d7f584fdd5d302b501
2018-05-03 10:57:23 -07:00
Winson Chung
94262dedb7 Skip snapping to page when there are no pages
- This scrolls the recents view, which affects the empty recents icon
  position.

Bug: 79170402
Test: Clear all tasks, then quickscrub
Change-Id: I316805c0083d4ad65a8df0fafd88545859054405
2018-05-02 17:45:14 -07:00
android-build-team Robot
b8e5bf3e42 Merge "Handling activity recreate due to configuration changes in the middle of the long fling" into ub-launcher3-edmonton 2018-05-02 23:16:13 +00:00
android-build-team Robot
d5efb650af Merge "Using a custom view instead of ImageView to avoid relayout when the icon changes" into ub-launcher3-edmonton 2018-05-02 22:59:02 +00:00
Sunny Goyal
16593d7932 Handling activity recreate due to configuration changes
in the middle of the long fling

Bug: 77651657
Change-Id: I8107c424eb37512ce78c943da04a6e7faf33be65
2018-05-02 15:53:22 -07:00
Sunny Goyal
85c53f2af5 Using a custom view instead of ImageView to avoid relayout when the icon changes
Bug: 78585335
Change-Id: I078aec5b80ec45933ba4974df68cab23ac4a0ca0
2018-05-02 15:38:21 -07:00
Hyunyoung Song
960ab6c085 Merge "Clear all task button should not log as individual swipe up Bug: 78895803" into ub-launcher3-edmonton 2018-05-02 22:32:55 +00:00
android-build-team Robot
433ef09d29 Merge "Moving some callbacks from LauncherCallbacks to OverviewCallbacks" into ub-launcher3-edmonton 2018-05-02 22:06:10 +00:00
android-build-team Robot
145cb8420d Merge "Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep Bug: 77920179" into ub-launcher3-edmonton 2018-05-02 21:53:59 +00:00
Hyunyoung Song
a05860421f Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep
Bug: 77920179

Change-Id: Id4c7dc3d535c7a8009d340183e640b04ab07408a
2018-05-02 14:34:23 -07:00
Tony Wickham
1817942d8a Merge "Add a quick scrub threshold" into ub-launcher3-edmonton 2018-05-02 21:21:24 +00:00
android-build-team Robot
a978a24d09 Merge "Making Clear-all a "button" for accessibility." into ub-launcher3-edmonton 2018-05-02 21:20:37 +00:00
Vadim Tryshev
1e3687d5a1 Making Clear-all a "button" for accessibility.
To get it announced as "Clar all button", not just "clear all".

Bug: 72222505
Test: Manual
Change-Id: Ied1a036fda77c38af39db868d3dc1ae443982bcd
2018-05-02 13:54:38 -07:00
android-build-team Robot
9b83fe225d Merge "Quickstep onboarding backward compatibility for devices release with Android N & O." into ub-launcher3-edmonton 2018-05-02 20:51:37 +00:00
Jon Miranda
ce1402132a Tweaks to opening app window animation.
We decrease the the durations for the downward app launch animations (by 80%)
except for the scale animation.

We do this because we want the window to reach the center faster so that the
window never goes off screen as it scales up.

Bug: 78891245

Change-Id: I6ece6ee1f01d32f2fcee42bba6a99c72b82f9023
2018-05-02 13:49:53 -07:00
Tracy Zhou
8b23c6f60b Quickstep onboarding backward compatibility for devices release with Android N & O.
Quickstep introduces swipe up gesture to open Overview and removes the
Recents button. We still want to show shelf bounce animation for Android
N & O users with Recents button because Overview is updated and swiping
up from there takes users to All Apps.

Test: manual test
Change-Id: I917c91564c47c78d2dc3883b8a7bf7824b5f5bc8
Fixes: 78647939
2018-05-02 13:41:28 -07:00
android-build-team Robot
d79759556d Merge "New calculation for clear-all alpha." into ub-launcher3-edmonton 2018-05-02 20:39:15 +00:00
Vadim Tryshev
80cd825c0f New calculation for clear-all alpha.
Per UX feedback, alpha changes from the central position of the last
task and its overscrolled position. Button location is not used.

Bug: 72222505
Test: Manual
Change-Id: Ifc22c935940eaeb1b1ec6e4a5f2709ac7ae8253b
2018-05-02 13:14:16 -07:00
Tony Wickham
cf563e5f2d Add a quick scrub threshold
Change-Id: I184ca2bd3d97e58f8fe8841a66571ca101ee3dc2
2018-05-02 12:03:22 -07:00