Commit Graph

33301 Commits

Author SHA1 Message Date
TreeHugger Robot 8578309f1b Merge "Adding debug tracing" into ub-launcher3-qt-r1-dev 2019-07-24 00:01:25 +00:00
Tony Wickham fbd77c48cc Distinguish mDragHandleProgress from mMidProgress
mMidProgress is intended to be the point at which we reach Overview when
swiping up and thus start scrimming it as All Apps shows above it. For
that reason, mMidProgress needs to match OverviewState's progress. In
contrast, the drag handle (accessibility arrow) can move up sooner to
avoid overlapping with the QSB; for this, we added mDragHandleProgress.

Bug: 136800511
Change-Id: I2825ff798707530420855257350e492b4b9b77dc
2019-07-23 16:58:45 -07:00
vadimt cd7b00853b Adding debug tracing
Bug: 138251824
Change-Id: Ibe3de964aeacbf83fd46cc53fda7d15c9401fe4d
2019-07-23 16:49:48 -07:00
Vadim Tryshev 1fa0955aeb Merge "TAPL: adding 1 to gesture margins to avoid accidentally triggering back" into ub-launcher3-qt-r1-dev
am: 068f4bde88

Change-Id: Ib3fa2054098fbfdc72189ebd78fe312c587bb9ca
2019-07-23 16:40:22 -07:00
Winson Chung 48ba8c864c Fix regression in assistant window handling
- Skip the assistant as the running task when handling swipe up
- Also ensure that we fall into the overview input consumer if we are
  swiping it from the assistant over home
- Skip accounting for the scroll offset when there is no running task

Bug: 136282913
Change-Id: I28e45e407702d6d6aebaa0232cd96ccb10047644
2019-07-23 16:25:46 -07:00
Vadim Tryshev 068f4bde88 Merge "TAPL: adding 1 to gesture margins to avoid accidentally triggering back" into ub-launcher3-qt-r1-dev 2019-07-23 23:17:08 +00:00
Zak Cohen 344bc96ae1 Merge "TaskView - add a getter for the bitmap data." into ub-launcher3-qt-r1-dev
am: 87477f5996

Change-Id: Id798408bcbf5a9ad10a58b6987a970b6c5ed28b8
2019-07-23 16:13:16 -07:00
Zak Cohen 87477f5996 Merge "TaskView - add a getter for the bitmap data." into ub-launcher3-qt-r1-dev 2019-07-23 22:51:28 +00:00
vadimt a505381980 TAPL: adding 1 to gesture margins to avoid accidentally triggering back
Change-Id: I7152d60dffc2085313dc1466693b599e4efe0394
2019-07-23 15:48:02 -07:00
Jon Miranda 9566a04400 Fix bug where rounded corners were being set despite being disabled.
Bug: 138117089
Change-Id: Icb852e2e07d80c45ad3406ef432b89720887fccf
2019-07-23 22:24:35 +00:00
vadimt e22e067435 Improving "Add automatically" recognition
am: 34828b1942

Change-Id: I413cc1a05bac3e3ad6ce9eded75fe1d2ca32cd2b
2019-07-23 14:50:58 -07:00
vadimt 34828b1942 Improving "Add automatically" recognition
Bug: 138152531
Change-Id: I204233f06a80d2d17b24dd9622c7a2152b1303a0
2019-07-23 13:54:05 -07:00
Tony Wickham d418f3c3fa Set FastBitmapDrawable scale=1 before drawing it in DragView
When we draw the icon to the DragView, we draw it
with the current scale, which is > 1 when animating
the icon down. Instead, we should always draw the
icon with scale 1 since the DragView itself is scaled.

Bug: 138236583
Change-Id: I6bca5cf28c54d58476240e0e68900a8f08ffe60b
2019-07-23 13:48:08 -07:00
vadimt beb70a5aa4 Allowing both normal-case and uppercase versions of widget prompt
am: 44515f42c0

