Commit Graph

34630 Commits

Author SHA1 Message Date
Tony Wickham 503575a9e4 Merge "Distinguish mDragHandleProgress from mMidProgress" into ub-launcher3-qt-r1-dev
am: cfbdb91a7f

Change-Id: Id41c02c6543a4b0a12fc364e5c8e41dd6ccf9fc1
2019-07-24 12:57:34 -07:00
Winson Chung 964ade1871 [automerger skipped] Copy resume callbacks list prior to making callbacks am: a8971c1462 -s ours
am: 4f68901b5b -s ours
am skip reason: change_id I6690ab0695bb73f11bf343fb41e9fc86b4afec1b with SHA1 940b0ac015 is in history

Change-Id: Ic5baabefa693fd8fd68b314553500f2e849d6ff4
2019-07-24 12:57:21 -07:00
Winson Chung 17f8e0789a [automerger skipped] Copy resume callbacks list prior to making callbacks am: a8971c1462 -s ours
am: 4f68901b5b -s ours
am skip reason: change_id I6690ab0695bb73f11bf343fb41e9fc86b4afec1b with SHA1 940b0ac015 is in history

Change-Id: Icb8fe150df095ba9ade4f48adcab5c752cb7eed0
2019-07-24 12:57:21 -07:00
Sunny Goyal 6d9eed757f Merge "Using the first frame delay based on the display refresh rate instead of hardcoding it to 16ms" into ub-launcher3-qt-r1-dev
am: b7094fcf36

Change-Id: Icd4e52b33b33718cb91b2fd082d85637e820390f
2019-07-24 12:57:15 -07:00
Winson Chung 123448aff7 Merge "Merging ub-launcher3-qt-r1-dev, build 5749827 am: 3fc9a1cf69 am: 33e8612e8c" into qt-qpr1-dev-plus-aosp
am: 760edb9905

Change-Id: I248bab5497d8271cee233b0572833142bb57b6ea
2019-07-24 12:49:01 -07:00
Winson Chung e5e34a7c91 Copy resume callbacks list prior to making callbacks
am: a8971c1462

Change-Id: I182892451b8268b0b6fed0983af7c15ae3174000
2019-07-24 12:47:19 -07:00
Winson Chung 4f68901b5b [automerger skipped] Copy resume callbacks list prior to making callbacks
am: a8971c1462 -s ours
am skip reason: change_id I6690ab0695bb73f11bf343fb41e9fc86b4afec1b with SHA1 940b0ac015 is in history

Change-Id: I117ae34040aea49e0438441b933da7561a06c414
2019-07-24 12:47:18 -07:00
Winson Chung 854b259fe6 Merging ub-launcher3-qt-r1-dev, build 5749827 am: 3fc9a1cf69 am: 008145f0a8
am: 844a6f7e90

Change-Id: I24353fef93b8d57be5b13c74b1e71974578547e6
2019-07-24 12:47:17 -07:00
Tony Wickham cfbdb91a7f Merge "Distinguish mDragHandleProgress from mMidProgress" into ub-launcher3-qt-r1-dev 2019-07-24 19:39:48 +00:00
Android Build Merger (Role) 760edb9905 Merge "Merging ub-launcher3-qt-r1-dev, build 5749827 am: 3fc9a1cf69 am: 33e8612e8c" into qt-qpr1-dev-plus-aosp 2019-07-24 19:39:02 +00:00
Winson Chung 80da0bdce1 Merging ub-launcher3-qt-r1-dev, build 5749827 am: 3fc9a1cf69
am: 33e8612e8c

Change-Id: I075b9d5647a9263696fd0ba03111c7ec2297c924
2019-07-24 12:38:15 -07:00
Winson Chung 844a6f7e90 Merging ub-launcher3-qt-r1-dev, build 5749827 am: 3fc9a1cf69
am: 008145f0a8

Change-Id: Id4ac8dd58f2c7dd03c479af5a7c5a2dcf54b0ce3
2019-07-24 12:38:14 -07:00
TreeHugger Robot b7094fcf36 Merge "Using the first frame delay based on the display refresh rate instead of hardcoding it to 16ms" into ub-launcher3-qt-r1-dev 2019-07-24 19:32:17 +00:00
Winson Chung 008145f0a8 Merging ub-launcher3-qt-r1-dev, build 5749827
am: 3fc9a1cf69

Change-Id: Ia73d517059270c0a5b089413c2b0aae7b1cbcb43
2019-07-24 12:27:16 -07:00
Winson Chung 33e8612e8c Merging ub-launcher3-qt-r1-dev, build 5749827
am: 3fc9a1cf69

Change-Id: Id05a484ba74b5ef29c22992e7997eabf3c523011
2019-07-24 12:27:16 -07:00
Jon Miranda e734efba8d Fix bug where rounded corners were being set despite being disabled.
Bug: 138117089
Change-Id: Icb852e2e07d80c45ad3406ef432b89720887fccf
2019-07-24 17:15:13 +00:00
Sunny Goyal 4e6c45bcd3 Using the first frame delay based on the display refresh rate instead of
hardcoding it to 16ms

