Commit Graph

76729 Commits

Author SHA1 Message Date
Treehugger Robot 8fc5e593c3 Merge "Update icon for install to private shortcut[final]" into main 2024-04-13 16:00:19 +00:00
Vadim Tryshev bb760dbbbd Merge "Promote goToOverviewFromApp to presubmit" into main 2024-04-13 01:12:04 +00:00
Anushree Ganjam 8cac99a8dc Add new class for SetPropRule and move outside ShellCommandRule.
Clean up the mEnableInputTransportPublisherRule from TaplWidgetPickerTest since b/325377690 is fixed now.

This is follow up for ag/26419353.

Bug: 325377690
Test: Manual
Flag: NA
Change-Id: Id55000ac3cb4b88097ad00b97773c39a725711b8
2024-04-12 16:45:18 -07:00
Liana Kazanova 1c0b61377d Merge "Revert "Wait for LauncherModel loaded in waitForLauncherInitialized"" into main 2024-04-12 22:29:53 +00:00
Sunny Goyal 3b6459c753 Merge "Fixing Launcher3QuickStepGo targets" into main 2024-04-12 22:17:42 +00:00
Liana Kazanova b80c6c347a Revert "Wait for LauncherModel loaded in waitForLauncherInitialized"
This reverts commit f8f00f4233.

Reason for revert: DroidMonitor: Potential culprit for http://b/334162623.  verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Change-Id: Id165df41a87af4757abd3266b8643949ce012a08
2024-04-12 21:30:50 +00:00
Anushree Ganjam 6292e32e7f Add FastScrollSectionInfo with "info icon" when work educard exists.
Before: https://b.corp.google.com/issues/325490294#comment1

After: https://b.corp.google.com/issues/325490294#comment5

Bug: 325490294
Test: Manual
Flag: NA
Change-Id: I557971cddd5829f46697004159d62a9343e75f69
(cherry picked from commit 6dadf21a7f)
2024-04-12 20:54:29 +00:00
Schneider Victor-tulias a9721fd344 Merge "Add debug logs to AbsSwipeUpHandler" into main 2024-04-12 20:39:51 +00:00
Sunny Goyal 4396a935c2 Merge "Using resource overrides for PluginManager instead of code-swap" into main 2024-04-12 20:29:36 +00:00
Sunny Goyal 3b452f5e90 Fixing Launcher3QuickStepGo targets
When res directory is not specified in the app target, it automatically
uses the default res directory, which in this case overrides the
quickstep resources.
Explicitely specifying the res directory to prevent override

Bug: 333207609
Test: Verified apk
Flag: None
Change-Id: I749ad895f42ac40a462993ed5290da52a838c1ec
2024-04-12 19:19:59 +00:00
Luca Zuccarini a0e2a878f4 Fix a bug where the status bar scrim doesn't animate.
Bug: 298089923
Flag: ACONFIG com.android.launcher3.enable_scaling_reveal_home_animation DISABLED
Test: manual
Change-Id: I8b624cf3e0b42572c122d04e2e7df6e7a6106b89
2024-04-12 18:55:49 +00:00
Schneider Victor-tulias aec9ae92ea Merge "Wait for LauncherModel loaded in waitForLauncherInitialized" into main 2024-04-12 18:49:52 +00:00
Sunny Goyal 4a22ed81ea Using resource overrides for PluginManager instead of code-swap
Bug: 330920490
Test: Presubmit
Flag: None
Change-Id: Ib1cd50f95873928b9ce104e8e95d21f1dca9c6e3
2024-04-12 11:38:32 -07:00
Jagrut Desai 49d4429881 Fixing TaplUninstallRemoveTest#uninstallWorkspaceIcon test
Test: Presubmit
Bug: 319501259
Flag: NONE
Change-Id: I9566b947bc7d5d64953a8c637fefd4fa37cca87c
2024-04-12 11:37:27 -07:00
Holly Sun 0b6dafbd3e [PS] Update PS tile icon.
Screenshot:
https://screenshot.googleplex.com/9XM6jYqhvz8etp3
https://screenshot.googleplex.com/3qUGXvqmvrWhWHr

Test: manual
Bug: 333929173
Flag: aconfig com.google.android.apps.nexuslauncher.enable_inject_private_space_tile trunkfood
Change-Id: Ibeb2a55cd80c8ae9a5446c40061f7e014f81ed4c
2024-04-12 11:14:57 -07:00
Schneider Victor-tulias 9622927c8d Add debug logs to AbsSwipeUpHandler
Investigating b/332386996

