Commit Graph

19970 Commits

Author SHA1 Message Date
Jordan Silva
ebfae18529 Refactoring OverviewCommandHelper (2/3)
This CL should not affect the behavior of OverviewCommandHelper.
- It splits executeCommand into smaller functions
- Rearrange public/private functions
- Adds extra logs.

Bug: 352046797
Bug: 351122926
Flag: EXEMPT bugfix.
Test: Manual.
Change-Id: I283f179794af812973a559db6291febe19e3c6d7
2024-08-30 12:30:54 +01:00
Jordan Silva
e7ae4e31ae Refactoring OverviewCommandHelper (1/3)
- Updates pendingCommands to be a ConcurrentLinkedDeque and make the list safe across multiple threads.
- Introduces CommandStatus to clear only IDLE and COMPLETED commands.
- Adds CommandType enum to prevent adding an invalid command value into the queue and having an unexpected behavior.
- Log messages improved

Bug: 352046797
Bug: 351122926
Flag: EXEMPT bugfix.
Test: Manual.
Change-Id: I80705dca0be579e62cb9e2bd923808dd33c4d633
2024-08-28 17:09:29 +01:00
Treehugger Robot
4fd9449d64 Merge "Convert DigitalWellBeingToast to Kotlin" into main 2024-08-28 12:22:03 +00:00
Pat Manning
632444a266 Merge "Add 4dp vertical offset to taskbar hover tooltip." into main 2024-08-28 11:07:25 +00:00
Alex Chau
141a4c9857 Convert DigitalWellBeingToast to Kotlin
Bug: DigitalWellBeingToast
Test: manual
Flag: EXEMPT refactor
Change-Id: I9998269b32e89725e311c3ca88e924a55c196412
2024-08-28 11:46:15 +01:00
Treehugger Robot
989ee1262b Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-08-28 02:48:37 +00:00
Tracy Zhou
59a4dfdcd8 Merge "Skip taskbar animations from launcher state changes in phone mode" into main 2024-08-28 00:19:54 +00:00
Treehugger Robot
4503c2c60c Merge "Polish transition between desktop mode and overview" into main 2024-08-27 23:57:21 +00:00
Tracy Zhou
65eaea39cc Merge "Skip animating stashed handle color based on color sampling if it's the same" into main 2024-08-27 18:41:43 +00:00
Schneider Victor-tulias
51433debcd Polish transition between desktop mode and overview
Fixing desktop task in place along the x-axis and animating its background's alpha to more smoothly handle the transition.

Flag: com.android.launcher3.enable_desktop_task_alpha_animation
Fixes: 320307666
Test: swiped to and from desktop mode and overview
Change-Id: I38d62d0c966733f96c2f4d4ecfa4a9418039fd48
2024-08-27 18:15:06 +00:00
Tracy Zhou
111d05c913 Skip taskbar animations from launcher state changes in phone mode
Based on https://b.corp.google.com/issues/361593564#comment4

Bug: 361593564
Test: manual
Flag: EXEMPT bugfix
Change-Id: I93d1cfc3b0eaec6b9496d13acc14d20c4de6d3b1
2024-08-27 09:33:05 -07:00
Sebastián Franco
dd981d78b5 Merge "Adding logs to find which call is responsible for the animation error" into main 2024-08-27 16:28:09 +00:00
Pat Manning
fd2f14c845 Add 4dp vertical offset to taskbar hover tooltip.
Bug: 356352494
Test: TaskbarHoverToolTipControllerTest
Flag: EXEMPT bugfix
Change-Id: Iba546b009abcd6a30abc60349961028f27d2bf26
2024-08-27 15:33:35 +01:00
Treehugger Robot
565f7e73b5 Merge "Convert OverviewCommandHelper to Kotlin" into main 2024-08-27 12:54:04 +00:00
Bill Yi
05ea1f752e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I7afdcb2bca36df6f83a871c4eb0d2c33f8949450
2024-08-27 00:21:28 -07:00
Tracy Zhou
9146984e69 Merge "Only call notifyUpdateLayoutParams when the params is changed" into main 2024-08-27 02:31:15 +00:00
Sebastian Franco
7f9518145a Adding logs to find which call is responsible for the animation error
Bug: 311077782
Test: not aplicable
FLag: EXEMPT bugfix
Change-Id: I2d5a28a8244819a795402fdcf599009ad1abd0dc
2024-08-26 17:08:01 -07:00
Bryce Lee
4d2091e8f0 Merge "Show Taskbar when Glanceable Hub is showing." into main 2024-08-26 21:50:18 +00:00
Treehugger Robot
cc22b62109 Merge "Recreate icon alignment controller when isIconAlignedWithHotseat changes." into main 2024-08-26 19:10:31 +00:00
Jon Miranda
f9e46eaa15 Recreate icon alignment controller when isIconAlignedWithHotseat changes.
Before: when launching an app and immediately swiping home, the icon alignment
animation would become stale, which lead us to playing the wrong interpolator
for the action key alpha animator.

