Commit Graph

78507 Commits

Author SHA1 Message Date
Fengjiang Li 9a949ff4ca [Dagger] Make WellbeingModel provided by DaggerSingletonObject
Test: presubmit
Bug: 361850561
Flag: NONE - dagger
Change-Id: Ie23411457185ab31380f3b0efb660e7dd9d73f29
2024-10-06 00:40:51 -07:00
Sunny Goyal 95045ce03a Fixing test flakiness in Launcher initialization
Using same key for blob store and content provider based layouts

Using a single key for layout provider. This ensures that if one
test doesn't cleanup properly, any followup test which relies on
model initialization overrides the key appropriately

Bug: 370080120
Test: Presubmit
Flag: EXEMPT bugfix
Change-Id: Idef0a89a5d1ec89e24aae8a4549fd122634dad2f
2024-10-04 20:52:17 +00:00
Liam Lee Pong Lam 644aad280b Merge "Implement focus state on personal/work tab button" into main 2024-10-04 20:33:00 +00:00
Mykola Podolian 409b62cb33 Merge "3 button nav is laid out correctly." into main 2024-10-04 20:01:58 +00:00
Schneider Victor-tulias f36e9414b1 Merge "Add a AbsSwipeUpHandlerTestCase for the RecentsWindowSwipeHandler" into main 2024-10-04 19:53:01 +00:00
Catherine Liang b5fdc80bb2 Handle messages to update Launcher preview color
Receive color update messages with a list of color resource ids and a
corresponding list of color overrides, and adjust the preview
accordingly.

Flag: com.android.systemui.shared.new_customization_picker_ui
Test: manually verified that the selected colors are previewed
Bug: 350718581
Change-Id: Ibcde0575416df00b76627ac1004f21f5f9af1196
2024-10-04 19:33:45 +00:00
Vinay Joglekar b0354e7be9 Merge "Fix a bug where the running task would be drawn below recents task" into main 2024-10-04 18:25:58 +00:00
Matt Sziklay f843e5dd53 Merge "Add split instructions view to desktop split." into main 2024-10-04 18:00:36 +00:00
Schneider Victor-Tulias 12aff98cd8 Add a AbsSwipeUpHandlerTestCase for the RecentsWindowSwipeHandler
- Added RecentsWindowSwipeHandlerTestCase
- Slightly refactored AbsSwipeUpHandlerTestCase for simplicity

Flag: EXEMPT adding test code
Bug: 292269949
Test: RecentsWindowSwipeHandlerTestCase
Change-Id: Iacd8ff8261ad262d4645ba97c35d296050e61195
2024-10-04 13:37:01 -04:00
Vinay Joglekar ca94ef431f Merge "Fix a bug where the last large task index was not being set correctly." into main 2024-10-04 17:30:34 +00:00
Vinay Joglekar 715d495ad1 Merge "Update bug number for enable_large_desktop_windowing_tile" into main 2024-10-04 17:27:20 +00:00
Treehugger Robot 8f7dd208ba Merge "[NPE] Fix NPE of TaskInfo in FloatingWidgetView#getDefaultBackgroundColor" into main 2024-10-04 17:05:34 +00:00
Jordan Silva c407f1aa5a Fix a bug where the running task would be drawn below recents task
When the live tile is the adjacent app to be launched, it will wrongly update the pivot and translate all the tasks to the side, resulting in a broken animation.

This bug was introduced in ag/29639296, while fixing the launch of the the adjacent task while the live tile was in the center of the screen. To solve this excessive translation, we need to update pivot only when adjacent task is not a live tile.

Bug: 361744056
Change-Id: I56cbabcc351b0becd791b58dd94f65cd0b533bc2
Test: Launch central/side large tile with different live tile combinations
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
2024-10-04 07:55:25 +00:00
Jordan Silva 06dbdcea4e Fix a bug where the last large task index was not being set correctly.
This was causing the focused task shift to be calculated incorrectly, which was resulting in the focused task being shifted too far to the left.


Bug: 330342294
Fix: 371490320
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Test: Manual. Open 1 DesktopTask, 1 FocusedTask, 2 other tasks in the grid. Dismiss the focused task. The rebalance should work keeping the new focused task next to desktop task.
Change-Id: If6f95814942c2cbadc30a0082649569f21dea60a
2024-10-04 07:28:42 +00:00
Treehugger Robot 5a90a5ab96 Merge "Fix for recents button quick switch with only focus and desktop task" into main 2024-10-04 05:05:37 +00:00
vinayjoglekar b6ac8b2ae9 Fix for recents button quick switch with only focus and desktop task
This CL also fixes : Home -> Recents -> Recents opens the last large tile (Which was broken when there is desktop window tile in recents.)

