Commit Graph

14834 Commits

Author SHA1 Message Date
Andy Wickham 5d649671e7 Merge "Add long swipe from app to overview gesture (with flag)." into udc-dev am: a4627d2235
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22243545

Change-Id: I73c6d04586d2e8d44ecab3706939c53e2a258b71
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:07:50 +00:00
Andy Wickham a4627d2235 Merge "Add long swipe from app to overview gesture (with flag)." into udc-dev 2023-04-26 21:30:53 +00:00
Andy Wickham 830e4b7ce0 Add long swipe from app to overview gesture (with flag).
High level:
 - As you swipe up from an app (OtherActivityInputConsumer),
   a state transition animation to All Apps is created in
   AnimatorControllerWithResistance. The animation is played
   alongside the Recents resistance animation (i.e. past the
   settling point of Overview, which is at mCurrentShift 1).
 - The actual state transition to All Apps only happens if you
   release your finger in the "all apps region." This is set to
   mCurrentShift 2, so double the distance that Overview rests.
 - A haptic plays whenever you enter or exit this region, and
   the all apps animation is set to 0 until the region is
   active. This is so it's clear that something different is
   happening.
 - The panel that was previously used for tablets is now used
   for phones during this transition. It comes in at full
   opacity when you enter the region, and the contents (apps
   and search suggestions) fade in as you continue swiping.
 - The only gesture that is recognized in the all apps region
   is a fling downwards, which will return you to the previous
   app. Otherwise a left/right/up fling or slow release will
   finish the all apps transition.
 - The threshold is ignored if the flag is disabled (default)
   or if FallbackActivityInterface is active.

Flag:
The threshold is ignored if ENABLE_ALL_APPS_FROM_OVERVIEW is
disabled (default).

Bug: 259619990
Bug: 275132633
Test: Manual with and without the flag enabled
Change-Id: Ie311b77252416d97677b2c56fad61dfd392b6fe8
2023-04-26 10:52:04 -07:00
Jordan Silva 66c4d281c9 Merge "Fix digital wellbeing toast being initialized multiple times" into udc-dev am: a68cd72a3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22821459

Change-Id: Ic137f6cb79c9a4dffc1ed75d6a625b74aaff14be
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:51:00 +00:00
Jordan Silva a68cd72a3c Merge "Fix digital wellbeing toast being initialized multiple times" into udc-dev 2023-04-26 17:15:09 +00:00
Sebastián Franco c48be5d6b0 Merge "Prevent null pointer exception by return from setBackToLauncherCallback when mBackToLauncherCallback is null" into udc-dev am: 3538deee10
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22774999

Change-Id: Ie9ce8f91686593d37968bafd77b5306547ffd302
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 16:47:39 +00:00
Sebastián Franco 3538deee10 Merge "Prevent null pointer exception by return from setBackToLauncherCallback when mBackToLauncherCallback is null" into udc-dev 2023-04-26 16:06:35 +00:00
Jordan Silva f03e5f3778 Fix digital wellbeing toast being initialized multiple times
Digital Wellbeing toast state was being updated several times together with the app icon unnecessarily. This was causing a recreation of the Digital Wellbeing and replacing the banner attached to the TaskView multiple times, leading to heavy UI thread work and jumpy animations in some cases.

Bug: 271428408
Test: manual
Change-Id: I1a2a1423924efb0fb3c1e66826e3ab11211dcfb7
2023-04-26 11:40:47 +01:00
Tracy Zhou 8d4f883329 Merge "Commit to OtherActivityInputConsumer when swiping up in app" into udc-dev am: c8f0ac0cd8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22863002

Change-Id: Ic9673eeddb575f64a38118e60fd72169205f1a63
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 06:59:54 +00:00
Tracy Zhou c8f0ac0cd8 Merge "Commit to OtherActivityInputConsumer when swiping up in app" into udc-dev 2023-04-26 06:22:50 +00:00
Fengjiang Li 8832e8c7b2 Merge "Fix NPE of predictive back in TaskbarAllAppsSlideInView" into udc-dev am: 216ae0f7ec
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22717961

Change-Id: I02dc06e7f1a11bad94aa7037343e15bf10795751
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 05:58:31 +00:00
Fengjiang Li 216ae0f7ec Merge "Fix NPE of predictive back in TaskbarAllAppsSlideInView" into udc-dev 2023-04-26 05:15:33 +00:00
Vinit Nayak 1b107d290d Merge "Route PredictedAppIcon clicks through launcher" into udc-dev am: 80a3213d6b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22727510

Change-Id: I976a145a9354b14be45accc2b2c2fef10ed224e6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 23:56:40 +00:00
Vinit Nayak 80a3213d6b Merge "Route PredictedAppIcon clicks through launcher" into udc-dev 2023-04-25 23:20:41 +00:00
Saumya Prakash f9754974a4 Merge "Update the mock hotseat for the Gesture Navigation tutorial" into udc-dev am: 773c5c1760
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22725235