Change-Id: If4b2d7e4b9e8649a175e60cfee6520f2cb28d108
2019-07-23 13:40:44 -07:00
Vadim Tryshev e8252595ae Merge "Logging start and end of linear gesture" into ub-launcher3-qt-r1-dev
am: 2f0fdd6a7f

Change-Id: I51e9e694317c6b95392c5bd9118a3f8d6b51e0ba
2019-07-23 13:09:39 -07:00
vadimt 44515f42c0 Allowing both normal-case and uppercase versions of widget prompt
The prompt is "Add automatically"

Bug: 138152531
Change-Id: I5f1a15563e1e11768579711108a28070b72b4454
2019-07-23 12:41:13 -07:00
Vadim Tryshev 2f0fdd6a7f Merge "Logging start and end of linear gesture" into ub-launcher3-qt-r1-dev 2019-07-23 19:26:54 +00:00
Vinit Nayak 15abc500ea Refactor RecentTasksList ctor to be testable
Made ctor accept more arguments so we can
pass in mock objects for unit testing.

Test: Created RecentsTasksListTest.java, passes
adb shell am instrument -w -r -e debug false -e \
class 'com.android.quickstep.RecentTasksListTest' \
com.google.android.apps.nexuslauncher.tests/androidx.test.runner.AndroidJUnitRunner

Fixes: 135687618
Change-Id: Iffda661e9d5329a2a403060bde674ab81e4e720e
2019-07-23 11:49:19 -07:00
vadimt 20aa2e4f51 Logging start and end of linear gesture
Change-Id: Ie0756c89e3871b3f4e12849ef52c44f84a5ceeee
2019-07-22 16:54:29 -07:00
Tony Wickham f05d3f8fd4 Revert the changes that prevented touch on RecentsView during animation
am: b6841ac630

Change-Id: Ia0c9ec7a600e5d3064297630d16eb862d486bf45
2019-07-22 15:57:55 -07:00
Tony Wickham b6841ac630 Revert the changes that prevented touch on RecentsView during animation
The original bug that was solving seems to be fixed by other changes,
and this allows users to scroll, dismiss, etc on recent tasks before
fully reaching overview from an app.

Bug: 137487381
Change-Id: I28a708811bba3ce739ce261f19eb29558d8f0e7d
2019-07-22 12:39:59 -07:00
Tony Wickham d9515f72f5 Finish recents animation when touching during animation to recents
am: 3fca6aaec2

Change-Id: Ibb855543b828a47f110275343d7b18b771c583bd
2019-07-22 11:57:51 -07:00
android-build-team Robot 633bd48c17 Snap for 5743256 from 840fec4272 to rvc-release
Change-Id: Iae268221d574a74630a493763d208dfa565e69ba
2019-07-21 00:06:49 +00:00
android-build-team Robot 585f11d14c Snap for 5743138 from 5841e40a95 to qt-qpr1-release
Change-Id: Iac7e4a1ae76692494f43751de276d79e4f3fea2b
2019-07-20 23:38:20 +00:00
android-build-team Robot ecdc7ed702 Snap for 5743241 from 5841e40a95 to qt-c2f2-release
Change-Id: Id09158e6f1212952d99d19ebadc762cf05393a0f
2019-07-20 23:03:26 +00:00
Winson Chung 840fec4272 Merging ub-launcher3-qt-r1-dev, build 5736932 am: 5841e40a95
am: a3ed013179

Change-Id: I50837300184a70419f84da72adb8d0be8ef58a9c
2019-07-20 08:52:32 -07:00
Winson Chung a3ed013179 Merging ub-launcher3-qt-r1-dev, build 5736932
am: 5841e40a95

Change-Id: Icd0e789912b0198e884a9c1cd222a134a380cf67
2019-07-20 08:46:34 -07:00
Tony Wickham 3fca6aaec2 Finish recents animation when touching during animation to recents
This regressed in ag/8542000, where we cancel the animation instead of
ending it. We should only cancel when going to home; in other cases, we
should still call end().

