Commit Graph

4240 Commits

Author SHA1 Message Date
Vadim Tryshev 2d5713634e Ignoring more tests
Bug: 117106893
Test: will see on TAP
Change-Id: Ic031cc6756473552fc11186f666bcb9debfcecb5
2018-10-09 10:31:33 -07:00
Vadim Tryshev 61d8afc628 Keep hunting down flakes in testOpenCloseMessagesApp
More logging + removing a deprecated method.

Bug: 110103162
Test: TaplTests
Change-Id: Icdf6e297b09d73fcadb1fbe82f80d980280d43c8
2018-10-08 17:15:34 -07:00
TreeHugger Robot 9720452363 Merge "Converting long item IDs to int" into ub-launcher3-master 2018-10-08 23:27:27 +00:00
Vadim Tryshev b769edec46 Ignoring more tests
Bug: 117106893
Test: will see on TAP
Change-Id: I992edaff5e40e8c16188033b5cbda6b0228fc2b6
2018-10-08 16:05:11 -07:00
Sunny Goyal efb7e84242 Converting long item IDs to int
> Items ids were already being typecasted to int when being bound on the UI
> Using a consistent type allow better use of platform data-structures
> Adding IntArray and IntSet as a replacement for various Collection classes

Change-Id: Id3c650ed2420c2bfca3bd7671d2b705b56112371
2018-10-08 14:52:39 -07:00
Vadim Tryshev a7da86e14a More temporary logging to diagnose testPendingWidget_autoRestored
And waiting to loader to finish to improve determinism.

Bug: 117332845
Test: running Launcher
Change-Id: Icdfce969b61f8ceb952a2715037783458da4d4c4
2018-10-05 20:05:34 -07:00
Vadim Tryshev 51146bc7e6 Merge "Adding temporary logging to diagnose testPendingWidget_autoRestored" into ub-launcher3-master 2018-10-06 01:28:00 +00:00
Vadim Tryshev c052e4e68a Adding temporary logging to diagnose testPendingWidget_autoRestored
This test fails

Bug: 117332845
Test: running Launcher
Change-Id: I300c856992b3d1f559c4c31525a45e2c4a960f11
2018-10-05 17:37:01 -07:00
Vadim Tryshev acc9bbef6c Revert "Uncommenting WorkTabTest"
This reverts commit f76ea29772.

Reason for revert: The test now fails on ATP

Change-Id: Ic7bd89e61f4107338bbfaf63628646af427668d3
2018-10-05 21:51:53 +00:00
Vadim Tryshev f76ea29772 Uncommenting WorkTabTest
It started to work locally in condition, I believe, identical to those
on ATP.

Bug: 112899690
Test: adb shell am instrument -e size large -w -r -e debug false com.google.android.apps.nexuslauncher.tests/androidx.test.runner.AndroidJUnitRunner
Change-Id: I2decb2142d15e025402c0c32b7b161dd28d102bb
2018-10-05 13:27:40 -07:00
Vadim Tryshev 4ada2d2cde Resetting loader state after each UI test run
This is to prevent tests from affecting tests running after them.

Bug: 117332845
Test: Ran all tests; will see on TAP
Change-Id: Ie93ef30477eb069c6b4df48c6fceaceb968edaf4
2018-10-05 12:03:17 -07:00
Vadim Tryshev c295098e18 Enabling "in test harness" flag with a direct call
This allows running in-proc tests without enabling test harness on
Android and restarting Launcher.

Bug: 110103162
Test: TaplTests
Change-Id: Ife44eff4760eb1349a10847efe2c1f27643bf146
2018-10-04 16:33:45 -07:00
TreeHugger Robot bb24884801 Merge "Disable ShortcutsLaunchTest.testAppLauncher*" into ub-launcher3-master 2018-10-04 19:30:51 +00:00
Vadim Tryshev 5ec12a5d3a Disable ShortcutsLaunchTest.testAppLauncher*
Bug: 117106893
Test: will see on ATP
Change-Id: I2a38ef157b1e2efd4a433618c0570443ca34bdfb
2018-10-04 11:59:22 -07:00
TreeHugger Robot b609c7970a Merge "Disabling testConfigCancelled_rotate" into ub-launcher3-master 2018-10-03 23:20:13 +00:00
TreeHugger Robot 8c23679c5e Merge "Disabling TestDragIcon tests" into ub-launcher3-master 2018-10-03 23:19:31 +00:00
Vadim Tryshev 7662701ee9 Disabling testConfigCancelled_rotate
It's flaky

