Commit Graph

4316 Commits

Author SHA1 Message Date
Brandon Dayauon
a7340e8575 Merge "Add unit testing to workkUtilityView" into main 2024-12-03 15:43:48 +00:00
Treehugger Robot
27c2f4ddc1 Merge "Decouple Backup / Restore Error Codes" into main 2024-12-02 18:57:17 +00:00
Brandon Dayauon
fcb892328b Add unit testing to workkUtilityView
Testing inflate and visibility states (with both flag states)

bug: 361589193
Test: manually screenshot: https://screenshot.googleplex.com/45HDsyfQfNbgjiE
Flag: com.android.launcher3.work_scheduler_in_work_profile
Change-Id: I57cff03fe3b362e304f52984a2699f8d5b6e653e
2024-12-02 10:32:56 -08:00
Stefan Andonian
6df13d3b8e Decouple Backup / Restore Error Codes
Bug: 381315244
Test: Simply looked at emitted error codes and changed names if they were used in multiple locations.
Flag: EXEMPT bug fix
Change-Id: Iab4a8d6ff410682f448b2ac32e44b766d79a7616
2024-11-27 16:48:28 -08:00
fbaron
ddc338c39b Fixing grid migration test and adding extra tests to cover one grid updates
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: GridMigrationTest
Change-Id: Ib162b2f802da610a4d2802af4c890425cd657add
2024-11-26 21:05:04 +00:00
Juan Sebastian Martinez
12c5b06add Merge "Adding a mock for MSDLPlayerWrapper to DeleteDropTargetTest." into main 2024-11-22 18:21:05 +00:00
Juan Sebastian Martinez
86f3d35839 Adding a mock for MSDLPlayerWrapper to DeleteDropTargetTest.
The mock makes sure we don't rely on a device hardware for tests.

Test: DeleteDropTargetTest
Flag: com.android.launcher3.msdl_feedback
Bug: 379958544
Change-Id: I202b81f3dd16af1c0985980d0b962be0000bf31f
2024-11-21 13:32:43 -08:00
Charlie Anderson
24e3132bbd Revert^2 "Update test activities with a non-default icon."
3e7d28e1c7

Change-Id: Ifea50664980a5bb52700e494abb10643d68fbd01
2024-11-20 23:23:01 +00:00
Juan Sebastian Martinez
3f0d356619 Merge "Adding MSDL feedback to dragging apps and widgest over drop targets." into main 2024-11-19 15:58:35 +00:00
Treehugger Robot
7f103a6d5c Merge "Remove any fixed landscape foldable dumps" into main 2024-11-19 02:54:46 +00:00
Federico Baron
dd28335d78 Remove any fixed landscape foldable dumps
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: DeviceProfileAlternativeDisplaysDumpTest
Change-Id: I71f026d34dd536cc4041e1dd36908824eb479153
2024-11-19 00:49:26 +00:00
Shamali Patwa
f05d59cdad Merge "Update the enforce_system_radius_for_app_widgets flag's type" into main 2024-11-19 00:03:34 +00:00
Sunny Goyal
9b5b0c9598 Merge "Wait for animations before injecting input event" into main 2024-11-18 23:53:14 +00:00
Shamali Patwa
d2cc1f0577 Update the enforce_system_radius_for_app_widgets flag's type
Renamed to use_system_radius_for_app_widgets since metadata cannot be updated after submitting definition.

Bug: 373351337
Test: N/A flag metadata update
Change-Id: I25283b05341517f5984b0f2fc0d27efe8027a3de
Flag: com.android.launcher3.use_system_radius_for_app_widgets
2024-11-18 21:58:48 +00:00
Sunny Goyal
82efdccc6e Wait for animations before injecting input event
While animaiton is running, some views might not be visible causing
them to miss input events

Bug: 378167329
Bug: 378167718
Test: Presubmit
Flag: EXEMPT test fix
Change-Id: I8608c415e524fc5186833eac840ec18c6f244eb0
2024-11-18 13:44:20 -08:00
Uwais Ashraf
970d19327d Close repeatedly unclosed resources at the end of tests
Fix: 379432671
Test: edited tests, presubmits passing
Flag: EXEMPT test only change
Change-Id: I45c46d7a56a30af4a11dff54b5bcc8a1e9bcda5f
2024-11-18 21:39:59 +00:00
Treehugger Robot
e38be8df37 Merge "Migrating widgets tests off TAPL" into main 2024-11-16 09:16:30 +00:00
Fengjiang Li
f6f4c18ff9 Merge "Revert "Revert AllAppsRecyclerViewPoolTest.kt"" into main 2024-11-16 00:09:23 +00:00
Sunny Goyal
5f8e2d7c13 Migrating widgets tests off TAPL
Bug: 377772352
Test: Presubmit
Flag: EXEMPT test refactor
Change-Id: I6e9ffb3dee913617ca9ad897504e8457cfbdccd6
2024-11-15 12:45:27 -08:00
Sebastián Franco
856b462160 Merge "The test IntegrationReorderWidgetsTest was using the oposite dimensions" into main 2024-11-15 17:20:06 +00:00
Sebastian Franco
531a219ba7 The test IntegrationReorderWidgetsTest was using the oposite dimensions
The order of the columns shold be inversed, it hasn't been much of an
issue because most of the test cases where of equal size 5x5 and 4x4.

Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: IntegrationReorderWidgetsTest
Change-Id: I5de3f63edbb6b446352ce97226e39fb29cdb1439
2024-11-14 20:39:55 -08:00
Treehugger Robot
7bf8675679 Merge "Fixing LauncherAppCompoent not available for isolated context" into main 2024-11-14 22:24:00 +00:00
Sunny Goyal
5861ee437a Fixing LauncherAppCompoent not available for isolated context
In those cases, creating a new LauncherAppCompoent and storing it in
the application context