Flag: N/A
Bug: 332386996
Test: TaplTestsQuickstep#testQuickSwitchFromApp
Change-Id: Ic5245416df624b722819a3dcf1008ca0196d3161
2024-04-12 13:34:31 -04:00
Vadim Tryshev 2a6ce15290 Merge "Removing users synchronously" into main 2024-04-12 17:19:36 +00:00
Brandon Dayauon c1de065650 Merge "Fix stale header height being used in scroll to header calculation" into main 2024-04-12 17:00:40 +00:00
Sebastián Franco 7afe302bda Merge "If the user only had the default db, then migrate to the new default" into main 2024-04-12 16:55:13 +00:00
Jagrut Desai 4fe59a2ce8 Folder Title Change Listener
Bug: 305877212
Test: Manual
Flag: NONE
Change-Id: I10c7e0827a05010720daeb9da7a0be854ee06112
(cherry picked from commit 06a05c3806)
2024-04-12 16:54:56 +00:00
Schneider Victor-tulias f8f00f4233 Wait for LauncherModel loaded in waitForLauncherInitialized
Flag: N/A
Fixes: 326737440
Test: Launcher TAPL tests
Change-Id: I631b370198c393ad84419930c026b6a0ce63ec2b
2024-04-12 12:48:48 -04:00
Riddle Hsu 90ed0f9b32 Ensure that the recents start time is non-zero
It was only assigned when using gesture navigation.

When using non-gesture navigation, the calculation below in
ActivityMetricsLogger will be (uptime - 0) which could be several
hours or days.
 mSourceEventDelayMs = (int) (TimeUnit.NANOSECONDS.toMillis(
     launchingState.mStartUptimeNs) - sourceInfo.eventTimeMs);

Because the start time was set right after GestureState is created,
it can be simply set as the creation time of GestureState.
So non-gesture navigation can provide the timestamp when handling
OverviewCommandHelper.TYPE_TOGGLE.

Bug: 206872204
Test: Use 3-button navigation to enter recent.
      The value of LatencyTracker should not be unexpected large.
Change-Id: Ie661222822912e287d1ac295ccaf49e2086d909e
2024-04-12 11:10:07 +00:00
Himanshu Gupta 0faeff7f76 Update icon for install to private shortcut[final]
Bug: 333553036
Test: https://photos.app.goo.gl/KmQXWYWKQsWwg3fW6
Flag: NA
Change-Id: I50c2e6e0294097d3ce81ac590aaa8c753c6d23ad
2024-04-12 11:39:24 +01:00
Federico Baron 1db15a0ec8 Merge "Page resets when scrolling slowly fix" into 24D1-dev am: d7022dc0ac
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/26930477

Change-Id: I929c449339f1ae45f4454149272409ce147ab825
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 05:15:00 +00:00
Federico Baron d7022dc0ac Merge "Page resets when scrolling slowly fix" into 24D1-dev 2024-04-12 04:53:49 +00:00
Treehugger Robot 2078ab6ab6 [automerger skipped] Merge "Launch AppPair live tile when not visible" into 24D1-dev am: 028e1fcd9d -s ours
am skip reason: Merged-In I6ae8cccc01401935bf96fba8a154216e6b1ad701 with SHA-1 637274ebc9 is already in history

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

Change-Id: I0019b0c90add2f66b466b38091c21862e8cb390e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 04:01:13 +00:00
Vinit Nayak aa5d27571e [automerger skipped] Launch AppPair live tile when not visible am: 95a7ca485e -s ours
am skip reason: Merged-In I6ae8cccc01401935bf96fba8a154216e6b1ad701 with SHA-1 637274ebc9 is already in history

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

Change-Id: Ibb326873bc3baa9a5fbbfe5754ce4d7f9ec0c858
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 04:01:11 +00:00
Treehugger Robot 037ba427ab [automerger skipped] Merge "Add placeholder divider view when starting split tasks" into 24D1-dev am: 8119d72903 -s ours
am skip reason: Merged-In I32e394a0bc361489473ee657161c8f3bcbf1e422 with SHA-1 cdaabc6199 is already in history

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

Change-Id: I1a8ec7a57951d9da280636bfa65fb915656086f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 04:00:32 +00:00
Vinit Nayak 3b83e53103 [automerger skipped] Add placeholder divider view when starting split tasks am: 32700f81ec -s ours
am skip reason: Merged-In I32e394a0bc361489473ee657161c8f3bcbf1e422 with SHA-1 cdaabc6199 is already in history

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

