Commit Graph

721 Commits

Author SHA1 Message Date
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
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
Tony Wickham
7a4dfc9885 Merge "Improve animation when swiping down on task" into ub-launcher3-edmonton 2018-05-09 23:14:34 +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
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
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
fe392da300 Merge "Chaniging all-apps scrim" into ub-launcher3-edmonton 2018-05-08 18:10:12 +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
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
Bill Yi
db7327f85f Import translations. DO NOT MERGE
Change-Id: I6646ab8842f39b209cd6d8eb7bcceb88569e6117
Auto-generated-cl: translation import
2018-05-07 16:38:30 -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
android-build-team Robot
7401ebb280 Merge "Annotating groups of views in Overview for accessibility" into ub-launcher3-edmonton 2018-05-04 17:55:56 +00:00
Vadim Tryshev
ce367a3218 Annotating groups of views in Overview for accessibility
This will break the initial focus assignment. This should be later fixed
in Talkback.

Bug: 72409756
Test: Talkback reads pane title, even though at a wrong moment.
Change-Id: I38458ef7c3b5745169d7bc17ce8751f683ba9c71
2018-05-04 10:45:12 -07: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