Bug: 117106893
Test: will see on TAP
Change-Id: I452af39b0b3401d1ef875aee3c49eedd298a1cd3
2018-10-03 10:37:16 -07:00
Vadim Tryshev 6ffb2c8faa Make @QuickstepOnOff and @PortraitLandscape available to all UI tests.
Also, fix rotation as Portrait as starting poin for all tests, to avoid
tests running in unexpected configuration.

Bug: 115645301
Test: run all Nexus tests
Change-Id: I3ab0e91db111eeefda77af2960c43962a119de0c
2018-10-02 17:32:01 -07:00
Vadim Tryshev ef5bcacdea Disabling TestDragIcon tests
The bug below is for re-enabling disabled tests.

For now, we'd benefit more for enabling presubmits.

Bug: 117106893
Test: will see on TAP
Change-Id: Ia61e72be42405c7be4df6b5088b5a6d9c472bcaf
2018-10-02 17:12:58 -07:00
TreeHugger Robot d9f52ae7ba Merge "Disabling ShortcutsToHomeTest tests" into ub-launcher3-master 2018-10-02 17:10:29 +00:00
Vadim Tryshev a2dc3c7211 Disabling ShortcutsToHomeTest tests
The bug below is for re-enabling disabled tests.

For now, we'd benefit more from enabling presubmits.

Bug: 117106893
Test: will see on TAP
Change-Id: I322deb9a64423587b329004f6cab4da1ff4f197d
2018-10-01 17:28:53 -07:00
TreeHugger Robot 899b87cc6b Merge "Disabling TestDragIcon tests" into ub-launcher3-master 2018-10-01 19:36:00 +00:00
Vadim Tryshev c78b6fa465 Disabling TestDragIcon tests
The bug below is for re-enabling disabled tests.

The problem is not reproable locally, at least after several hours of
attempts.

For now, we'd benefit more for enabling presubmits.

Bug: 117106893
Test: will see on TAP
Change-Id: Idd3f80accaf444eef29c151efea542924fcc713b
2018-10-01 12:27:35 -07:00
Sunny Goyal 15dba75e55 Merge "Caching widget labels in icon cache to avoid lookup at startup" into ub-launcher3-master 2018-10-01 18:53:42 +00:00
Sunny Goyal ac8154a23d Caching widget labels in icon cache to avoid lookup at startup
Change-Id: Ie026ee47905454bd70e774d422cd7fe142aec7e2
2018-09-28 16:36:33 -07:00
Vadim Tryshev 43524d0daa Attempting to fix flakes in AllAppsIconToHomeTest
Pressing an icon in AllApps doesn't show a context menu.

The flake doesn't repro locally, the suspects are:
1. Too short wait time
2. App being partially covered by navbar.

Hence the fixes.

This patch is temporary, and will be replaced with a permanent one when
this will be converted to TAPL.

Test: AllAppsIconToHomeTest
Change-Id: I0a03ff8827a5bc7940af3ec956d4b62330a16c66
2018-09-26 18:15:42 -07:00
Hyunyoung Song 3d6fa5205b Merge "Move IconNormalizer/ShadowGenerator/LauncherIcons to icons package" into ub-launcher3-master 2018-09-26 19:12:42 +00:00
Hyunyoung Song 48cb7bc7a4 Move IconNormalizer/ShadowGenerator/LauncherIcons to icons package
Bug: 115891474

Sending out the package name changing CL first before I make
LauncherIconsHandler and tests around it.

Change-Id: Ic10479a06333e1435b392a7072cd08782e710cbd
2018-09-26 11:57:37 -07:00
TreeHugger Robot bb517d3b25 Merge "Support for running tests out of Launcher process" into ub-launcher3-master 2018-09-26 09:18:26 +00:00
TreeHugger Robot d513d845fc Merge "Fixing AllAppsIconToHomeTest" into ub-launcher3-master 2018-09-26 08:56:06 +00:00
TreeHugger Robot 8968604045 Merge "Extracting icon caching logic into a base class." into ub-launcher3-master 2018-09-25 23:44:12 +00:00
Sunny Goyal 0b3053c9fc Extracting icon caching logic into a base class.
This will allow using the cache cache for other type of objects,
like shortcuts and widgets.

