Commit Graph

16665 Commits

Author SHA1 Message Date
Brian Isganitis b9e80352a6 Merge "Back open-close animation with an AnimatorSet." into udc-qpr-dev am: 3067ec6632 am: c45827b8d8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24247111

Change-Id: I23d05068ed252269ad26430cb75fb2d7fb911b66
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 23:07:21 +00:00
Brian Isganitis c45827b8d8 Merge "Back open-close animation with an AnimatorSet." into udc-qpr-dev am: 3067ec6632
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24247111

Change-Id: I85db7aa7d764f7fc34abe61bbadc3acf2c8f6eed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 22:44:11 +00:00
Brian Isganitis d280c2f946 Back open-close animation with an AnimatorSet.
Subclasses can add more animations to the set to animate other
components in sync with themselves.

Test: Manual
Bug: 289290185
Flag: No
Change-Id: I96d9afe166e243bb0d2a9cecb8158e2e7d431a6c
2023-07-31 19:47:26 +00:00
Andy Wickham 832bd821c8 Merge "Make some things public for reuse." into udc-qpr-dev am: ea12dd4e39 am: 0668e712e6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24030576

Change-Id: I72a36bece916fa31dac12ae03004db36bbb08c12
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 19:20:12 +00:00
Vinit Nayak 6775a1465b Merge "Remove split instructions view on split launch success" into udc-qpr-dev am: 89976ecae4 am: cdad4ed3cd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24233381

Change-Id: I47f06341fd65849d471e6209bdcf1b2685dd6139
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 19:19:59 +00:00
Ivan Tkachenko dec90e7221 Merge "Bubble bar dismiss interaction" into udc-qpr-dev am: 2de68329fd am: dad3fd0128
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24209849

Change-Id: I3b0f4c3e6934ed26b86a066b7ca2bac9492a1664
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 19:19:11 +00:00
Ivan Tkachenko 906d800792 Merge "Bubble bar dismiss" into udc-qpr-dev am: 8d25d999e7 am: b26011f308
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24178147

Change-Id: Ie62290c489e6ffdac2849be04e369b8e9c6378d1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 19:18:31 +00:00
Andy Wickham 0668e712e6 Merge "Make some things public for reuse." into udc-qpr-dev am: ea12dd4e39
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24030576

Change-Id: I9ba854673185db20586a46a7220b44208078562d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 18:36:06 +00:00
Vinit Nayak cdad4ed3cd Merge "Remove split instructions view on split launch success" into udc-qpr-dev am: 89976ecae4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24233381

Change-Id: I6ef257cfd7d977c09d968cc870bfc32ee764ec7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 18:35:49 +00:00
Ivan Tkachenko dad3fd0128 Merge "Bubble bar dismiss interaction" into udc-qpr-dev am: 2de68329fd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24209849

Change-Id: I091aeba4f3bb0d60e23ac79b8f9abf0765e26b09
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 18:35:05 +00:00
Ivan Tkachenko b26011f308 Merge "Bubble bar dismiss" into udc-qpr-dev am: 8d25d999e7
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24178147

Change-Id: I7d4e1dd8607f8f81c63c378bb4475e6878ccfd5e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 18:33:49 +00:00
Andy Wickham ea12dd4e39 Merge "Make some things public for reuse." into udc-qpr-dev 2023-07-31 18:19:22 +00:00
Vinit Nayak 89976ecae4 Merge "Remove split instructions view on split launch success" into udc-qpr-dev 2023-07-31 18:13:12 +00:00
Ivan Tkachenko 2de68329fd Merge "Bubble bar dismiss interaction" into udc-qpr-dev 2023-07-31 17:54:43 +00:00
Ivan Tkachenko 8d25d999e7 Merge "Bubble bar dismiss" into udc-qpr-dev 2023-07-31 17:54:17 +00:00
Johannes Gallmann 382c89019b Merge "Extract Launcher resource interpolators to Animation Library" into udc-qpr-dev am: 19721d5e28 am: dc102e97d4
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24160396

Change-Id: I9111bd5e67ced980a30a42cdb9f70b6d9de1a478
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 13:49:14 +00:00
Johannes Gallmann dc102e97d4 Merge "Extract Launcher resource interpolators to Animation Library" into udc-qpr-dev am: 19721d5e28
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24160396

Change-Id: I1613a317fada1f1951f70d15396370b4de9cc6b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-31 13:08:42 +00:00
Johannes Gallmann 19721d5e28 Merge "Extract Launcher resource interpolators to Animation Library" into udc-qpr-dev 2023-07-31 12:36:43 +00:00
Andy Wickham eed6d85c4b Merge "Revert^2 "Change Overview Actions to round buttons."" into udc-qpr-dev am: fd35baa3f8 am: aadf1c6ce8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24195750

