Commit Graph

83004 Commits

Author SHA1 Message Date
Johannes Gallmann 1cbfe6eb57 Merge "Use default cross-activity animation in Launcher Home Settings" into main 2024-07-11 07:02:49 +00:00
Andy Wickham 17533ace66 Invert the 2 stage LPNH logic to lower false positive triggers.
Previously, we would extend the touch slop and duration when the
standard gesture slop was passed. This would actually increase
mistriggers, because it effectively doubles the trigger slop
allowance. Additionally, it seemed to usually get aborted by
gesture nav, which takes over after the first slop is passed.

With this change, we instead break down the gesture nav slop in
half (customizable by a new config parameter). In the second half,
we double (still customizable - but expressed as a percentage to
give us more flexibility than just 2x, 3x, etc) the duration to
trigger. This means omnient will be cancelled more quickly when
starting any swipe gesture, but if the user continues to dwell in
the navbar region for an extended time, omnient will still trigger.

Bug: 334860966
Test: Manual with ENABLE_LPNH_TWO_STAGES on and logging with
adb shell setprop log.tag.NavHandleLongPress VERBOSE
Flag: EXEMPT legacy DeviceConfig ENABLE_LPNH_TWO_STAGES DISABLED

Change-Id: Ida5c8e19b414a2bf0008b78b7bf0e7d41d3ff609
2024-07-10 18:51:17 -07:00
Android Build Coastguard Worker c12759b749 Snap for 12072601 from 103191c589 to 24Q4-release
Change-Id: I29744b3b31ff4b3fa30d528c02781ef9463cb58e
2024-07-11 01:21:48 +00:00
Fengjiang Li eef1599c06 Fix NPE of BaseContainerInterface#calculateTaskSizeInternal
Fix: 351861547
Flag: NONE - Bug fix
Test: Presubmit
Change-Id: I984748a6c5487a946a96aa3e2183b5d13a370b6d
2024-07-10 14:43:15 -07:00
Anushree Ganjam f828683fa8 Add debug logs to print stack trace for Private space flaky test.
From the failure test videos, it looks like scrollToTop gets called https://b.corp.google.com/issues/339737008#comment15.

Bug: 339737008
Test: Manual
Flag: TEST_ONLY
Change-Id: I61a95ff45fa4409f8f1b243ac435002556a16677
2024-07-10 13:44:11 -07:00
Mykola Podolian 103191c589 Merge "Shadow for bubble icons fixed." into main 2024-07-10 19:38:23 +00:00
Sebastián Franco 6e43c6aadf Merge "Moving ReorderWidgetsTest to an integration test instead of E2E" into main 2024-07-10 18:28:08 +00:00
Federico Baron f30a5a3ca1 Merge "Revert "Add screenrecord/demote TwoPanelWokrspaceTest"" into main 2024-07-10 18:16:50 +00:00
Alex Chau 33da74f8c2 Merge "focusTransitionScaleAndDimOut should always go from 1f to 0f" into main 2024-07-10 16:41:03 +00:00
Federico Baron 89414e403c Revert "Add screenrecord/demote TwoPanelWokrspaceTest"
This reverts commit 09ac97fa39.

Reason for revert: fixed issue

Change-Id: I269fbcedc161ff340eaa17d6a37c18cba7ce0848
2024-07-10 16:40:05 +00:00
mpodolian a3921ddb67 Shadow for bubble icons fixed.
The bubble's outline was hardcoded with a fixed size. This caused a
shadow to be drawn using the hardcoded outline size, regardless of the
actual bubble view size. The BubbleView logic has been updated to use
the actual bubble size for the outline. The guarding flag has been
removed.

Bug: 340445019
Flag: com.android.wm.shell.enable_bubble_bar
Test: http://recall/-/gx8ASgewUeUS3QYohfrd1J/hqFtAZJnX0tCRONoFpSK3i
Change-Id: Iaa2c2d0bfeee2af9840acbcf11daaf8be2e0b7af
2024-07-10 16:36:22 +00:00
Liran Binyamin e29e31922f Merge "Fix squished hotseat due to bubbles" into main 2024-07-10 16:10:41 +00:00
Liran Binyamin bdd96de69a Send the bubble removal timestamp to wm shell
The removal and update of bubbles happen in different processes, so
it's possible for race conditions to allow users to remove bubbles
without knowing that an update exists.

Passing the removal timestamp allows wm shell to determine whether
the removal happened before or after the latest update was received
for the bubble. This largely mitigates the race but does not solve
it completely. Will file a separate bug to track that.

Flag: com.android.wm.shell.enable_bubble_bar
Bug: 351026092
Test: Manual
       - Note the issue here is a race condition so requires code
         changes to force repro it
       - Locally I added an artificial delay between the time the
       - bubble is removed and until the removal is sent to wmshell
       - Create bubbles and expand the bubble bar
       - Dismiss bubble by dragging it to dismiss
       - Send an update to the same bubble before removal is processed
         in wmshell
       - Verify bubble is added back
       - Verify bubble is not removed when the removal is processed
         in wmshell
