Commit Graph

4763 Commits

Author SHA1 Message Date
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
vadimt
bae58982bb TAPL: increasing FLINGS_FOR_DISMISS_LIMIT
Bug: 129113713
Change-Id: I294f3f3b7c9397992927a5a31972ad755472910c
2019-03-22 12:27:17 -07:00
TreeHugger Robot
9cb820f63b Merge "Reconcile difference btw master and ub-launcher3-master" into ub-launcher3-master 2019-03-21 22:10:57 +00:00
Hyunyoung Song
896a715a1c Reconcile difference btw master and ub-launcher3-master
Change-Id: I33dcd6a062b754edbe2da9c7fcf2a8ccfb41b661
2019-03-21 14:06:02 -07:00
vadimt
8bba01874a Initial implementation for TAPL support for gestural navigation
It cuts some corners, flaky and has magic constants, which will be
addressed later.

Change-Id: I0acc75338a3c6d0ead3afda01e25ba43eb095913
2019-03-21 12:01:23 -07:00
Vadim Tryshev
7ca132b595 Merge "Finding icon in All Apps makes sure the icon is not covered by navbar" into ub-launcher3-master 2019-03-20 18:15:25 +00:00
vadimt
6f647c7e6b Finding icon in All Apps makes sure the icon is not covered by navbar
Change-Id: I24f8bd9871f7cf8f1313f7eb7a11f1b3f71a099b
2019-03-20 10:50:44 -07:00
vadimt
174a330d5d Stop using magic constant 0.1 for switching from home to all apps
Bug: 123904290
Change-Id: Ide4561adb2bb59c805cd9fd48f25440e68d91c7b
2019-03-19 19:17:40 -07:00
vadimt
6fe4e93d4a Stop using magic constant 0.6 for returning from all apps to overview
Bug: 123904290
Change-Id: If1b6caf562484649ee107532ffe21d25deff4b97
2019-03-19 12:16:39 -07:00
vadimt
2ec9f290bf Hopefully reducing flakes by waiting for SysUI objects
Looks like when orientation change is involved, it takes some time for
SysUI object to reappear.

Change-Id: Id08d385ea1a535d8bcd87b123f0373cd28d90a92
2019-03-15 19:54:51 -07:00
vadimt
d64b4f44da Switching swipe-up to overview to using test info provider
Also moving test provider to Quickstep to have access to the new info;
and now Launcher3 doesn't have it.

Bug: 123904290
Change-Id: I653376610e83839d102beb9c0604950dd314e8ba
2019-03-15 11:42:06 -07:00
vadimt
09df0831da Creating provider for test gesture dimensions.
Start with answering only whether the provider will answer any other
questions.

Bug: 123904290
Change-Id: I7b3ba8c7689f937d8bc1d470b00574ab4340130d
2019-03-13 17:52:42 -07:00
Jon Miranda
2ca0aa7076 Fix testChangeDefaultColumnTest.
I split testMigrateProfileId into two tests: one testing the migration
and one testing changing the default column test.

Since testChangeDefaultColumnTest does not migrate any profile ids, the
correct answer is indeed 1 and not 6. Next time I will be sure to run the
tests first :).

Change-Id: I7557e198072ed134c8b42d6187afcb93d388c5a1
2019-03-08 10:58:52 -08:00
Jon Miranda
2bc6b934ac Add launcher support for restoring work profile items onto workspace.
Bug: 111301511
Change-Id: I40decf4c763401c97afcc2bfa7954a1f3a03f536
2019-03-07 18:55:16 -08:00
vadimt
28b1988289 Attempt to disable assistant and seeing if this helps with lab tests
Change-Id: I4950eeee06555ca199208f678f670c3406b38d5a
2019-03-06 16:22:47 -08:00
Vadim Tryshev
cd3df17d80 Merge "Slowing down gestures to get rid of flakiness" into ub-launcher3-master 2019-03-06 19:42:14 +00:00
vadimt
6cd7e864aa Slowing down gestures to get rid of flakiness
Change-Id: If36476e21629fba1a0cf26fb9d2c172097a9c0b5
2019-03-06 11:25:33 -08:00
TreeHugger Robot
6f74083520 Merge "Revert "Include Launcher3QuickstepLib for tapl"" into ub-launcher3-master 2019-03-06 01:02:08 +00:00
Vadim Tryshev
bcde95efec Revert "Include Launcher3QuickstepLib for tapl"
This reverts commit 494dd8da82.

Reason for revert: Breaks ub tests

Change-Id: I8f0d4a67e7a4cae21f5c9448abcc4d614f730fa4
2019-03-06 00:44:53 +00:00
TreeHugger Robot
a4c3d066dd Merge "Switching to setting QS on and off via writing settings." into ub-launcher3-master 2019-03-05 01:26:51 +00:00
Vadim Tryshev
8675deee02 Switching to setting QS on and off via writing settings.
We can do this now because we hav all 6 devices in the lab.

Change-Id: I5d5fcd89086a3f945ed3fc204461cacbdde61a8a
2019-03-04 16:49:50 -08:00
Hyunyoung Song
494dd8da82 Include Launcher3QuickstepLib for tapl
Bug: 123904290
Change-Id: I388061edcc5a2978d6c6f1102d92e09155678e34
2019-03-04 10:57:54 -08:00
Vadim Tryshev
ceedc95d4c Slowing down dismiss gesture to reduce flakiness
Change-Id: I13a1d2053e841994df537896c4fe397f68fa4a65
2019-02-26 17:24:08 -08:00
vadimt
a31f7eb68d Using different swipe length to switch to Overview.
Depends on whether swiping from Workspace or Background.

Change-Id: I0f647e85080ee1458a0f18cb132b87890379260e
2019-02-25 16:26:43 -08:00
Sunny Goyal
50d5cb85f2 Reducing the swipe length for going to overview to account for
recent threshold changes

Bug: 125795067
Change-Id: I53a9b833cc1b73626fec13742f3ea5ccbfc6abb4
2019-02-25 14:32:37 -08:00
vadimt
1dc7ab885b Not using pressHome to start Launcher when tests are running in-proc
This is a risky business, as we can be broken by platform changes like:

b/118891218

Note that TAPL itself still uses pressing Home button.

Change-Id: I55772622fac5f19f6c9f19716a185bbfdbf602a9
2019-02-22 16:21:26 -08:00
vadimt
5616670a5a Fixing swipe-up mode recognition in TAPL
It failed on Cuttlefish

Change-Id: I81e168f133d51d7c140897cd6847bf30da608d70
2019-02-15 18:04:54 -08:00
TreeHugger Robot
bcd70baf51 Merge "Moving state ordinals to TestProtocol" into ub-launcher3-master 2019-02-15 22:11:04 +00:00