Change-Id: I374cadf571992e0620c20bd3fbea5e2f09c79a34
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 23:31:07 +00:00
Andy Wickham 2f72b2efb8 Make some things public for reuse.
Test: With sister change.
Flag: N/A
Bug: 292000892
Change-Id: I8a20b9d4d5df748f90d907a10fe99d066d700170
2023-07-28 16:15:20 -07:00
Andy Wickham aadf1c6ce8 Merge "Revert^2 "Change Overview Actions to round buttons."" into udc-qpr-dev am: fd35baa3f8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24195750

Change-Id: I6e0ac287d6d6eceb515c3e9374c1654b0b619b4b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 22:50:26 +00:00
Andy Wickham fd35baa3f8 Merge "Revert^2 "Change Overview Actions to round buttons."" into udc-qpr-dev 2023-07-28 21:57:54 +00:00
Liran Binyamin f47141104e Merge "Set the stash handle bounds deterministically" into udc-qpr-dev am: 43e67c277b am: 58e913d43c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24211446

Change-Id: I60577395b9ca7b5663c152f520878160dbaed9c4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 21:05:20 +00:00
Liran Binyamin ecaac22e97 Merge "Don't animate in the bubble bar unless there are bubbles" into udc-qpr-dev am: 5c936d6246 am: 9d70e9badf
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24211443

Change-Id: Idcb5e0024f401f24616216a99f89fd48403d27cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 21:04:31 +00:00
Liran Binyamin 58e913d43c Merge "Set the stash handle bounds deterministically" into udc-qpr-dev am: 43e67c277b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24211446

Change-Id: I7550b2a02b6cf23dc1cac9bc33e941392acea575
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 20:39:16 +00:00
Liran Binyamin 9d70e9badf Merge "Don't animate in the bubble bar unless there are bubbles" into udc-qpr-dev am: 5c936d6246
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24211443

Change-Id: I087062a372d1aecdbd72de89e42eb070efe6a569
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-28 20:38:21 +00:00
Liran Binyamin 43e67c277b Merge "Set the stash handle bounds deterministically" into udc-qpr-dev 2023-07-28 19:54:42 +00:00
Liran Binyamin 5c936d6246 Merge "Don't animate in the bubble bar unless there are bubbles" into udc-qpr-dev 2023-07-28 19:54:29 +00:00
Ivan Tkachenko 90a769d1d3 Bubble bar dismiss interaction
A single bubble and the bubble stack dismiss functionality is implemented using `BubbleDragController`. It attaches a touch listener to the corresponding views and handles gesture interactions.
* When the view is long clicked the dragging to dismiss interaction starts. It scales up the dragged view and presents the dismiss view in the bottom of the window.
* When the bubble or the bubble stack is dragged close to the dismiss target area, it gets pulled towards it and sticks to it. The `MagnetizedObject` and `MagneticTarget` classes are used for it.
* When the dragged view is released outside of the dismiss area, it moves back to the initial position with animation.
* When the dragged bubble is released inside of the dismiss area, it will dismiss the bubble with animation and remove it from the stack.
* When the dragged bubble bar stack is released inside the dismiss area, all the bubbles will get dismissed and the bubble bar will dissapear.

Bug: 271466616
Test: manual, TBD
Flag: WM_BUBBLE_BAR
Change-Id: I83393898be61ec522db92688ac2e111ef7d72fe6
2023-07-28 18:17:09 +00:00
Ivan Tkachenko 18373d2a54 Bubble bar dismiss
* Added WMShell related proxy methods.
* Added DismissView dimensions and drawable resources.
* Added DismissView extension file to set it up with dimen and drawable resource ids.

Bug: 271466616
Test: manual, TBD
Flag: WM_BUBBLE_BAR
Change-Id: Iddac977a9c8a63facee45e9dd2eb234bb18d030b
2023-07-28 17:13:09 +00:00
Vinit Nayak a1d0d8269c Remove split instructions view on split launch success
* We weren't removing the instance of the view
that is created when split initiated from workspace
* Fewer bugs like this once RecentsView + workspace
instructions view are consolidated

Bug: 292590703
Flag: ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE
Test: Swiping to home after split apps launch
hides the view

Change-Id: I6b5037c024e6e0c456b687bc802076f691a955b2
2023-07-27 14:11:27 -07:00
Treehugger Robot 42b5cf6ee6 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-qpr-dev 2023-07-27 19:23:44 +00:00
Luca Zuccarini e2d31192a4 Merge "Animate depth from the right value on Taskbar All Apps launches." into udc-qpr-dev am: cf5703f614 am: 79fff57106
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24209925

Change-Id: I32abafb8a87a7f9e4cb56f7f6240a5bcf472f9c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-27 11:42:19 +00:00
Luca Zuccarini 79fff57106 Merge "Animate depth from the right value on Taskbar All Apps launches." into udc-qpr-dev am: cf5703f614
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24209925

Change-Id: If01e1bae7860e2bc8764a95a77add08f349a5831
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-27 11:01:43 +00:00
Luca Zuccarini cf5703f614 Merge "Animate depth from the right value on Taskbar All Apps launches." into udc-qpr-dev 2023-07-27 09:58:26 +00:00
Andy Wickham be8981442a Revert^2 "Change Overview Actions to round buttons."
f849f2856f

