Commit Graph

348 Commits

Author SHA1 Message Date
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
Vadim Tryshev
cc38b095d9 Merge "Disabling some tests in OOP mode" into ub-launcher3-master 2019-02-15 22:04:52 +00:00
vadimt
270ddb93d9 Disabling some tests in OOP mode
These tests call sendPointer() which fails with
"Injecting to another application requires INJECT_EVENTS permission".

Will re-add them later.

Test: running those in OOP and in-proc
Change-Id: I1c96fad14cf8bef896209a94065614a6207ea751
2019-02-15 13:37:48 -08:00
vadimt
e12f5c3b8b Unifying setup for AOSP and Nexus Tapl Tests
Test: TaplTestsQS
Change-Id: Ib699566f13980bd89335ad17b2a694e37b83e2ae
2019-02-15 12:08:19 -08:00
vadimt
2a648aa894 Moving state ordinals to TestProtocol
These checks immediately broke after recent change of ordinals.

Test: Tapl tests
Change-Id: Ie040f452d3f31c86f780e6f38c6f9afa0d0dcbf3
2019-02-14 17:47:11 -08:00
vadimt
0589b07829 Disable state checks.
They fails for a reason I don't understand.

Change-Id: Ie3b5407a8a3efa3bf5f0f75562191191b0e8e9a5
2019-02-14 17:10:43 -08:00
Vadim Tryshev
f0d26535ee Merge "Reducing tests flakiness." into ub-launcher3-master 2019-02-14 23:13:24 +00:00
vadimt
2f2994cd37 Reducing tests flakiness.
Moving some tests to TaplTests. It's a right idea in general, also
flakes seem to go away because of a different initialization pattern.

Reintroducing UIDevice.pressHome in the test's start. Once BVTs pass,
I'll switch back.
See b/121335479

Test: All nexus tests
Change-Id: I677be5b6aaf073d15e8f2cf9b7a940a1f457b325
2019-02-14 15:10:52 -08:00
vadimt
42a88b9681 Sending state ordinals from Launcher to TAPL
This improves diagnostics.

Test: TAPL tests
Change-Id: I0ebb533513405372ea7c58a36910160cfb6d8368
2019-02-14 13:08:01 -08:00
Vadim Tryshev
9d2d694782 Merge "Always waiting for the drop bar to go away after an icon drag." into ub-launcher3-master 2019-02-13 21:16:44 +00:00
vadimt
daa518f2a5 Always waiting for the drop bar to go away after an icon drag.
Should fix a test flake.

Test: affected tests
Change-Id: Icfb2a18aa625ba5435a3311d40ce30b5fdcc592e
2019-02-13 12:31:30 -08:00
Vadim Tryshev
0baa2b803a Merge "Quick plug to solve flakiness caused by switching QS on/off" into ub-launcher3-master 2019-02-13 18:45:35 +00:00
Sunny Goyal
56e3685904 Adding temporary workaround for for home click getting ignored
Also fixing a concurrent modification exception is recents callback

Bug: 124239413
Change-Id: Id7bf17505843c8e20bdaa3fc89481acd4e94290a
2019-02-12 13:30:04 -08:00
vadimt
d4090431f5 Quick plug to solve flakiness caused by switching QS on/off
Will be followed by a better fix.

Test: Stress-testing with TAPL
Change-Id: Ie0ca1e9b7c6c9a885c752df5f76903898615e8fb
2019-02-11 10:52:31 -08:00
Vadim Tryshev
12a9f3f6e0 Merge "Waiting for the drop bar to go away after dragging an icon" into ub-launcher3-master 2019-02-09 02:20:30 +00:00
Vadim Tryshev
06344e7987 Slowing down workspace test fling
This will eliminate test flakiness

Test: tapl tests
Change-Id: I258f5e134771a93519fa1474ae09df3eac8a825f
2019-02-08 11:50:19 -08:00