Commit Graph

16300 Commits

Author SHA1 Message Date
Sunny Goyal 9b789cbbac Merge "Fixing crash when cancelAnimaiton happens while we are aboutto enter long-swipe" into ub-launcher3-edmonton 2018-05-10 22:16:06 +00:00
TreeHugger Robot d3c8e35e7f Merge "Deferring recents animation when tapping rotation button." into ub-launcher3-edmonton 2018-05-10 21:52:25 +00:00
Winson Chung 447aadbc45 Deferring recents animation when tapping rotation button.
Bug: 79518453
Change-Id: I46490cce0ced0860903337c02fb66e1cdc5add06
2018-05-10 14:40:44 -07:00
TreeHugger Robot 0572422de8 Merge "Fixing latency test for square button" into ub-launcher3-edmonton 2018-05-10 21:28:52 +00:00
Vadim Tryshev c538cc3a01 Fixing latency test for square button
App-to-recents via square button now generates an event (sysui_latency: [1,<latency>]) for latency tests.

Bug: 72967764
Test: atest google/perf/app-transition/sysui-latency-test
Change-Id: Iae9e3112ab28d98ec2c11111f259010692e7fc7a
2018-05-10 14:15:53 -07:00
Tony Wickham 41be2fc783 Fix workspace scale calculation
- Based on workspace page instead of workspace (takes padding into
  account)
- Checks that width != 0 so we don't divide by 0

Bug: 79526164
Change-Id: I25d92a04550aa34abab7e9e1f93c93dbccd61752
2018-05-10 14:00:27 -07:00
Sunny Goyal 1d82dd4d12 Fixing crash when cancelAnimaiton happens while we are aboutto enter long-swipe
Bug: 79419808
Change-Id: I17741ef7b35a8b82543e52c4958289933cf04a43
2018-05-10 12:01:23 -07:00
Sunny Goyal 08ef66789b Using dragHandle for workspace padding calculation instead of pageIndicator
> PageIndicator is a 1dp indicator which does not contribute in any padding calculations

Bug: 79111591
Change-Id: I4d8be0149da2b3f14593ae71ca037ffe3885d9be
2018-05-10 11:33:11 -07:00
Sunny Goyal 5d1873a812 Removing scrim overdraw
> Moving all the scrims to draglayer to avoid creating multiple layers during
  various animations
> Removing sys-ui scrim in various states which alread have a background scrim

Bug: 74556464
Bug: 78585335
Change-Id: I8a3fd34ed440f3c7d2e19b3cdb4b72723c535602
2018-05-10 10:52:31 -07:00
Winson Chung 522e388b17 Merge "Fix lock contention while swiping up" into ub-launcher3-edmonton 2018-05-10 17:42:52 +00:00
TreeHugger Robot e97bbc47b8 Merge "Removing extra binder call on state or visibility change" into ub-launcher3-edmonton 2018-05-10 17:40:32 +00:00
Tony Wickham d4ece9a74c Don't reapply state when setting user controlled animation
Bug: 79525106
Change-Id: Ia41a51559196d4aa657fae47727c7366d9073295
2018-05-10 10:03:54 -07:00
Sunny Goyal cc0453c5e0 Merge "Fixing disabled filter is not applied to the foregound layer when dragging an icon" into ub-launcher3-edmonton 2018-05-10 06:52:02 +00:00
TreeHugger Robot 637a6355c6 Merge "More detailed description for shortcuts_menu_with_notifications_description" into ub-launcher3-edmonton 2018-05-10 01:09:27 +00:00
Vadim Tryshev 21837e5d24 More detailed description for shortcuts_menu_with_notifications_description
Change-Id: I5e4a416ae7e45863ac9e6a719dfbf5de1741d5a1
Testing: Manual
Bug: 79490700
2018-05-09 17:58:52 -07:00
Hyunyoung Song 2d90fd0eeb Merge "Use device api level if first_api_level is not set. Bug: 79429532" into ub-launcher3-edmonton 2018-05-09 23:41:05 +00:00
TreeHugger Robot 788003e4bf Merge "Tune discovery bounce to be more gentle when bouncing." into ub-launcher3-edmonton 2018-05-09 23:26:01 +00:00
Tracy Zhou 6c4fa1045b Tune discovery bounce to be more gentle when bouncing.
Change-Id: I6b1c094bbcd07bfda76bcc2c6b2a6fb249acd377
Fixes: 79491740
Test: Manual test
2018-05-09 23:18:44 +00:00
Tony Wickham 7a4dfc9885 Merge "Improve animation when swiping down on task" into ub-launcher3-edmonton 2018-05-09 23:14:34 +00:00
Sunny Goyal b6d292d788 Fixing disabled filter is not applied to the foregound layer when dragging an icon
Bug: 79475381
Change-Id: Ic489601f80a3180fe20a83988c2c3db7100e6946
2018-05-09 14:25:09 -07:00
Winson Chung 570432f700 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: I73dfc380dd99908cfc30ff7c164a9677a5a126e0
2018-05-09 14:10:52 -07:00
TreeHugger Robot 5be4075727 Merge "Don't end atomic animation when passing through state" into ub-launcher3-edmonton 2018-05-09 20:26:46 +00:00
Tony Wickham 56b247da1d Merge "Add atomic recents animation while swiping up" into ub-launcher3-edmonton 2018-05-09 20:13:23 +00:00
android-build-team Robot f69f0c2bf0 Merge "Adding a carent in the scrim" into ub-launcher3-edmonton 2018-05-09 20:12:59 +00:00
Hyunyoung Song a30bf371e4 Use device api level if first_api_level is not set.
Bug: 79429532

