summaryrefslogtreecommitdiff
path: root/tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java
AgeCommit message (Collapse)Author
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-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-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-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-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-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-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-08-18Updating test build rulesSunny Goyal
> Moving definition to bp files > Adding mokito-inline to allow mocking final classes > Moving src_common to src to avoid unnecessary code split Bug: 196825541 Test: Presubmit Change-Id: Ib6879cda6aee74f5b9050a16eb6ca94ed3b7e28c
2021-08-05Revert "Revert "Removing workaround for battery defender""Vadim Tryshev
This reverts commit f9ccf0175dc56049abfa067704dbd81af16331cc. Reason for revert: to see whether b/151613234 is fixed Test: pre-, post- submit Bug: 151613234 Change-Id: Ieda2907319d796a57494318920c22f3db4527dab
2021-08-03Merge "Logging to figure out why first dump didn't result in assertion" into ↵TreeHugger Robot
sc-v2-dev
2021-08-03Logging to figure out why first dump didn't result in assertionvadimt
Bug: 195319692 Test: presubmit Change-Id: I4a80541a58eb8f630211de4b90836c435f6d41b2
2021-07-20Re-enable leak detection on tabletsAlex Chau
Bug: 191449914 Test: NexustLauncherTests Change-Id: Ia2fe0826c933e646260c16d8890aaf2a47023e6d
2021-06-26Merge "Enabling screen record for some flaky tests" into sc-dev am: 5c6d7c3a1fTreeHugger Robot
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15112968 Change-Id: I188875721529cbb36fd5ae37fb304953125802fc
2021-06-25Enabling screen record for some flaky testsSunny Goyal
Bug: 187080582 Bug: 192005114 Bug: 192018189 Bug: 192010616 Test: Manual Change-Id: I32fc0e4c9848c4def1aa6254139579bc631862cc
2021-06-24Add touch event of on taskbar for various casesAlex Chau
- Temporarily disable leak detection on tablets until b/191449914 is resolved - Add touch event on taskbar when interacting with navigation buttons - Added TaplTestsLauncher3.initialize to StartLauncherViaGestureTests which is present in TaplTestQuickstep to solve LauncherInstrumentation being null problem on tablets Bug: 191344757, 191449914 Test: TaplTestQuickstep and StartLauncherViaGestureTests Change-Id: I49accc458d133717f290140abe80aae8a683f6c0
2021-06-22Detect leaks only on test successvadimt
Bug: 191690396 Test: presubmit Change-Id: Ie59c3b944d420ac25ebba86bf500fcf33700ca99
2021-05-14Revert "Removing workaround for battery defender"vadimt
This reverts commit f4bb052ca076fc2fb8d6f29140252b6154c984e1. Reason: we have new episodes of phone locking during the test. https://flakes-clusters.corp.google.com/#?androidAtpBranch=git_sc-dev&androidAtpModule=com.google.android.apps.nexuslauncher.out_of_proc_tests&d=3&maxResults=10 https://flakes-clusters.corp.google.com/#?androidAtpBranch=git_sc-dev&androidAtpModule=com.google.android.apps.nexuslauncher.tests&d=3&maxResults=10 Search for "Phone is locked" and "Keyguard is visible". Also, for new devices, the phone is locked consistently, see for example Redfin here: https://blackbox.googleplex.com/dashboard/Launcher3Main_new_devices/testsuite/git_master/nexuslauncher_oop_tests_platform/2/bramble-userdebug/0 Reverting to see whether this helps. Bug: 151613234 Test: presubmit Change-Id: I44a94f9722deaa21d89fdfd79646ae661ebe972d
2021-05-12Removing pss checks in memory testsvadimt
Test: presubmit Bug: 185181057 Change-Id: I4f504f9540b80c62cd3f1024ff1d1b57102f2ed6
2021-05-11Diagnosing only system health problems happened during the testvadimt
Test: presubmit Bug: 187761685 Change-Id: I3feba12e2228fe6dda3b0d65d904b0b839da2108
2021-04-19Disable strictmode leak detectionvadimt
It doesn't work; the check was enabled by mistake. Test: presubmit Bug: 185786290 Change-Id: Ie049f1d6d7cef5acfa3ee29b5f9e9586fbeb24a5
2021-04-12Clearer diag for visible keyguardvadimt
Test: presubmit Bug: 179508881 Change-Id: I69f2e766701e77d927169b570d2dad0bf8d4c75a
2021-03-30Using an independent drawable for rounded cornersSunny Goyal
Bug: 183641907 Test: Manual Change-Id: I3114d43d07c03884348e1c33805545f19bb8d540
2021-03-25Fix failed test in order to enable Live Tile (in the next change)Tracy Zhou
Live tile changes certain assumptions we have for tests, for example - Launcher will not be in the resumed state after swiping up to Overview Also, disable live tile for 3rd party launcher for now Test: presubmit Fixes: 169694902 Change-Id: Ifd466db0354f59290c4f66a0a2ad4c82f1169f29
2021-02-26Better diagnosing leaked activities.vadimt
Test: manual Bug: 181356264 Change-Id: I9bf843a1d26bc4cf255c1b8d2cce0febeaa4c4fe
2021-01-20Merge "Adding debug tracing for Device.wait"TreeHugger Robot
2021-01-20Merge "Removing automatic failure investigator"Vadim Tryshev
2021-01-19Removing automatic failure investigatorvadimt
It wasn't updated for a while, creates a false impression that the failure is already tracked, and hopefully soon will be replaced by new clustering. Test: presubmit Bug: 161478674 Change-Id: Icc3716c1f534867d5e4b21d18c9cede273da8704
2021-01-15Adding debug tracing for Device.waitvadimt
I suspect it may wait for a period of time less than the specified one, causing flakes. Test: presubmit Bug: 177318681 Change-Id: I0be8790c6ee9a5831767fe83c36054ed5a84f8d7
2021-01-14Correctly generating heap dumps for OOP testsvadimt
Not trying to dump the test process :) Still using Debug.dumpHprofData for inproc because using shell command for inproc can deadlock. Test: manual Bug: 177065099 Change-Id: I4b581954a01ecc8a1427409baa030aaa3b70d6b5
2021-01-13Generating Hdumps for more leaksvadimt
Test: presubmits Bug: 177065099 Change-Id: I386229cf92a925d2953952ed0fab6c44dcdc61f0
2021-01-05Removing workaround for battery defendervadimt
The bug is supposed to be fixed. Bug: 151613234 Change-Id: I8e803ead29e08e68fa75f61b5ad0e1198c9228ec (cherry picked from commit ff39fd3e14329db22ef34da32b9116fbe39af6f1)
2020-10-23Revert "Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ...""Winson Chung
This reverts commit 087a9e39b663dade90d8dfd74300e42575649b87. Change-Id: I05b17a6e4aaaef6de3c2fa26aad45a39eb2833f9
2020-10-05Revert "Merge commit '8d14dbe041199d611839140f1c9285fd4174e9f4' ..."Alistair Delva
Revert "Merging from ub-launcher3-master @ build 6877130" Revert "Merging from ub-launcher3-master @ build 6877130" Revert "Merging from ub-launcher3-master @ build 6877130" Revert submission 12738409-merge_ub-launcher3-master_6877130 Reason for revert: Introduced crashes to global presubmit Reverted Changes: I624658ce6:Merge commit '8d14dbe041199d611839140f1c9285fd4174... Iccd2f1e3a:Merging from ub-launcher3-master @ build 6877130 I791d64951:Merging from ub-launcher3-master @ build 6877130 Icdd32ab01:Merging from ub-launcher3-master @ build 6877130 Bug: 169963211 Change-Id: I77a4ae59e823147beae8dd7cb9b54ccdace2c7f4
2020-09-30Resolve race condition between @Before conditionsSamuel Fufa
Bug: 159671700 Change-Id: I5c96c32c171b7b539ce0ea799cf45955c2bee670
2020-07-31Enable memory dump for LauncherYuchen He
Bug: 154772063 Change-Id: I3b2bc2e341037746891658f2596999248ec272ef (cherry picked from commit 12baaadeca97160ab567f4380991470ff536ff5f)
2020-07-29Moving all-apps predictions to Launcher modelSunny Goyal
Predictions are loaded and managed by Launcher model and follow the model lifecycle. They are then bound to the callback which handles the UI Bug: 160748731 Change-Id: I4a3ea0698d80fafe94afb4ce66ffa7f4a6a91c68
2020-06-22Eliminating messages that launcher activity is frozenvadimt
They were ultimately caused by killing Launcher process from tests. Now having a test info handler request to clear db. Bug: 152629799 Change-Id: Ia81ddc3e338718c4cff08c7396b9fda1b7091024
2020-06-10Removing debug requests from non-debug test info handlersvadimt
Bug: 152629799 Bug: 153670015 Change-Id: I02776be811d1d3325b35880d19d25a6638f904ef
2020-05-12Merge "Abstracting out state handler logic into base classes so that it can ↵TreeHugger Robot
also be used in different activity" into ub-launcher3-rvc-dev
2020-05-11Merge "Resolve Test flakes" into ub-launcher3-rvc-devTreeHugger Robot
2020-05-11Abstracting out state handler logic into base classes so that it canSunny Goyal
also be used in different activity Change-Id: Ic5e60b21e1429c71f1cd4e7041e70bf4fc9761b7
2020-05-10Resolve Test flakesSamuel Fufa
-> Synchronize calls in LoaderTask.java issue 156041043 -> Remove non system users on setup If a work test crashes before getting to run its teardown - we might end up with a user profile that could throw off subsequent tests. issue 156022161 Test: Manual Change-Id: Ife708a3de01572f7cb2187078d592d8d570dd951
2020-05-08Adding waiting for Launcher initializationvadimt
This may fix or ease TIS sometimes not receiving events. Bug: 154157191 Change-Id: I5db9e88397788014dbba9716d777a2b97347828c
2020-04-27Support for counting activity creationsvadimt
Bug: 139137636 Change-Id: Ib999fd3c82eb2997662578ec35e1d9e1e75e3cbb
2020-04-23Merge "Makeshift analog of Strictmode leak detector" into ub-launcher3-rvc-devTreeHugger Robot