Commit Graph

14653 Commits

Author SHA1 Message Date
Jeremy Sim 11ae7359b7 Merge "Move test to presubmit" into udc-dev am: 8ecacd3624
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22970558

Change-Id: I03742c8bad67f8b231e5e0abe27378adf266d94b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 18:26:28 +00:00
Saumya Prakash b712da02fb Merge "Remove unused Assistant gesture tutorial and add error checking" into udc-dev am: 32a38c9ff1
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22939505

Change-Id: Id551bf3acddc117d86f7dcb65d64a40b911e53b2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 18:23:38 +00:00
Jeremy Sim 8ecacd3624 Merge "Move test to presubmit" into udc-dev 2023-05-03 17:39:35 +00:00
Saumya Prakash 32a38c9ff1 Merge "Remove unused Assistant gesture tutorial and add error checking" into udc-dev 2023-05-03 17:37:52 +00:00
Kateryna Ivanova a0480398cd Merge "Revert^2 "Introduce library for public animation APIs"" into udc-dev am: 46b73c2338
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22890961

Change-Id: I1345d059f359d6f0e281435fd87d99c78f722b04
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 08:53:54 +00:00
Kateryna Ivanova 46b73c2338 Merge "Revert^2 "Introduce library for public animation APIs"" into udc-dev 2023-05-03 08:41:31 +00:00
Fengjiang Li 573209b74a Merge "[1/n] Launcher Startup Latency: add StartupLatencyLogger to launcher3 and log startup latency" into udc-dev am: c15679d512
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22650115

Change-Id: I474015ca2ce38cea4509b861dac41bdb5565c07f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 04:21:07 +00:00
Fengjiang Li c15679d512 Merge "[1/n] Launcher Startup Latency: add StartupLatencyLogger to launcher3 and log startup latency" into udc-dev 2023-05-03 03:18:46 +00:00
Tracy Zhou 0a2dec9629 Merge "Revert "Fix touch focus not updated correctly after launching overview with live tile."" into udc-dev am: 41bfd86c1e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22976087

Change-Id: I6427edee4fdbec7b61de0f8e324969d2c9fe2f45
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-03 01:16:13 +00:00
Tracy Zhou 41bfd86c1e Merge "Revert "Fix touch focus not updated correctly after launching overview with live tile."" into udc-dev 2023-05-03 00:41:34 +00:00
Fengjiang Li 5a36c17a32 [1/n] Launcher Startup Latency: add StartupLatencyLogger to launcher3 and log startup latency
More details at "Log Startup Latency" section in go/launcher-startup-latency

Test: tested on phone, foldable and tablet, print latency logs in logcat
Bug: 278092752
Change-Id: Ibf269b0ecd6007d29b95e36f65ab6f02c45deb3a
2023-05-02 17:08:05 -07:00
Sihua Ma 595c1e44a1 Merge "Fix ConcurrentModificationException in QuickstepWidgetHolder" into udc-dev am: 8f85ad38ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22934145

Change-Id: Ibd9cdba6daa002e9d2d04fce4e42099457fded7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 22:02:36 +00:00
Tracy Zhou 3ec15b04f5 Revert "Fix touch focus not updated correctly after launching overview with live tile."
This reverts commit 8899f3a387.

Reason for revert: Regression b/280167174, b/280240591

Change-Id: Id82ab1dafb8c939b0e073ad4978d2782e3d953d8
2023-05-02 21:40:13 +00:00
Sihua Ma 8f85ad38ba Merge "Fix ConcurrentModificationException in QuickstepWidgetHolder" into udc-dev 2023-05-02 21:26:53 +00:00
Schneider Victor-tulias 59102772f2 Merge "Add null checks for mRecentsView" into udc-dev am: db07d2223e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22939702

Change-Id: I3cd468cd3d4f964a57bf3e1566f90bef6a07d463
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 18:53:25 +00:00
Jeremy Sim deda0d0c05 Move test to presubmit
testSplitAppFromHomeWithItself() has been in postsubmit for approx. 4 months with no major flakes, moving to presubmit

Fixes: 270201357
Test: Android Test Investigate reports 2/45 test failure rate
Change-Id: I13cd5bc9e0ba376ffe97e8e61ed577a51b59bdb4
2023-05-02 18:25:39 +00:00
Schneider Victor-tulias db07d2223e Merge "Add null checks for mRecentsView" into udc-dev 2023-05-02 18:15:47 +00:00
Winson Chung da625e3d94 Merge "Wait for shell drop target to be ready for handling drags in tests" into udc-dev am: 52cc03e42c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22935091

