Commit Graph

83004 Commits

Author SHA1 Message Date
Andrew Cole 4a680b1374 Merge "Test Week - AccessibleDragLstenerAdapterTest" into main 2024-07-19 00:53:21 +00:00
Sihua Ma 045165a4ba Add unit test for LauncherAppWidgetHost
Number of methods covered: 3

Test: SysUI studio
Flag: TEST_ONLY
Bug: 353303621
Change-Id: I8fa9ed7b496baa18dac1a721c72a32814d89dd6f
2024-07-19 00:38:32 +00:00
Fengjiang Li abc4a9589a Merge "[Test Week] Add AllAppsRecyclerViewPoolTest" into main 2024-07-19 00:33:51 +00:00
Fengjiang Li a74d9d74c9 Merge "[Test Week] Add ViewPoolTest" into main 2024-07-19 00:33:38 +00:00
Fengjiang Li 5337a1ba31 Merge "[Test Week] Replace verifyZeroInteractions with verifyNoMoreInteractions in RunnableListTest" into main 2024-07-19 00:31:51 +00:00
Jon Miranda 6d5ab854d1 Merge "Synchronize the app launch and taskbar stash animations." into main 2024-07-19 00:26:33 +00:00
Jon Miranda cde962dcb7 Synchronize the app launch and taskbar stash animations.
Introduce FLAG_IGNORE_IN_APP to prevent taskbar from stashing prematurely
due to HomeTransitionListener signal.

Bug: 345768019
Fixes: 319162553
Test: Launch an app, note the two animations are synced
      Verified by locally introducing a startDelay (since otherwise it is hard to tell)
Flag: com.android.launcher3.enable_scaling_reveal_home_animation
Change-Id: Ibb64e0321f33cf81e337fc7c1b2c3edfb23e6ba4
2024-07-19 00:26:13 +00:00
Sihua Ma cda4805e62 Add unit test for RoundedCornerEnforcement
Number of methods covered: 4

Test: atest NexusLauncherRoboTests:RoundedCornerEnforcementTest
Test: SysUI studio
Flag: TEST_ONLY
Bug: 353303621
Change-Id: I488ce4a6617b96d4937a7030cd25831bcefadca1
2024-07-18 23:57:09 +00:00
Sebastian Franco cda3427fea Refactoring FolderPagedView to make it more testable
Bug: 353588686
Test: FolderPagedViewTest.kt
Flag: TEST_ONLY
Change-Id: I2a2efd9f9b2a6ac32153f8102613a3af5afc1ecf
2024-07-18 23:33:21 +00:00
Android Build Coastguard Worker 55a775bd6f Snap for 12110738 from c22b0ea47b to 24Q4-release
Change-Id: I9000ac118395ca17684adffeae65251b5f36339e
2024-07-18 23:21:09 +00:00
Mykola Podolian e80618db64 Merge "Prepare BubbleBarViewController to support persistent task bar." into main 2024-07-18 23:16:47 +00:00
Fengjiang Li f257aef6d7 [Test Week] Add SystemUiControllerTest
Number of new tested methods: 4

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I2c2b8101853b4b5a6562fe26dfa6b7358f0be17e
2024-07-18 15:47:26 -07:00
Fengjiang Li 5ad7a20e90 [Test Week] Add ViewPoolTest
Number of new tested methods: 3

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I13f1a7bad41c07368cff3d544120d1f41c92b603
2024-07-18 15:25:07 -07:00
Fengjiang Li 30d02c20bf [Test Week] Add AllAppsRecyclerViewPoolTest
Number of new tested methods: 2

Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: Ic210b5ad7988c9e8d060c959fb2a425068c82511
2024-07-18 15:19:42 -07:00
Fengjiang Li 2eeb08f216 [Test Week] Replace verifyZeroInteractions with verifyNoMoreInteractions in RunnableListTest
Fix: 354021767
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I85945c0a0f64ca0a65d28d66f3c47d83d0943c3b
2024-07-18 15:05:10 -07:00
Fengjiang Li f28a059e5b Merge "[Test Week] Move SimpleBroadcastReceiver to multivalentTests folder" into main 2024-07-18 21:06:30 +00:00
Brandon Dayauon 3188bd08ae Merge "Don't add floatingMaskView if it will not fit." into main 2024-07-18 20:53:14 +00:00
Andrew Cole 6ace1c0d3a Test Week - AccessibleDragLstenerAdapterTest
Refactored AccessibleDragListnerAdapter to kotlin for null safety and removed a explicit call to Launcher. Added tests for all public methods
* Refactored 1 class
* Tested 1 class previously untested
* Tested 4 public methods

Bug: 353303621
Test: AccessibleDragListnerAdapterTest
Flag: TEST_ONLY

