Commit Graph

10816 Commits

Author SHA1 Message Date
TreeHugger Robot 95b81c3e55 Merge "Cancelling touch interaction on multi-touch event" into ub-launcher3-qt-dev 2019-05-17 22:21:01 +00:00
TreeHugger Robot 57ffdc4ec7 Merge "Fix issue with restored task display ids" into ub-launcher3-qt-dev 2019-05-17 22:10:02 +00:00
Tony 921da74c64 Continue using window's sysui flags if task thumbnail unavailable
If the centermost task is null or doesn't yet have thumbnail data,
don't use its sysui flags - continue using the window we're swiping
from instead.

Bug: 132898688
Change-Id: I202937d8aa01ee24ef01693d9594c4929e6bd314
2019-05-17 18:04:53 -04:00
Sunny Goyal 78c1a42331 Cancelling touch interaction on multi-touch event
If the second touch happens outside the swipe region, for eg when the user
is using a different gesture like pinch-to-zoom, do not capture the
input events

Bug: 132916535
Change-Id: I59df3831b96689586a2a684bf11805d42f1cb1d9
2019-05-17 14:55:09 -07:00
Winson Chung 5aec768ff4 Fix issue with restored task display ids
- When tasks are restored, they don't have a valid display id yet,
  but they will still be started on the default display and should
  have the same options until proven otherwise.

Bug: 132892578
Change-Id: I8ba0a976bd5682fbcda72ca1a98bf2517eb31312
2019-05-17 14:45:34 -07:00
TreeHugger Robot d3b0e8ed61 Merge "Add more logging and commands to service dump" into ub-launcher3-qt-dev 2019-05-17 21:34:21 +00:00
Winson Chung 9fe9a155ca Add more logging and commands to service dump
Change-Id: I03d5ea5aac618eba7e0e5a1555e45a165918bb60
2019-05-17 14:23:09 -07:00
Tony Wickham 2b98dc3e69 Merge "Remove TaskViewDrawable, scale RecentsView instead" into ub-launcher3-qt-dev
am: c9986f59ac

Change-Id: I5f10a0e26c74ab6f0856f8dd5a6fe60807628a17
2019-05-17 13:55:31 -07:00
Tony 5bb3ae9462 Merge "Add getOverviewFullscreenProgress() to LauncherState" into ub-launcher3-qt-dev
am: b05fbb8915

Change-Id: Ie4f2ea793233f22f9bebe5ac35e30ae5c17efcc4
2019-05-17 13:55:04 -07:00
Tony Wickham c9986f59ac Merge "Remove TaskViewDrawable, scale RecentsView instead" into ub-launcher3-qt-dev 2019-05-17 20:41:55 +00:00
TreeHugger Robot b05fbb8915 Merge "Add getOverviewFullscreenProgress() to LauncherState" into ub-launcher3-qt-dev 2019-05-17 20:39:42 +00:00
Tony 1eb65b8a5b Remove TaskViewDrawable, scale RecentsView instead
Instead of faking recents scaling up when swiping down on a task,
actually scale it up. This is more consistent with what we do
for scaling to/from fullscreen elsewhere, and cleans up some code.

Bug: 130020567
Change-Id: I1a07813468d9a66f8f4e7b5d3d9a191b565f165c
2019-05-17 16:23:07 -04:00
Tony 5406817028 Add getOverviewFullscreenProgress() to LauncherState
- BackgroundAppState sets this to 1, all other states set it to 0
- QuickSwitchState extends BackgroundAppState, and calculations for
  fullscreen scale/translation are moved to BackgroundAppState
- Move fullscreen progress logic out of WindowTransformSwipeHandler
  and into the launcher activity controller, which uses the new
  RecentsView.FULLSCREEN_PROGRESS property to animate it

Bug: 130020567
Change-Id: If6265fcce3749050be354742e7d2c418d11ee9bb
2019-05-17 16:21:02 -04:00
Miranda Kephart 97383f457d Merge "Avoid double triggering assistant gesture haptic" into ub-launcher3-qt-dev
am: fcfac8156d

Change-Id: Ic3b5b77441e04ff45f6f97f9f3824d8577ed7665
2019-05-16 17:23:20 -07:00
Miranda Kephart 6366d377af Avoid double triggering assistant gesture haptic
If the user drags almost all the way to gesture completion and
then flings, the haptic got triggered twice: first for the drag,
and then once the fling was registered. This checks whether the
assistant was already invoked before triggering the fling
invocation.

