Commit Graph

4240 Commits

Author SHA1 Message Date
vadimt 6938276da1 Tapl: also logging contexts
Contexts were added for better diags when an assert happens, but they
are also useful for tracing the test execution.

Change-Id: I1512f3f7e02a373096bab4f0b390b1febfc96334
(cherry picked from commit 77ca70fea6)
2019-04-12 19:25:01 +00:00
vadimt 6903c0ac65 Use correct indicator of a long-press success in tests
It's the presence of the context menu if we long-press a shortcut, and
the drop target bar if we press a menu item.

Change-Id: Ic02462fa766e23b74f41b8a73fefd519aea08407
(cherry picked from commit e77fc83222)
2019-04-12 19:23:40 +00:00
vadimt b96898a025 Not using Settings app as a source of shortcuts
Bug: 126587956
Change-Id: I13ef4298a8133ff5773eef8658a04094d5d154da
(cherry picked from commit 476a511ca5)
2019-04-12 19:22:09 +00:00
Sunny Goyal c0f03d9665 Adding support for loading the default layout from a content provider
The autority of the provider should be set in secure settings:
  launcher3.layout.provider

Bug: 127987071
Change-Id: Iccf2960aa6c0a5a8ff9621b13d8963d9daecb993
2019-04-10 12:06:17 -07:00
Vadim Tryshev 32464d7de6 Merge "Not deleting assistant from sources" into ub-launcher3-master 2019-04-06 00:49:31 +00:00
vadimt e924eb93ae Not deleting assistant from sources
Now it's done via test config files

Change-Id: Ia31f6de8a44ce29b1ccc01fdb509b6d1e8f2d49d
2019-04-05 17:00:30 -07:00
Vadim Tryshev 9155ea4cf2 Merge "Changing how we inject drag gesture" into ub-launcher3-master 2019-04-05 23:51:01 +00:00
vadimt a6700d04d8 Changing how we inject drag gesture
Since Launcher doesn't use event time to detect the long click that
start drag, it may not detect valid long clicks. Now waiting for the
context menu to appear.

Bug: 129434166
Change-Id: I7431d185016152fa63e75ea394dd8caf3365b21b
2019-04-05 13:31:36 -07:00
Vadim Tryshev ad56fdf1e2 Merge "Not using Settings in TaplTestsLauncher3.testDragAppIcon" into ub-launcher3-master 2019-04-05 02:06:30 +00:00
vadimt fb0cb7a26c Not using Settings in TaplTestsLauncher3.testDragAppIcon
Settings frequently crashes

Bug: 126587956
Change-Id: Ied62d6f8783d8f0f9c434bdd8ee14c62d6cbc4c1
2019-04-04 18:45:49 -07:00
Vadim Tryshev 2c46fcfa3a Merge "Going home via swipe in supported cases" into ub-launcher3-master 2019-04-04 23:24:10 +00:00
vadimt 01e114bbf5 Going home via swipe in supported cases
Change-Id: I8a127e206374e6e4274ad970cfaf132c3089125b
2019-04-04 15:38:08 -07:00
vadimt 2a0670890a Not using system res ids in tests
Change-Id: I3aad2380dd6cd51ee23803cf5164f8b332a62e98
2019-04-04 14:36:53 -07:00
vadimt 24eb1c9c89 Not using magic constant for edge sensitivity
+Some cleanup in TAPL

Change-Id: I886a6c4abacf8b806ee5507e633ec21f2e7ad1d4
2019-04-04 13:20:34 -07:00
Vadim Tryshev 077df72acc Merge "Diagnosing phone locked state in TAPL" into ub-launcher3-master 2019-04-04 17:36:46 +00:00
vadimt 471115589e Diagnosing phone locked state in TAPL
Change-Id: I4bc678b35ca373015eaf476901694aee4df348f3
2019-04-03 19:09:59 -07:00
Vadim Tryshev 293069f7ef Merge "Not using Play Store app in tests" into ub-launcher3-master 2019-04-04 01:52:50 +00:00
vadimt f185552108 Not using Play Store app in tests
As it magically misses from some devices

