Commit Graph

76569 Commits

Author SHA1 Message Date
Himanshu Gupta cf3a0ef2f0 Merge "Prompting the user to set Pixel/Quickstep as default Home app." into main 2024-06-12 21:13:19 +00:00
Brian Isganitis e59b640ffc Merge "Initial TaskbarUnitTestRule with example overlay controller tests." into main 2024-06-12 19:26:17 +00:00
Treehugger Robot ec942d5711 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: 42ddcb5e14 -s ours
am skip reason: contains skip directive

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

Change-Id: I873f135d456379edf83e38bbaa6ec2650cf7a54d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 17:56:03 +00:00
Bill Yi 7a549a4fe0 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: bb038c1e56 -s ours
am skip reason: contains skip directive

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

Change-Id: Id2c48e1c0087a6cbb79e96b44ea7662adf06d727
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 17:55:58 +00:00
Bill Yi 4997e01e4d [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: ffbadc5404 -s ours
am skip reason: contains skip directive

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

Change-Id: Ib39280ca58c3eb4ae88431a750892e876dcd8985
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-12 17:55:55 +00:00
Bill Yi afc6e24d4c Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-12 17:43:47 +00:00
Bill Yi 27ee06f9a2 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-12 17:43:47 +00:00
Treehugger Robot 1666229452 Merge "Add debug logs to BaseOverview#isActionsViewVisible" into main 2024-06-12 17:37:29 +00:00
Treehugger Robot 42ddcb5e14 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-12 17:35:45 +00:00
Mykola Podolian 590e662d70 Merge "Add outline to the bubble bar background view." into main 2024-06-12 16:46:55 +00:00
Jon Miranda 1e0ec5ebeb Merge "Delay taskbar background fade in animation - Taskbar background will fade in based on 1. Velocity threshold 2. End target gesture destination" into main 2024-06-12 16:02:20 +00:00
Schneider Victor-tulias c4ed677501 Merge "Exclude home and recents activity types when overriding recents-excluded tasks" into main 2024-06-12 15:46:56 +00:00
Schneider Victor-tulias 11eaec69f4 Add debug logs to BaseOverview#isActionsViewVisible
Flag: NONE debug logs
Bug: 336660988
Test: TaplTestsQuickstep#testQuickSwitchFromHome
Change-Id: If241cd732cfce83d4799895f5e43048d775d72ed
2024-06-12 15:43:16 +00:00
Orhan Uysal 8f2a4e0854 Merge "Use RecentTasksListener to trigger TopTaskTracker" into main 2024-06-12 12:30:13 +00:00
Pragya Bajoria 837953afa9 Merge "Update the flag check for back gesture to include tablet filtering to reduce the scope of desktop windowing logic." into main 2024-06-12 12:21:07 +00:00
Treehugger Robot 3f1e1a139f Merge "Enable UtilitiesKtTest for multivalent. Remove test resource" into main 2024-06-12 11:04:46 +00:00
Brian Isganitis 9eaae4b6a4 Initial TaskbarUnitTestRule with example overlay controller tests.
Flag: TEST_ONLY
Bug: 230027385
Test: TaskbarOverlayControllerTest
Change-Id: I858906ece7e67677962ec8b4432bfcca5ec30283
2024-06-11 23:48:13 -04:00
Bill Yi bb038c1e56 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e7c673b15469c477edbba5f411be7651397ded1
2024-06-11 18:41:11 -07:00
Bill Yi 27425d6623 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1ddf23b707c50d756a14f677e57da5b0a008cbd0
2024-06-11 18:40:44 -07:00
Bill Yi ffbadc5404 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1750b036138658c8abe54de9bea4f35b56fe230f
2024-06-11 18:39:45 -07:00
Bill Yi 1ef246359e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6f155a2ed120e75dfcd3ed5257c63fd6c0805550
2024-06-11 18:39:18 -07:00
Tracy Zhou 80dbe9ae3e Merge "Initialize mRotationTouchHelper before onInputDeviceAdded" into main 2024-06-12 00:56:38 +00:00
Jon Miranda 4a4b7a8059 Delay taskbar background fade in animation
- Taskbar background will fade in based on
  1. Velocity threshold
  2. End target gesture destination

Bug: 298089923
Bug: 345768019
Test: swipe up fast to go home, note no taskbar bg
      swipe up slow to reveal taskhome, note taskbar bg shows immediately
Flag: com.android.launcher3.enable_scaling_reveal_home_animation DISABLED

Change-Id: I2c16352e1c0c52a8afc49900a39b80383bacde62
2024-06-11 15:39:55 -07:00
Uwais Ashraf eecadb0432 Enable UtilitiesKtTest for multivalent. Remove test resource
Fix: 325088427
Test: UtilitiesKtTest in studio and presubmit
Flag: EXEMPT test-only
Change-Id: I71b77c4633b1075f643ed479f8224f9b80811f54
2024-06-11 22:38:34 +00:00
Jagrut Desai ec772f4995 Merge "Fix Taskbar All Apps Button to be Fixed in Minimal Taskbar State" into main 2024-06-11 21:27:27 +00:00
Tracy Zhou 16b2656ecf Merge "Fix crash from isTrackpadDevice" into main 2024-06-11 21:22:35 +00:00
Orhan Uysal c948537a82 Use RecentTasksListener to trigger TopTaskTracker
Currently launcher gets task stack updates through WM core. Ideally we
would like to migrate into a model where launcher gets these updates
through shell instead.

Test: Manually check that the correct task info is delivered to launcher
from shell
Bug: 341932484
Bug: 344684650
Flag: NONE Just adding a listener, no logic added

Change-Id: Iaf534a4bfee968138d4a4ff282a66e62759af2c0
2024-06-11 21:00:22 +00:00
Liran Binyamin 27471df69c Merge "Animate new bubble when the bar is expanded" into main 2024-06-11 20:25:15 +00:00
Treehugger Robot 0f83d92ae4 Merge "Scrolling down to locate PS after lock/unlock event." into main 2024-06-11 20:24:17 +00:00
Tracy Zhou 70041c88ad Initialize mRotationTouchHelper before onInputDeviceAdded
There is dependency there that can cause npe from mRotationTouchHelper not initialized yet

Fixes: 345893434
Test: N/A
Change-Id: Ib9009f23d71eccf6b554e21c51ba640304250af0
2024-06-11 13:06:03 -07:00
Schneider Victor-tulias 3eb4efac95 Exclude home and recents activity types when overriding recents-excluded tasks
These tasks could point to overview itself, causing a very confusing screenshot. By excluding these tasks, we will default to using the task preview

Flag: NONE bug fix
Fixes: 336334715
Test: used circle to search from home, swiped to home, then pressed "select" overview action button. also checked temp logs
Change-Id: I0b0ca50585413b479e4830f06b57b8b5e19670a8
2024-06-11 16:01:09 -04:00
Himanshu Gupta 3a4b79bf7b Scrolling down to locate PS after lock/unlock event.
This change fixes TAPL tests by:
1. Scrolling down to locate PS, in case the scrollbar moves after lock/unlock.
2. Retrying lock/unlock, as sometimes, the request is cancelled by UserManager (if the profile is already in that state)

Bug: 345556016
Test: atest TaplPrivateSpaceTest
Flag: NONE Tapl fix tweak.
Change-Id: Ic0cc3259a2f92065a699d694c47f65c5f68934b8
2024-06-11 18:15:51 +00:00
Himanshu Gupta 261a62219b Prompting the user to set Pixel/Quickstep as default Home app.
requestQuietMode API throws SecurityException in case its called
from a non-default Launcher app.
To mitigate this, we catch the exception and prompt the user
to set their default launcher to the current app.

Video(Pixel): https://photos.app.goo.gl/ni5X1c6vBbYW2JMJ9
Video(Pixel-aosp): https://photos.app.goo.gl/cYLJpTYW76Jnbonc9

Bug: 320446272
Test: Manual
Flag: NONE Bug fix tweak.
Change-Id: I6afb2ae85cabc038e1503e9c34eebd974c4f7a50
2024-06-11 19:11:21 +01:00
mpodolian 84f9cfabb9 Add outline to the bubble bar background view.
Added outline to the bubble bar background. Updated pointer
appearing/disappearing animation - now pointer moves into the bubble
bar background.
Demo: http://recall/-/gx8ASgewUeUS3QYohfrd1J/e1wZMrFZTILq73ik8wwrwx

Fixes: 345489039
Flag: ACONFIG com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Test: Manual. Expand and collapse bubble bar with the light and the
dark theme.

Change-Id: I095fdc12337955aa21ee0eb622a924ad424ef186
2024-06-11 19:03:24 +01:00
Tracy Zhou 1deac6777b Fix crash from isTrackpadDevice
Apparently InputManager.getInputDevice can return null when a device is added

Fixes: 344902395
Test: N/A
Change-Id: I79c3dd3431b1d4b079b8a6863688a13ea2741602
2024-06-11 10:40:17 -07:00
Jagrut Desai 31a65a08dc Fix Taskbar All Apps Button to be Fixed in Minimal Taskbar State
Test: Manual
Bug: 346387672
Flag: NONE taskbar all apps is not behind a flag
Change-Id: Iea63ccf57354a1e2941bd51f7f6f9e69187c4545
2024-06-11 09:23:23 -07:00
Charlie Anderson a8f0155c89 Merge "Adding bugfix flag for archiving bug extras" into main 2024-06-11 13:58:35 +00:00
Jeremy Sim 5aa28b472a Merge "Expand touch target of split cancel button to meet a11y requirements" into main 2024-06-11 05:13:35 +00:00
Riddle Hsu 8fbf819737 Merge "Send source rect hint to Shell via stopSwipePipToHome" into main 2024-06-11 04:45:25 +00:00
Jeremy Sim dafbaa5f1b Merge "Fix flaky test" into main 2024-06-11 04:12:58 +00:00
Charlie Anderson 9e12c3f152 Adding bugfix flag for archiving bug extras
Bug: 322314760
Test: locally
Flag: com.android.launcher3.enable_first_screen_broadcast_archiving_extras
Change-Id: I33edcf09eee990727613246fb5942263feb49625
2024-06-11 00:07:24 -04:00
Jeremy Sim e94e509413 Expand touch target of split cancel button to meet a11y requirements
This CL adds a TouchDelegate to the "Cancel" button on SplitInstructionsView so that it is always at least 48dp by 48dp. I.e. if the touch target is smaller than 48dp, it expands the TouchDelegate to be at least that size.

Fixes: 323108127
Test: Manually verified that the touch target is larger
Flag: EXEMPT bugfix
Change-Id: Id14bc39660ee7767991a3b5613f1282945a2ef96
2024-06-10 19:54:50 -07:00
Treehugger Robot 9aafa6bd76 Merge changes I8411fb83,I5b757558 into main
* changes:
  Move Desktop running apps support into TaskbarRecentAppsController
  Add flag for Recents in Taskbar
2024-06-11 02:16:56 +00:00
Winson Chung 0101ae5062 [automerger skipped] Add max width to the screen instructions view text am: 3fa291e1a7 -s ours
am skip reason: Merged-In I73e889372a5c482277b0e4b61fb834304304c0a6 with SHA-1 73cf3bc3a1 is already in history

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

Change-Id: Id6c5fc20268b0f17c8a9558da6a72ee59c94ce9e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-11 01:31:02 +00:00
Tony Wickham a2b510dc23 Move Desktop running apps support into TaskbarRecentAppsController
- Merged DesktopTaskbarRunningAppsController up into
  TaskbarRecentAppsController, which is now initialized directly
- The old TaskbarRecentAppsController was effectively a no-op
  that was always overridden, so merging the one subclass up makes
  things simpler (especially for the follow up CLs which will add
  support for switching between Running and Recent tasks using
  the same underlying data).

Flag: com.android.launcher3.enable_recents_in_taskbar
Test: TaskbarRecentAppsControllerTest
Bug: 315354060
Change-Id: I8411fb832e5dd3d76201d2694dec0b11bd70bbf9
2024-06-11 00:18:23 +00:00
Liran Binyamin f461eab5ca Merge "Fix state after dragging bubble to dismiss" into main 2024-06-10 23:42:00 +00:00
Treehugger Robot cf68e59c02 Merge "Finish the running recents animation when the user locks their device mid-animation." into main 2024-06-10 22:31:19 +00:00
Jeremy Sim c1470021c8 Fix flaky test
Attempts to fix a flaky test by ensuring that recents is always cleared before creating a split pair (so the split pair under test is always the same).

Bug: 340935208
Test: testSaveAppPairMenuItemOrActionExistsOnSplitPair(), testSplitTaskTapBothIconMenus()
Flag: TEST_ONLY
Change-Id: Ibc81b90fac531f0e78e93a494ff59073ab5e52cf
2024-06-10 14:51:53 -07:00
Winson Chung 3fa291e1a7 Add max width to the screen instructions view text
- This ensures that the instruction wraps if the text is too long

Fixes: 328577545
Fixes: 345128488
Flag: EXEMPT bugfix
Test: Visual inspection of instructions view in different languages/form
      factors
Change-Id: I73e889372a5c482277b0e4b61fb834304304c0a6
Merged-In: I73e889372a5c482277b0e4b61fb834304304c0a6
(cherry picked from commit 73cf3bc3a1)
2024-06-10 21:08:18 +00:00
Sihua Ma c22a8e7495 Merge "Migrate GeneratedPreviewTest to multivalent" into main 2024-06-10 20:57:00 +00:00