Bug: 132908798
Test: manual
Change-Id: Ibeed7279b8db32527490a0e11b8e5f0761187bbf
2019-05-16 18:00:14 -04:00
Vadim Tryshev bea0ee5322 Merge "Revert "Capture screenshot when animating to home"" into ub-launcher3-qt-dev
am: 5338e0540b

Change-Id: I8d4cb89979e73da568a459056f1f2cfae9fb9bcd
2019-05-16 13:06:30 -07:00
Vadim Tryshev 5338e0540b Merge "Revert "Capture screenshot when animating to home"" into ub-launcher3-qt-dev 2019-05-16 19:10:13 +00:00
Vadim Tryshev fd11390a65 Revert "Capture screenshot when animating to home"
This reverts commit 170a067f27.

Reason for revert: b/132816938

Bug: 132816938
Change-Id: Ia03e30f892b2515e498fa20402a9e497340361eb
2019-05-16 18:26:48 +00:00
Sunny Goyal 337875864a Using a proxy activity for startActivityForResult
am: dedda05568

Change-Id: I61b29469ed60aad3258fd655094b9da7aaadc316
2019-05-15 17:07:14 -07:00
Zak Cohen e312e7fe84 Merge "Moves proactive hints and wellness toast into a linear layout." into ub-launcher3-qt-dev
am: 7daf892f66

Change-Id: I080f4fd6ba6d59fcd4bc2f77dc033d959db42b1b
2019-05-15 16:33:59 -07:00
Sunny Goyal dedda05568 Using a proxy activity for startActivityForResult
This ensures that the home task is never blocked by a different task

Bug: 74500048
Change-Id: I01fd26f1d6242e39b2d8fabac5e064b748aebe62
2019-05-15 16:33:06 -07:00
Zak Cohen 1159c9c18a Moves proactive hints and wellness toast into a linear layout.
This ensures that they do not fight for the space. This is intended to
be iterated upon as we find solutions to some of the technical
challenges in the current POR.

Change-Id: I831e8797b16f28fe2cd742c96e9b7c916abf77a5
2019-05-15 15:47:58 -07:00
Vadim Tryshev 0cf5f7b350 Merge "Deinitialize prediction tests" into ub-launcher3-qt-dev
am: 560eb6de60

Change-Id: I3280191f1cda4685a540894adf1f3e505649483d
2019-05-15 14:24:13 -07:00
Vadim Tryshev 560eb6de60 Merge "Deinitialize prediction tests" into ub-launcher3-qt-dev 2019-05-15 21:15:32 +00:00
George Hodulik b4c182a712 Merge "Allow extras to be added in PredictionAppTracker subclasses." into ub-launcher3-qt-dev
am: 0234d55c3c

Change-Id: Ic1607cc8046d36eee1c638a0e4825e362b29481a
2019-05-15 14:14:12 -07:00
George Hodulik 0234d55c3c Merge "Allow extras to be added in PredictionAppTracker subclasses." into ub-launcher3-qt-dev 2019-05-15 21:07:20 +00:00
Tony 060ee5f1c7 Merge "Capture screenshot when quick switching" into ub-launcher3-qt-dev
am: e5234ee878

Change-Id: If59b611d719147510fe4b2271e7e8f9d3d7d86bb
2019-05-15 14:04:07 -07:00
vadimt a68874e1cb Deinitialize prediction tests
Change-Id: Id97c509a7b609f2ba8b081c25712b24b50ec9ecf
2019-05-15 13:53:50 -07:00
George Hodulik 1aca18d85e Allow extras to be added in PredictionAppTracker subclasses.
Bug: 132584688
Change-Id: I727009dab24a82968673d4df6d3a5daa11c34281
2019-05-15 13:00:05 -07:00
Tony 56fd673ef3 Capture screenshot when quick switching
Bug: 130193889
Change-Id: Ia972445e6b0c928a67c8373f082d412c440189ab
2019-05-15 15:31:54 -04:00
Jon Miranda 7e1cb95f89 Merge "Fix landscape app open/close animations." into ub-launcher3-qt-dev
am: eaed3a7c7b

Change-Id: I35f1a725e05662b85fc59a0c07303d69fae8f50a
2019-05-15 11:52:23 -07:00
TreeHugger Robot eaed3a7c7b Merge "Fix landscape app open/close animations." into ub-launcher3-qt-dev 2019-05-15 18:00:44 +00:00
Sunny Goyal 24f0f9e746 Merge "Adding TouchController for quickswitching on homescreen in transposed layout" into ub-launcher3-qt-dev
am: 4d3d51b3be