Bug: 137487381
Change-Id: I093954908c3ac747ec3132aa700c8be2f927631a
2019-07-19 16:53:00 -07:00
Zak Cohen bc4d213535 TaskView - add a getter for the bitmap data.
This allows other components to get it directly from the view, rather
than retaining their own copy.

Bug: 137129923
Tested: Manual

Change-Id: Ibab307517c31cd3cb59b4d77ff390fd97546e86d
2019-07-19 15:14:53 -07:00
Vadim Tryshev 2adbee9a91 Merge "Logging original exception in PortraitLandscapeRunner" into ub-launcher3-qt-r1-dev
am: 3ab3c768f5

Change-Id: I9ce76715ff9970f031a326a81b167d0d9de2e740
2019-07-19 12:45:45 -07:00
Vadim Tryshev 3ab3c768f5 Merge "Logging original exception in PortraitLandscapeRunner" into ub-launcher3-qt-r1-dev 2019-07-19 19:25:46 +00:00
vadimt 21cd128141 Logging original exception in PortraitLandscapeRunner
Change-Id: I672e563df45f1f0dcdda5b1f863919f0150e73e6
2019-07-19 12:12:49 -07:00
Vadim Tryshev 690f98603b Merge "Improving system health diags" into ub-launcher3-qt-r1-dev
am: a7b3de9e45