Change-Id: I38616d031cb051f93e724d9cc0e8fe9a822b9e3a
2018-09-25 16:36:06 -07:00
Sunny Goyal 8c79668069 Merge "Using velocity tracker for computing the velocity of motion events" into ub-launcher3-master 2018-09-25 21:15:26 +00:00
Vadim Tryshev 29e1b51a04 Fixing AllAppsIconToHomeTest
It's flaky now since apparently a previous test leaves open context
menu.

This should help.

Test: AllAppsIconToHomeTest
Change-Id: Iaa723f43963f2bfb2be8d590225cf18a2eec3d13
2018-09-25 11:46:39 -07:00
Vadim Tryshev 47d66ad879 Support for running tests out of Launcher process
This CL doesn't turn it on yet.

Bug: 113056917
Test: TaplTests
Change-Id: I01007cb9ab330166cbb8a4c1fcd0cee0c60aeba5
2018-09-25 10:32:30 -07:00
Sunny Goyal f7ed9c0f2c Merge "Removing additional rpc due to icon cache update" into ub-launcher3-master 2018-09-24 16:43:18 +00:00
Sunny Goyal f840f10d50 Removing additional rpc due to icon cache update
When launcher loads, it fetches the list of apps twice, once for
loading all-apps and again for updating icons. Instead reusing
the previously fetched apps list.
Also moving the icon loading in a separate package for further
generalization

Change-Id: Ibd2dae56e6027a31b633da030bc6b43a90b27e1b
2018-09-21 15:27:03 -07:00
TreeHugger Robot 19e0e8ab1f Merge "Add support for testing in portrait mode" into ub-launcher3-master 2018-09-21 22:03:07 +00:00
Vadim Tryshev 802a28946c Add support for testing in portrait mode
Bug: 110103162
Test: TaplTests
Change-Id: I7f633405c04984ea8f04acdc6dd4ad21019d3409
2018-09-21 14:53:11 -07:00
TreeHugger Robot ce21dc3f74 Merge "Add more checks to AppIcon.launch()" into ub-launcher3-master 2018-09-21 05:11:58 +00:00
Vadim Tryshev c0b1a7e58e Removing unnecessarily calling parent's tearDown
I'ts called automatically

Bug: 110103162
Test: affected tests
Change-Id: I32ac35a425dedadabea63e02be5a7dffa3cced25
2018-09-19 14:17:05 -07:00
Vadim Tryshev 9a9e43461f Merge "Adding logging pressHome()" into ub-launcher3-master 2018-09-19 20:15:46 +00:00
Vadim Tryshev 3c6607e298 Add more checks to AppIcon.launch()
Apparently, one platform tests starts Messages, and Messages
simply doesn't start.

This check will help to hunt down the problem.

Bug: 110103162
Test: affected tests
Change-Id: I8d781647a2e680e31e96db40d94b89e7728aaf11
2018-09-18 20:03:28 -07:00
Vadim Tryshev 66408d90e1 Adding logging pressHome()
Will help understanding flakiness of platform smoke tests.

Bug: 110103162
Test: TaplTests
Change-Id: I7c112554f8281ebe0e62026644e5705a7d1218a2
2018-09-18 14:44:21 -07:00
Vadim Tryshev c59465efe0 Disabling heads-up notifications in launcher tests.
This prevents the tests from interacting with this popup.

Bug: 110103162
Test: TaplTests
Change-Id: I0215ddab634611d20a63ed728de11d4138456f96
2018-09-18 14:02:33 -07:00
Vadim Tryshev ee598ada79 Adding logging to debug jank test problems
Bug: 110103162
Test: TaplTests
Change-Id: I0bae4f2242031ebcdbb24638f61a6b8d37b162e2
2018-09-13 14:56:49 -07:00
Sunny Goyal 4d8ec15fb5 Using velocity tracker for computing the velocity of motion events
Change-Id: I14f2f970825a2936f4bb285834405d67daf8667c
2018-09-13 09:50:47 -07:00
Vadim Tryshev e02e06a9d4 Including go/tapl in error messages
Bug: 110103162
Test: making a test fail, checking a link
Change-Id: If64948a6656214c5065150803b2a1a7020fb82c5
2018-09-07 15:46:59 -07:00
Vadim Tryshev 0831c7cefb Adding README for TAPL
Bug: 113287120
Test: Opening http://go/tapl
Change-Id: I77faf1474c582b08386298ed45ff4392885b05a7
2018-09-05 18:08:55 -07:00
TreeHugger Robot c63461f56b Merge "Move tapl build rule to Android.bp" into ub-launcher3-master 2018-09-05 20:43:00 +00:00