Change-Id: I16e9fe62fadd42c9ab926cc1e2b3e828b6bb4f91
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 04:00:30 +00:00
Treehugger Robot 028e1fcd9d Merge "Launch AppPair live tile when not visible" into 24D1-dev 2024-04-12 03:59:27 +00:00
Treehugger Robot 8119d72903 Merge "Add placeholder divider view when starting split tasks" into 24D1-dev 2024-04-12 03:48:46 +00:00
Vinit Nayak 95a7ca485e Launch AppPair live tile when not visible
* End the recents animation and then relaunch as if
from scratch
* We explicitly ignore the anim for end of recents animation
since that will cause the taskbar to quickly show and stash
again, and we know in this case that we'll quickly be launching
right back into an app

Test: Tested w/ live tile + non live,
fullscreen + app pairs
Bug: 316485863

Change-Id: I6ae8cccc01401935bf96fba8a154216e6b1ad701
(cherry picked from commit 637274ebc9)
Merged-In: I6ae8cccc01401935bf96fba8a154216e6b1ad701
2024-04-12 03:41:20 +00:00
Vinit Nayak 2c035792a8 [automerger skipped] Merge "Set camera icon as gray when app is unlaunchable" into 24D1-dev am: bddccbdc89 -s ours
am skip reason: Merged-In I64ae3db28293fa0adc249d700e9e03c074b6854f with SHA-1 a5e838d61c is already in history

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

Change-Id: I229c95f74b0999496464e600dc1bb37f97c1a15f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 03:40:22 +00:00
Jeremy Sim a587032262 [automerger skipped] Set camera icon as gray when app is unlaunchable am: 841e6c1e8e -s ours
am skip reason: Merged-In I64ae3db28293fa0adc249d700e9e03c074b6854f with SHA-1 a5e838d61c is already in history

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

Change-Id: I0ef7bb1236ecb1bdf86deb608c007ca7c8582ecb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 03:40:19 +00:00
Vinit Nayak 32700f81ec Add placeholder divider view when starting split tasks
* This prevents launcher underneath from peaking through
while the split apps are loading

Bug: 299640096
Test: Launched from recents, home and all apps
Doesn't seem to affect small screen since recents scrolls
away and the scrim is only left

Change-Id: I32e394a0bc361489473ee657161c8f3bcbf1e422
(cherry picked from commit cdaabc6199)
Merged-In: I32e394a0bc361489473ee657161c8f3bcbf1e422
2024-04-12 03:24:46 +00:00
Vinit Nayak bddccbdc89 Merge "Set camera icon as gray when app is unlaunchable" into 24D1-dev 2024-04-12 03:20:36 +00:00
Shan Huang 05b6d1fb7e Generate progress events from app process for app animations.
Bug: 261654570
Flag: None
Test: atest BackNavigationControllerTest
Test: atest OnBackInvokedCallbackGestureTest
Test: atest BackAnimationControllerTest
Test: atest BackTouchTrackerTest
Test: atest WindowOnBackInvokedDispatcherTest

Change-Id: I075c099d59012825583fd9beda29a33d00f4d077
2024-04-11 19:16:01 -07:00
Saumya Prakash 42ecab5c11 [automerger skipped] Merge "Adjust where the back button is rendered for new SUW requirements." into 24D1-dev am: f44e8e5feb -s ours
am skip reason: Merged-In I22680f40c0ddf7cd03ab1da69406eb14184b0174 with SHA-1 da26e19dd8 is already in history

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

Change-Id: I7eb4365eaf0d8c6d48bfdecc39a66e1cb20d9a08
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 00:34:06 +00:00
Saumya Prakash c95ace517f [automerger skipped] Adjust where the back button is rendered for new SUW requirements. am: afc6cfcd3b -s ours
am skip reason: Merged-In I22680f40c0ddf7cd03ab1da69406eb14184b0174 with SHA-1 da26e19dd8 is already in history

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

Change-Id: I448fd41512d6e9d52a485b50c6e2d36b3095edf9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 00:34:04 +00:00
Jeremy Sim a57f60f989 [automerger skipped] Prevent menu items from showing on split tasks am: 1ece740e7a -s ours
am skip reason: Merged-In I121a9c28fa7570f10e13be2de6489182e3362cfc with SHA-1 6a60c3b113 is already in history

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