Change-Id: I8ae31b1ec38bfb24fffb984cf0369e87df73ea8e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 21:01:03 +00:00
Saumya Prakash 773c5c1760 Merge "Update the mock hotseat for the Gesture Navigation tutorial" into udc-dev 2023-04-25 20:14:32 +00:00
Tracy Zhou 33bcdbbb9d Commit to OtherActivityInputConsumer when swiping up in app
Fixes: 279634432
Test: swipe up and then immediately down, making sure that the notification shade is not brought down
Change-Id: I5ffdab6cef8162d0f0783c5d4a761197952209dd
2023-04-25 13:10:47 -07:00
Vinit Nayak 1bb594c72b Route PredictedAppIcon clicks through launcher
* This allows us to intercept launching predicted apps for
split-screen if user is in split selection flow
* Defaults to existing behavior of ItemClickHandler.INSTANCE
if we do not need to intercept the click

Bug: 276361926
Flag: ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE
Test: Launches as expected when not in split, launches in
split when selected as second app to initiate split with

Change-Id: Ieb45137ae89da340d314e995f4f6eb1f8b49a42f
2023-04-25 12:31:56 -07:00
Tracy Zhou 5258d08f9d Merge "Support 4-finger gesture to quick switch" into udc-dev am: eb55f83d88
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22233664

Change-Id: I2fe70691dd7b3f370c72251dee5401b0dc8620eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 18:54:11 +00:00
Tracy Zhou eb55f83d88 Merge "Support 4-finger gesture to quick switch" into udc-dev 2023-04-25 18:21:37 +00:00
Robin Lee afd04013b6 Merge "Remove keyguard state from onAnimationCancelled" into udc-dev am: 52b4c77770
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22779727

Change-Id: If1c79c3c5e8ca72302e2a20de9fef98145e77a8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 17:48:38 +00:00
Robin Lee 52b4c77770 Merge "Remove keyguard state from onAnimationCancelled" into udc-dev 2023-04-25 17:35:59 +00:00
Sebastian Franco 3bb1c1c125 Prevent null pointer exception by return from setBackToLauncherCallback when mBackToLauncherCallback is null
This change is needed because of ag/22360314

Fix: 277964328
Test: Compiles
Change-Id: Ib03bbf9d60b2a2b0a8207d3ba2a4c1019cc1b8f7
2023-04-25 09:55:30 -07:00
Mady Mellor 74edc95947 Merge "Creates BubbleBarController" into udc-dev am: d6430d17ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22691162

Change-Id: I38a9d989c80b6e90c0ecc11dfe0939fac1f39d35
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-25 16:37:10 +00:00
Mady Mellor d6430d17ac Merge "Creates BubbleBarController" into udc-dev 2023-04-25 15:49:46 +00:00
Bill Yi 474586a38f Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-dev 2023-04-24 21:58:48 +00:00
Liana Kazanova 05e1c20bc0 Merge "Revert "Introduce library for public animation APIs"" into udc-dev am: a6a0867b65
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22791267

Change-Id: Ib24fb1e4e1448744e66d827c70cf5c913e7529f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-24 18:30:21 +00:00
Liana Kazanova a6a0867b65 Merge "Revert "Introduce library for public animation APIs"" into udc-dev 2023-04-24 17:58:45 +00:00
Vinit Nayak 0ed1e4802a Merge "Support splitting from workspace with Widgets" into udc-dev am: 955555a314
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22727308

Change-Id: I3cfe07ee1207dd0c0dae3a47b4849a2f771d8aef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 04:08:24 +00:00
Jeremy Sim b953cb12fc Merge "App Pairs (behind flag): Add new ItemInfo types and DB save functionality" into udc-dev am: 6e0f34cc0a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22347413

Change-Id: I8c32e16025cdef614a2dfeb1fae49165ce81ef33
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-22 04:07:43 +00:00
Vinit Nayak 955555a314 Merge "Support splitting from workspace with Widgets" into udc-dev 2023-04-22 03:55:23 +00:00
Jeremy Sim 6e0f34cc0a Merge "App Pairs (behind flag): Add new ItemInfo types and DB save functionality" into udc-dev 2023-04-22 03:21:17 +00:00
Bill Yi acdcfe4731 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5628eb71f48452a705d8c1a1e41390a847809385
2023-04-21 16:04:39 -07:00
Saumya Prakash 2f3d412b24 Update the mock hotseat for the Gesture Navigation tutorial
The redesigned gesture navigation tutorial was using older files for the
mock hotseat when swiping up to home. This adds in the correct files to
align with the design and be consistent with the mobile version of the
tutorial.

Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL
Bug: 278790706
Test: Went through the gesture tutorial on small screen and large screen devices.
Change-Id: Ib3cffd1b8b62220ff0b1458e32b3825396cdb6a0
2023-04-21 22:31:03 +00:00
Jeremy Sim 7cf0dd9e03 App Pairs (behind flag): Add new ItemInfo types and DB save functionality
This is the second of several patches implementing the App Pairs feature behind a flag.

This patch includes:
- AppPairsController, a new controller that will handle creation, launching, and deletion of app pairs
- ITEM_TYPE_APP_PAIR is a new type of FolderInfo (FolderInfo now can be either a folder or an app pair, and should probably be renamed to CollectionInfo or something more generic in future)
- Necessary plumbing for these new types
- Database code that handles saving a new app pair to the database with the correct schema