Change-Id: I2fddad81fb1cd23d4023d7f3f5124f14a8c994f7
2018-05-09 13:12:48 -07:00
android-build-team Robot 8473ddb7ee Merge "Tweaks to app closing animation." into ub-launcher3-edmonton 2018-05-09 20:11:23 +00:00
Sunny Goyal 0d05a8b311 Merge "Revert "Fix lock contention while swiping up"" into ub-launcher3-edmonton 2018-05-09 20:11:22 +00:00
Sunny Goyal daa47e7ccc Revert "Fix lock contention while swiping up"
This reverts commit 12c4ecb015.

Reason for revert: pending some comments

Change-Id: I064b76c7cedfda1bd4de17dc407dc843831ecd68
2018-05-09 20:10:40 +00:00
Sunny Goyal d3e55f1b64 Merge "Fix lock contention while swiping up" into ub-launcher3-edmonton 2018-05-09 20:07:44 +00:00
Jon Miranda d26d5aaa6d Tweaks to app closing animation.
Change-Id: Ia2cbc1401a57ad8dc3e3553110497eb35c19fe64
2018-05-09 12:51:34 -07:00
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 fc564f1477 Don't end atomic animation when passing through state
Previously we were ending the atomic animation with the assumption
that it should be complete/almost complete by the time you drag to
the next state. However, it is very easy to drag quickly enough where
that assumption doesn't hold, and thus you just see the atomic
animation pop to the end (i.e. recents showing without animation).

Now instead of ending the atomic animation, we let it continue. But
because the new state animation will have an atomic component that
interferes with the still playing atomic animation, we have to
control the atomic component separately; we control the non-atomic
components until the atomic animation ends, at which point we create
a separate controller to control the atomic components.

Bug: 76449024
Change-Id: Ia4bf19e26d0838f952d9e500fbdd8aba19856a41
2018-05-09 12:36:02 -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
Jonathan Miranda cf4f8c0c2e Merge "Increase REORDER_TIMEOUT to make it easier for users to create/add to folder." into ub-launcher3-edmonton 2018-05-09 18:48:22 +00: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
Tony Wickham e3a968090a Merge "Cleanup swipe detector in case of double cancel" into ub-launcher3-edmonton 2018-05-09 16:00:02 +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
android-build-team Robot ad59f63aab Merge "Consuming launcher instets in multi-window mode" into ub-launcher3-edmonton 2018-05-08 22:08:17 +00:00
Sunny Goyal 9001b10771 Consuming launcher instets in multi-window mode
Bug: 79267409
Change-Id: I283f9eeffaf322cee9289bf90528c8c51d083a50
2018-05-08 14:57:36 -07:00
Sunny Goyal fe392da300 Merge "Chaniging all-apps scrim" into ub-launcher3-edmonton 2018-05-08 18:10:12 +00:00
Jon Miranda 217f0ca2d9 Increase REORDER_TIMEOUT to make it easier for users to create/add to folder.
This is more common for tall devices where cell height is relatively larger
than the icon size.

Bug: 78598193
Change-Id: I2835794e4dbe799d0fadefaa723360145d134550
2018-05-08 10:50:40 -07:00
android-build-team Robot a7158083dd Merge "Import translations. DO NOT MERGE" into ub-launcher3-edmonton 2018-05-08 17:38:57 +00:00
Sunny Goyal a6616dec28 Fixing stateManager not correctly deduping existing animations
Bug: 79251716
Change-Id: I40c3ebf0ec4d49aa1fe1948ad3d83eb87cc1c5f1
2018-05-08 09:16:04 -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