Commit Graph

76659 Commits

Author SHA1 Message Date
Xin Li 294dccb604 [automerger skipped] Merge Android 14 QPR3 to AOSP main am: f39ebbd606 -s ours am: db6763feca -s ours
am skip reason: Merged-In Ib58ffbc33000d37eb9066354f217c95ca56091ac with SHA-1 667b7f5d7a is already in history

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

Change-Id: I2089df7d0611ba93c5b3e5363f264579c56be81b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-18 05:55:19 +00:00
Mykola Podolian 490858bfba Merge "Added return before the animation is started." into main 2024-06-18 05:45:53 +00:00
Fengjiang Li 76b1669a48 Merge "[Launcher Jank] Avoid making binder call IContentService$Stub$Proxy.registerContentObserver from SettingsCache" into main 2024-06-18 03:17:52 +00:00
Riddle Hsu d76b06359f Merge "Let sender permission allow background launch when starting recents" into main 2024-06-18 01:48:41 +00:00
Liran Binyamin ad2f15c5b2 Merge "Implement new bubble animation when collapsed" into main 2024-06-18 00:16:08 +00:00
Shamali Patwa 0fb4cce4a7 Merge "Consider WidgetSections for suggestions in standalone picker" into main 2024-06-17 23:55:16 +00:00
Fengjiang Li 56bf7ad33b [Launcher Jank] Avoid making binder call IContentService$Stub$Proxy.registerContentObserver from SettingsCache
Fix: 347789110
Test: manual
Flag: NONE - jank fix
Change-Id: Ib1409d6c856439455aa08eeb0cfbc8075a222d45
2024-06-17 16:50:49 -07:00
Fengjiang Li 54fb3b6af7 Merge "Log stacktrace for binder call tracer" into main 2024-06-17 23:31:26 +00:00
Treehugger Robot a2fe67108f Merge "Update All Set screen background colors to match specs" into main 2024-06-17 22:16:41 +00:00
Fengjiang Li f1727ac69e Log stacktrace for binder call tracer
Fix: 347752352
Flag: NONE - gated by studio build config
Test: Manual - record picture
Change-Id: I72f8fe62858a231ca5c996d880227337dccdd7a7
2024-06-17 14:35:58 -07:00
Treehugger Robot 017aad5417 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-17 21:32:37 +00:00
Treehugger Robot b1eb420c9e Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-17 21:32:37 +00:00
Xin Li db6763feca [automerger skipped] Merge Android 14 QPR3 to AOSP main am: f39ebbd606 -s ours
am skip reason: Merged-In Ib58ffbc33000d37eb9066354f217c95ca56091ac with SHA-1 667b7f5d7a is already in history

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

Change-Id: Ibda235d26fb29f10bba70f9566cf7c76a847695f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-17 20:41:12 +00:00
Jagrut Desai 18087d8b6f Merge "Add orientation logic to taskbar icon specs" into main 2024-06-17 20:28:33 +00:00
Liran Binyamin 9e15f07c1c Implement new bubble animation when collapsed
Bounce the bubble bar when a new bubble is received while the bubble
bar is collapsed.

Demo: http://recall/-/bJtug1HhvXkkeA4MQvIaiP/fn7NWNY3htuR6K3wxhfcK2

Flag: com.android.wm.shell.enable_bubble_bar
Bug: 280605790
Test: atest BubbleBarViewAnimatorTest
Change-Id: I4c622454fd99f6bb5a332b3fe4aa2764c8af93af
2024-06-17 16:24:59 -04:00
Shamali P 77e42868da Consider WidgetSections for suggestions in standalone picker
This cl address the problem for standalone picker (follow up to match
ag/27720721) to ensure widgets that aren't in section of their owning
package didn't appear in suggestions