Bug: 372180905
Test: atest LauncherComponentProviderTest
Flag: EXEMPT bugfix
Change-Id: Ibf517a23801138b1fa18e8e4a7adbdedb994365b
2024-11-14 12:34:26 -08:00
Fengjiang Li
8fa1dcdc03 Revert "Revert AllAppsRecyclerViewPoolTest.kt"
This reverts commit 6554ab99e3.

Reason for revert: Since ag/28600866 was the real fix of b/354560500, we should restore the AllAppsRecyclerViewPoolTest.kt

Fix: 359247985
Test: Presubmit
Flag: NONE - released

Change-Id: I54c3a4d15ec5a9e96cd03c465d10898ef6ac2078
2024-11-14 16:21:07 +08:00
Sunny Goyal
cac373ce91 Separating TAPL functionality from AbstractLauncherUiTest into a separate base class
This will make it easier to get rid of AbstractLauncherUiTest by directly depending on the base class

Bug: 377772352
Test: Presubmit
Flag: EXEMPT test infra
Change-Id: I46ceb188ed4b64d4fb86236969ed0d3f23809000
2024-11-13 16:27:22 -08:00
Treehugger Robot
8a0d3fd363 Merge "Test KQS gets dismissed in certain situations" into main 2024-11-13 23:26:46 +00:00
Toni Barzic
121f6880dd Test KQS gets dismissed in certain situations
Adds tests that verify the KQS gets properly dismissed when user swipes
home while Keyboard Quick Switch UI is shown.

Bug: None

Test: atest TaplTestsKeyboardQuickSwitch
Flag: EXEMPT tests
Change-Id: I6da053f297eedb297c0d40a7414883fbd69b94e5
2024-11-13 21:28:21 +00:00
Juan Sebastian Martinez
d36f0d2b7a Adding MSDL feedback to dragging apps and widgest over drop targets.
The ButtonDropTarget class delivers MSDL feedback onDragEnter.

Test: DeleteDropTargetTest
Test: manual. Verified haptics when dragging apps and widgtes over
  "Remove" and secondary drop areas.
Flag: com.android.launcher3.msdl_feedback
Bug: 371249457
Bug: 371315650
Change-Id: Ic3f79ab5e3da7bb26797f2a1bfb79b5e37b3ac97
2024-11-13 10:20:13 -08:00
Schneider Victor-tulias
7e34644021 Merge "Revert "Revert "Reset the frozen recents list state prior to tes..."" into main 2024-11-13 14:54:31 +00:00
Treehugger Robot
bda5d70e03 Merge "Revert "Adding screen record for the bug where we can't find a folder after dragging"" into main 2024-11-13 00:53:04 +00:00
Vadim Tryshev
e238685c0d Revert "Adding screen record for the bug where we can't find a folder after dragging"
This reverts commit 243650e2cb.

Reason for revert: Bug stopped to repro

Change-Id: Idebb704546146018c6a365143ff84efb04be9c27
2024-11-12 23:09:38 +00:00
Shamali P
290fa07cc0 Update tapl test to consider the show all button
TAPL tests seem to be using system image with old PCC app and enables
airplane mode. So, it is likely filters won't load doesn't show, but
tried to create a cuttlefish image to test cover both cases, so that
if it shows, test knows how to handle it.

tapl demo:
http://screencast/cast/NTQ5ODkyNjUxNjkyODUxMnxlZmMyNzNjZS1hYQ