Fixes: 359579152
Test: open app, then immediately swipe home
Flag: EXEMPT bugfix
Change-Id: Ief08bd0fcb9fdc60efd0b8dd0821c1122cfa6f4f
2024-08-26 17:24:46 +00:00
Winson Chung
e584fb3b31 Merge "Fix regression in ending recents transition while locked" into main 2024-08-26 16:12:18 +00:00
Mykola Podolian
d56fb26f84 Merge "Fixed issue with the bottom zone of launcher is not touchable." into main 2024-08-26 15:43:39 +00:00
Liran Binyamin
9720472a8a Merge "Revert^2 "Synchronize bar expansion with WM Shell"" into main 2024-08-26 11:29:31 +00:00
Liran Binyamin
b0801dcc3c Merge "Update both width and height in BubbleBarView" into main 2024-08-26 11:28:19 +00:00
Luca Zuccarini
6bf20cd965 Merge "2/3 Move some Shell utils to the Shared package." into main 2024-08-26 10:07:55 +00:00
Winson Chung
6d1dcc2b4e Fix regression in ending recents transition while locked
- Prior to ag/28807475 we would not finish the recents transition
  when ending to home while the device is locked, so we need to
  continue to skip that now.

Flag: EXEMPT bugfix
Bug: 361950809
Bug: 359608026
Test: Lock the device, open camera and swipe up
Change-Id: I66ba065ebd0084ecd51ea803e88e31bf8acbfdcb
2024-08-25 20:45:03 +00:00
Tracy Zhou
81fe9da956 Skip animating stashed handle color based on color sampling if it's the same
Based on https://b.corp.google.com/issues/361593564#comment4

Bug: 361593564
Test: manual
Flag: EXEMPT bugfix
Change-Id: I56251a5971c34415084b3b9ff773f5ddb5f40de7
2024-08-23 21:12:25 -07:00
Tracy Zhou
e5be9281c5 Only call notifyUpdateLayoutParams when the params is changed
Bug: 361405157
Test: manual
Flag: com.android.wm.shell.enable_taskbar_on_phones
Change-Id: Ieddcfbc8a8deea9415fe9815926e5fa5552b4be3
2024-08-24 03:10:42 +00:00
mpodolian
dcd76d56c7 Fixed issue with the bottom zone of launcher is not touchable.
Updated logic of the touch area configuration. Only add the taskbar
bounds if the taskbar is being shown inside the app or on overview.

Fixes: 358301278
Fixes: 361653416
Test: Manual:
http: //recall/-/gx8ASgewUeUS3QYohfrd1J/lpzJER3iGI5PpZrQqv7b7
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: Id9902058c5ec873dab6257a34b4c3a87aec5ae6b
2024-08-23 16:43:37 -07:00
Vinit Nayak
8f53b7be9f Merge "Move CUJ trace start closer to AppPair launch animation" into main 2024-08-23 22:44:49 +00:00
Bryce Lee
6668ab9cab Show Taskbar when Glanceable Hub is showing.
This changelist ensures that the Taskbar is not hidden when the
Glanceable Hub is showing. Logic for hiding the Taskbar when dreaming
was suppressing it from showing when Glanceable Hub was present. The
surrounding condition has been updated to now not trigger is Glanceable
Hub is showing.

Test: manual - verified Taskbar was properly displayed and hidden
      between glanceable hub and dreaming.
Flag: EXEMPT bugfix
Fixes: 353803584
Change-Id: I58a61617baff65041757ae0df96687a071120880
2024-08-23 13:31:09 -07:00
Vinit Nayak
71255b93f4 Move CUJ trace start closer to AppPair launch animation
Fixes: 361501841
Test: Logged CUJ and ensuring it gets hits when anim starts
Flag: EXEMPT bugfix
Change-Id: Ifecd2ccd21bf40a69fecad0c9634d122c058f059
2024-08-23 11:44:14 -07:00
Jordan Silva
7775a4da34 Convert OverviewCommandHelper to Kotlin
This CL converts OverviewCommandHelper to kotlin prior to a refactoring CL and improvements in how the command queue is handled.

