Commit Graph

34630 Commits

Author SHA1 Message Date
Tracy Zhou ca9590c390 Reset live tile task view simulator params
Since we reuse the same mLiveTileTaskViewSimulator in the RecentsView, we need to reset the params after it settles in Overview from swipe up so that we don't render with obsolete param values.

Test: manual
Fixes: 160911104
Change-Id: I523a321e44d867c5bb68afe93e7a83e7ae23498b
2020-07-31 13:20:57 -07:00
Sreyas bf103f16b1 Creating UI tests for overview action buttons.
Change-Id: Ie6298064a068dc978ca33fb64e1856c3ba2a8cb1
2020-07-31 13:20:08 -07:00
TreeHugger Robot 3834574916 Merge "Fixing wrong velocity state when there are too few samples" into ub-launcher3-rvc-qpr-dev am: 073673e173 am: 52e00d2287
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12275360

Change-Id: I8856f0a4699ba21a1b2bf0ff278c48dad6a423cc
2020-07-31 18:49:34 +00:00
TreeHugger Robot 52e00d2287 Merge "Fixing wrong velocity state when there are too few samples" into ub-launcher3-rvc-qpr-dev am: 073673e173
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12275360

Change-Id: I3911c0987c4e5bff00b92d1bb3b6ca6538d6a843
2020-07-31 18:31:06 +00:00
TreeHugger Robot 073673e173 Merge "Fixing wrong velocity state when there are too few samples" into ub-launcher3-rvc-qpr-dev 2020-07-31 18:12:40 +00:00
Yuchen He 30caccbbc2 Enable memory dump for Launcher
Bug: 154772063
Change-Id: I3b2bc2e341037746891658f2596999248ec272ef
(cherry picked from commit 12baaadeca)
2020-07-31 17:07:56 +00:00
Jason Chang c22726e067 Merge "Refactoring to use more precise statements when calculating gesture distance and others" into ub-launcher3-master 2020-07-31 02:19:17 +00:00
TreeHugger Robot 54b1d57db0 Merge "Log entire touchable region rect" into ub-launcher3-master 2020-07-31 01:17:11 +00:00
Pinyao Ting 9e13c951f2 Minimal Phone Mode (part-2) am: 553d4dfe7d am: d5d44bcda7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193271

Change-Id: I760776ca825f728a44dde88de9f45400324f6ced
2020-07-30 23:28:14 +00:00
Pinyao Ting d5d44bcda7 Minimal Phone Mode (part-2) am: 553d4dfe7d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12193271

Change-Id: Ieeafead98eab2fda1309295f63b334d59a977df0
2020-07-30 22:57:22 +00:00
TreeHugger Robot c21584f71f Merge "Expecting TYPE_WINDOW_STATE_CHANGED in quick switch" into ub-launcher3-master 2020-07-30 22:51:44 +00:00
Sunny Goyal 48afb6b3b9 Fixing wrong velocity state when there are too few samples
Bug: 160568387
Change-Id: I32b3b7ee1bff5595941fc0c0b37c9f5a28d1a1fa
2020-07-30 15:44:05 -07:00
Vinit Nayak 2c80b305f4 Log entire touchable region rect
Bug: 162001398
Change-Id: Icac1d81cd6d11aa47279c81db8cc2e5ff92d6b0c
2020-07-30 15:42:30 -07:00
vadimt e873a171f7 Expecting TYPE_WINDOW_STATE_CHANGED in quick switch
Bug: 142654442
Change-Id: I48c8d929952872e444d1a3f7a40721d8edcd8942
2020-07-30 15:08:34 -07:00
Pinyao Ting 553d4dfe7d Minimal Phone Mode (part-2)
Integrate with ContentProvider from Digital Wellbeing

Change-Id: Ie1fbb706e767ac5d760d686af88a9a0adf162418
2020-07-30 22:07:20 +00:00
Yuchen He 14b83c51a9 Merge "Enable memory dump for Launcher" 2020-07-30 21:33:22 +00:00
Sunny Goyal cded4dd923 Create a copy of the original list instead of a new view
unmodifiableList is backed up by the original list and is not suitable
to passing to different thead.

