Commit Graph

33301 Commits

Author SHA1 Message Date
TreeHugger Robot 89b670056f Merge "Moving all-apps predictions to Launcher model" into ub-launcher3-master 2020-07-29 22:02:59 +00:00
Jonathan Miranda 3a2298d2a4 resolve merge conflicts of 80605f9823 to ub-launcher3-master
Change-Id: I1eb6ed58b83f92105e1831c733e98ea44e0c151b
2020-07-29 20:51:30 +00:00
TreeHugger Robot 80605f9823 Merge "Revert "Fix bug where double swipe gets us stuck in Hint state while in Overview."" into ub-launcher3-rvc-qpr-dev am: a2f9ea5233
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12263482

Change-Id: Id1065385e4d16ee38cfce2db4b57bddc5c3ef229
2020-07-29 20:19:28 +00:00
Sunny Goyal 8b74cc761b Moving all-apps predictions to Launcher model
Predictions are loaded and managed by Launcher model and follow
the model lifecycle. They are then bound to the callback which
handles the UI

Bug: 160748731
Change-Id: I4a3ea0698d80fafe94afb4ce66ffa7f4a6a91c68
2020-07-29 13:07:52 -07:00
Tony Wickham 7383d4e6d2 Fix adjacent task offset distance
Instead of calculating an overall distance for tasks to translate
based on RecentsView width, calculate the distance for the tasks
to the left and right of the midpoint based on how far the first
adjacent tasks in those directions are from being offscreen.

Changes made to make "distance to offscreen" calculations possible:
- Update TaskView curve scale to reach final scale as soon as it is
  completely offscreen. Before, it would reach its final scale just
  shy of that point (calculations were off).
- As we update RecentsView scale, calculate how much the new scale
  will push out tasks that are just offscreen.
- With both above, we can calculate the scale and position of a
  TaskView such that it is just offscreen, and interpolate
  between its current position and that position.

Tests:
- Task comes in immediately when quick switching from home, and
  doesn't shift as you swipe directly upwards.
- When swiping far up from an app, tasks come in from all the way
  offscreen, and cover distance appropriately (e.g. if you're
  scrolled a bit to the right when you pause, the left adjacent
  app will move faster to cover the farther distance).
- Task modalness: entering Select mode now animates adjacent tasks
  at the same rate as the scaling up, because they move only the
  distance needed to get offscreen (before they moved way too far
  and thus seemed to be much faster than the rest of the animation).

Bug: 149934536
Change-Id: Ie3fffe0e5c304cb16e7637f058f5ce72cee40aeb
2020-07-29 20:05:29 +00:00
TreeHugger Robot a2f9ea5233 Merge "Revert "Fix bug where double swipe gets us stuck in Hint state while in Overview."" into ub-launcher3-rvc-qpr-dev 2020-07-29 19:55:36 +00:00
Jonathan Miranda f496ea4634 Revert "Fix bug where double swipe gets us stuck in Hint state while in Overview."
This reverts commit a8c08584a7.

Reason for revert: "caused a regression with quick switch from home: if you start the gesture then swipe back to the left, it ends up launching the task anyway"

Change-Id: I8e12e2de46b6fc6a3faeb0336762da08080c61d6
2020-07-29 19:03:29 +00:00
Yuchen He 12baaadeca Enable memory dump for Launcher
Bug: 154772063
Change-Id: I3b2bc2e341037746891658f2596999248ec272ef
2020-07-29 17:15:09 +00:00
Samuel Fufa eb268055e1 Merge "Migrate AllAppsSearch [part 1/3]" into ub-launcher3-master 2020-07-29 16:47:41 +00:00
Vadim Tryshev 0916cea91f Merge "Revert "Recycling already running activities"" into ub-launcher3-master 2020-07-29 16:43:38 +00:00
TreeHugger Robot c697e6d565 Merge "Removing arrow indicator from homescreen and adding a separate view for various accessibility actions" into ub-launcher3-master 2020-07-29 04:38:01 +00:00
Vadim Tryshev 261d817a95 Revert "Recycling already running activities"
This reverts commit 0bc32dcce6.

Reason for revert: Tests are broken, perhaps caused by this one

Change-Id: Ie409f04931a27bd6da616c1e52e279eb07479631
2020-07-29 02:50:35 +00:00
TreeHugger Robot bfa1174834 Merge "Handle requestFocus for ENABLE_DEVICE_SEARCH Bug: 161594550" into ub-launcher3-master 2020-07-29 02:39:29 +00:00
Hyunyoung Song 854deace36 [automerger skipped] Merge "Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"" into rvc-qpr-dev am: eeb497cf92 am: 220e18916a -s ours
am skip reason: Change-Id Ibff46b3ef7ff89accb459db323f31179adb4ef21 with SHA-1 928a421b99 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12230469

Change-Id: I8e3ff535a24f08e769f592e1750e7054921f85c2
2020-07-29 00:26:29 +00:00
Hyunyoung Song 220e18916a Merge "Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"" into rvc-qpr-dev am: eeb497cf92
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12230469