Change-Id: I1e178abac0518f801932c8e23529a0d5a8e95d84
2019-07-19 11:33:34 -07:00
Vinit Nayak f9b585b507 Don't specify 1P Launcher3 type if 3P Launcher is active
Instead of referencing Launcher directly (which may not be
present when there's a 3P launcher), reference the lowest
common ancestor of Launcher and RecentActivity to avoid
ClassCastExceptions.

Test: Visually inspected that Pixel Launcher crash dialog
no longer pops up.
* Install 3P launcher
* In developer options enable "enable freeform windows"
* Restart phone for settings to take effect
* Try to use it on any app you have in recent tasks

Fixes: 135419782
Change-Id: Ie1f54880ab46956b23e253850ca7f79b161da9bd
2019-07-19 11:11:35 -07:00
Vadim Tryshev a7b3de9e45 Merge "Improving system health diags" into ub-launcher3-qt-r1-dev 2019-07-19 17:59:14 +00:00
vadimt 76d2a6fcc3 Improving system health diags
Change-Id: I207c5b9c9ad9e99646419b7a4bd77b59a067f26d
2019-07-19 10:40:25 -07:00
vadimt d3c2a6cecf Fix waiting for launcher initialization
am: c8d496fe00

Change-Id: I7d764152d5d9da8c9df8db479dd01683d9e6148a
2019-07-18 19:10:06 -07:00
vadimt c8d496fe00 Fix waiting for launcher initialization
Bug: 137836033

Change-Id: Ifc8ce867abd85eaeacd09a2b39636ecc4109c046
2019-07-18 18:31:49 -07:00
Hyunyoung Song 7f7ba484a8 Merge "Guard against NPE inside BaseIconFactory Bug: 137253043" into ub-launcher3-qt-r1-dev
am: b1b4562a46

Change-Id: If97029ff59cc426db1dd4a7d433a5ab264eabeba
2019-07-18 16:56:00 -07:00
Hyunyoung Song b1b4562a46 Merge "Guard against NPE inside BaseIconFactory Bug: 137253043" into ub-launcher3-qt-r1-dev 2019-07-18 23:31:45 +00:00
Vadim Tryshev 0a973fee1b Merge "Improving TAPL code around fallback recents" into ub-launcher3-qt-r1-dev
am: 4c557438bc

Change-Id: I877f1efaacbb200487b4d1952b3de208fe690a5d
2019-07-18 16:02:19 -07:00
Tony Wickham 6e6ebe9db3 Merge "Allow TouchControllers to override shouldDisableGestures" into ub-launcher3-qt-r1-dev
am: 6670435c14

Change-Id: If4a2599b3011001d1ef09fb36e07778383b60fe1
2019-07-18 16:01:53 -07:00
Winson Chung 76de7b81bd Merge "Revert "Don't preload overview if current home isn't gestural overview"" 2019-07-18 23:00:12 +00:00
Winson Chung 341cab18d4 Revert "Don't preload overview if current home isn't gestural overview"
This reverts commit d334cf7263.

Reason for revert: This is blocking our merge -- will temporarily revert and get the merge in

Change-Id: I701521845e3f801501a467b811df580fd825e91f
2019-07-18 22:59:06 +00:00
Vadim Tryshev 4c557438bc Merge "Improving TAPL code around fallback recents" into ub-launcher3-qt-r1-dev 2019-07-18 22:31:30 +00:00
Tony Wickham 6670435c14 Merge "Allow TouchControllers to override shouldDisableGestures" into ub-launcher3-qt-r1-dev 2019-07-18 22:27:54 +00:00
vadimt c0a1b7046d Improving TAPL code around fallback recents
Change-Id: I9cd1caa2725f1d3967447130f4e34c4cf878514b
2019-07-18 15:12:24 -07:00
Tony Wickham f33b6d4378 Allow TouchControllers to override shouldDisableGestures
Currently only StatusBarTouchController overrides this to always return
false, so that you can swipe down for notifications during transition to
home screen from an app (in gesture nav).

Bug: 137161198
Change-Id: I803c37937d5294810cbe0c1bbffcd5dddcc5ca3b
2019-07-18 15:10:21 -07:00
Pinyao Ting bca0d254ec Merge "do not close widgets that are safe for rebind upon orientation change" into ub-launcher3-master 2019-07-18 19:56:18 +00:00
Winson Chung 5841e40a95 Merging ub-launcher3-qt-r1-dev, build 5736932
Test: Manual

Bug:111935715 P2 Incorrect parent type when logging drag and drop from All Apps
Bug:131315856 P1 [PO restore] No work profile launcher shortcuts restore ~50% of the time
Bug:132900132 P1 Apparently, tests start running while provisioning is still in progress
Bug:133009122 P2 Rare flake: dragged launchable to workspace, but the current state is not WORKSPACE; Can't find a launcher object; selector: BySelector [RES='\Qcom.google.android.apps.nexuslauncher:id/apps_view\E']
Bug:133765434 P1 [Flaky test] Launching task didn't open a new window
Bug:133867119 P2 Lab-only flake: want to switch from workspace to all apps; Swipe failed to receive an event for the swipe end
Bug:133891845 P2 TAPL: need clearer diags when a crash dialog is over Launcher or there is lock screeen
Bug:134532571 P1 Launcher flake: java.lang.AssertionError: http://go/tapl : want to switch from background to overview, but the current state is not BASE_OVERVIEW; Can't find a launcher object; selector: BySelector [RES='\Qcom.google.android.apps.nexuslauncher:id/overview_panel\E']
Bug:135165284 P2 [Q-Preview4] Gestural navigation animation glitch on RTL
Bug:135567630 P1 testBackground crashes in Landscape
Bug:135636137 P1 Workspace is clipped at the top when transitioning from app -> home
Bug:135687618 P4 Task shows between back and swiping up to overview
Bug:135952890 P1 Drag up on home indicator does not track finger if recently entered split screen
Bug:136033787 P0 Vzw DoU: sendexchangeemail wifi test fails with failed dismissal exception
Bug:136215685 P1 Flake: swiping up from Home to Overview in 2-button mode sometimes fails
Bug:137197916 P1 Add gesture support for 3p Launcher
Bug:137215697 P2 FloatingIcon and workspace icon visible at the same time when touch input during app to close animation
Bug:137290162 P1 Overview suggest chip showing on apps due to misconfigured flag
Bug:137316430 P1 Jank when swiping quickly back down to home when overview is peeking
Bug:64712476 P3 Import translations for dev branches
Change-Id: Ib228c0f291884050904fa069e25519755071c40a
2019-07-18 11:36:39 -07:00