Commit Graph
87505 Commits
Author SHA1 Message Date
Treehugger Robot f340be6e4f Merge "Replacing all int lookup flags and boolean overrides with an object to make it easier to extend options" into main 2024-12-13 06:20:44 -08:00
Alex Chau fa39d7478d Merge "Pass RecentsView reference to RecentsViewUtils to simplify code" into main 2024-12-13 06:12:31 -08:00
Johannes Gallmann b5d923f17a Merge "Add depth animation to predictive back to home" into main 2024-12-13 05:43:35 -08:00
Artsiom Mitrokhin 4c7663768d Merge "Add haptics for opening taskbar pinning popup view from anywhere" into main 2024-12-13 05:34:00 -08:00
Gustav Sennton 027a0fb35f Revert "Open Task into Desktop Mode when Taksbar is in DesktopMode"
This reverts commit d87722d396.

Reason for revert: causes b/383976643

Change-Id: Ib862599e84a6f61133819797a1ba51b79fe1f745
2024-12-13 05:13:38 -08:00
Alex Chau ec1883b261 Pass RecentsView reference to RecentsViewUtils to simplify code
- RecentsViewUtils is owned by RecentsView, it's safe to have an instance of RecentsView to simplify a lot of call sites

Fix: 383999010
Test: presubmit
Flag: EXEMPT refactor
Change-Id: I69f991ea137b30e0297df825b78ad431f6388af8
2024-12-13 12:21:47 +00:00
Johannes Gallmann 8d5fd05718 Add blur effect to predictive back-to-home animation
Bug: 342178850
Flag: com.android.launcher3.predictive_back_to_home_blur
Test: Manual, i.e. testing predictive back-to-home animation on device
Change-Id: I6295353d910ad8597477b722de3a87f93ee0297c
2024-12-13 11:44:07 +00:00
Johannes Gallmann 998e11e0a5 Add depth animation to predictive back to home
Setting the depth when predictive back to home is started. This will be animated to NORMAL state by ScalingWorkspaceRevealAnim on back gesture commit.