Change-Id: I7db70330f5e76b8f7298304314584e88e067c139
2024-07-18 12:34:17 -07:00
Charlie Anderson c22b0ea47b Merge "[Test Week] unit tests for LauncherRestoreEventLoggerImpl" into main 2024-07-18 18:44:15 +00:00
Charlie Anderson ba9705c4ab Merge "[Test week] unit tests for ItemInfoMatcher" into main 2024-07-18 18:44:05 +00:00
Liran Binyamin a2aa555faf Merge "Update bubble notification dot drawing" into main 2024-07-18 18:42:01 +00:00
Shamali P 54bd36ef81 Move out picker related methods from widgets model
* The WidgetsBaseEntry and related types are specific to picker UI.
So, moved them to a entry builder class.

Bug: 353347512
Flag: EXEMPT BUGFIX
Test: Unit test
Change-Id: I42b3083b42ee03dc8d548e7464689ea270a36f22
2024-07-18 18:35:19 +00:00
Liam, Lee Pong Lam c56711c669 Add unit tests for SettingsChangeLogger
Bug: 353584526
Flag: EXEMPT bugfix
Test: Unit tests
Change-Id: Ib1bac2471d9cc467b8b6697ae4d79f561eea75e4
2024-07-18 18:32:36 +00:00
mpodolian f667c3bc3b Prepare BubbleBarViewController to support persistent task bar.
Added required resources for the transient taskbar. Unified
BubbleBarViewController logic for the persistent taskbar.

Bug: 350065038
Flag: com.android.wm.shell.enable_bubble_bar
Test: atest
Change-Id: I24e6d2d43bf8145cdcc71c75da0cb6f6e84373da
2024-07-18 19:17:12 +01:00
Sebastián Franco 45bad7252e Merge "Refactoring FolderPagedView to make it more testable" into main 2024-07-18 17:02:54 +00:00
Alex Chau 1c1547f5f9 Merge "Enable RecentsModel cache preloading for TTV refactoring" into main 2024-07-18 16:45:43 +00:00
Alex Chau 7e26ff8063 Enable RecentsModel cache preloading for TTV refactoring
- Enabled preloading so thumbnails are loaded faster after Launcher restarts

Fix: 353927953
Test: Manual
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: I8710495dee672eb0449c01522451578f30ad84aa
2024-07-18 16:44:35 +00:00
Jorge Gil e2c2302aef Merge "Re-enable FREEFORM task shortcut when DW is unsupported" into main 2024-07-18 16:30:20 +00:00
Alex Chau 33d0b14384 Merge "Update bug id of a TODO" into main 2024-07-18 16:21:31 +00:00
Fengjiang Li 5c4c3bcbf3 [Test Week] Move SimpleBroadcastReceiver to multivalentTests folder
Bug: 353303621
Test: This is the unit test
Flag: NONE - unit test
Change-Id: I82a59b6d090df7a246ba283bbfa286c99417c876
2024-07-18 09:20:49 -07:00
Charlie Anderson 48ff57d7d1 [Test week] unit tests for ItemInfoMatcher
7 public methods tested
no previous test class

Flag: TEST_ONLY
Bug: 353303621
Test: unit tests
Change-Id: Ie327ab790b46326ee97165706c126c8ad0de7776
2024-07-18 11:59:01 -04:00
Sihua Ma e2dde4e468 Merge "Add unit test for CustomAppWidgetProviderInfo" into main 2024-07-18 15:47:32 +00:00
Sihua Ma b648a0f386 Merge "Add unit test for CustomWidgetManager" into main 2024-07-18 15:47:15 +00:00
Charlie Anderson ee3cc97fd3 [Test Week] unit tests for LauncherRestoreEventLoggerImpl
5 public methods tested
No previous testing class

Flag: TEST_ONLY
Test: unit test
Bug: 353303621
Change-Id: I97273e7eebebfa4aac1e7c3db8bf089f3e49f150
2024-07-18 15:38:08 +00:00
Liran Binyamin 5013028596 Update bubble notification dot drawing
The notification dot drawing state depends on changes in the bubble
bar, so the bubble bar now directly requests updates to the dot at
specific states.

Flag: com.android.wm.shell.enable_bubble_bar
Fixes: 351904597
Fixes: 350782375
Test: atest BubbleViewTest
Test: manual basically just hammering on it trying to break it
       1. Dot appears for new bubble in all states of the bar
       2. Expand bubble bar
          - Dot is removed for selected and shows for others
            that have a dot
       3. After removing bubble while expanded
          - Dot is removed from newly selected bubble
       4. Collapse bubble bar
          - Dot is hidden for all bubbles
       5. Dot removed after tapping on a bubble when expanded

Change-Id: I4a940d38a8c77bddaf058b7ef882bab06886bcf4
2024-07-18 10:38:29 -04:00
Shamali Patwa 1407aeca8d Merge changes from topic "ls-picker-filter" into main
* changes:
  Consider the widget option menu choice in search results
  Show only filtered / default widgets in standalone activity by default
  Add a 3 dot vertical menu and styles (child cl makes it functional)
  Set default widgets and all widgets separately from standalone activity
  Update the widget picker activity theme for popup menus styling
