Commit Graph

83004 Commits

Author SHA1 Message Date
Brian Isganitis fd1cc12054 Merge changes I2b87ab88,I939d8202,Ibedd8cae into main
* changes:
  Introduce rule for changing taskbar pinning preferences.
  Reinject controllers when Taskbar recreates itself.
  Inline showTaskbarFromBroadcast.
2024-07-13 19:01:33 +00:00
Hongwei Wang a531da0b85 Merge "Revert "Disable gesture nav while PiP anim is running"" into main 2024-07-13 08:16:44 +00:00
Android Build Coastguard Worker b6725f8f02 Snap for 12085179 from fa096a77f6 to 24Q4-release
Change-Id: I123459e30fa0838bb981c03dde44f9920346f5f4
2024-07-13 01:21:09 +00:00
Treehugger Robot 41d50792f4 Merge "Clamp scrim progress for slow taskbar animation duration to max 1f" into main 2024-07-12 23:29:56 +00:00
Brian Isganitis 803c85ac21 Introduce rule for changing taskbar pinning preferences.
Test: TaskbarPinningPreferenceRuleTest
Bug: 230027385
Flag: TEST_ONLY
Change-Id: I2b87ab8823b17c364b3797a325c8b0d569a1d39a
2024-07-12 18:04:17 -04:00
Brian Isganitis c79c2fd28d Reinject controllers when Taskbar recreates itself.
Test: TaskbarUnitTestRuleTest
Bug: 230027385
Flag: TEST_ONLY
Change-Id: I939d820271ba7e5426303ac4662d1d621d86c08b
2024-07-12 18:04:17 -04:00
Ikram Gabiyev fa096a77f6 Merge "Allow extra pixel for app bounds containment PiP" into main 2024-07-12 21:29:16 +00:00
Treehugger Robot 11a4756728 Merge "Resolve aconfig flag deps for Launcher" into main 2024-07-12 20:53:05 +00:00
Brian Isganitis 1a03740ebd Inline showTaskbarFromBroadcast.
Feels like it should be the activities' responsibility to coordinate the EDU with stashing. All of these methods are also public to TaskbarActivityContext.

Test: Compiles
Bug: 346394503
Flag: EXEMPT refactor
Change-Id: Ibedd8caec59da3b3a14c15d0c948bf1069ca3c6c
2024-07-12 16:00:50 -04:00
Ikram Gabiyev 402a96f588 Allow extra pixel for app bounds containment PiP
Allow an extra one pixel delta on each side of the
app bounds for source-rect-hint containment checks
when swiping to enter PiP.

Bug: 349821386
Flag: EXEMPT bugfix
Test: swipe PiP to home with 21:9 video from landscape to portrait
Change-Id: Ibc53e426b49cfcd58e977433358b9980732ac289
2024-07-12 10:46:16 -07:00
Liran Binyamin b67d4cc134 Merge "Fix regression in bubble animation" into main 2024-07-12 17:01:30 +00:00
Schneider Victor-tulias 25ff85efdc Merge "Add temporary debug logs to OtherActivityInputConsumer" into main 2024-07-12 16:57:31 +00:00
samcackett 0337520c7f Maintain if any task has been dismissed in RecentsView state
Fixes an issue in large screen layouts where the task order was
incorrectly being recalculated and the user would see their previous
tasks swap places.

Fix: 352308373
Test: Manual. In tablet view, open several apps, go to Overview, dismiss
 a task so the top row order changes, then swipe down the current
 focused task to resume. Observe order stays the same.
Flag: EXEMPT bugfix
Change-Id: Ic59e3125f69d36ba32d13436dba872f4d3a3d0df
2024-07-12 17:45:37 +01:00
Sebastián Franco 535267a00d Merge "Promote test testAddDeleteShortcutOnHotseat" into main 2024-07-12 16:03:17 +00:00
Liran Binyamin ef08582d36 Fix regression in bubble animation
This was a bug introduced in ag/28230638. Accidentally passed the
wrong boolean value. The bug is that the initial state animation
does not play, and the bubble bar remains invisible.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 352119655
Fixes: 352412093
Test: manual
       - Clear all bubbles
       - Send initial bubble
       - Observe that the initial state animation plays correctly