> Creating a utility class for caching display property changes

Bug: 128940249
Change-Id: I6f9a214548de65bd1c8530508d665ee88312da4a
2019-07-24 10:12:37 -07:00
Winson Chung 3fc9a1cf69 Merging ub-launcher3-qt-r1-dev, build 5749827
Test: Manual

Bug:136282913 P1 Swipe up from Assistant Fulfillment Card Jank
Bug:137129923 P1 Pixel launcher is leaking memory
Bug:137161198 P1 Unable to pull notification panel down with a swipe on home screen
Bug:137253043 P1 "Pixel Launcher keeps stopping" when scrolling through recent apps
Bug:137487381 P1 Overview goes back to fullscreen when swiping up during transition
Bug:137836033 P4 Fail to stop music due to "Swipe failed to receive an event for the swipe end"
Bug:138152531 P2 [Android Q][04713598] Launcher test cases are failed
Bug:138236583 P1 Icon scale is wrong when dragging from all apps or folders
Bug:138251824 P1 Flake: want to switch from background to overview; Swipe failed to receive an event for the swipe end
Bug:138252347 P1 qt-r1-dev Pixel Launcher flag ENABLE_HINTS_IN_OVERVIEW is Disable by Default
Change-Id: Idd0e987d26e1ffc75cdb9f90e9c08c26bb8c6503
2019-07-23 20:54:13 -07:00
Vadim Tryshev a1db23c0a7 Merge "Checking Launcher internal integrity from tests" into ub-launcher3-qt-r1-dev
am: 7b0520afe4

Change-Id: Iffeb718669a22e99c7fe90989dee51b4d229dd51
2019-07-23 18:49:16 -07:00
Winson Chung a8971c1462 Copy resume callbacks list prior to making callbacks
- Starting a deferred activity can trigger a new callback to be added
  to the list while we are iterating it

Bug: 136613192
Change-Id: I6690ab0695bb73f11bf343fb41e9fc86b4afec1b
Merged-In: I6690ab0695bb73f11bf343fb41e9fc86b4afec1b
(cherry picked from commit 940b0ac015)
2019-07-24 01:40:55 +00:00
Vadim Tryshev 7b0520afe4 Merge "Checking Launcher internal integrity from tests" into ub-launcher3-qt-r1-dev 2019-07-24 01:30:06 +00:00
vadimt 0dd1c782f0 Checking Launcher internal integrity from tests
In particular, we check that the stable Launcher state equals its
current state. This can help detect Launcher being in a corrupted state
as in b/133867119.

The check gets called by tests when the Launcher is not transitioning
from state to state.

Bug: 137307838
Change-Id: I3d36edff35e42d14be6b9a52351bd6f709be75e8
2019-07-23 18:07:25 -07:00
Anna Wasewicz d186820db0 Changing ENABLE_HINTS_IN_OVERVIEW flag to be true in qt-r1-dev. It should be false in qt-dev and true in qt-r1-dev.
am: 064cba4560

Change-Id: I674f00fb043223b67eef64df9956e62c384b453a
2019-07-23 18:04:09 -07:00
Anna Wasewicz 064cba4560 Changing ENABLE_HINTS_IN_OVERVIEW flag to be true in qt-r1-dev. It
should be false in qt-dev and true in qt-r1-dev.

Bug: 138252347
Change-Id: If9de47ef937ecb3da9c8d43eea8ad4b6e6885582
2019-07-23 17:34:34 -07:00
Winson Chung 73b4cf7bb2 Merge "Fix regression in assistant window handling" into ub-launcher3-qt-r1-dev
am: 0727d59576

Change-Id: I9fbde5b101705ad9254a6ba668ff079a4f15c41f
2019-07-23 17:29:14 -07:00
Tony Wickham dc9a1266ee Merge "Set FastBitmapDrawable scale=1 before drawing it in DragView" into ub-launcher3-qt-r1-dev
am: b2e6a77b0d

Change-Id: I844464daa971af505c34c4566e2c4c8c35143dc8
2019-07-23 17:28:55 -07:00
vadimt 443f05052c Merge "Adding debug tracing" into ub-launcher3-qt-r1-dev
am: 8578309f1b

Change-Id: If2f3b4d4a849e94449c4b06a567c12610547fc61
2019-07-23 17:28:32 -07:00
Winson Chung 0727d59576 Merge "Fix regression in assistant window handling" into ub-launcher3-qt-r1-dev 2019-07-24 00:12:28 +00:00
Tony Wickham b2e6a77b0d Merge "Set FastBitmapDrawable scale=1 before drawing it in DragView" into ub-launcher3-qt-r1-dev 2019-07-24 00:07:18 +00:00
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