summaryrefslogtreecommitdiff
path: root/tests/src
AgeCommit message (Collapse)Author
2021-12-14Merge "delete appIcon from workspace via TAPL" into sc-v2-devLing Wo
2021-12-10delete appIcon from workspace via TAPLLing WO
1. Create a new class for DropBar icon. 2. Implement function to delete appIcon from workspace. 3. Add testDeleteFromWorkspace to TaplTestsLauncher3. Bug: 205593009 Test: Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testDeleteFromWorkspace Change-Id: I259b909aebcdcc1c73af63a9970db43dab3e86eb
2021-12-09Improving memory dump diagvadimt
atest deletes artifacts directory on the device, but saves artifacts at the host machine. Bug: 187761685 Test: presubmit Change-Id: I1f5244ebfe6b606c4891f5fca003541b27cc944c
2021-12-02Add TAPL tests for two panel workspaceAndras Kloczl
- Add test for icon dragging - Add test for page pairing - Add test for empty page removal - Add dragIcon helper method Test: TwoPanelWorkspaceTest Bug: 197631877 Change-Id: I7ce2dd88e183626feac49b34254d00a589473944
2021-11-30Merge "Fling to close tasks in the GestureNav can be too small." into sc-v2-devTreeHugger Robot
2021-11-25Merge "Revert "Migrate workspace item adding tests to kotlin"" into sc-v2-devTreeHugger Robot
2021-11-25Revert "Migrate workspace item adding tests to kotlin"Alex Chau
This reverts commit e77eafc2635d27a6bf2120e2dd770bb99ec06102. Reason for revert: b/207684378 Bug: 207684378 Bug: 199160559 Change-Id: I4a35fea423f1cd7afae4603fd1185150763f8bf0
2021-11-24Merge "Migrate workspace item adding tests to kotlin" into sc-v2-devAndrás Klöczl
2021-11-23Migrate workspace item adding tests to kotlinAndras Kloczl
In a former CL (http://ag/16064580) I've tried to do the same but presubmit was constantly failing, probably because the test is in kotlin. Test: AddWorkspaceItemsTaskTest.kt Bug: 199160559 Change-Id: Ie1bc4fcd4f94cd7cb0601c21bbdf273452b9dd1f
2021-11-22Add timeout to AbstractLauncherUiTest.getOnUiThreadAlex Chau
- Send signal 6 to Launcher process when this happens to get a thread dump Bug: 203416429 Test: labtest Change-Id: If22b58418be33131e7f585e718a2197cda2e7365
2021-11-19Merge "Revert "Adding screen record for a flake"" into sc-v2-devTreeHugger Robot
2021-11-17Recognizing Launcher builds consisting only of digitsvadimt
Bug: 206687633 Test: online regex tools Change-Id: Ia6155f22fb9a0eba3beb6edb607f44f901629330
2021-11-17Revert "Adding screen record for a flake"Jonathan Miranda
This reverts commit da02250c2957048c5b0ea0f802a5c61330ef46f1. Reason for revert: Flake resolved Bug: 202735477 Test: presubmit Change-Id: I86856110ca9b8745c194a716a587d3bbe7f0137e
2021-11-16Fling to close tasks in the GestureNav can be too small.Sebastian Franco
The problem is that the velocity threshold to activate the fling was set using pixels per second, so a better aproach would is to use dp/s. So now there is a variable set in the dimes.xml file called base_swift_detector_fling_release_velocity. Test: Manually tested Fix: 201252634 Change-Id: Ief14f25de136dead74f03cb24d2120b67900239e
2021-11-16Merge "Fix LauncherProvider newScreenId issue" into sc-v2-devTreeHugger Robot
2021-11-16Revert "Add ScreenRecord to methods affected by a flaky problem"Alex Chau
This reverts commit ea6ee1c82461d7fe56d570d69f50d8d798adaa8d. Reason for revert: Seems to increase the severity of the flaky problem Bug: 204807156 Change-Id: I7b87f2abf45c9da21981f9361e320163bd7834bd
2021-11-15Add ScreenRecord to methods affected by a flaky problemAlex Chau
Bug: 204807156 Test: none Change-Id: I554c032b2ea43b8ee813f694d9c995f4ebc4a90f
2021-11-12Removing a dead testvadimt
Test: presubmit Bug: 147235759 Change-Id: I1412360316c87813d309cfbc1deefad00e7dd2ce
2021-11-12Fix LauncherProvider newScreenId issueAndras Kloczl
Remove maxScreenId from LauncherProvider and whenever we need a new screenId, query the database to calculate a new screenId. Also converted and refactored AddWorkspaceItemsTaskTest and added some extra test cases. Test: manual & AddWorkspaceItemsTaskTest.kt Bug: 199160559 Change-Id: I185f6823fed171d778af0130497f5ffaf89c0a70
2021-11-10Merge "Allow overriding getOptionsPopup test method." into sc-v2-devBrian Isganitis
2021-11-09Add back waitForStateTransitionToEnd to fix flakiness.Jon Miranda
Bug: 202735477 Test: presubmit Change-Id: I03c7e8b0c40177f4e6e38a7d9aa3e01b029effd6
2021-11-09Add resume check to other WorkProfileTests to fix flakiness.Jon Miranda
- Tests were flaky with waitForStateTransitionToEnd - Tests stopped flaking with both waitForResume and waitForStateTransitionToEnd - waitForResume may be enough to fix the flakiness, so removing waitForStateTransitionToEnd for now, if flakiness returns we can add it back Bug: 202735477 Test: presubmit Change-Id: Ib9cc16ea7815387582486517a87249d0053475f6
2021-11-09Remove gap between screenIds when restoring from single display deviceAlex Chau
- In RestoreDbTask.sanitizeDb, add extra step to fill all screenIds gaps so that no empty pages are left in between e.g. [0, 3, 4, 6, 7] -> [0, 1, 2, 3, 4] Fix: 201085524 Test: RestoreDbTaskTest Change-Id: If0b577bf789347cc490ada0b22f2cd39ee1a33bb
2021-11-08Allow overriding getOptionsPopup test method.Brian Isganitis
Test: TAPL Bug: 205491724 Change-Id: Ib4adfa85df6aa9e52922f76479487c9459535fcd
2021-11-08Testing to see if waiting for resume will fix flaky tests.Jon Miranda
Similar to how AbstractLauncherUITest waits for resume after switching state to Normal. Bug: 202735477 Test: presubmit Change-Id: I61834d32f8005491a4e14a354dc0097b05267f7b
2021-11-05Testing to see if waiting for transition to end will fix flaky testsJon Miranda
Test: presubmit Bug: 202735477 Change-Id: Icf62003b9f422cf0e327365260c36f6d57b71aef
2021-11-04Merge "Testing to see if using isInStableState is better condition vs ↵Alex Chau
getCurrentStableState" into sc-v2-dev
2021-11-04Disable Tapl pressBack and dragToFolder TestsBenno Lin
The tests break on R3 and S5 devices. Therefore the CL disable them temporarily until the issue being resolved. Bug: 205027405 Bug: 205014516 Test: disable tests that break ATP tests on R3 and S5. Change-Id: Ib71c2f334d98445aeafa211d9bba2910d191b6fb
2021-11-03Testing to see if using isInStableState is better condition vs ↵Jon Miranda
getCurrentStableState Test: presubmit Bug: 202735477 Change-Id: I06c964cc92b7731e73628210688817e2d9cf1bac
2021-11-03Implement pressing back button and swiping backBenno Lin
This CL implements a pressBack function to press back button or swiping back in gesture navigation mode. Bug: 199120092 Test: atest -c Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testPressBack && atest -c NexusLauncherTests:com.android.quickstep.TaplTestsQuickstep#testPressBack Change-Id: I001cea17d09ae1ab7952d04ee394a2afa5bf1e67
2021-11-03Merge "Update TAPL to operate on folder icons." into sc-v2-devBenno Lin
2021-11-01Adding screen record for a flakeJon Miranda
Test: presubmit Bug: 202735477 Change-Id: I4e1d2bc3650e2f52767f57e9b00c9c2bf7974489
2021-10-25[Test] Introduce tracing to identify why pm create-user is failingsfufa@google.com
Bug: 203817455 Test: presubmit Change-Id: Iccfa152bea7a914292d566d6dd3e58eb73c38aa4
2021-10-25Update TAPL to operate on folder icons.Benno Lin
The change updates features listed as follow: 1. Create a new class for folder icon. 2. Implement function to drag a icon to the other. (create a folder) 3. Find folders in a workspace. Bug: 199120092 Test: Launcher3Tests:com.android.launcher3.ui.TaplTestsLauncher3#testDragToFolder Change-Id: I3044025f8297f6e442446d70238f4b56f38a798a
2021-10-20Merge "Fix bug with resize frame in Launcher3." into sc-v2-devTreeHugger Robot
2021-10-20Fix bug with resize frame in Launcher3.Yogisha Dixit
Also updated the tests to check that the resize frame is shown. Bug: 192655785 Test: AddWidgetTest, AddConfigWidgetTest, manual Change-Id: Id348f39cec1bebc8ec9ea9f3068f4bda2159eac4
2021-10-20Merge "Add new quickstep test for many tasks open at once." into sc-v2-devPat Manning
2021-10-20Add new quickstep test for many tasks open at once.Pat Manning
This test is needed for testing overview-grid-related functionality. - Opening non-focused tasks - Dismissing a non-focused task from the grid - Grid rows rebalancing after dismissal, which only happens when enough apps are open to be off-screen. - Grid tasks do not scroll after dismissal. Test: TaplTestsQuickstep.java Bug: 197630182 Change-Id: Ic907db4643cdc2eb9e4610dab917347e234e470c
2021-10-18Revert "Clear only workspace shortcut / widget related tests"Alex Chau
This reverts commit 22be1a47f4b0ca67e115670e7005750aef5a52e8. Reason for revert: Breaks another test Bug: 202546679 Change-Id: I796c508a6d7c00ec8c1d48e3517453f9eca0616c
2021-10-15Clear only workspace shortcut / widget related testsAlex Chau
- This ensure hotseat to be populated with default items, so it won't result in an empty taskbar which get stashed in apps - Workspace needs to be cleared because shortcut / widget dragging won't always work if there are items in workspace. It only happens in test due to the way we drag items. Fix: 202546679 Test: NexusLauncherTests:com.android.launcher3.ui.widget.RequestPinItemTest Change-Id: Ib3ded6a685eaa1b169b75fd179c9e29ca4be1e72
2021-10-07[Work profile][Test] Remove tracing logs for testWorkeduFlowsfufa@google.com
Bug: 159671700 Test: NA Change-Id: I097134c45155f0e65ef4376fab803796f3fdb12a
2021-10-07[Work Profile] Enable work profile testssfufa@google.com
Bug: 159671700 Test: presbumit Change-Id: Icfe39c30d603a4ae4cac576bc44037f545437ced
2021-10-05launcher: create more space optionsThales Lima
The grid doesn't have a constant space between cells anymore, so we need new attributes for the different spaces in different situations. Bug: 191879424 Test: checking cell size and extra space in dumpsys Change-Id: I4b6aae5b3fea281490c00cd13d0cd3a25372f21b
2021-10-01Merge "Group weather widgets under the widget category" into sc-v2-devSteven Ng
2021-09-30Group weather widgets under the widget categorySteven Ng
Test: manual (see video in bug) and added PackageUserKeyTest Also tested pending conversation widget to ensure the right icon is shown. Fix: 201062480 Change-Id: If23c28bd93c54fb1747648309ab3c238a1810902
2021-09-29Merge "Do not reorder recommended widgets in widget picker." into sc-v2-devAlina Zaidi
2021-09-29Do not reorder recommended widgets in widget picker.Alina Zaidi
This is to show them in ranking order sent by aiai. Bug: b/201079509 Test: Added unit test in WidgetsTableUtilTest Change-Id: I366ecaee8bc157aca185f633462d95fbd1dd180b
2021-09-27Merge "Moving activity tracker to Launcher process" into sc-v2-devTreeHugger Robot
2021-09-27Moving activity tracker to Launcher processvadimt
This will improve diagnostics for OOP tests, like we now have a list of leaked activity classes. Also some cleanups. Bug: 187761685 Test: local runs Change-Id: I8b5711ac727874fd826cfef9c742ea97048763e0
2021-09-24Merge "Allowing having only SysUI views before pressHome()" into sc-v2-devVadim Tryshev