Change-Id: I0fcc51ede759c11c383b5c46d79c60a63438175c
2020-07-29 00:05:15 +00:00
Hyunyoung Song eeb497cf92 Merge "Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"" into rvc-qpr-dev 2020-07-28 23:44:26 +00:00
Hyunyoung Song 0a4a4d920e Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"
Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"

Revert "Merging from ub-launcher3-rvc-qpr-dev @ build 6690853"

Revert submission 12190253-merge_ub-launcher3-rvc-qpr-dev_6690853

Reason for revert: Build ID picked from ub-launcher3-master and not ub-launcher3-rvc-qpr-dev

Reverted Changes:
I9e658ece0:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
I2a47fe180:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Ie86b0a2e0:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Id3ca76da6:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Ib6a63da0f:Merging from ub-launcher3-rvc-qpr-dev @ build 6690...
Bug: 162366734


Change-Id: Ie81853a34c9a48d5b3fd922c65483a9ff639e0ce
Merged-In: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-28 23:43:43 +00:00
Samuel Fufa df10ff46bd Migrate AllAppsSearch [part 1/3]
[Video attached to bug report]

Setup DeviceSearchAlgorithm to handle on device search

Bug: 161801950
Test: Manual
Change-Id: Ib55f415f9992ceab687bbbfe904d153157541648
2020-07-28 14:48:33 -07:00
TreeHugger Robot ea78d82fd6 Merge "Recycling already running activities" into ub-launcher3-master 2020-07-28 21:33:04 +00:00
Sunny Goyal 52e2545a66 Removing arrow indicator from homescreen and
adding a separate view for various accessibility actions

Bug: 159247871
Change-Id: I14536844929e03d36a6a5f294d4f5daad8c82d15
2020-07-28 14:21:31 -07:00
Sreyas Rangaraju 0edfbc64d4 Merge "Introducing a new gesture scope" into ub-launcher3-rvc-qpr-dev am: 58ca5c8729 am: e338409f5f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12242791

Change-Id: I2ed7b47f60a081190e8907b8ccdf8e2e62d99223
2020-07-28 20:52:24 +00:00
Sreyas Rangaraju e338409f5f Merge "Introducing a new gesture scope" into ub-launcher3-rvc-qpr-dev am: 58ca5c8729
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12242791

Change-Id: I77f7f881a4a0df5cfe8b8b4ab1352bb6a9fbd7dd
2020-07-28 20:34:26 +00:00
Sreyas Rangaraju 58ca5c8729 Merge "Introducing a new gesture scope" into ub-launcher3-rvc-qpr-dev 2020-07-28 20:03:27 +00:00
Samuel Fufa 884fc46942 Merge "Adding tracing for work profile removal" into ub-launcher3-rvc-qpr-dev am: 0cfcdc2170 am: c222411b30
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12241857

Change-Id: I03558944743b4672b88db0094fab8f9af65d9a55
2020-07-28 18:37:18 +00:00
Samuel Fufa c222411b30 Merge "Adding tracing for work profile removal" into ub-launcher3-rvc-qpr-dev am: 0cfcdc2170
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12241857

Change-Id: If7e003c297d2726e1499c55ca9d9bc57d369b43b
2020-07-28 18:20:30 +00:00
Tracy Zhou 36a16cd43a Merge "Match live tile with the cut out when swiping down in Overview" into ub-launcher3-master 2020-07-28 18:01:36 +00:00
Samuel Fufa 0cfcdc2170 Merge "Adding tracing for work profile removal" into ub-launcher3-rvc-qpr-dev 2020-07-28 17:52:21 +00:00
Tracy Zhou 884516069c Match live tile with the cut out when swiping down in Overview
Bug: 160911104
Test: manual
Change-Id: Ic2e65b773239e409a1d55781b7393c3b82b10c94
2020-07-28 10:27:39 -07:00
Samuel Fufa cfec6b5151 Adding tracing for work profile removal
Bug: 159671700
Change-Id: I6e1bcdfbf1bbaab989106ce2979575652a3fb404
2020-07-28 17:09:08 +00:00
TreeHugger Robot 87ec5d5555 Merge "Misc test improvements" into ub-launcher3-master 2020-07-28 15:32:51 +00:00
Sunny Goyal 6f0d56342c Fixing touches getting ignored just after swipe-up am: 16e165defe am: 0a7049055e am: 297e409c17
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12240766

Change-Id: I7bf37e9123248a39f5dbb640bfe02bb331502238
2020-07-28 10:14:39 +00:00
Sunny Goyal 57bda9f71d Fixing touches getting ignored just after swipe-up am: 16e165defe am: fd5e6fe615 am: c718e55f23
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12240766

Change-Id: I366046998ba5566ebb6632c528b04548bfe479f0
2020-07-28 10:14:26 +00:00
Sunny Goyal 297e409c17 Fixing touches getting ignored just after swipe-up am: 16e165defe am: 0a7049055e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12240766

Change-Id: Iceb2f6a69a4c1e36d31f11724756885e7b52e7a1
2020-07-28 10:04:26 +00:00
Sunny Goyal c718e55f23 Fixing touches getting ignored just after swipe-up am: 16e165defe am: fd5e6fe615
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12240766