Change-Id: I5d0e2397856d2a55c9d5af7f9a4bf4b0e0c2ddc8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 16:49:26 +00:00
Winson Chung 52cc03e42c Merge "Wait for shell drop target to be ready for handling drags in tests" into udc-dev 2023-05-02 16:46:24 +00:00
Winson Chung c8ad4f7f43 Wait for shell drop target to be ready for handling drags in tests
- Wait for the shell drop target to be made visible and drawn before
  attempting to continue with the drag gesture

Bug: 234653212
Test: atest NexusLauncherTests

Change-Id: Ida851343873b51288460f25bba062f29019005d4
2023-05-02 05:29:36 +00:00
Tony Wickham 2054577dac Merge "Simplify/correct Taskbar insetsRoundedCornerFrame calculation" into udc-dev am: 5e43031ed0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22939968

Change-Id: I5d6695e04bb4e22ad28aa2cdad40e183d959fda5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 01:32:27 +00:00
Tony Wickham 5e43031ed0 Merge "Simplify/correct Taskbar insetsRoundedCornerFrame calculation" into udc-dev 2023-05-02 00:56:38 +00:00
Schneider Victor-tulias f77d2086c4 Add null checks for mRecentsView
Fixed a NPE and added some null checks for mRecentsView. These NPEs can happen if the launcher is destroyed unexpectedly.

Flag: not needed
Fixes: 279738827
Test: ran launcher and tested some gestures
Change-Id: I9c32e22a13d950346ce705ba3a6f11dd3f1da87f
2023-05-01 13:51:02 -07:00
Vinit Nayak 2ba3212e52 Merge "Refactor handling data launching split screen to separate class" into udc-dev am: 90dce8b8b2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22840581

Change-Id: Ic6712efb2d7ef29579f557f62563918f3ffd0e5b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 20:27:11 +00:00
Saumya Prakash 94c8cf49cf Remove unused Assistant gesture tutorial and add error checking
The Assistant gesture tutorial is unused in both the current and
redesigned gesture nav tutorials and can be removed. Left in, its
detections of gestures are leading to bugs with the tutorial.

Additionally, this change adds in error checking for side swipes in the
overview tutorial.

Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL
Fix: 280115831
Fix: 261239858
Fix: 278926113
Test: Manually went through both versions of gesture tutorial on
handheld, foldable, and tablet devices

Change-Id: Ie481d92ede2c2ab16ce2b3d1f729f6cb88f1b4c0
2023-05-01 17:58:54 +00:00
Vinit Nayak 2a014d4c0d Refactor handling data launching split screen to separate class
* SplitSelectDataHolder contains logic for knowing how
to launch split, separate from the actual API calls to launch split

Flag: ENABLE_SPLIT_LAUNCH_DATA_REFACTOR
Bug: 279494325
Test: Tested w/ all 6 types of launches noted in
SplitSelectDataHolder#@SplitLaunchType.
Also checked to make sure most-recent running tasks are
still being used where applicable.

Change-Id: I8114f87e9956b100622c80f578e291937ed4eeac
2023-04-28 18:00:22 -07:00
Tony Wickham 3cfada0a00 Simplify/correct Taskbar insetsRoundedCornerFrame calculation
Now we base it on the current tappableElement insets, which will only be
> 0 for the unstashed, persistent taskbar which draws rounded corners.
This inset also stays stable during temporary stash transitions such as
when the IME is showing.

Flag: ENABLE_TRANSIENT_TASKBAR=true, ENABLE_TASKBAR_PINNING=true
Test: in split screen for both transient and pinned (persistent)
taskbar, ensure split screen divider bottom is drawn appropriately
Fixes: 278028503

Change-Id: Iab56c5dc8f9fc81c34aa01f41b5212dd5c6fd7f0
2023-04-28 23:51:41 +00:00
Sihua Ma d72ce23707 Fix ConcurrentModificationException in QuickstepWidgetHolder
If the listeners would modify the listener list in the widget holder, this would cause a ConcurrentModificationException.

Fix: 275100497
Test: N/A
Change-Id: I3ae0e92db71f1c21d35dbf391dfcb92b46dd30f1
2023-04-28 14:21:24 -07:00
Saumya Prakash 66ca6d3f9c Merge "Update the colors for gesture navigation tutorial." into udc-dev am: 71d05f963f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22889914

Change-Id: Id651af49d05edc8b4aad4b8a06a940807a3d5da2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 18:32:05 +00:00
Saumya Prakash 71d05f963f Merge "Update the colors for gesture navigation tutorial." into udc-dev 2023-04-28 17:03:31 +00:00
Kateryna Ivanova c0a003ed77 Revert^2 "Introduce library for public animation APIs"
af289a1cd1