Bug: 345520128
Test: Unit tests
Flag: EXEMPT bugfix
Change-Id: Ia0ef96c5be77db56b84c76ace498125d07f4be42
2024-06-17 20:02:18 +00:00
Treehugger Robot 66d18b98dd [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: c44c004e1b -s ours
am skip reason: contains skip directive

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

Change-Id: Ie69438992cca7ecaa21e4095237770571ef0900c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-17 18:54:30 +00:00
Bill Yi fafb1a8129 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: d06eb8a29d -s ours
am skip reason: contains skip directive

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

Change-Id: Ib49d57bd2f3b56de57b1204dbfd2b63ff67ed1fe
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-17 18:54:26 +00:00
Bill Yi 835506e275 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 4645316a61 -s ours
am skip reason: contains skip directive

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

Change-Id: I6f31c1cefe9ab41596f1553fef9076ff4b7ce218
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-17 18:54:16 +00:00
Jagrut Desai 67b8de56ce Add orientation logic to taskbar icon specs
Test: Presubmit
Bug: 341146605
Flag: NONE Taskbar Customization
Change-Id: Ia86d61fd6ac38d03e45b23ea2a424a5b0b33c12b
2024-06-17 11:43:04 -07:00
Treehugger Robot 97e7166bc8 Merge "Fix icon flash on app launch" into main 2024-06-17 18:34:33 +00:00
Brian Isganitis 0e709b9a9d Merge "Add test for toggleSearch." into main 2024-06-17 18:25:17 +00:00
Treehugger Robot c44c004e1b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-06-17 18:23:53 +00:00
Riddle Hsu a37161182e Let sender permission allow background launch when starting recents
Currently the recents activity is started by a pending intent created
by launcher. And the sender is system server.
(HIERARCHY_OP_TYPE_PENDING_INTENT in WindowOrganizerController)

If the intent creator doesn't have visible windows, e.g. launcher is
occluded by its another embedded of another package, then the background
launch policy will check whether the intent sender is allowed. But
system server also doesn't have visible windows, which causes
BackgroundActivityStartController#
checkBackgroundActivityStartAllowedBySender to return BalVerdict.BLOCK.
Which will set MOVE_TO_FRONT_AVOID_PI_ONLY_CREATOR_ALLOWS to disallow
moving the target task to front.
See I72a6c22a5fb27aeac52a4e5d46c6a16e28ee6757 for the block policy.

Although currently the recents activity can still move to front because
some places miss to check blocking the launch. Then it is like just
using a security hole.

By adding the background launch permission hint to ActivityOptions,
BackgroundActivityStartController#hasBalPermission will check if the
real caller has permission START_ACTIVITIES_FROM_BACKGROUND. Then
it will pass because the intent sender is system server.

Bug: 341618283
Flag: EXEMPT bugfix
Test: atest NexusLauncherTests: \
            com.android.quickstep.TaskAnimationManagerTest
Test: Swipe to minus one screen. Click a news item to Launch chrome.
      Swipe from bottom to return to home. There should not have an
      error log:
      "Without Android 15 BAL hardening this activity would be moved
       to the foreground ... only the creator of the PendingIntent
       allows BAL. realCallingPackage: android.uid.system:1000 ..."
       (from ActivityStarter#logPIOnlyCreatorAllowsBAL)
Change-Id: I19153f6553c09421bca248d4ff9110d168b34f98
2024-06-17 17:52:16 +08:00
Bill Yi 4645316a61 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib223b1dc82ae646244e2f471f2e930af61e71686
2024-06-16 23:10:52 -07:00
Bill Yi 54da62f9f9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia28133416a47a1221d5e709281aee37b0e415042
2024-06-16 23:10:24 -07:00
Bill Yi d06eb8a29d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I560b082a24e4bb9331d45bec4d3352bf225b313e
2024-06-16 23:09:27 -07:00
Bill Yi b08ec848c4 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ifa72f8a78e474ba24eaea42a3163b87daae515bd
2024-06-16 23:09:01 -07:00
Fengjiang Li ff83f1c448 Merge "[Launcher Jank] Avoid making ContentResolver binder calls from GestureNavigationSettingsObserver" into main 2024-06-15 02:30:43 +00:00
Hongwei Wang 0d7108bdc8 Merge "Ignore the mismatched source rect hint" into main 2024-06-14 23:49:04 +00:00
Riddle Hsu 36fd537560 Send source rect hint to Shell via stopSwipePipToHome am: 2670871505
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27837995

Change-Id: Id0fb0d3b929531bc11a44f49cdadc91660779470
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 21:45:23 +00:00
Jagrut Desai c1bcdc0f5d Merge "Aconfig flag for taskbar customization." into main 2024-06-14 21:19:18 +00:00
Treehugger Robot 641d40e2a3 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-14 20:34:38 +00:00
Hongwei Wang 263932e729 Ignore the mismatched source rect hint
When the app provided source rect hint does not match the aspect ratio,
by a certain threshold, we ignore that and in turn apply content overlay
during the enter animation, to avoid size change at the end.

In button-navigation mode, some special logical's applied as to crop the
content to its shorter edge for this case, which is inconsistent and we
will address that later in a separate change set.

Video: http://recall/-/aaaaaabFQoRHlzixHdtY/d4kLspMrqb7Xsc2JtkTW0m
Flag: NONE bug fix
Bug: 338616637
Test: Enter PiP from zoomed and non-zoomed video
Change-Id: I5059553cb9b6c02810e9638bfaf29dde9ab6140f
2024-06-14 13:27:06 -07:00
Schneider Victor-tulias 9fb1f80435 Fix icon flash on app launch
Flag: com.android.launcher3.enable_additional_home_animations
Fixes: 343051344
Test: temp logs, launched apps from home, quickly swiped home while quick switching
Change-Id: I91071d53f753eb7bc99305c46241de203bcfdc98
2024-06-14 15:27:36 -04:00
mpodolian ccd4b7efdd Added return before the animation is started.
Added return statement if flag is set to false.

Bug: 335575529
Flag: com.android.wm.shell.animate_bubble_size_change
Test: BubbleBarViewAnimatorTest
Change-Id: I21aaee7b802ace87f68ba6ae84565f925010d673
2024-06-14 19:37:25 +01:00
Ats Jenk e095945bf1 Merge "Check the feature flag before showing bubbles shortcut widget" into main 2024-06-14 18:14:31 +00:00
Schneider Victor-tulias 8780fd3bbc Update All Set screen background colors to match specs
Flag: NONE fully released, color update
Fixes: 345702208
Fixes: 322080618
Test: Launched All Set screen
Change-Id: I432f5d686ffb714bdccb3881d948242661191a0d
2024-06-14 17:50:00 +00:00
Jagrut Desai fbd93ef907 Aconfig flag for taskbar customization.
Test: Presubmit
Bug: 347281365
Flag: com.android.launcher3.enable_taskbar_customization

Change-Id: I5a3959a8ca956329faa2df5d6bda297934e1ba62
2024-06-14 10:41:06 -07:00
Jagrut Desai 55d101d15f Merge "Util classes for the Taskbar Customization Framework" into main 2024-06-14 17:25:39 +00:00
Uwais Ashraf d239b0d5ea Merge "Refresh overlay on new snapshot taken even if an old snapshot exists" into main 2024-06-14 10:00:11 +00:00
Mykola Podolian be4e591fac Merge "Animate bubble bar icon sizes and padding" into main 2024-06-14 03:39:10 +00:00
Riddle Hsu 2670871505 Send source rect hint to Shell via stopSwipePipToHome
Launcher has calculated it, so shell side can use it directly to
avoid inconsistency.

Bug: 331315278
Test: Assume the target app support auto-pip and it doesn't draw
      under display cutout.
      E.g. LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
      Enter PiP from 90 degrees to home with 0 degrees.
      The left side of pip should not flicker.
Change-Id: Id09efc8a30eeef14a031d9db2ab1e00b6f3034bc
2024-06-14 02:27:57 +00:00
Schneider Victor-tulias 788f754ca6 Exclude home and recents activity types when overriding recents-excluded tasks am: ac8e132f2d
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/27829315

Change-Id: I86e439af86cc4644db5d86ac30d52db92dc5b6ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-06-14 02:07:59 +00:00
Anushree Ganjam c8ecd62615 Merge "Use BySelector to search for text in search results." into main 2024-06-14 01:46:13 +00:00
Sebastián Franco aaee1ef060 Merge "If the app is archived, do not remove in case of playstore install error" into main 2024-06-14 00:50:39 +00:00
mpodolian 563c2101cf Animate bubble bar icon sizes and padding
Added animation for the updates of bubble bar icon sizes and padding

Fixes: 335575529
Flag: com.android.wm.shell.enable_bubble_bar DEVELOPMENT
Test: BubbleBarViewAnimatorTest
Change-Id: I07d66b3a9d565f4fa6040c3c4bf4866e4d81a3a6
2024-06-14 01:25:05 +01:00
Jeremy Sim f37142f43e Merge "Fix flickering issues with divider during split animation" into main 2024-06-14 00:03:34 +00:00
Anushree Ganjam 4d404d9f8b Use BySelector to search for text in search results.
Verify the text after it's collected. I ran the test 20 times and
couldn't find the stale object exception being thrown.

Bug: 340341450
Bug: 339737008
Test: Manual
Flag: com.google.android.apps.nexuslauncher.enable_inject_private_space_tile

Change-Id: Ib153205db36cdd8b5fba4734b8b68930857659ff
2024-06-13 15:56:25 -07:00
Jeremy Sim 91fb2f2e5e Fix flickering issues with divider during split animation
This CL makes changes to the "split divider placeholder view", which was intended to cover up the backdrop a little during the split confirm animation. The placeholder view is now larger (fullscreen) and fades in with the animation movement, so there is no longer a period of time when it looks like an awkward rectangle.

New timings and interpolators confirmed with UX. Also renamed some variables and added comments for clarity.

Fixes: 344573331
Test: Manually verified that the visual bug no longer happens on large and small screen, and from desktop and Overview.
Flag: EXEMPT bugfix
Change-Id: I3b37f2b0478035d7a3181ae7c23962fe75a13b2c
2024-06-13 15:26:55 -07:00