Change-Id: I7765d987ef996dc2f515b9a0023b6f545f9cb534
2019-04-03 18:31:43 -07:00
TreeHugger Robot a733fb11f8 Merge "Fix SwipeDetectorTest" into ub-launcher3-master 2019-04-04 01:26:53 +00:00
Tony Wickham 5b58d5f7b2 Fix SwipeDetectorTest
Change-Id: Ic2ef1f73b7381b31cf495ea505794c0689da9ac9
2019-04-03 18:10:54 -07:00
Vadim Tryshev 7e4efe3f66 Merge "Exiting tests after a test fails to deinitialize" into ub-launcher3-master 2019-04-04 00:33:38 +00:00
vadimt 19f996d7d7 Exiting tests after a test fails to deinitialize
This avoid confusion when following tests get affected by failures in
earlier tests.

Change-Id: I44abcb38d5de222e48b0c33f062044280305750e
2019-04-03 17:16:27 -07:00
vadimt 67d3fd574b Not using unstable Messages app in tests
Change-Id: I4811621613dc950ce5d16fc621b7f546170d8037
2019-04-03 15:44:19 -07:00
vadimt 840ed21605 Not swiping from nav bar from Overview to all apps
This makes zer-button nav think that we are trying to go to home

Change-Id: I66c866ba850d417a527ca0b942adb837e3027e67
2019-04-03 12:36:53 -07:00
Winson Chung efd4eb98a2 Fix issue with nav bar mode check in tests
- Don't use the version with the baked in resource constant

Bug: 129697378
Change-Id: I9b7235d10d9493273495a507ddd662a01d8870c3
2019-04-02 11:22:32 -07:00
Vadim Tryshev a8bd0527ef Merge "Improving TAPL diagnostics (contains changes in Launcher)" into ub-launcher3-master 2019-04-02 17:34:24 +00:00
vadimt a734bd8d26 Improving TAPL diagnostics (contains changes in Launcher)
Bug: 128531133
Change-Id: Ice1ffecb39cf88afb546ceefdfca21abd879f35d
2019-04-01 13:43:46 -07:00
Vadim Tryshev c3e5d3ef1b Merge "Not swiping from nav bar when scrolling in all apps" into ub-launcher3-master 2019-03-29 19:01:48 +00:00
vadimt d8f93dcd79 Not swiping from nav bar when scrolling in all apps
Change-Id: Id1fed6ab095f23fcbc199c8925c08acac34cca3f
2019-03-29 17:58:58 +00:00
Sunny Goyal 5743f8635b Making navigation mode listener a singleton so that the change is dispatched
everywhere synchronously.

Change-Id: Iee8c5957d78dfad3fb03e814de0367adcaa0c98b
2019-03-29 09:36:45 -07:00
vadimt d1e90a1beb Temporarily going home from an app via device.pressHome
The gesture will be restored once we have a UI automation-stable
gesture detection on the Launcher side.

Change-Id: I94cd52b61cd65961ac471d0e4ae0db1fc766a66b
2019-03-28 17:59:27 -07:00
Vadim Tryshev 09b9144746 Merge "Preparing QuickstepOnOff for running in 3 navigation modes" into ub-launcher3-master 2019-03-28 23:50:25 +00:00
vadimt c5b06f4cf6 Preparing QuickstepOnOff for running in 3 navigation modes
Change-Id: I7855e756c9886a21bfc2584cf42e7921147fb256
2019-03-28 16:02:47 -07:00
TreeHugger Robot 794a68e998 Merge "Fix SwipeDetector positive vs negative for HORIZONTAL direction" into ub-launcher3-master 2019-03-28 20:07:06 +00:00
TreeHugger Robot 2f9b438a3a Merge "Adding tracing for Lab-only flake: drag to workspace doesn't happen" into ub-launcher3-master 2019-03-28 18:43:17 +00:00
Tony 101807d8e7 Fix SwipeDetector positive vs negative for HORIZONTAL direction
Previously left was considered positive and right considered negative.
Now left and down are negative, and right and up are positive.