Bug: 162518472
Change-Id: I71774ced89d64acc7176269e107cfcf47627f7c4
2020-07-30 12:27:21 -07:00
TreeHugger Robot 1e2602cea0 Merge "Align live tile with the current task view in Overview when the users swipes up to dismiss" into ub-launcher3-master 2020-07-30 18:42:49 +00:00
Hyunyoung Song 18557f393f [automerger skipped] Merging ub-launcher3-rvc-qpr-dev to rvc-qpr-dev am: 45c0918f47 am: 7787848788 -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/+/12262084

Change-Id: Ie30c674405d296a3783e801936536cfb17b68865
2020-07-30 17:19:53 +00:00
Hyunyoung Song 7787848788 Merging ub-launcher3-rvc-qpr-dev to rvc-qpr-dev am: 45c0918f47
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12262084

Change-Id: I39731c8b2df7decb619ad44611c073252e0a7959
2020-07-30 17:02:40 +00:00
Tracy Zhou bcdbf27b96 Revert "Finish the current task in live tile mode when swiping up and right to the previous task"
This is a manual revert to ag/9654924 (WindowTransformSwipeHandler has been moved)

Fixes: 143714109
Test: manual
Change-Id: I3c55e7bcacfcdc9c9343b2df5804064053169ade
2020-07-30 09:42:36 -07:00
Jason Chang b0611351e3 Refactoring to use more precise statements when calculating gesture
distance and others

1) Use more precise statements when calculating gesture distance
and refine ACTION_CANCEL motion events and others.

2) Check system property "ro.support_one_handed_mode" to enable or
disable one-handed quicksteps gesture feature.

Bug: 160315874

Test: make and install
Test: manual enable one handed mode and swipe down to trigger
Test: manual start one handed and rotate device
Change-Id: Ib27f9b6f92edda3cbff1ecb554b1a70f2e56e552
2020-07-30 23:16:09 +08:00
Hyunyoung Song 45c0918f47 Merging ub-launcher3-rvc-qpr-dev to rvc-qpr-dev
Bug: 162366734
Test: system image builds

Change-Id: I6675431b180976798afacc7a99251ae36764a50a
Merged-In: Ibff46b3ef7ff89accb459db323f31179adb4ef21
2020-07-30 00:26:39 -07:00
Sunny Goyal eaf7a95546 Changing minimum supported Launcher version to 26
Change-Id: I49fcf874430ac53c3246371e179fbd828e14e4da
2020-07-29 17:30:19 -07:00
TreeHugger Robot 154383cad9 [automerger skipped] Merge "Fix adjacent task offset distance" into ub-launcher3-rvc-qpr-dev am: d354443535 am: 0861b7cd28 -s ours
am skip reason: Change-Id Ie3fffe0e5c304cb16e7637f058f5ce72cee40aeb with SHA-1 7383d4e6d2 is in history

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

Change-Id: Ic2ffe1cee8072cefee2c343d0fecfce0a1d3fb1a
2020-07-29 23:09:20 +00:00
TreeHugger Robot 0861b7cd28 Merge "Fix adjacent task offset distance" into ub-launcher3-rvc-qpr-dev am: d354443535
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/12120944

Change-Id: Iaf13db7857028f98c5bcc222e319741016ff18da
2020-07-29 22:50:46 +00:00
TreeHugger Robot d354443535 Merge "Fix adjacent task offset distance" into ub-launcher3-rvc-qpr-dev 2020-07-29 22:26:31 +00:00
Tony Wickham 16eb9226c5 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
Merged-In: Ie3fffe0e5c304cb16e7637f058f5ce72cee40aeb
2020-07-29 22:17:33 +00:00
TreeHugger Robot c8df617ff6 Merge "Fix adjacent task offset distance" into ub-launcher3-master 2020-07-29 22:07:22 +00:00
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