Change-Id: Ie1435539e348c0a92a11db0b58a0b3bce6525cc0
2024-07-12 15:55:36 +00:00
Schneider Victor-tulias f67d384f86 Merge "Revert^2 "Add CUJ instrumentation for KQS"" into main 2024-07-12 14:59:45 +00:00
Alex Chau e74d34673b Merge "Perform state switch to Overview from -1 screen" into main 2024-07-12 10:08:41 +00:00
Android Build Coastguard Worker 9898ac4b5f Merge cherrypicks of ['googleplex-android-review.googlesource.com/28231687', 'googleplex-android-review.googlesource.com/28240994'] into 24Q3-release.
Change-Id: I01869591a2667594683184770641529b09bcd80c
2024-07-12 04:04:10 +00:00
Bill Yi f061e8b26d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import

Bug: 347053373
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:4bafcb8b1dd8d982eaa39c50ad0008539866ba5e)
Merged-In: Ia4bc42b575811c5371e2a6a84c5b83e65f36b01c
Change-Id: Ia4bc42b575811c5371e2a6a84c5b83e65f36b01c
2024-07-12 03:52:41 +00:00
Alex Chau 912edc94a1 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
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:c378e64b757dbb83b6024be462a6752bc6a2c5f2)
Merged-In: Ifb78c1bcd3ca215a5d214f986a107d0988bff13b
Change-Id: Ifb78c1bcd3ca215a5d214f986a107d0988bff13b
2024-07-12 03:52:35 +00:00
Sebastian Franco e84cdcc468 Promote test testAddDeleteShortcutOnHotseat
Flag: TEST_ONLY
Test: testAddDeleteShortcutOnHotseat
Bug: 338869019
Change-Id: Ib3dd4fec0e8e6b4ac9e4233172197b557890ab15
2024-07-11 17:56:44 -07:00
Android Build Coastguard Worker 0d6e7a8794 Merge cherrypicks of ['googleplex-android-review.googlesource.com/28274842'] into 24Q4-release.
Change-Id: Ia0021d7fd36e0e240c657f4f2c252b1aa88d6678
2024-07-12 00:36:06 +00:00
Hongwei Wang 3223e7e817 Revert "Disable gesture nav while PiP anim is running"
Revert submission 28059459-disable-gesture-on-pip-animation

Reason for revert: b/352475079
Reverted changes: /q/submissionid:28059459-disable-gesture-on-pip-animation
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8eafa16ecc9c80bb42cdb03c994e12c91d28ddff)
Merged-In: I83f28fb74277b7d2ddefed0efaf784c2848c811d
Change-Id: I83f28fb74277b7d2ddefed0efaf784c2848c811d
2024-07-12 00:35:31 +00:00
Jared Duke 1222dd753c Resolve aconfig flag deps for Launcher
Only link in framework-declarared aconfig flags for targets that *don't*
reference platform APIs. Targets that do reference platform APIs will
inherit the framework-defined implementation, avoiding runtime classpath
collisions.

Bug: 352519114
Test: m + presubmit
Flag: EXEMPT refactor
Change-Id: I297a3c7929f41b065cc8b9c00d39dfd6ab831c96
2024-07-12 00:05:47 +00:00
Android Build Coastguard Worker ab68984e63 Snap for 12078078 from 01b577432a to 24Q4-release
Change-Id: I7dcaf5c208a4e559f35f4d6f2889afed445a7e08
2024-07-11 23:21:29 +00:00
Vinit Nayak f92a34ff43 Clamp scrim progress for slow taskbar animation duration to max 1f
* Overview to workspace taskbar animation changed duration, and
with the new longer duration we no longer need to speed up the
scrim animation.
* The new longer duration was actually slowing down the scrim
interpolator

Fixes: 351911299
Test: Tested on small and large screen.
Tested w/ the flag off and there is a flicker, but that was
present without these changes as well
Flag: EXEMPT bugfix