Bug: 382453424
Flag: com.android.launcher3.predictive_back_to_home_polish
Test: Manual, i.e. testing predictive back-to-home animation on device
Change-Id: Id33f49d78aae268b7d89035cce58065f6a60a8bf
2024-12-13 11:44:06 +00:00
Johannes Gallmann 9b524b0f60 Merge "Play workspace reveal animation for predictive back-to-home" into main 2024-12-13 02:10:17 -08:00
Sihua Ma 48db4ef770 Move model tests to multivalent
Test: atest NexusLauncherRoboTests
Test: SysUI studio
Flag: EXEMPT test only
Change-Id: I751c449561175d3c7c5a770b7b30bc4f24c1cd44
2024-12-13 05:51:51 +00:00
renovate[bot] 9607dcb112 Update accompanistVersion to v0.37.0 (#5083)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 11:55:24 +08:00
renovate[bot] 14d329cae6 Update plugin com.gradle.develocity to v3.19 (#5079)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-13 11:55:12 +08:00
Sunny Goyal 18e480838a Replacing all int lookup flags and boolean overrides with an object to make it easier to extend options
Bug: 381897614
Bug: 366237794
Flag: EXEMPT refactor
Test: atest CacheLookupFlagTest
Change-Id: Ic89d48dd1c5dc8b0a89b1898cd7b00d9c61d6513
2024-12-12 18:32:55 -08:00
mpodolian 8a28b39f4d Align the adjusted hotseat drop animation with the hotseat
Adjusted the hotseat drop animation to ensure the drop target moves to
the correct position.

Fixes: 383199528
Flag: com.android.wm.shell.enable_bubble_bar
Test: Manual:
http: //recall/-/gx8ASgewUeUS3QYohfrd1J/cL46nBGrr6yCA19FD9I5vs
Change-Id: I16fa9710246ce263374d06cfa796a72a7a4d5437
2024-12-12 17:58:23 -08:00
Sebastian Franco dabf02fd86 Prevent Hotseat jank when switching Fixed Landscape setting
Fix: 380998389
Test: HomeScreenImageTest
Flag: com.android.launcher3.one_grid_specs
Change-Id: I6e7334b9f5b3d6abab57d461987db64fe3700ac4
2024-12-12 17:32:11 -08:00
Stefan Andonian b64026135f Log.wtf if DeleteDropTarget "canRemove", but doesn't remove item from the database.
Bug: 379606516
Test: Verified locally that these logs show when hard-coded to appear. Also verified that normal usage doesn't cause crashes.
Flag: EXEMPT bug logs
Change-Id: Iadc67f4a063f5924c758468c6b227b23368fc192
2024-12-13 00:41:06 +00:00
Liran Binyamin 0f0394c597 Merge "Fix bubble bar visibility issue" into main 2024-12-12 15:36:42 -08:00
Liran Binyamin 138dd0bc5f Fix bubble bar visibility issue
Update the bubble bar visibility for the initial bubble if the animation
is suppressed, e.g. if we're creating the bubble when the shade is open.

Flag: com.android.wm.shell.enable_bubble_bar
Bug: 382693837
Test: manual
       - enable bubbles
       - remove all conversations from the list of allowed to bubble
       - create notification
       - open shade and click on the bubble button to bubble the notification
       - observe bubble bar becomes visible

Change-Id: If771c28998b2b091f4f1ab38001e9485ed1ed849
2024-12-12 15:36:29 -08:00
Sunny Goyal daf46a09b2 Merge "Moving WMProxy to dagger" into main 2024-12-12 15:27:19 -08:00
Brandon Dayauon d660052416 Fix swipe up to home gesture when entering scheduler page
bug: 383491628
Test video: https://drive.google.com/file/d/1brSO55cBeZZMTLq5dZ-rNO7Z-aeytghe/view?usp=sharing
Flag: com.android.launcher3.work_scheduler_in_work_profile

Change-Id: I0a8e0b64ac175ef6ccfc4f2db1b751ea6aef6995
2024-12-12 15:16:12 -08:00
Schneider Victor-Tulias 7fb1d6d53b Update ProtoLogProxy classes to only log to protolog when protolog has been initialized
Flag: com.android.launcher3.enable_active_gesture_proto_log
Flag: com.android.launcher3.enable_recents_window_proto_log
Flag: com.android.launcher3.enable_state_manager_proto_log
Fixes: 381846204
Test: ran launcher and checked logs
Change-Id: I807326bd6c65b8e51f5302ba58eed841c23216f6
2024-12-12 15:03:56 -05:00
Brandon Dayauon 1d1bffbf0b Merge "Fix unintended scroll in all apps when using external mouse." into main 2024-12-12 11:37:31 -08:00
minch b344bc1fb6 Migrate to TaskViewsIterable & TaskViewsIterator - [2/n]
Flag: EXEMPT as no functionality changes
Bug: 379942019
Test: Manual
Change-Id: I9bd1bad7a9eb8a3cc8333f37e3b535975a5ce0b6
2024-12-12 11:29:48 -08:00
Ats Jenk 49319240dd Merge "Handle suppressed bubbles" into main 2024-12-12 10:12:45 -08:00
Johannes Gallmann c8fd3f23fe Play workspace reveal animation for predictive back-to-home
Bug: 382453424
Test: Manual, i.e. tested back-to-home and back-to-allapps animation on phones, tablets and foldables, including interruptions.
Flag: com.android.launcher3.predictive_back_to_home_polish
Change-Id: I092a74ab2340828e18067ca15c7019c44d30f40b
2024-12-12 14:18:03 +00:00
Alex Chau 179403d37d Add new Overview team members to OWNERS
Flag: EXEMPT only changing OWNERS
Change-Id: I6aab76500637404a7eb97924c4ef5743342b4a95
2024-12-12 05:55:52 -08:00
renovate[bot] 176a5d2b35 Update dependency sh.calvin.reorderable:reorderable to v2.4.2 (#5078)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 20:25:38 +08:00
Alex Chau 74ff7af5e2 Merge "Migrating the remaining getTaskViewAt(0)" into main 2024-12-12 04:01:59 -08:00
Alex Chau f3013954a3 Merge "Introduce hasTaskViews() to RecentsView" into main 2024-12-12 04:01:07 -08:00
Treehugger Robot 41d5494a4e Merge "Fix for split animation" into main 2024-12-12 01:55:55 -08:00
MrSluffy 34db5dd801 Feat: Initial Impl to Hide Clock on Home Screen First Page
- TODO : only hide if there's a widget clock
2024-12-12 17:01:00 +08:00
renovate[bot]andMrSluffy 978eb6292d Update dependency io.nlopez.compose.rules:ktlint to v0.4.22 (#5072)
* Update dependency io.nlopez.compose.rules:ktlint to v0.4.22

* fix styles

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: MrSluffy <werdna.jac@gmail.com>
2024-12-12 14:57:43 +08:00
MrSluffy 0d9768c333 keep android.view.** 2024-12-12 11:46:50 +08:00
Charlie Anderson cdd763d466 Fix user for InstallSessionHelperTest HSUM failures
Bug: 383452367
Test: InstallSessionHelperTest
Flag: EXEMPT test fix
Change-Id: I942c6c78e5986a960859e5c6b1458a46ec6a2bd6
2024-12-11 19:12:43 -08:00
Treehugger Robot 24218845df Merge "Introduce TaskViewsIterator and TaskViewsIterable" into main 2024-12-11 17:53:47 -08:00
Brandon Dayauon 1fb2d7815f Fix unintended scroll in all apps when using external mouse.
The reason is because when ag/29152694 was introduced, the accessibilityEvent that would
trigger is TYPE_VIEW_HOVER_ENTER that would eventually always have the list scrolling depending
on where the mouse would be. Gating it to TYPE_VIEW_ACCESSIBILITY_FOCUSED would be fix this as
this should still work for talkback when traversing the A-Z list as TYPE_VIEW_ACCESSIBILITY_FOCUSED is whats is always used
during this case.

bug: 372965379
Test: manually
Flag: EXEMPT bug fix
Change-Id: I249cee8036216f93aab53efc3d77fad047f7e408
2024-12-11 16:53:16 -08:00
renovate[bot] 511c04d08f Update dependency androidx.compose:compose-bom to v2024.12.01 (#5077)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-12 08:50:57 +08:00
MrSluffy 4feac9547f fixed crashes NPE's below 12 2024-12-12 08:41:23 +08:00
Ats Jenk bcc12470b7 Handle suppressed bubbles
Hide or show bubble based on suppression signals from shell.
If this is the only bubble, hides or shows the bubble bar.

Bug: 273316505
Test: have a single bubble in the bubble bar, suppress the bubble,
  observe that bubble is hidden and bubble bar is not shown,
  unsuppress the bubble, check that bubble bar and bubble is shown
  again, perform check with transient and persistent taskbar
Test: have multiple bubbles, suppress one bubble, check that this bubble
  is not shown, but the bubble bar remains visible with other bubbles,
  perform the check with transient and persistent taskbar
Test: have a single bubble in bubble bar that is suppressed, receive
  notifications to trigger new bubbles, observe bubble bar is shown for
  new bubbles, check that after unsuppressing bubble, it is added back,
  perform the checks with tranient and persistent taskbar
Test: suppress a bubble and rotate the device to trigger launcher
  recreation, check that after unsuppress, the bubble is added back

Flag: com.android.wm.shell.enable_bubble_bar

Change-Id: I17e5cec750a2666feecc62213a3e8fc204ee510a
2024-12-11 16:02:32 -08:00
Charlie Anderson 2885a6639c Add new failsafe to disable new archiving broadcast
Bug: 322314760
Test: presubmit and LoaderTaskTest
Flag: com.android.launcher3.enable_first_screen_broadcast_archiving_extras

Change-Id: I7c7b94a81dd717ed6f32de2ae986616b93dbbcc0
2024-12-11 18:59:05 -05:00
minch c7a66bd4af Migrating the remaining getTaskViewAt(0)
Migrating the remaining `getTaskViewAt(0)` to `getFirstTaskView()`.

Flag: EXEMPT as no functionality changes
Bug: 379942019
Test: Manual
Change-Id: I083626b0ca62b88d06f508dfc15d9f64112f1a6a
2024-12-11 23:50:53 +00:00
minch 3695c7a64c Introduce hasTaskViews() to RecentsView
- This function is going to replace all the call sites that compares
  `getTaskVieCount()` and `0`.
- This is based on the fact that this count can not be a negative
  number.
- Introduce `getLastTaskView()` to get the last TaskView inside the
  RecentsView.

Flag: EXEMPT as no functionality changes
Bug: 379942019
Test: Manual
Change-Id: Iefb107d1aba61549a870f14c18e025c34b19a1b5
2024-12-11 23:44:16 +00:00
Bill Yi 8da7f25ccb Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-12-11 14:44:09 -08:00
Bill Yi ec65d8e153 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-12-11 14:44:09 -08:00
Bill Yi ab76a45616 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-12-11 14:44:09 -08:00
minch 37ed08215d Introduce TaskViewsIterator and TaskViewsIterable
- Create TaskViewsIterator to iterate all the current TaskViews inside
  RecentsView.
- Create TaskViewsIterable with TaskViewsIterator as its iterator.
- Create `mTaskViewsIterable`, an instance of TaskViewsIterable that
  used to make the TaskViews iterable.
- Current `getTaskViews()` return `mTaskViewsIterable` directly.
- Change `getTaskViews()` to be a public function, thus it can be
  used outside of the RecentsView.

Some follow-up work includes:
- Replace all the call sites of `getTaskViewAt(0)` with
  `getFirstTaskView()`
- Replace `0` as the index of the first TaskView  with
  `getFirstTaskViewIndex()`
- Audit all the call sites of iterating the TaskViews, let them use
  `getTaskViews()` or IterableTaskViews.iterator() if index is needed.

Flag: EXEMPT as no functionality changes
Bug: 379942019
Test: Ensure the TaskViews required are correct in the following
      scrnarios:
      1. Swiping up from home screen to enter overview with empty or
         multiple tasks
      2. Swiping up from a fullscreen app to enter overview with
         one or multiple tasks
      3. Dimissing one or multiple tasks, exit and enter overview w/o
         newly opened tasks
      4. Remvoing all the tasks, reenter overview w/o newly opened
         tasks
Change-Id: I930ce92b7e0bc37005af74a58fd4c0ce3013e5cb
2024-12-11 21:48:34 +00:00
Treehugger Robot 5a5cf9e698 Merge "Fixing nullpointer error in genering error description" into main 2024-12-11 13:37:05 -08:00
Sunny Goyal 41e8057bbf Moving WMProxy to dagger
Bug: 361850561
Flag: EXEMPT dagger migration
Test: Presubmit
Change-Id: I9a8031037f2167658b7bc212b59c9b11abbf2f03
2024-12-11 13:24:26 -08:00
Treehugger Robot 4d4eb7d685 Merge "Introduce mTaskViewCount inside the RecentsView" into main 2024-12-11 12:36:00 -08:00
Sunny Goyal 0cb0166a2c Fixing nullpointer error in genering error description
Bug: 383492095
Flag: EXEMPT bug fix
Test: Presubmit
Change-Id: I43c71bb62df45d53bd757daa3203f216229946a0
2024-12-11 11:41:39 -08:00