Bug: 271850966
Change-Id: Iddc1790fc3704ce20fde4377d05360a77b6c146c
2023-04-28 08:38:26 +00:00
Ats Jenk b5233cf8a6 Pass in display when using DesktopMode APIs am: 0e068b1213
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22912129

Change-Id: I646e519d5881600240eb0f8d5a082abec48e4d9b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 00:04:19 +00:00
Saumya Prakash 796ebc6006 Update the colors for gesture navigation tutorial.
This change introduces tokens for the lottie animations so that the
colors can be changed. In this change, the home gesture tutorial colors have
been updated to match the updated design at http://shortn/_VvbigpP0ys

Flag: ENABLE_NEW_GESTURE_NAV_TUTORIAL
Bug: 279823249
Test: Manually went through the tutorial on handheld, foldable, and tablet
Change-Id: Id2270cea41345e8f4d330097e10a7dae2b00032a
2023-04-27 22:06:17 +00:00
Schneider Victor-tulias acb881620b Merge "Remove unused debug logs" into udc-dev am: 8c1bffb24f
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22558557

Change-Id: Icd89efeee2bd19efa5dccd1ab6c3751f0509fa5a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 19:03:53 +00:00
Ats Jenk 0e068b1213 Pass in display when using DesktopMode APIs
Pass in the display id when asking wmshell to show desktop apps or when
querying the number of visible desktop tasks.

Bug: 278084491
Test: open some apps on the desktop, swipe up to recents, tap the
  desktop tile to open desktop again
Change-Id: Ia7328613244a1aa401e0e4792bc747a4b99b412d
2023-04-27 11:50:49 -07:00
Schneider Victor-tulias 8c1bffb24f Merge "Remove unused debug logs" into udc-dev 2023-04-27 17:44:42 +00:00
Tracy Zhou fd322649d2 Merge "Fix touch focus not updated correctly after launching overview with live tile." into udc-dev am: 07b5cb3351
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22896425

Change-Id: Id695b4538322c40dee9e0a9f6e52f1a0e471a308
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 05:04:49 +00:00
Tracy Zhou 07b5cb3351 Merge "Fix touch focus not updated correctly after launching overview with live tile." into udc-dev 2023-04-27 04:31:49 +00:00
Tracy Zhou 8899f3a387 Fix touch focus not updated correctly after launching overview with live tile.
Similar to ag/19938037

Fixes: 277625965
Test: Meta+Tab to launch overview from app, or swipe from app, then use DPAD_LEFT and DPAD_RIGHT to go through overview. Make sure the selected task is highlighted
Change-Id: Id0138878d32e4d37f30cef51ddb9ddb9df85fd65
2023-04-27 03:14:40 +00:00
Treehugger Robot 861781ca67 Merge "Move setCurrentPlayTime before starting animation." into udc-dev am: a9a2ec9b55
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22895085

Change-Id: I7181fbdd0bdd5f225bdb17e7ec264961209ed5b5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 01:35:35 +00:00
Treehugger Robot a9a2ec9b55 Merge "Move setCurrentPlayTime before starting animation." into udc-dev 2023-04-27 01:00:56 +00:00
Jagrut Desai d9f09c6768 Merge "Adding Support for Change Navigation Mode Taskbar Divider Menu Option" into udc-dev am: 0e5f1af6cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22776741

Change-Id: Id4cb90ca1d5c33372ba541203ea12f5f6e191807
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:24:53 +00:00
Jagrut Desai 0e5f1af6cb Merge "Adding Support for Change Navigation Mode Taskbar Divider Menu Option" into udc-dev 2023-04-26 22:12:08 +00:00
Schneider Victor-tulias b228571904 Merge "Fix broken TaplTestsTaskbar splitscreen test cases" into udc-dev am: a314b0375e
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22862600

Change-Id: I11e7c8326a2f10a60e46b96639598625aba8259e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:03:48 +00:00
Andy Wickham d00b5e34f3 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: I7f1092a2c0d1f4febb5ed0d04e98bf50cae9f770
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:03:28 +00:00
Schneider Victor-tulias a314b0375e Merge "Fix broken TaplTestsTaskbar splitscreen test cases" into udc-dev 2023-04-26 21:33:38 +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
Jon Miranda 77b17547c3 Move setCurrentPlayTime before starting animation.
Otherwise when animations are turned off, the animation will start/end
and then gets stuck to the first frame of the animation.

Fixes: 278046913
Change-Id: I5f0ed4b99ab4737b5371d65754d1acb4fdb8edb0
Flag: none
Test: swipe to go home
2023-04-26 12:05:04 -07: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 b5120a6504 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: Idc9ca07f62a1343c83bb306c4e8c3ed43e7e7611
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:45:27 +00:00