For RTL, left is positive and right is negative.

Change-Id: Ia31e8c687c8c2716fc632b2fe88aa8955b934bce
2019-03-27 19:45:04 -05:00
vadimt 0b339b5273 Adding tracing for Lab-only flake: drag to workspace doesn't happen
Bug: 129434166
Change-Id: I4433a4848b57da42412a9108a0965ff13c708c39
2019-03-27 17:42:25 -07:00
Vadim Tryshev 59b3ed056c Merge "TAPL: using assert that prints context" into ub-launcher3-master 2019-03-27 23:26:37 +00:00
vadimt cea84574ec TAPL: using assert that prints context
Change-Id: I9545e82f67e51bd07f20f0313d98f5dd65c84d4e
2019-03-27 16:10:30 -07:00
vadimt f78f47ddef TAPL: Not starting all apps scroll gestures over nav bar
This is important for zero-button navigation.

Change-Id: Ib281762dbb995e6c89ae55b808343ddb9f4963ae
2019-03-27 15:36:58 -07:00
Vadim Tryshev 60353faa2e Merge "Improving TAPL diags" into ub-launcher3-master 2019-03-27 18:46:08 +00:00
vadimt 64df579446 Improving TAPL diags
Bug: 128531133
Change-Id: Iba33011b5cb315731b5104005ef5773e539a21ea
2019-03-27 11:06:10 -07:00
Winson Chung e5af8f390a Merge changes from topics "launcher_nav_changes", "nav-bar-mode-fw-overlay-ub-launcher3-master" into ub-launcher3-master
* changes:
  Use system recent tasks stabilization
  Use own context instead of app context to get overlay resources
  Updating to nav bar mode
2019-03-27 02:50:38 +00:00
vadimt 522cc2ff0c Adding diags for TAPL flakes that don't reproduce locally
Also temporarily disabling more flaky BindWidgetTests

Change-Id: Ib0d3c54c560ddb49b7964e85bf9cd6ebc567b6d7
2019-03-26 18:21:36 -07:00
Winson Chung 14b2f9dd57 Use own context instead of app context to get overlay resources
Bug: 129270535
Test: adb shell am instrument -w -r -e package android.platform.test.scenario.launcher android.platform.test.scenario/androidx.test.runner.AndroidJUnitRunner
Change-Id: Iff2921cafcdb933566b5eb76670facc844bc7fd9
(cherry picked from commit 15179c0674)
2019-03-26 14:54:35 -07:00
Winson Chung f25461c337 Updating to nav bar mode
Bug: 127366543
Test: Manual
Change-Id: I602539e5d6161c5bf6056bb60679b7ef1f168e3e
(cherry picked from commit 18841823ed)
2019-03-26 14:52:10 -07:00
vadimt 4397d8d5ea Improving TAPL diagnostics
Bug: 128531133
Change-Id: If81861afccb665e2dc2293f2704d99818b3297c8
2019-03-25 18:29:37 -07:00
Vadim Tryshev 6d862386fb Slowing down some gestures for testing on virtual devices
Change-Id: Ie8b9a4eff3e9b4c133719a6292d2d251b87b90e8
2019-03-25 15:45:47 -07:00
Hyunyoung Song 40bea55b75 Move plugin_core.jar back to Launcher3 to unblock code merge
Change-Id: Ic9d6ab16ac7a8c5c1f528bdcac06e56f718a3f91
2019-03-22 14:45:56 -07:00
Vadim Tryshev a06c880bdf Merge "TAPL: increasing FLINGS_FOR_DISMISS_LIMIT" into ub-launcher3-master 2019-03-22 20:18:33 +00:00