Fix: 293081298

Change-Id: Iaf1553770329ec3a6c6d8a2d9d81b60203e79ed8
2023-07-26 20:56:05 +00:00
Bill Yi ca00f219c2 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I129f717c91f3f0cce914a9e6c0a0315ef3720cac
2023-07-26 13:41:04 -07:00
Liran Binyamin f172c0b3b5 Set the stash handle bounds deterministically
The bounds of the bubble stash handle is calculated based on the bounds of
the bubble bar. The problem is that the bubble bar could be invisible, which
results in incorrect bounds set for the handle.

This change sets the bounds for the handle based on the width of the screen.

Fixes: 290992144
Test: Manual
        - Remove bubbles
        - Restart Launcher
        - Open the bubble test app and double tap on a chat
        - Observe that the handle animates in
Change-Id: Ida260014d59b88387de010891c18057f3b091e93
2023-07-26 15:38:58 -04:00
Liran Binyamin 95d84f5e06 Don't animate in the bubble bar unless there are bubbles
Fixes: 290608658
Test: Manual:
      - Remove all bubbles
      - Lock and unlock device
      - Observe that bubble bar is not displayed

      - Remove all bubbles
      - Restart launcher process
      - Observe that bubble bar is not displayed

Change-Id: I850d307394230968f86abc23ba0b4e94f55e10f0
2023-07-26 15:38:47 -04:00
Treehugger Robot 29809a1aaf Merge changes I45b6f858,I28120248 into udc-qpr-dev am: 17988825f2 am: eebc14aef1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24180083

Change-Id: Iaa092606e44cec2550c631408ace321793202ba5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 19:21:04 +00:00
Ats Jenk 8057383830 Merge "Use hasBeenResumed() for checking if launcher is resumed" into udc-qpr-dev am: 38a7faf04e am: acec8ea55e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24182810

Change-Id: Ifa5663b45a1c5a110b7be7b75af63ca7342343f1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 19:20:40 +00:00
Treehugger Robot 9ba1be46b9 Merge "Add jank monitor for CUJ_QUICK_SWITCH from home screen" into udc-qpr-dev am: 46c1b631d6 am: d71d9ee41e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24168094

Change-Id: I282136acd9971971abe2681680e2a553e736d23d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 19:15:23 +00:00
Treehugger Robot eebc14aef1 Merge changes I45b6f858,I28120248 into udc-qpr-dev am: 17988825f2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24180083

Change-Id: Ic5141bb6234ff00db7b0a03e5f824500de7d9598
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 18:44:33 +00:00
Treehugger Robot 17988825f2 Merge changes I45b6f858,I28120248 into udc-qpr-dev
* changes:
  Verifying that ViewCapture data is not empty
  Restoring starting capturing existing activity.
2023-07-26 18:33:07 +00:00
Ats Jenk acec8ea55e Merge "Use hasBeenResumed() for checking if launcher is resumed" into udc-qpr-dev am: 38a7faf04e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24182810

Change-Id: I5fc014e3c14ae836c49f6b7555aa739dfe7fda68
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 18:20:44 +00:00
Ats Jenk 38a7faf04e Merge "Use hasBeenResumed() for checking if launcher is resumed" into udc-qpr-dev 2023-07-26 18:18:11 +00:00
Treehugger Robot d71d9ee41e Merge "Add jank monitor for CUJ_QUICK_SWITCH from home screen" into udc-qpr-dev am: 46c1b631d6
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24168094

Change-Id: If633bd1c47467be91fcf9134cdc9c1cfed471d92
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-26 18:12:50 +00:00
Treehugger Robot 46c1b631d6 Merge "Add jank monitor for CUJ_QUICK_SWITCH from home screen" into udc-qpr-dev 2023-07-26 16:16:47 +00:00
Luca Zuccarini 627d67549f Animate depth from the right value on Taskbar All Apps launches.
`MyDepthController` in `QuickstepTransitionLauncher` assumes that we
want the background to always animate the same way, matching the rest
state of the workspace (depth == 0). However, in Taskbar All Apps the
background is visible, and depth != 0. We now initialize the one-off
`DepthController` for launches to take into account the latest depth set
by the top level `DepthController`, so there is no jumpcut at the
beginning of the animation.

Note that in my opinion we should use the same `DepthController` for all
cases, rather than having this one-off. I'm looking into the feasibility
of that change, but for now this fixes the issue at hand.

Fix: 292959100
Flag: N/A
Test: manual, see videos in the bug

Change-Id: Id90e8e728cc3e2ccf7d92148fbb0d6ff3e6fd6ca
2023-07-26 15:37:44 +00:00
Tracy Zhou 2d74c470d1 Merge "Add quick switch to trackpad gesture tests" into udc-qpr-dev am: 2a8a40c4a8 am: f20eff274c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/24034416

Change-Id: I67a093384a8f1ec28e2342e9ac8272358cf6680f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-07-25 21:54:24 +00:00