Test: Manual
BUG: 365756337
Fix: 365756337
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Change-Id: I0b8fe3a0a7074355f14ced23ae282fe2943d8ce9
2024-10-03 18:58:48 -07:00
Jordan Silva e4b0747194 Update bug number for enable_large_desktop_windowing_tile
Bug: 357860832
Change-Id: If208bfb26bd4e082bf5197b44f7270ee3e68ae39
Flag: com.android.launcher3.enable_large_desktop_windowing_tile
Test: Gantry should update the bug reference
2024-10-04 01:08:13 +00:00
mpodolian 989aa8ac83 3 button nav is laid out correctly.
Updated logic of laying out the 3 nav buttons container. Also updated
placement of the hotseat, so it is not shifted on the phone.

Test: Manual. Fold and unfold felix with and without bubbles. Reboot
the devices and perform the same test.
Fixes: 370773620
Flag: com.android.wm.shell.enable_bubble_bar

Change-Id: I7d5ba51f7ded275f7456a8690d04001b9651f6c5
2024-10-03 16:57:58 -07:00
Rajeev Kumar d0ce1d3c50 Get rid of unused PopupDataProvider field and also add method to Share class to be able to pass mock StatsLogManager from unit tests.
Bug: 371327013
Fixes: 371327013
Flag: EXEMPT bugfix
Test: atest com.android.launcher3.AppSharingTest
Change-Id: I2267b2ba5bbc997e36440881f0228e2b3099a09d
2024-10-03 23:04:44 +00:00
Ats Jenk d819f32e46 Animate bubble bar alpha when notif shade opens
Similar to taskbar, animate the alpha for bubble bar when notification
shade is expanded.

Bug: 345687278
Test: have bubbles on home screen, swipe down notification shade,
  bubbles are hidden with an animation
Test: have bubbles in app, stashed, swipe down notification shade,
  no change
Test: have bubbles in app, unstashed, swipe down notification shade,
  bubbles hidden with an animation
Test: receive bubble notification while shade is open, check that
  bubble bar is not shown

Test: compare bubble bar shadow and stroke before and after change
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I74af6a7230f81628540f9b935cbe7dc801bd7a01
2024-10-03 15:33:38 -07:00
Ats Jenk 2166749190 Set bubble bar invisible while stashed
Update bubble bar visibility when it is stashed.
Ensures that if alpha is updated, it won't show up.

Bug: 345687278
Test: TransientBubbleStashController
Flag: com.android.wm.shell.enable_bubble_bar
Change-Id: I603a67a824a5cee0fb35de7c3f2dc98d9d2323ed
2024-10-03 15:33:38 -07:00
Ats Jenk 2f3d7b16c6 Merge "Apply bubble bar background alpha to stroke paint" into main 2024-10-03 20:20:08 +00:00
Ats Jenk 35b87d33b2 Inject bubble controllers directly
Replace injecting bubble controllers class with each controller
separately.c

Bug: 371017282
Test: TaskbarStashControllerTest
Flag: TEST_ONLY
Change-Id: Iccb870b0976b51fcd5a987cf208531da413921d1
2024-10-03 10:09:30 -07:00
Mady Mellor 2aedf52b8f Merge "If we're going to overview we might need to unstash" into main 2024-10-03 16:12:09 +00:00
Orhan Uysal 4acf699619 Merge "Fix overview animation after reboot." into main 2024-10-03 14:01:57 +00:00
Shamali Patwa b5c32d4c4f Merge "Add logs in ProxyActivityStarter when it fails to launch an activity" into main 2024-10-03 02:35:54 +00:00
Treehugger Robot 1bbcff3d48 Merge "Fix an issue where bubble bar would collapse when rotating" into main 2024-10-03 02:07:02 +00:00
Ats Jenk 936fec94bd Allow injecting bubble controllers in taskbar test
Update TaskbarUnitTestRule @InjectController annotation to support
injecting bubble controllers.
Bubble controllers are optional and only initialized if the feature flag
is enabled.
Add a test to check that bubble controllers are only initialized when
the flag is on.

Bug: 371017282
Test: TaskbarUnitTestRuleTest
Flag: TEST_ONLY
Change-Id: Ibea2dbe0db854d530ef93ac53204a361572fa5b2
2024-10-02 15:56:08 -07:00
Shamali P 66b501eae2 Add logs in ProxyActivityStarter when it fails to launch an activity
Apparently, it doesn't log when it fails due to some reason.

In 369422714, we see it being started but the appwidget's config
 activity not being launched. The absorbed exception makes it harder to
  know. There isn't a system log as well.

  At least looking at logs, we think for some reason appwidget's
   configuration activity wasn't launched by launcher.

Bug: 369422714
Test: N/A logging
Flag: EXEMPT BUGFIX

Change-Id: I56294ef37d7ddceb61c4e6d0e10d0f24fde42cb2
2024-10-02 22:33:39 +00:00
Fengjiang Li a909cc2dd7 [NPE] Fix NPE of TaskInfo in FloatingWidgetView#getDefaultBackgroundColor
Fix: 370315165
Flag: NONE - prod crash
Test: presubmit
Change-Id: I50e71f0611fc9c664cfe51fbe9c3fc21462e10ed
2024-10-02 14:30:08 -07:00
Mady Mellor 3e8cc610b3 Fix an issue where bubble bar would collapse when rotating
When the device is rotated, everything gets recreated, in this case,
bubble bar state is typically set to be stashed. However, if taskbar
and bubble bar were unstashed while rotating, bubble bar would be
incorrectly stashed. To fix this, only do the stash if taskbar is
also stashed in this case.