Change-Id: I889c68de8f915d564316b0a85e76c6bade736d2b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 00:33:37 +00:00
Jeremy Sim 1a9783d318 [automerger skipped] Delete app pairs on model load if flag is turned off am: af645fe110 -s ours
am skip reason: Merged-In I4a97e4aadc620f8b727439fcdd70ab0e7a3005a8 with SHA-1 08fc2d434f is already in history

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

Change-Id: Ibb02a1398c72f84975459a203cf124b5b7ff82d9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 00:33:34 +00:00
Jeremy Sim 54117ad6da [automerger skipped] Fix bug where app pair title was not updating with language am: ee1fdb4abc -s ours
am skip reason: Merged-In I833e4f9766b7da8c0a3a5fb4b9fc050d8897437e with SHA-1 24284467b5 is already in history

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

Change-Id: I590e7819ca2a374dac7e8f29df31a15cb03807e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 00:33:32 +00:00
Saumya Prakash f44e8e5feb Merge "Adjust where the back button is rendered for new SUW requirements." into 24D1-dev 2024-04-12 00:22:02 +00:00
Jeremy Sim 841e6c1e8e Set camera icon as gray when app is unlaunchable
This CL is a follow-up to ag/26825455. Now that we are changing app pairs' disabled appearance back to icon-only, the case where a camera icon should be grayed out on an app pair on a small screen needs to be reinstated.

Fixes: 333137187
Flag: ACONFIG com.android.wm.shell.enable_app_pairs TRUNKFOOD
Test: Manual
Change-Id: I64ae3db28293fa0adc249d700e9e03c074b6854f
(cherry picked from commit a5e838d61c)
Merged-In: I64ae3db28293fa0adc249d700e9e03c074b6854f
2024-04-12 00:13:39 +00:00
Jeremy Sim f03dc2aed5 [automerger skipped] Fix launch flow when one app in an app pair is paused am: d2f256f179 -s ours
am skip reason: Merged-In Ieaf0120cced07b6ac0f3eb07c75b66666a8dcc85 with SHA-1 17db14b107 is already in history

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

Change-Id: Ib768f256eeecc92ae03898584b0562514f4f63bd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-11 23:56:16 +00:00
Jeremy Sim db967cbb16 Update to correct Material SurfaceContainer values am: 588a4abf4a
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/26860034

Change-Id: Ic979ae7698953e7c550b378fd827bcdda06e5c49
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-11 23:56:14 +00:00
Jeremy Sim 381266e1f4 [automerger skipped] Update app pair icon colors when switching containers am: f49807538b -s ours
am skip reason: Merged-In I615cb95d51f7c4c120ad306246d9491bf4452229 with SHA-1 05617cb11f is already in history

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

Change-Id: I453f226c7b3411673a631378bc17780e9edfd41a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-11 23:56:11 +00:00
fbaron a7825a70e8 Page resets when scrolling slowly fix
Fix: 324071635
Flag: NONE
Test: Verified manually on RTL and non-RTL
Change-Id: Id778a0a01505d30bca4f216322f3ef3b951e63a7
(cherry picked from commit cae498032f)
2024-04-11 23:47:44 +00:00
Jeremy Sim 1ece740e7a Prevent menu items from showing on split tasks
This CL changes the TaskShortcutFactory for SCREENSHOT and MODAL so that the associated menu options ("Screenshot" and "Select") don't show up on split tasks. These actions are not fully supported on splitscreen tiles (they will only work on one of the two apps), so we disable them.

Bug: 327434215
Flag: N/A
Test: Manual
Change-Id: I121a9c28fa7570f10e13be2de6489182e3362cfc
(cherry picked from commit 6a60c3b113)
Merged-In: I121a9c28fa7570f10e13be2de6489182e3362cfc
2024-04-11 23:41:42 +00:00
Jeremy Sim af645fe110 Delete app pairs on model load if flag is turned off
This CL adds a case to processFolderOrAppPair() -- if the ENABLE_APP_PAIRS flag is turned off, we do not load app pairs into launcher.

This prevents a case where a user uses backup+restore to migrate an app pair onto an environment where app pairs is disabled.

Fixes: 330412376
Flag: ACONFIG com.android.wm.shell.enable_app_pairs TRUNKFOOD
Test: Manual
Change-Id: I4a97e4aadc620f8b727439fcdd70ab0e7a3005a8
(cherry picked from commit 08fc2d434f)
Merged-In: I4a97e4aadc620f8b727439fcdd70ab0e7a3005a8
2024-04-11 23:39:10 +00:00