Flag: ENABLE_APP_PAIRS (set to false)
Bug: 274189428
Test: Not included in this CL, but will follow
Change-Id: Ie3aefd4eb9171f471789f54876de742849d3013b
2023-04-21 14:23:54 -07:00
Vinit Nayak fd46900b96 Support splitting from workspace with Widgets
* Need to insert widget's icon in animation
* Launching w/ same package app + widget is
broken

Test: Launched apps from predicted apps + widget,
hotseat apps + widget
Flag: ENABLE_SPLIT_FROM_WORKSPACE_TO_WORKSPACE
Bug: 276361926

Change-Id: I3e30189e56536371ebd0acfbdd2c073a882cc731
2023-04-21 14:05:12 -07:00
Fengjiang Li 36f7ba3944 Merge "Check build version before using predicitve back API" into udc-dev am: 5068718fe8
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22776729

Change-Id: I690a2b7867f7d210667c12b6b6e4218db94af186
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 21:04:36 +00:00
Fengjiang Li 5068718fe8 Merge "Check build version before using predicitve back API" into udc-dev 2023-04-21 20:22:09 +00:00
Liana Kazanova af289a1cd1 Revert "Introduce library for public animation APIs"
Revert submission 22740447-animation-library

Reason for revert: b/279195827

Reverted changes: /q/submissionid:22740447-animation-library

Change-Id: Ie2ef34f8bdb3076a015d91742be041c7c9ade8a2
2023-04-21 19:14:23 +00:00
Fengjiang Li 55e648f682 Fix NPE of predictive back in TaskbarAllAppsSlideInView
Fix: 278597104
Test: tested predictive back in taskbar all apps view
Change-Id: I32e3cba5d26b3d05e9b7af584598bf04e512a684
2023-04-21 11:12:40 -07:00
Jagrut Desai b66808c026 Merge "Exposing functionality to pin Taskbar from TaskbarDividerPopupView." into udc-dev am: 64b79a9fad
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22519946

Change-Id: I5e833b4fe492e7cade8aa7b5244a8fd256763565
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 17:00:40 +00:00
Fengjiang Li d0c2359a49 Check build version before using predicitve back API
Test: build and run app
Fix: 278798546
Change-Id: I4a7b226b1d710cc84ef40b59a33f50a84aca84bb
2023-04-21 09:38:59 -07:00
Jagrut Desai 64b79a9fad Merge "Exposing functionality to pin Taskbar from TaskbarDividerPopupView." into udc-dev 2023-04-21 16:15:07 +00:00
Kateryna Ivanova bb615c29c3 Introduce library for public animation APIs am: 2d6a8e3a87
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22739941

Change-Id: Ic6585ccf2de38444d53273a8a4bbdadaa9711103
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 14:31:21 +00:00
Robin Lee 7e5594928c Remove keyguard state from onAnimationCancelled
Reason for revert: b/276433230

Test: atest CtsWindowManagerDeviceTestCases:KeyguardTests
Test: atest PowerKeyGestureTests
Bug: 276433230
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:11e6fdd982ab7e6df951dcfe97948f81a8f36d75)
Merged-In: I62d760206dfd13ba4de7a77d2906b0f90bd2c343
Change-Id: I62d760206dfd13ba4de7a77d2906b0f90bd2c343
2023-04-21 09:06:02 +00:00
Kateryna Ivanova 2d6a8e3a87 Introduce library for public animation APIs
* Add a public library
* Pull Interpolators implementation from systemui animation library
* migrate existing usages of Interpolators

Test: n/a
Bug: 271850966
Change-Id: I3f941423b76f555b2c1e7205e23d5ff9ad95d413
2023-04-21 08:06:47 +00:00
Andreas Agvard 4bef922c78 Merge "Rename notifyGestureStartedAsync to notifyGestureStarted" into udc-dev am: 43327eb082
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22738281

Change-Id: Ie91361e9e02b5f4bd4948d9b9e0971cec6896eaf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 07:10:25 +00:00
Andreas Agvard 43327eb082 Merge "Rename notifyGestureStartedAsync to notifyGestureStarted" into udc-dev 2023-04-21 06:36:09 +00:00
Wei Sheng Shih 2d50fd0e6d Merge "Polish reveal animation after onTasksAppeared." into udc-dev am: 8b71205fa9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22606971

Change-Id: I780f1894e15c64bade0989cb03a7d1d206eefc65
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-21 05:06:14 +00:00
Jagrut Desai c6d625b8db Exposing functionality to pin Taskbar from TaskbarDividerPopupView.
This CL allows user to long press on Taskbar divider view to bring up divider popup view. It also included functionality of allowing user to turn on always show taskbar from the divider popup view.

Test: Manual
Bug: 265436055
Bug: 265434718
Bug: 265434902
Bug: 265434705
Flag: ENABLE_TASKBAR_PINNING

Change-Id: Ied54d718483a9b06b053d68988e5c294a786002a
2023-04-20 22:04:21 -07:00