Change-Id: I05ddc692fe30709125e380351b223d20a0778264
2024-07-10 11:40:54 -04:00
Jordan Silva 6a8d81a2fa Optimize build for Launcher3Quickstep, Launcher3Go and Launcher3QuickstepGo
This CL adds optimizations for Launcher3Quickstep builds by shrinking
unused resources.
- Enabled proguard for Launcher3QuickStep
- Launcher3Quickstep APK size reduced by -61%, 18.9Mb.
- Launcher3QuickstepGo and Launcher3Go APK size reduced by 6.5%, 872kb.

Fix: 346288630
Flag: EXEMPT Updating bp files to optimize the build
Test: Presubmit and Postsubmit builds
Change-Id: I6f8bdee7febbc125e14df3afe7bbd36ba57623f0
2024-07-10 15:14:09 +00:00
Schneider Victor-tulias a929c7ab75 Revert^2 "Add CUJ instrumentation for KQS"
0947d9f618

Change-Id: Ifc6f2ae8f447939f274fb6167cc74c0cd2e89652
2024-07-10 14:30:58 +00:00
Liran Binyamin 4cebffa209 Merge "Fix missing bubble update dot" into main 2024-07-10 14:23:16 +00:00
Liran Binyamin c79119e911 Merge "Fix bubble update animation" into main 2024-07-10 14:23:04 +00:00
Alex Chau c378e64b75 focusTransitionScaleAndDimOut should always go from 1f to 0f
- Also updated AnimatedFloat to accept a Consumer<Float>, so a lambda can be used as updateCallback with refernce to udpated value
- Also updated PendingAnimation to accept Animator with TimedInterpolator without specifying SpringProperty

Fix: 352195519
Test: manual
Flag: EXEMPT bugfix
Change-Id: Ifb78c1bcd3ca215a5d214f986a107d0988bff13b
2024-07-10 13:40:22 +01:00
Alex Chau 0ac34a3388 Add use case for split animation to retrieve thumbnail
Fix: 349120849
Test: TaskSplitAnimationHelperTest
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I7d4bcbdbeacd56356c71eb18c73ceef8446011d1
2024-07-10 09:37:33 +00:00
Sebastian Franco 224f67a046 Moving ReorderWidgetsTest to an integration test instead of E2E
Flag: TEST_ONLY
Test: IntegrationReorderWidgetsTest
Bug: 324261526
Fix: 343761044

Change-Id: I9bfe8b587e1024260ddeeb48157c3d204f2d58f2
2024-07-10 04:20:41 +00:00
Kevin Lim b89cd5e91a Merge "[AllAppsStore] Dump class name in addition to package name for debugging" into main 2024-07-10 00:02:12 +00:00
Android Build Coastguard Worker a2ea60c43b Snap for 12065372 from 25d19bdb85 to 24Q4-release
Change-Id: I665ae717854fe3c356a421d05b1bec2bf7ee79cc
2024-07-09 23:27:06 +00:00
Liana Kazanova 5de87a8908 Merge "Revert "Add CUJ instrumentation for KQS"" into main 2024-07-09 22:10:40 +00:00
Treehugger Robot 87ba51b611 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-07-09 22:10:14 +00:00
Treehugger Robot 80831d9adc Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-07-09 22:10:14 +00:00
Treehugger Robot 8bfaf55814 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-07-09 22:10:14 +00:00
Priyanka Advani 0947d9f618 Revert "Add CUJ instrumentation for KQS"
Revert submission 28049476-kqs-cuj-instrumentation

Reason for revert: Droidmonitor created revert due to b/352144322. Will be verifying through ABTD before submission.

Reverted changes: /q/submissionid:28049476-kqs-cuj-instrumentation

Change-Id: I8bfe7bfe4ce1bd816f138dbd4d5915f837ab97a0
2024-07-09 22:04:38 +00:00
Liran Binyamin e3eaacdcb2 Fix missing bubble update dot
Don't update the dot scale if the bubble bar is not collapsing or
expanding.

Flag: com.android.wm.shell.enable_bubble_bar
Bug: 351904597
Test: manual
       - Create 2 bubbles in the bubble bar
       - Select both bubbles to clear the dot
       - Launch an app to stash the bar
       - Send updates to both bubbles
       - Observe dot appears during each animation
       - Swipe up on the bubble bar
       - Observe dot disappears for the selected bubble but remains
         for the unselected bubble