Bug: 352046797
Bug: 351122926
Flag: EXEMPT bugfix.
Test: Manual. Class conversion without behaviour changes.
Change-Id: I7edda0a5326ad2047546434214e048a5989124a4
2024-08-23 15:49:26 +01:00
Alex Chau
24e03825cd Fix wrong condition used to calculate clearAllShortTotalTranslation
- We now calcualte the first task's start position, and compared against the expected position (mLastComputedTaskSize) to determine if we need extra translation for ClearAllButton
- The calculation is done with `mIsRtl = true`, and only only flip +/- when applying translation
- http://screen/brM3taew74Z3uZJ shows what happens without clearAllShortTotalTranslation:
  - Blue area is mLastComputedGridSize, green area is longRowWidth
  - firstTaskStart is caculated from left of grid size, adding longRowWidth
  - Red area is mLastComputedTaskSize, where focus task is in the middle (for grid-only-overview it's in top right)
  - clearAllShortTotalWidthTranslation is the yellow area

Fix: 354104098
Test: With normal/largest display size, LTR/RTL, focus task /grid only Overview, swipe up with 1/2/6/7 tasks
Flag: EXEMPT BUG_FIX
Change-Id: I324eebc0a2b2129a4ba62d4569bc555b74140c21
2024-08-23 12:03:40 +01:00
Tony Wickham
3a47759619 Merge "Fix Taskbar being visible over Hotseat when recreated in Overview" into main 2024-08-22 18:51:55 +00:00
Tony Wickham
39d0107ef2 Merge "Animate away Recent Apps section when going to home" into main 2024-08-22 18:45:08 +00:00
Alex Chau
11290775f4 Merge "Refresh runningTaskView's thumbnail after setting shouldShowScreenshot to true" into main 2024-08-22 15:17:35 +00:00
Jordan Silva
e7c300f8f5 Merge "Fix condition when should focus on running task" into main 2024-08-22 10:32:50 +00:00
Alex Chau
eececf272e Merge "Reset mTopRowIdSet in applyLoadPlan" into main 2024-08-22 09:49:27 +00:00
Uwais Ashraf
37752f5e19 Merge changes I31d9a51e,I1bc14be7 into main
* changes:
  Prevent requestLayout() when updating drawables that don't change size
  Fix splash icon size to 52dp
2024-08-22 09:13:41 +00:00
Jordan Silva
4fb37a8ffa Fix condition when should focus on running task
Bug: 353947137
Fix: 353947516
Fix: 353947467
Fix: 353947334
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Test: OverviewDesktopTaskImageTest
Change-Id: I6210335333163ba70c228215e01889c0d13ec896
2024-08-22 09:50:52 +01:00
Tony Wickham
79f3cefae2 Animate away Recent Apps section when going to home
Also fix calculation for divider position during this transition
when there are recent apps. Added tests as well.

Flag: com.android.launcher3.enable_recents_in_taskbar
Flag: com.android.window.flags.enable_desktop_windowing_taskbar_running_apps
Test: TaskbarViewControllerTest
Bug: 343522351

Change-Id: Ifffd620c1d4c156b37561584d6e3278b39804439
2024-08-21 22:48:06 +00:00
Tony Wickham
5c32af7e5b Fix Taskbar being visible over Hotseat when recreated in Overview
Debugging locally, it seems there were a couple of state changes
and the last one (which is correct) was getting clobbered by a
previously destroyed instance of TaskbarLauncherStateController.
Fixed this by updating the isDestroyed() call which previously
only checked TaskbarActivityContext to now check
TaskbarLauncherStateController's destroyed state directly. This
is needed because TaskbarLauncherStateController is part of
LauncherTaskbarUIController which can be destroyed independently
of the other Taskbar controllers when Launcher is destroyed.

Also fix a debug log that was not updated long ago in ag/21122190

Flag: EXEMPT bugfix
Test: Go to overview, change Font Scale or Dark Theme from Quick
settings, ensure Taskbar is not visible over Hotseat
Fixes: 302923055

Change-Id: I1299462955b51a2bf931f022177045b1cec039c5
2024-08-21 21:43:54 +00:00
Treehugger Robot
97b4046b39 Merge "Add animation for the predicted icon ring Animation is modeled after the notification dot animation." into main 2024-08-21 21:25:54 +00:00
Alex Chau
1ca8471ae5 Refresh runningTaskView's thumbnail after setting shouldShowScreenshot to true
- TaskThumbnailViewDeprecated won't redraw automatically unless refresh() is called

Fix: 346696742
Test: Invoke Omnient or Screenshot hardware button on live tile, verify running task switches to screenshot after overlay closes
Test: Select/Screenshot swithces to screenshot normally
Flag: EXEMPT BUG_FIX
Change-Id: I678fb155bd577afbacfde7233956ce6cfa5e569d
2024-08-21 21:39:48 +01:00
Jagrut Desai
bb92ca0855 Merge "Do not register Taskbar System Action when device is in phone mode" into main 2024-08-21 20:31:26 +00:00
Luca Zuccarini
c1f0506da0 2/3 Move some Shell utils to the Shared package.
Bug: 322791067
Flag: EXEMPT move only
Test: NA
Change-Id: I076d41404f23bd44fa6157a5dc39a60e467c79c3
2024-08-21 19:47:12 +00:00
Treehugger Robot
cbd92ce7e4 Merge "Move DesktopTask to front of RecentsView (1/2)" into main 2024-08-21 18:38:34 +00:00
Jon Miranda
7d783ff70f Add animation for the predicted icon ring
Animation is modeled after the notification dot animation.

- This avoids the ring jumping in after swiping up to home to
  a predicted app.
- Also decreased the amount of time the icon has to fade out so
  that it shows up less during the animation.

Fixes: 360115794
Test: open predicted app from hotseat, swipe up to return home
Flag: EXEMPT bugfix
Change-Id: I59659610eb2e9f375a408d553bb4aa80947a28c4
2024-08-21 17:30:19 +00:00
Vinay Joglekar
eff3722286 Merge "DesktopTaskView rendered incorrectly in RTL" into main 2024-08-21 17:06:40 +00:00