Change-Id: I5dc219de541f3c2fb29a5a91a4770b0dece0259e
2024-07-11 15:48:25 -07:00
Brandon Dayauon cbadaa6d08 Merge "Update workEDU background color to scHighest" into main 2024-07-11 22:39:08 +00:00
Treehugger Robot 21b2215968 Merge "Add debug logs to print stack trace for Private space flaky test." into main 2024-07-11 21:48:41 +00:00
Saumya Prakash 267a703ca6 Merge "Replace Lottie animations for All Set page at the end of SUW" into main 2024-07-11 21:26:47 +00:00
Android Build Coastguard Worker a5baa78d64 Merge cherrypicks of ['googleplex-android-review.googlesource.com/28274842'] into 24Q4-release.
Change-Id: I2b6f1d5b2ca8d36517c07b10d932f805a881a125
2024-07-11 21:12:08 +00:00
Hongwei Wang f3b557401a Revert "Disable gesture nav while PiP anim is running"
Revert submission 28059459-disable-gesture-on-pip-animation

Reason for revert: b/352475079
Reverted changes: /q/submissionid:28059459-disable-gesture-on-pip-animation
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:8eafa16ecc9c80bb42cdb03c994e12c91d28ddff)
Merged-In: I83f28fb74277b7d2ddefed0efaf784c2848c811d
Change-Id: I83f28fb74277b7d2ddefed0efaf784c2848c811d
2024-07-11 21:11:43 +00:00
Fengjiang Li dd7471f3bf Merge "[Launcher Jank] Improve SimpleBroadcastReceiver.java" into main 2024-07-11 20:22:22 +00:00
Treehugger Robot 01b577432a Merge "Add screenrecord to testDragIconToPage2" into main 2024-07-11 19:27:59 +00:00
Hongwei Wang 8eafa16ecc Revert "Disable gesture nav while PiP anim is running"
Revert submission 28059459-disable-gesture-on-pip-animation

Reason for revert: b/352475079
Reverted changes: /q/submissionid:28059459-disable-gesture-on-pip-animation

Change-Id: I83f28fb74277b7d2ddefed0efaf784c2848c811d
2024-07-11 19:07:09 +00:00
Schneider Victor-tulias 2ba69c2d3e Add temporary debug logs to OtherActivityInputConsumer
Flag: EXEMPT debug logs
Bug: 339905514
Test: Swiped home from running apps and checked logs
Change-Id: Ib13c19df45edba2112afd9603caf5cb0e60fd1d0
2024-07-11 14:30:00 -04:00
Saumya Prakash c511412c08 Replace Lottie animations for All Set page at the end of SUW
This change updates the background lottie animations that play on the
final page of Setup Wizard, the All Set page. They needed to be updated
since their colors would sometimes get corrupted, which made it
difficult to read the text on screen.

Fix: 318455805
Test: Manually run Setup wizard with the maximum font size and display
size and ensure the animations display correctly for different devices.
Flag: EXEMPT bugfix