Change-Id: I308fb895eb21b1ecc86441bf7507c6004e240431
2019-05-15 10:57:20 -07:00
Sunny Goyal 4d3d51b3be Merge "Adding TouchController for quickswitching on homescreen in transposed layout" into ub-launcher3-qt-dev 2019-05-15 17:50:32 +00:00
Jon Miranda ffaca2e162 Fix landscape app open/close animations.
Bug: 123900446
Bug: 124510042
Change-Id: I3db80d6f8064ce26f97cdede63c0d25499416e98
2019-05-15 10:46:33 -07:00
Tony Wickham 372ed5c03e Merge "Capture screenshot when animating to home" into ub-launcher3-qt-dev
am: 0d1c0ab1bd

Change-Id: I7e2c2b4324a7130f660481d6814384a9dbae7fb2
2019-05-15 10:42:16 -07:00
Tony Wickham 0d1c0ab1bd Merge "Capture screenshot when animating to home" into ub-launcher3-qt-dev 2019-05-15 17:25:26 +00:00
Tony Wickham b2919a80e7 Merge "Disallow pause when swiping up 75% of the way to all apps" into ub-launcher3-qt-dev
am: 245ff8a508

Change-Id: I428dfea59679488e16f98ebf6f2363b940564ab5
2019-05-15 09:07:00 -07:00
Tony 170a067f27 Capture screenshot when animating to home
This is to ensure the task thumbnail is captured in the correct
orientation, rather than waiting until after the task pauses
which might be after the device rotates to portrait.

Also update the state to wait until screenshot is captured
before finishing the transition to home.

Change-Id: Ie42778d527c382ff80a2edf5d2a5dc7490e4e5ff
2019-05-15 12:02:05 -04:00
Tony Wickham 245ff8a508 Merge "Disallow pause when swiping up 75% of the way to all apps" into ub-launcher3-qt-dev 2019-05-15 15:51:49 +00:00
Tony de34dd5303 Disallow pause when swiping up 75% of the way to all apps
Test: TaplTestsQuickstep

Bug: 131231579
Change-Id: If936007a5033ca5e349fd669c9377302239cbe22
2019-05-14 17:36:30 -05:00
Tracy Zhou a3bb225043 Merge "Remove setFullscreenProgress() call in TaskView#onRecycle" into ub-launcher3-qt-dev
am: fd49ef783f

Change-Id: I5c0e6c705e96618673055506d4423b78cf690859
2019-05-14 14:28:08 -07:00
Jon Miranda 0216c025cb Recycle FloatingIconView for swipe up to home animation.
am: 04d29a61c9

Change-Id: Iba5fe07dbd19b8a4c0ba75cd4aec855a03c5fa65
2019-05-14 14:27:37 -07:00
TreeHugger Robot fd49ef783f Merge "Remove setFullscreenProgress() call in TaskView#onRecycle" into ub-launcher3-qt-dev 2019-05-14 21:21:07 +00:00
Tracy Zhou 02877d0847 Remove setFullscreenProgress() call in TaskView#onRecycle
When onRecycle() is called, the current task view is detached from the
parent, causing getParent() to return null.

Test: manual
Fixes: 132269977
Change-Id: I80826c2348cb23363c0482d3fd12283a7c90a689
2019-05-14 14:07:26 -07:00
Winson Chung 19812f69b6 Merge "Preemptively clear the thumbnail cache as tasks are removed" into ub-launcher3-qt-dev
am: 3658d9fa0c

Change-Id: I414447a1265042bf01ed94d5a0ebf028ec88ab4b
2019-05-14 14:02:41 -07:00
Jon Miranda 04d29a61c9 Recycle FloatingIconView for swipe up to home animation.
Bug: 123900446
Change-Id: I63e900e86d921eddd3129ff68f895d6e8e7bff47
2019-05-14 13:59:22 -07:00
vadimt 9d94871a23 Merge "Using model-time scrolling in all apps" into ub-launcher3-qt-dev
am: 4fbfb4123a

Change-Id: I3010024e6c0855b331f3e1c87bfa994bf19802d8
2019-05-14 13:55:42 -07:00
Winson Chung 3658d9fa0c Merge "Preemptively clear the thumbnail cache as tasks are removed" into ub-launcher3-qt-dev 2019-05-14 20:48:47 +00:00
TreeHugger Robot 4fbfb4123a Merge "Using model-time scrolling in all apps" into ub-launcher3-qt-dev 2019-05-14 20:34:15 +00:00