Bug: 356127021
Test: Manual and tapl test
Flag: com.android.launcher3.enable_tiered_widgets_by_default_in_picker
Change-Id: I19b121e3ce27221cb5195a2e55f686635d775590
2024-11-12 22:33:39 +00:00
Charlie Anderson
90892a56b7 Merge "Revert "Update test activities with a non-default icon."" into main 2024-11-12 17:39:44 +00:00
Federico Baron
bad6326145 Merge "Add device profile dump flag guarding for OneGrid" into main 2024-11-12 07:39:56 +00:00
fbaron
9b2f38fa26 Add device profile dump flag guarding for OneGrid
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: n/a
Change-Id: I8bee69a051e81e7a1f7ed0d4e20196e2379a8ed0
2024-11-12 04:30:41 +00:00
Treehugger Robot
287b90278f Merge "Moving some tests off TAPL" into main 2024-11-12 00:35:53 +00:00
Charlie Anderson
3e7d28e1c7 Revert "Update test activities with a non-default icon."
Revert submission 29570743-fix-default-app-icons

Reason for revert: possible culprit of b/371183869

Reverted changes: /q/submissionid:29570743-fix-default-app-icons

Change-Id: I6be362d03791893f94d3393bf9c9ffc4d9e83ec9
2024-11-11 22:04:33 +00:00
Schneider Victor-tulias
a576a818e9 Revert "Revert "Reset the frozen recents list state prior to tes..."
Revert submission 24905816-revert-24866277-recents_freeze_tests-WMHXUBYPSF

Reason for revert: fixes b/374269947. revert reason may be obsolete

Reverted changes: /q/submissionid:24905816-revert-24866277-recents_freeze_tests-WMHXUBYPSF

Change-Id: I514973959407b48e9616d27a44bd93cdc8dd100e
2024-11-11 13:41:40 -05:00
Sunny Goyal
50eeb4c161 Investigating test failure in all-apps
Bug: 378167329
Test: atest KeyboardFocusTest
Flag: EXEMPT test fix
Change-Id: I2f9b9dad3dabf0dc25bb3751ba82a9dc03ccdae2
2024-11-11 10:15:46 -08:00
Sunny Goyal
4631b2eb2c Moving some tests off TAPL
Bug: 377772352
Test: Presubmit
Flag: EXEMPT test refactor
Change-Id: I390fcfd1ad698ba8858891b72e61e3b6792cf718
2024-11-08 14:55:56 -08:00
Sunny Goyal
5ad2d9f53c Moving some tests off TAPL
Bug: 377772352
Test: Presubmit
Flag: EXEMPT test refactor
Change-Id: I679ae043d617b74a61a682d802c38cc904d2d0c5
2024-11-08 11:09:59 -08:00
Federico Baron
b986ac5398 Merge "Resolve issue where incorrect grid migration logic was used when migrating to strictly taller new grid" into main 2024-11-08 16:42:03 +00:00
Sebastián Franco
8bd76f5b06 Merge "Adding Launcher Mode settings to Launcher settings" into main 2024-11-08 08:55:34 +00:00
fbaron
3c8a6c6914 Resolve issue where incorrect grid migration logic was used when migrating to strictly taller new grid
Bug: 364711064
Flag: com.android.launcher3.one_grid_specs
Test: n/a
Change-Id: I615c2ada4a2275899c08f8b40589c53c9e1dff84
2024-11-07 22:22:35 -08:00
Sebastian Franco
9e4c99befd Adding Launcher Mode settings to Launcher settings
Bug: 364711735
Test: NA
Flag: com.android.launcher3.one_grid_specs
Change-Id: Iab688ebdb8449f9258b61f59a0afe97875f82a81
2024-11-07 21:17:10 -08:00
Sunny Goyal
8bbe47c31b Moving Wait to kotlin
Making LauncherInstrumentation optional and removing some reduntant constants.
This allows less dependency on AbstractLauncherUITest

Bug: 377772352
Test: Presubmit
Flag: EXEMPT test refactor
Change-Id: I7cf78d6acc5fef0359dee141a06fd51ff9d4f5a8
2024-11-07 13:51:27 -08:00
Uwais Ashraf
3e630a5d4b Merge "Make the test wait for Main Thread execution." into main 2024-11-07 11:33:19 +00:00
Sunny Goyal
0d3bac3a11 Merge "Updating IconCacheUpdateHandlerTest also fixing cached shortcut info getting invalidated on every reboot" into main 2024-11-07 00:08:04 +00:00
Sunny Goyal
7ab3c7f744 Updating IconCacheUpdateHandlerTest
also fixing cached shortcut info getting invalidated on every reboot

Bug: 373085333
Test: atest IconCacheUpdateHandlerTest
Flag: EXEMPT bugfix
Change-Id: I8cdfe9e2d4a5b0b35ea71da4b3c18ebc9327016c
2024-11-07 00:07:54 +00:00
Brandon Dayauon
270e1c3dc4 Merge changes from topic "implementWorkSchedulerViewAndUpdateColorsOfFab" into main
* changes:
  Make sure work button is collapsed when keyboard is up upon going to app drawer
  Implement the work scheduler view and update colors of FAB
2024-11-06 19:57:26 +00:00