Commit Graph

1301 Commits

Author SHA1 Message Date
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
Android Build Merger (Role)
65c6e5f2f2 [automerger] Fixing crash when cancelAnimaiton happens while we are aboutto enter long-swipe am: 1d82dd4d12
Change-Id: I70c15e1a83979aa44705c1d6491b950932905ba5
2018-05-10 19:01:29 +00: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
Android Build Merger (Role)
1e4420c4ab [automerger] Using dragHandle for workspace padding calculation instead of pageIndicator am: 08ef66789b
Change-Id: If1cee04dcd365d87328119ccec457c30c0fb317d
2018-05-10 18:33:17 +00: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
Winson Chung
522e388b17 Merge "Fix lock contention while swiping up" into ub-launcher3-edmonton 2018-05-10 17:42:52 +00:00
Winson Chung
54e09b2673 Merge changes from topic "am-11851312-e665-4de2-88e4-10cb14f31d5f" into ub-launcher3-master
* changes:
  [automerger] Fix lock contention while swiping up am: 570432f700
  Fix lock contention while swiping up
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
TreeHugger Robot
b7ba11a3c8 Merge changes from topic "am-b221aa51-527b-4bc6-ba9b-bb560e5f8d73" into ub-launcher3-master
* changes:
  [automerger] Removing extra binder call on state or visibility change am: 6b4b9b5d71
  Removing extra binder call on state or visibility change
2018-05-10 17:40:32 +00: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
Hyunyoung Song
35d11c9e01 Merge changes from topic "am-b2ecfae0-2b56-4c12-a902-81d99b089bfe" into ub-launcher3-master
* changes:
  [automerger] Use device api level if first_api_level is not set. Bug: 79429532 am: a30bf371e4
  Use device api level if first_api_level is not set. Bug: 79429532
2018-05-09 23:41:05 +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
Tony Wickham
4d9ee66eff Merge changes from topic "am-7b19da77-0ec2-4e05-be44-de816e5aee8c" into ub-launcher3-master
* changes:
  [automerger] Improve animation when swiping down on task am: b271ad8972
  Improve animation when swiping down on task
2018-05-09 23:14:34 +00:00
Android Build Merger (Role)
47295ded48 [automerger] Fix lock contention while swiping up am: 570432f700
Change-Id: Ib7c958814612afd4104d1ad551f2644bed4a3547
2018-05-09 21:12:52 +00: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
Tony Wickham
56b247da1d Merge "Add atomic recents animation while swiping up" into ub-launcher3-edmonton 2018-05-09 20:13:23 +00:00
Tony Wickham
b323baf20a Merge changes from topic "am-65c635f5-fb28-44c1-966a-528663e0dfb3" into ub-launcher3-master
* changes:
  [automerger] Add atomic recents animation while swiping up am: 6becf7c07d
  Add atomic recents animation while swiping up
2018-05-09 20:13:23 +00:00
Android Build Merger (Role)
ca94564c4f [automerger] Use device api level if first_api_level is not set. Bug: 79429532 am: a30bf371e4
Change-Id: I12fcd4af04e1e5f3a33cae0b748b05222bd499db
2018-05-09 20:13:06 +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
android-build-team Robot
ae59144edb Merge changes from topic "new-caret" into ub-launcher3-master
* changes:
  [automerger] Adding a carent in the scrim am: ef39540dde
  Adding a carent in the scrim
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
Android Build Merger (Role)
6ea60b8332 [automerger] Tweaks to app closing animation. am: d26d5aaa6d
Change-Id: Ia50af519ece522ea781d027af5f2dddb1095475e
2018-05-09 19:51:49 +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
Android Build Merger (Role)
e474f14f65 [automerger] Adding a carent in the scrim am: ef39540dde
Change-Id: I0d0e3bd2c24559b93bd7d5b4e23833b1dd9921e8
2018-05-09 19:39:35 +00: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
Android Build Merger (Role)
6c32ec83fb [automerger] Add atomic recents animation while swiping up am: 6becf7c07d
Change-Id: Ib721a3c578112102ccfa487f8f63da6b175276a2
2018-05-09 19:33:57 +00: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
Android Build Merger (Role)
3f8683b8e6 [automerger] Removing extra binder call on state or visibility change am: 6b4b9b5d71
Change-Id: I808349024a9ba351e0d7e27c7b9a599b77082ac6
2018-05-09 19:14:25 +00: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
Android Build Merger (Role)
8ee74b71ef [automerger] Reset home bounce as unseen for users upgrading from Android O/N to P. am: 04bf548038
Change-Id: Ic5fe90c62c7b1e4d3b6a9aa369929ea41cb9701e
2018-05-09 18:00:32 +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
17e64b3444 Merge changes from topic "force-swipe-up-enabled-p3" into ub-launcher3-master
* changes:
  [automerger] Enforce Swipe Up gesture to be enabled based on the shipped SDK version am: 2a8f265ab0
  Enforce Swipe Up gesture to be enabled based on the shipped SDK version
2018-05-09 17:57:32 +00: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
android-build-team Robot
9e77255c04 Merge changes from topic "am-9e348ca4-cd08-4961-920a-21d62dd2dd15" into ub-launcher3-master
* changes:
  [automerger] Using surface rotation instead of insets to determine seascape configuration am: 59d086c3ce
  Using surface rotation instead of insets to determine seascape configuration
2018-05-09 16:00:43 +00:00
Android Build Merger (Role)
5e64a2f80e [automerger] Enforce Swipe Up gesture to be enabled based on the shipped SDK version am: 2a8f265ab0
Change-Id: I759159908409ac0b6d435877b16a62b82c19bca3
2018-05-09 01:09:09 +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
Android Build Merger (Role)
444715d75c [automerger] Improve animation when swiping down on task am: b271ad8972
Change-Id: Iac81340d0b46e1ced5224c7181d56c2ca5db9417
2018-05-08 22:39:18 +00: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
Android Build Merger (Role)
eca04d2f23 [automerger] Fixing task icon not animating when swiping up am: 578890ad93
Change-Id: Ia53fcd0e16666905cb92a0f1530397341f8620d0
2018-05-08 22:35:37 +00: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
fe392da300 Merge "Chaniging all-apps scrim" into ub-launcher3-edmonton 2018-05-08 18:10:12 +00:00
Sunny Goyal
c6d01b825a Merge changes from topic "am-e4fc8b63-7d30-48ba-8bff-555d9e7e1860" into ub-launcher3-master
* changes:
  [automerger] Chaniging all-apps scrim am: 927447e71d
  Chaniging all-apps scrim
2018-05-08 18:10:12 +00:00
android-build-team Robot
a6a1f80574 Merge "Import translations. DO NOT MERGE" into ub-launcher3-master 2018-05-08 17:53:52 +00:00
android-build-team Robot
a7158083dd Merge "Import translations. DO NOT MERGE" into ub-launcher3-edmonton 2018-05-08 17:38:57 +00:00