Change-Id: I8f30c8e547aa1d704b5be7ba355719643749e3e4
2024-07-11 18:13:15 +00:00
Fengjiang Li b87ad6f945 [Launcher Jank] Improve SimpleBroadcastReceiver.java
Bug: 348649441
Flag: NONE - jank fix
Test: manual - presubmit
Change-Id: I17bd7e4d7f0640522476e94edae691f983835f62
2024-07-11 11:12:29 -07:00
fbaron cf55a30dcf Add screenrecord to testDragIconToPage2
Flag: TEST_ONLY
Bug: 352130094
Test: TaplTwoPanelWorkspaceTest#testDragIconToPage2
Change-Id: I0358e4da22afc19a8d976d529c68f09529247ca7
2024-07-11 10:49:58 -07:00
Jordan Silva 51bb09324a Merge "Optimize build for Launcher3Quickstep, Launcher3Go and Launcher3QuickstepGo" into main 2024-07-11 17:48:58 +00:00
Brandon Dayauon 155f842636 Update workEDU background color to scHighest
bug: 342246204
Test: manually photos:
beforeDT: https://drive.google.com/file/d/14qJDNK2044KQXLLr3NgKMnxRcGysGcf3/view?usp=sharing
beforeLT: https://drive.google.com/file/d/1qwKBSUjGXtqY8PVep7ZT0FhABx2kFGFt/view?usp=sharing
afterLT: https://drive.google.com/file/d/1-rR-5x-vp0WUTlGV8rJMHiHnhQ07FfXC/view?usp=sharing
afterDT: https://drive.google.com/file/d/1szHqOSudhqEF4_AId9xD77YKTmGJt09n/view?usp=sharing
Flag: NONE Color change
Change-Id: I7d41581c613bd719515fcf491967327c989bf91b
2024-07-11 10:40:12 -07:00
Treehugger Robot 9ef16e5cd3 Merge "Fix NPE of BaseContainerInterface#calculateTaskSizeInternal" into main 2024-07-11 16:30:31 +00:00
Treehugger Robot 2d73c5ef1b Merge "Change drawing in TTV to use Views rather than Canvas" into main 2024-07-11 15:03:18 +00:00
Alex Chau 1cd3fe27f2 Perform state switch to Overview from -1 screen
- This fixed a regression caused by ag/27904180, where -1 is no longer considered `visibleLauncher`. -1 still have Launcher being top activity, and recents animation will always fail
- Added isInMinusOne in LauncherActivityInterface, and return Launcher in getVisibleLauncher for -1 case
- -1 should be the only case where Launcher is top activity, but is not started

Fix: 352254279
Test: Recents button from the following scenarios: Home, -1, apps, transparent apps, video from -1
Flag: EXEMPT bugfix
Change-Id: I0898d202b9dd4742c0c7d2c0d6b340c748e8acf7
2024-07-11 15:53:26 +01:00
Uwais Ashraf 7e7afac7c0 Change drawing in TTV to use Views rather than Canvas
Fix: 352332386
Test: Presubmit, Manual
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: Ia1b7b6dc3d093d431ce022e793f40e61cec38ac6
2024-07-11 13:19:21 +00:00
Shamali Patwa d16ea2650e Align predictive back in standalone picker activity
Bug: 346332606
Test: Manual
Flag: EXEMPT BUGFIX
Change-Id: I34882389029a5f095ab8d910791f7be34f7b8355
2024-07-11 13:03:55 +00:00
Treehugger Robot 1d73fdd4ac Merge "Add icon loading to TasksRepository" into main 2024-07-11 11:26:23 +00:00
Cosmin Băieș 33f8bfbadf Add IME switch button long click support
This adds support for handling long clicking on the IME switch button.
Initially it will behave exactly like short clicking, i.e. show the IME
switcher menu.

Flag: android.view.inputmethod.ime_switcher_revamp
Test: atest
  TaskbarNavButtonControllerTest#testPressImeSwitcher
  TaskbarNavButtonControllerTest#testLongPressImeSwitcher
Bug: 311791923
Change-Id: Ibd0d6bce2bab11511bc082f46731ec86038c8cf8
2024-07-11 11:42:16 +02:00
Uwais Ashraf b59d86112c Add icon loading to TasksRepository
Bug: 334826842
Test: TasksRepositoryTest
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I75f2e0e9aae4663993ca54742f653f4c7c04fdfe
2024-07-11 09:40:57 +00:00
Treehugger Robot d529345e0e Merge "[Launcher Jank] Add TODO for LauncherPreviewRenderer to set bg handler on smartspace BaseTemplateCard" into main 2024-07-11 08:51:29 +00:00
Johannes Gallmann 82f7b5ad44 Fix onUserInteraction not called with 3-button-nav and enableOnBackInvokedCallback=true
We should ignore KeyEvents with the FLAG_CANCELED flag in log analysis for Launcher tests as these KeyEvents should not have any effect.

Bug: 346943119
Flag: com.android.window.flags.predictive_back_system_anims
Test: atest BackNavigationTests
Test: atest OnBackInvokedCallbackGestureTest
Test: Manual, i.e. verifying in a test app that onUserInteraction is called when pressing back key in 3-button-nav and when enableOnBackInvokedCallback=true
Change-Id: Icff47009757c49cdd8998244dd3e9459cc6ee085
2024-07-11 08:25:13 +00:00