Commit Graph

14936 Commits

Author SHA1 Message Date
Tony Wickham 6437147c77 Merge "Simplify/correct Taskbar insetsRoundedCornerFrame calculation" into udc-dev am: 5e43031ed0 am: f74d0fbf09
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22939968

Change-Id: Ie89b60a5ba6d4e1f7aa13f72c997110495ff554c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 02:12:20 +00:00
Tony Wickham f74d0fbf09 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: Ie70201a89b800556ebe8c73c932b146cdf8eb096
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-02 01:33:36 +00:00
Tony Wickham 5e43031ed0 Merge "Simplify/correct Taskbar insetsRoundedCornerFrame calculation" into udc-dev 2023-05-02 00:56:38 +00:00
Vinit Nayak d22109d06f Merge "Refactor handling data launching split screen to separate class" into udc-dev am: 90dce8b8b2 am: 6eb6c62b25
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22840581

Change-Id: If8327404c094efde6904780d80b818856f52ccb3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 21:09:06 +00:00
Vinit Nayak 6eb6c62b25 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: I35fe4fba808f686d4ff3bded965ecd347926b665
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-05-01 20:31:29 +00:00
Bill Yi f657597054 Merge "Import translations. DO NOT MERGE ANYWHERE" 2023-04-29 13:55: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
Saumya Prakash 810e8fc744 Merge "Update the colors for gesture navigation tutorial." into udc-dev am: 71d05f963f am: f528c3cc2c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22889914

Change-Id: I3b88a2e47b1dbfae13bda4cbe0235623e7c7fb21
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 19:14:18 +00:00
Saumya Prakash f528c3cc2c 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: I4b00d816af4f4bb54da6e1f9f339bba0396e845b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 18:26:54 +00:00
Saumya Prakash 71d05f963f Merge "Update the colors for gesture navigation tutorial." into udc-dev 2023-04-28 17:03:31 +00:00
Ats Jenk 2a6961ad7e Pass in display when using DesktopMode APIs am: 0e068b1213 am: 0f6e43fc34
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22912129

Change-Id: I73341721fa6d5ca028e7817e144529abf1d5f9d4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 00:42:27 +00:00
Ats Jenk 0f6e43fc34 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: I521903dc1b12271e38ad73264f9d3aa711f7e33e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-28 00:00:04 +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 45d884551d Merge "Remove unused debug logs" into udc-dev am: 8c1bffb24f am: a7898f2e9b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22558557

Change-Id: Idabb4b613bbf3be722f52cb0bd164a4f4352ac8f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 19:28:51 +00:00
Bill Yi 90c50678bc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I653a8f6c87d3642550bb385a4f22c94bdb56fa61
2023-04-27 12:14:15 -07:00
Schneider Victor-tulias a7898f2e9b 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: I7b617e5becdda47206bff877d2fe7a39bdd2c060
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 18:50:58 +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 946761396b Merge "Fix touch focus not updated correctly after launching overview with live tile." into udc-dev am: 07b5cb3351 am: 8e81597321
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22896425

Change-Id: I69cf13171ef6cfa9a4b4a6e02060f0490f187420
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 05:47:15 +00:00
Tracy Zhou 8e81597321 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: I527801a590719c58869d13851cb4d76d53f850e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 05:09:07 +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 5c0d984c7e Merge "Move setCurrentPlayTime before starting animation." into udc-dev am: a9a2ec9b55 am: 2cee85558c
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22895085

Change-Id: I86c308f248aab6f8acdbe8729a6e0fb9e2f7206c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 02:15:50 +00:00
Treehugger Robot 2cee85558c 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: Id135816aa6c33a4a6af5280bf47dd395e007a47a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-27 01:37:45 +00:00
Treehugger Robot a9a2ec9b55 Merge "Move setCurrentPlayTime before starting animation." into udc-dev 2023-04-27 01:00:56 +00:00
Jagrut Desai a73f20b3fe Merge "Adding Support for Change Navigation Mode Taskbar Divider Menu Option" into udc-dev am: 0e5f1af6cb am: d93ca6726a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22776741

Change-Id: I15ae978d9f335175cebc936c489bfc1bc57c2c59
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:47:28 +00:00
Schneider Victor-tulias 01fab3d01d Merge "Fix broken TaplTestsTaskbar splitscreen test cases" into udc-dev am: a314b0375e am: b228571904 am: 890aee148a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22862600

Change-Id: I402167da0676054332dc300997ce056b027a7411
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:43:05 +00:00
Andy Wickham f7bdd01e46 Merge "Add long swipe from app to overview gesture (with flag)." into udc-dev am: a4627d2235 am: d00b5e34f3 am: ee40661f7b
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22243545

Change-Id: I620b0491fd1c64e9cca3ed2f11b8ac8161fb2a8d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:34:51 +00:00
Jagrut Desai d93ca6726a 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: I3bf39aac51922ebceef7d766e9866a1fbc647234
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:29:04 +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 e5f9c550bd 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: Idc89a36137c56b6b4df20793a8650e9cf2001e57
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 22:09:03 +00:00
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
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
Jordan Silva 50a7ef7f16 Merge "Fix digital wellbeing toast being initialized multiple times" into udc-dev am: a68cd72a3c am: 66c4d281c9
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22821459

Change-Id: If2898fee19a1f34805cefa92a8f091b41c11ec6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 18:28:58 +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 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
Sebastián Franco 0f669c9863 Merge "Prevent null pointer exception by return from setBackToLauncherCallback when mBackToLauncherCallback is null" into udc-dev am: 3538deee10 am: c48be5d6b0
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22774999

Change-Id: I77080888dd485ab26808465d1d615e35a525dc51
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 17:25:45 +00:00
Schneider Victor-tulias ccc10128f1 Fix broken TaplTestsTaskbar splitscreen test cases
The split tasks no longer close between test orientation changes. Updating tests to close all tasks after TaplTestsTaskbar test cases

Flag: not needed
Fixes: 279063348
Test: TaplTestsTaskbar
Change-Id: Ie654aae0a16ff495555b48f85a8dec8537086649
2023-04-26 10:15:27 -07: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 a8fdf98f9a 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: Ib080b2eab1e020958119972cc34491540a969848
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 16:43:24 +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 7df386f6d6 Merge "Commit to OtherActivityInputConsumer when swiping up in app" into udc-dev am: c8f0ac0cd8 am: 5d0d488ed9 am: 2bafc51acd
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/22863002

Change-Id: I1547e38de8b1828168f7dab6220f5a9aa2a72ddb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-04-26 07:38:07 +00:00