2024-07-18 14:14:42 +00:00
Alex Chau 1d75081a5f Merge "Apply PreviewPositionHelper matrix to TTV and Overlay" into main 2024-07-18 13:56:42 +00:00
Alex Chau e62ceb9043 Update bug id of a TODO
Change-Id: I0c122f70b2a954ab88b1696c2c3ece48670774ca
Fix: 340437778
Bug: 342635213
Test: None
Flag: EXEMPT refactor
2024-07-18 13:34:23 +00:00
Alex Chau 893f4c6a45 Apply PreviewPositionHelper matrix to TTV and Overlay
- Added GetThumbnailMatrixUseCase to retrieve task using taskId and calcualte Matrix using provided canvas size and isRTL
- TTVM and OverlayVM will uses GetThumbnailMatrixUseCaseTest with runBlocking to obtain the matrix from the loaded thumbnail
- TTV and Overlay listen for size change, and call VM to get the latest Matrix and apply to the view

Fix: 343101424
Test: GetThumbnailMatrixUseCaseTest
Test: TaskThumbnailViewModelTest
Test: TaskOverlayViewModelTest
Flag: com.android.launcher3.enable_refactor_task_thumbnail
Change-Id: If3f37824bed84d5cbaa54d7a4b12f5f1ef4e2c09
2024-07-18 13:07:14 +01:00
Johannes Gallmann 8c983e8d48 Merge "Fix CUJ_LAUNCHER_APP_CLOSE_TO_HOME Cuj for predictive back to home" into main 2024-07-18 08:29:38 +00:00
Treehugger Robot ada4e16644 Merge "Replace get/setPendingIntentBackgroundActivityLaunchAllowedByPermission" into main 2024-07-18 06:52:30 +00:00
Sebastián Franco 0eafdad0f5 Merge "Adding testin for Utilities.java" into main 2024-07-18 03:05:44 +00:00
Sebastián Franco 51c8ae668d Merge "Remove unused methods" into main 2024-07-18 03:05:15 +00:00
Sebastián Franco 61600168fd Merge "Adding unit test for pointToCellExact" into main 2024-07-18 03:04:32 +00:00
Anushree Ganjam 696d3f48f7 Add SEARCH_TARGET_UTIL_LOG for debugging searchtargetutil logs
Bug: 352067203
Test: Manual
Flag: EXEMPT bugfix
Change-Id: I27b7c29ae0400f2ff3fb8336cee0eec0d962ac1b
2024-07-17 18:34:40 -07:00
Tracy Zhou 749ea3115c Merge "Fix missing taskbar scrim in folded state when swiping up from immersive mode" into main 2024-07-18 00:47:41 +00:00
Achim Thesmann 79300ffae0 Replace get/setPendingIntentBackgroundActivityLaunchAllowedByPermission
Replace usages of the old get/setPendingIntentBackgroundActivityLaunchAllowedByPermission
API with the new replacement (passing in mode = ALWAYS).

Test: atest DragAndDropPolicyTest StageCoordinatorTests AlarmManagerServiceTest BackgroundActivityStartControllerExemptionTests BackgroundActivityStartControllerTests ActivityOptionsTest ActivityStarterTests BackgroundActivityLaunchTest
Flag: EXEMPT refactor
Bug: 352182359
Change-Id: I692dbb2122995d5cc3fa87bf5061704987ebddbb
2024-07-18 00:44:04 +00:00
Brandon Dayauon 1710cbeb6e Don't add floatingMaskView if it will not fit.
See this screenshot for math explanation: https://screenshot.googleplex.com/9x256x5uk7qNZDg
We use the Y values of the views to determine if the header will be clipped by the
floating mask view.

Also added logs for private space.

bug:343478928
Test manually before: see bug.
after: https://drive.google.com/file/d/1FZXDQG-hV-V3wErVR0-nVCMgjUDk910Z/view?usp=sharing
Flag: com.android.launcher3.enable_private_space

Change-Id: I025e4e62f9ba60e8493d2aceb139d2c4ed6a84dd
2024-07-17 17:12:34 -07:00
Brandon Dayauon ef81b5c630 Merge "Remove enableLayoutTransitions for private space." into main 2024-07-17 23:54:59 +00:00
Sihua Ma 1f3f951b70 Add unit test for CustomAppWidgetProviderInfo
Number of methods covered: 2

Test: atest NexusLauncherRoboTests:CustomAppWidgetProviderInfoTest
Test: SysUI studio
Flag: TEST_ONLY
Bug: 353303621
Change-Id: I4235569878a9f1c1b2ec040b26190f97d9734679
2024-07-17 23:38:33 +00:00