Change-Id: I2cb6dd7ded261686ae73e497bd5d4841ebde35ef
2024-07-09 17:58:41 -04:00
Brandon Dayauon 197fbabf2c Merge "Make close button to use google symbol library icon and update close color button" into main 2024-07-09 21:53:49 +00:00
Treehugger Robot c16efda876 Merge "Re-promote fixed test openPrivateSpaceSettings_triggersCorrectIntent to presubmit" into main 2024-07-09 21:53:16 +00:00
Liran Binyamin e1d5ce2fda Merge "Dump some bubble data to dumpsys" into main 2024-07-09 21:41:46 +00:00
Liran Binyamin fef9d249bd Fix bubble update animation
Fix bubble update animation when the updated bubble is the only
bubble in the bar.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 352119655
Test: Manual:
       - Create 1 bubble in the bubble bar
       - Send an update for that bubble
       - Observe bubble bar is animated correctly
Change-Id: If569810dacf0ef77147a822c53ddebd09e35fe15
2024-07-09 16:47:36 -04:00
Fengjiang Li 6944c9e63f [Launcher Jank] Add TODO for LauncherPreviewRenderer to set bg handler on smartspace BaseTemplateCard
Fix: 347775522
Flag: NONE - performance change
Test: manual
Change-Id: I19ba67e1eabfe02c45909d85d723bc28a78ae6df
2024-07-09 13:38:32 -07:00
Treehugger Robot 25d19bdb85 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: 34d12a2d6d -s ours
am skip reason: contains skip directive

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

Change-Id: If7768daa9d9728534774d8b25bcb70e612ee1be7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 20:09:09 +00:00
Bill Yi c639d8398e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 59d8954a6c -s ours
am skip reason: contains skip directive

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

Change-Id: I873dd57cb5a6fa535794db5960325bdcbf136263
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 20:09:06 +00:00
Treehugger Robot 582dc5e96e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: 995791cde7 -s ours
am skip reason: contains skip directive

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

Change-Id: Id4f4548c12e8ecf39c9b18e5b32ea02cc166601c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 20:09:02 +00:00
Bill Yi c4055d2f26 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 16a7df47d3 -s ours
am skip reason: contains skip directive

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

Change-Id: I9d6468b1f4f8b603eaa1e8673e832b8167aeb282
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 20:08:58 +00:00
Bill Yi 701bf344b6 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b4896bfd76 -s ours
am skip reason: contains skip directive

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

Change-Id: I93a5d6e4707ec43cfa3ba71bc9cbffbf084a9f7f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-07-09 20:08:47 +00:00
Treehugger Robot 580fc6d747 Merge "Show full page view if categorized view is low density in large screen" into main 2024-07-09 20:05:04 +00:00
Liran Binyamin a7a5617466 Merge "Fix bubble translation x when bar is collapsed" into main 2024-07-09 19:54:05 +00:00
Brandon Dayauon 1a18fb83b3 Merge "Adding logs to baseAllAppsAdapter to investigate private space icon alpha issue." into main 2024-07-09 19:52:44 +00:00
Treehugger Robot 34d12a2d6d Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-07-09 19:50:29 +00:00
Treehugger Robot 995791cde7 Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-07-09 19:50:29 +00:00
Federico Baron 07acdf105c Merge "Increase spring loaded hover time for tests since we switch pages too quickly leading to flakiness" into main 2024-07-09 19:39:57 +00:00
Treehugger Robot 6f7be465c0 Merge "Taskbar running apps: show one icon per task + tap opens that task" into main 2024-07-09 19:01:02 +00:00
Shamali P 81fc278760 Show full page view if categorized view is low density in large screen
UX prefers full page view over low density categorized view in tablets.

Bug: 347288847
Test: Screenshot (see the tablet screenshots vs foldable)
Flag: EXEMPT BUGFIX
Change-Id: I6c8ad36dc6169c65aea4e655af0542958e555669
2024-07-09 18:27:21 +00:00
Winson Chung b5522f0564 Merge "Workaround for crash with null icon drawable" into main 2024-07-09 17:42:28 +00:00
Liran Binyamin 0f08377436 Fix bubble translation x when bar is collapsed
Previously the translation x value for bubbles when the bar is
collapsed and on the right was 0 for the first bubble and some
fixed value for the rest of the bubbles. But if only 1 bubble
is visible when the bar is collapsed, as in the case when there
is only 1 bubble and the overflow, this ends up pushing the
overflow too far to the right.

This change updates the translation x value for bubbles when the
bar is collapsed and on the right, so that if only 1 bubble is
visible when collapsed, all bubbles have tx 0, otherwise if 2
bubbles are visible, the first has tx 0 and the rest have the same
tx value.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 350962159
Test: manual
       - Add 1 bubble to the bubble bar
       - Make sure bubble bar is on the right
       - Expand and collapse the bar
       - Observe the overflow tx value is correct during the animation
Change-Id: I8401d70fa6f374ace58d9cdbe3302e39e7aedc70
2024-07-09 13:10:12 -04:00
Federico Baron 44faf4cc9e Merge "Add screenrecord to TaplThemeIconsTest#testShortcutIconWithTheme" into main 2024-07-09 17:09:46 +00:00
Schneider Victor-tulias d0811445d4 Merge "Add CUJ instrumentation for KQS" into main 2024-07-09 17:07:42 +00:00