Flag: com.android.wm.shell.enable_bubble_bar
Test: manual - be in an app, unstash bubbles, rotate device
             => observe that bubble bar is unstashed like taskbar
                after rotation
Bug: 353884121
Change-Id: Ia37397c62a1a6819c1bd42261f8a9955db511da3
2024-10-02 13:55:55 -07:00
Jagrut Desai 831ca957c0 Merge "Remove unused TestProtocol" into main 2024-10-02 20:51:10 +00:00
Sunny Goyal e14af2316b Merge "Converting some caching logic booleans to lookup flags" into main 2024-10-02 20:34:16 +00:00
Shamali Patwa 1667cf561f Merge "Move padding from parent to WidgetPagedView and siblings in 2-pane pkr" into main 2024-10-02 20:31:16 +00:00
Brandon Dayauon 17b246a556 Merge "Don't call onAppsUpdated() when in testHarness" into main 2024-10-02 19:53:36 +00:00
Ats Jenk ad7a938268 Apply bubble bar background alpha to stroke paint
Alpha was applied to fill paint only. Add it to stroke paint as well.
Introduce a new method in Utilities to map range of ints and not only
floats.

Bug: 345687278
Test: compare bubble bar shadow and stroke before and after change
Flag: com.android.wm.shell.enable_bubble_bar

Change-Id: I7c9e8d6337a857a661de0c945181cdd5ef2fd4ca
2024-10-02 10:20:06 -07:00
Shamali P adc171b313 Move padding from parent to WidgetPagedView and siblings in 2-pane pkr
WidgetPagedView seems to rely on padding to position it such that
 talkback doesn't focus on it before sticky header.

Bug: 348107507
Test: With talkback
Flag: EXEMPT bugfix

Change-Id: I2fcdc0cbf027a7a8c1bee104f85a61f700faf776
2024-10-02 16:55:59 +00:00
Liran Binyamin d8c3328d4d Pass bubble flyout from wm shell to launcher
Flag: com.android.wm.shell.enable_bubble_bar
Bug: 277815200
Test: atest BubbleBarViewAnimatorTest
Change-Id: I8666765937a491903c6fc042d2d629374be4c70d
2024-10-02 12:27:52 -04:00
Liran Binyamin 1663bb3004 Merge "Bubble bar flyout polish" into main 2024-10-02 16:15:53 +00:00
Treehugger Robot d8daf184bc Merge "Update where we end CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS" into main 2024-10-02 15:55:45 +00:00
Treehugger Robot 3faec179c0 Merge "Add debug memory logs to AbstractLauncherUiTest" into main 2024-10-02 15:39:05 +00:00
Schneider Victor-Tulias 9240b68dd6 Update where we end CUJ_LAUNCHER_APP_SWIPE_TO_RECENTS
Flag: EXEMPT bug fix
Fixes: 369359244
Test: performance testing
Change-Id: Id70c4b02738fd1abd62027fcddd0fac3c99fe95e
2024-10-02 14:15:56 +00:00
Bill Yi 4f4b2335b9 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-10-02 05:37:39 +00:00
Bill Yi bf752db081 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-10-02 05:37:39 +00:00
Treehugger Robot 5c3e15b0e0 Merge "Fix small bug with TaskView tile expansion" into main 2024-10-02 02:13:04 +00:00
Anushree Ganjam 0dc88fece8 Merge "Make InstallSessionHelper injected by Dagger (7/n)" into main 2024-10-02 01:57:48 +00:00
Toni Barzic 32ef2aed33 Handle enter key as editor action in search bar
Handles IME_NULL action in AllAppSearchBarController, which is generated
in response to the enter key (with no modifiers) keyboard event in
multiline text view. The action triggers search in the same way as
ACTION_SEARCH and ACTION_GO. Without this, enter key gets treated as
new line in the app list search box.

Test: Open all apps, and enter a search query using physical keyboard.
     Pressing ENTER triggers search. Pressing Shift + ENTER adds a new
     line to search query.
Bug: 370780257
Flag: com.android.launcher3.multiline_search_bar
Change-Id: I6aef5e120210f4efc216e03d24974b04ab5f1d16
2024-10-02 01:25:35 +00:00
Treehugger Robot b4b2d16bcc Merge "Fix translation when focused task or desktop task is dismissed. (3/4)" into main 2024-10-02 00:38:10 +00:00
Treehugger Robot 6d763a301c Merge "Fix Taskbar unlock transition" into main 2024-10-02 00:14:04 +00:00
Uwais Ashraf 67d0d59caf Adds View screenshot tests for TaskThumbnailView.
Bug: 344800402
Test: TaskThumbnailViewScreenshotTest
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: If6530ea9dfe026589f05731d5362dc10f719fc70
2024-10-01 23:42:39 +00:00