Change-Id: I58e9b5ecea445819ae8e26b74b882b0a012f38d2
2020-07-28 10:04:13 +00:00
Sunny Goyal 0a7049055e Fixing touches getting ignored just after swipe-up am: 16e165defe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12240766

Change-Id: I3f741e2bd27157e69c84b982df38171041d89e41
2020-07-28 09:47:44 +00:00
Sunny Goyal fd5e6fe615 Fixing touches getting ignored just after swipe-up am: 16e165defe
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12240766

Change-Id: I88ca9cadb2406e548327d34f31e8f8c9f5b9838d
2020-07-28 09:47:32 +00:00
Hyunyoung Song 26bca08089 Handle requestFocus for ENABLE_DEVICE_SEARCH
Bug: 161594550

Change-Id: Ic99c04f1235e48e90b64df86e3739f8e14bc648f
2020-07-28 01:37:57 -07:00
TreeHugger Robot f737f00d89 Merge "Productizing useful diags" into ub-launcher3-master 2020-07-28 02:21:46 +00:00
Andy Wickham a6684ba440 Merge "Adds haptics to Overview gesture in Sandbox." into ub-launcher3-rvc-qpr-dev am: 91fbf6619a am: 4341d7847b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12230464

Change-Id: Ide2387406eaaad3c281749b9d7bc90f3e403883e
2020-07-28 02:07:46 +00:00
Andy Wickham 4341d7847b Merge "Adds haptics to Overview gesture in Sandbox." into ub-launcher3-rvc-qpr-dev am: 91fbf6619a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12230464

Change-Id: I8276fdd20caae936e00a8e0e97e51df10dd1ad51
2020-07-28 01:54:32 +00:00
Andy Wickham 91fbf6619a Merge "Adds haptics to Overview gesture in Sandbox." into ub-launcher3-rvc-qpr-dev 2020-07-28 01:43:56 +00:00
TreeHugger Robot 8d95787211 Merge changes I059b042f,I9a1eb45c,I34647ced into ub-launcher3-master
* changes:
  Combining two handlers into one
  Unifying handler (#2) BaseSwipeUpHandler => AbsSwipeUpHandler
  Unifying handler (#1) BaseSwipeUpHandlerV2 => AbsSwipeUpHandler
2020-07-28 01:27:09 +00:00
thiruram 149ec480a7 [automerger skipped] Logs system navigation details part of launcher snapshot logging. am: b6d0607d8b am: 0465e2ccd6 -s ours
am skip reason: Change-Id I18e908dc62bb790c3a77e1aacd0236a7d84e8ce5 with SHA-1 90573f0515 is in history

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12242405

Change-Id: I0a5541da52af91f148dacfe0b2094bbabca0ee13
2020-07-28 01:14:44 +00:00
thiruram 0465e2ccd6 Logs system navigation details part of launcher snapshot logging. am: b6d0607d8b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12242405

Change-Id: Idcdbed9497b47c9ff5184559b284e1e5751908df
2020-07-28 00:59:05 +00:00
Sunny Goyal 7989848eeb Combining two handlers into one
Change-Id: I059b042f6c816b4239c81748068c7003dc4743c1
2020-07-27 17:51:47 -07:00
thiruram b6d0607d8b Logs system navigation details part of launcher snapshot logging.
Bug: 157997545
Change-Id: I18e908dc62bb790c3a77e1aacd0236a7d84e8ce5
Merged-In: I18e908dc62bb790c3a77e1aacd0236a7d84e8ce5
2020-07-27 16:32:21 -07:00
Sunny Goyal 7695ea58cf Unifying handler (#2) BaseSwipeUpHandler => AbsSwipeUpHandler
Change-Id: I9a1eb45ccb5b03dd348f42592965e7fd5e0e6420
2020-07-27 15:16:03 -07:00
Sunny Goyal fe00c09076 Unifying handler (#1) BaseSwipeUpHandlerV2 => AbsSwipeUpHandler
Change-Id: I34647ced0e96e63cdbba35f6eb3bdc3f86810ebe
2020-07-27 15:09:22 -07:00
andychou ca394a3eab Add ActivityOptions for SecondDisplayLaucher to launch activity
Currently, SecondDisplayLauncher doesn't specify ActivityOption to
launch on second display, so application will launch on main display
even the user tries to launch APP from SecondDisplayLauncher.
So need to specify ActivityOption then activity can launch on the correct
display

Bug: 162042798
Test: manual testing
Change-Id: Iceb4e01b725834983a5d01cf54350f61851ad172
(cherry picked from commit 3a8075366c)
2020-07-27 22:05:34 +00:00
vadimt 00ad8ee720 Introducing a new gesture scope
Gesture may occur outside of Launcher and not trigger system gesture recognition
by TIS.

Change-Id: Ibbb0180d6ef3856ab652164e6f3c1c86488a4caa
(cherry picked from commit a37ecee104)
2020-07-27 20:56:12 +00:00