Commit Graph

297 Commits

Author SHA1 Message Date
vadimt
e743c80a14 Reducing speed of widgets fling
The hope is that this will solve flakiness of widgets tests in AOSP.

Test: TaplTestsLauncher3.testWidgets
Change-Id: I2ecc18b9eb7eeb3fd8b11fcc580a529f545c3af9
2019-02-05 08:37:17 -08:00
Vadim Tryshev
453fb8b7d8 Merge "Support for a test for pausing an app via Overview." into ub-launcher3-master 2019-02-04 19:53:24 +00:00
vadimt
01e8871b54 Support for a test for pausing an app via Overview.
Bug: 117888000
Change-Id: If9fc76ddfbc756acf39ad5209904d3099c2e4e5f
Tests: on the Nexus side
2019-01-30 11:39:56 -08:00
TreeHugger Robot
abdb80a6d0 Merge "Adding dismiss-all method" into ub-launcher3-master 2019-01-30 19:06:06 +00:00
TreeHugger Robot
3663b314fa Merge "Removing diagnostics" into ub-launcher3-master 2019-01-30 18:43:08 +00:00
TreeHugger Robot
bc7011a5d2 Merge "Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test" into ub-launcher3-master 2019-01-30 18:41:58 +00:00
vadimt
8ac8d29121 Adding dismiss-all method
See the bug.

Bug: 123259701
Change-Id: I4b41d2cfe14c53db1a99cb6a693d3047057fa925
Tests: testOverview
2019-01-30 10:36:52 -08:00
vadimt
44d227a5b8 Fixing AOSP TaplTestsLauncher3.testAllAppsFromHome test
On the AOSP target, there are not enough apps to make App Apps
scrollable. Moving the test to QS Tapl tests.

Change-Id: I95e196bafdbd0fee77705554890a7c3cda7ac92a
Tests: the affected test
2019-01-29 17:23:25 -08:00
vadimt
c5e3f9463d Not suppressing exceptions in tests.
This makes it harder to diagnose problems.

Bug: 117888000
Test: all tests affected by the change
Change-Id: I354e86af0929531653cf59ce1eb6435018c20e1a
2019-01-29 16:52:22 -08:00
TreeHugger Robot
b3ca6aee2c Merge "Changing min sdk to 25" into ub-launcher3-master 2019-01-29 20:43:01 +00:00
TreeHugger Robot
8d4430a1d7 Merge "Splitting TaplTests into a pure AOSP and QS parts" into ub-launcher3-master 2019-01-29 20:10:51 +00:00
vadimt
446bf0092e Fixing flakiness of ShortcutsToHomeTest
More precisely, an experiment on whether this will help. The theory is
that the current implementation where we long-press an icon for a fixed
period of time sometimes doesn't work because Launcher might start
measuring the press time with some delay.

Now we keep pressed the icon until the menu appears.

Change-Id: I1cead505726a998316a73d81b10160517f17f08f
Tests:ShortcutsToHomeTest.testDragIcon
2019-01-29 11:40:59 -08:00
Sunny Goyal
8c48d8bea6 Changing min sdk to 25
Change-Id: I0d28069967854357ca755bf25dec19d4979bdecf
2019-01-29 11:29:52 -08:00
vadimt
dc2f2dc639 Splitting TaplTests into a pure AOSP and QS parts
This will allow running as many as possible automatic checks on AOSP
launcher and moving most AOSP tests that use TAPL to where they belong
to: Tapl Tests.

Bug: 110103162
Test: Running the test suites
Change-Id: I9192354e6097698d4b942c5682b79664ecc2336d
2019-01-29 10:53:34 -08:00
vadimt
3f8591f003 Removing diagnostics
Now that b/117332845 is fixed

Bug: 117332845
Change-Id: If8c137b9c7cc386dfc5b5af4b81a3efbfa33f770
Tests: None
2019-01-25 10:35:53 -08:00
TreeHugger Robot
8efd678269 Merge "Optimizing :enter - :exit pairs." into ub-launcher3-master 2019-01-18 18:56:52 +00:00
TreeHugger Robot
6a874a583e Merge "Switching from mDevice.pressHome() to mLauncher.pressHome()" into ub-launcher3-master 2019-01-18 18:35:50 +00:00
vadimt
982ff0714f Fixing swipe from background gesture
Change-Id: I5e49dca41308292250d8485faa4df56605cd94ce
Tests: StartLauncherViaGestureTests, TaplTests
2019-01-14 15:54:24 -08:00
vadimt
579c8c200d Switching from mDevice.pressHome() to mLauncher.pressHome()
Using mDevice.pressHome() was a workaround for the shifted-search bug.

Change-Id: I740db2109af531c55f8ab59a42998bdc329fb72e
Tests: affected tests
2019-01-11 17:32:05 -08:00
vadimt
367a485599 Fixing menu tests when context menu caption is the first line
The tests mistakenly took the caption (if on top) as the first context
menu item.

Change-Id: Ibd3264814f2c818742ab164503bf7136fedcde31
Tests: com.android.launcher3.ui.ShortcutsToHomeTest
2019-01-11 13:26:02 -08:00
vadimt
920cb92f80 Optimizing :enter - :exit pairs.
Doing so by not letting any events between XXX:enter and XXX:exit
events. This eliminates unnecessary permutations.

Example: 2 threads with 3 enter-exit pairs each would have produced 924
permutations before this, now only 20.

Bug: 120628042
Change-Id: Ia243d273a1d90202011679cc7520ea4c9e43918b
Tests: All tests that use race condition framework
2019-01-10 16:30:04 -08:00
vadimt
1b094db2e1 Not precalculating launcher package in Tapl
It may change (say from 'need to choose' or 'nexus launcher' to
launcher3) during the test execution.

Test: Launcher3:com.android.launcher3.ui.AllAppsIconToHomeTest, fallback recents, TaplTests
Change-Id: I529dd5e28749012731af05edd0adaa4b7d205581
2019-01-10 14:54:02 -08:00
vadimt
b4b88afda0 Better diagnostics for waitForLauncherObject
AOSP tests still fail, that's why.

Test: LauncherInstrumentation.getWorkspace
Change-Id: I98610040e571b5a7cb656908cfea328f1ae08c2c
2019-01-10 12:00:08 -08:00
vadimt
263fb0d72a Fixing AOSP tests using TAPL
They referred a wrong package name.

Change-Id: I40752028fd65df7ea33fd2587d992f3c5569ce45
Tests: OOP tests, Nexus Tapl tests, AOSP drag-icon, Fallback Overview
2019-01-09 11:09:06 -08:00
Hyunyoung Song
ddcecfa634 System apps must target API 28 or higher
Bug: 120997004
Change-Id: I998a443a4327c47cbab8e4bc4843be1693f05d8d
2019-01-03 12:57:33 -08:00
vadimt
943b28464d Test swiping up from a killed launcher
Bug: 121164587
Test: StartLauncherViaGestureTests
Change-Id: I01c5bfc0aa23418bad7d44b8d9cf8b95cbe0b320
2018-12-17 18:09:07 -08:00
vadimt
00d4255272 Adding tests that would reliably reproduce shifted search.
This would guaranteed to repro b/118441555 before it was fixed.

The test doesn't use the most powerful feature of race condition
reproducer, which is enumerating all possible event sequences.

Instead, it uses explicit repro sequences, which makes the test much
faster.

Bug: 120628042
Test: The added test
Change-Id: I89a7a9964f160a8a20ba3d9dda2f248237713014
2018-12-17 14:41:20 -08:00
Sunny Goyal
5469fad289 Merge "Bye bye workspace screens table" into ub-launcher3-master 2018-12-10 21:25:18 +00:00
Sunny Goyal
c5939393a9 Bye bye workspace screens table
Removing a separate table for workspace screens. List of screens are
automatically parsed using the items in the favorites DB. Order of the
screen based on the screen id and rearranging screens is no longer
supported. In case the screens need to be rearranged, all the items
in the favorites db will need to be updated with new screen ids.

This makes backing up the DB (in the same database) easier as only
one table needs to be duplicates.

Change-Id: I8ba947a898f637d780e2f49925e78604263126e8
2018-12-10 11:43:35 -08:00
TreeHugger Robot
ee6e6ea4b6 Merge "Moving TaplTests to AOSP" into ub-launcher3-master 2018-12-10 18:33:57 +00:00
Vadim Tryshev
ed01e28408 Moving TaplTests to AOSP
And fixing TAPL for AOSP.

Bug: 110103162
Test: TaplTests
Change-Id: Ib9fef02b789a9c7444643550d56b9dda4e085b03
2018-12-07 12:00:41 -08:00
Vadim Tryshev
0d4ac57128 Add framework for reliably reproducing race conditions.
Bug: 120628042
Test: RaceConditionReproducerTest
Change-Id: Id658e2b0da6af186b76501ff16edbd135dda3c9b
2018-12-06 16:11:18 -08:00
Sunny Goyal
06a07e9748 Moving come tests to Roboelectric
> Fixing resource loading in robo tests

Change-Id: Id5b8a0e4916a2a200da7a41b03f19846834beb1f
2018-11-12 10:49:59 -08:00
Sunny Goyal
202fabfe10 Adding reusable version of IconCache and IconFactory
> Adding resource based allowing projects to control cache behavior
> Fixing missing comments from ag/5470467
> Adding support for no-immemory cache

Bug: 115891474
Change-Id: I691206805430cd93d3be78119bc249cefd79790a
2018-11-09 15:44:07 -08:00
Sunny Goyal
1a9cbd3c88 Moving BaseIconCache to icon lib
Change-Id: I4fb56dcd6231a848d152e690edaf8885efbc995a
2018-11-08 15:18:25 -08:00
Vadim Tryshev
8effd11e08 Requiring apps_view on workspace
Update TAPL to reflect that apps_view is visible on workspace.

Test: TaplTests
Change-Id: I27e0f43d9200c18571573acd0ddedc1dc064cdc3
2018-11-07 18:07:50 -08:00
Ryan Lothian
bb80025ef4 Remove duplicate test
I cloned the existing Instrumentation-based IntSetTest class
to be our first Robolectric test. Now Robolectric is working,
we can delete the Instrumentation test version.

Change-Id: I3adcfc451988a908c002b769b398348cb1782f1d
2018-11-06 10:57:17 -05:00
Vadim Tryshev
af2adc1cf3 Merge "Adding dummy app apk for tests" into ub-launcher3-master 2018-11-05 18:53:44 +00:00
TreeHugger Robot
631151cda6 Merge "Convert more tests to TAPL" into ub-launcher3-master 2018-11-05 18:42:50 +00:00
Vadim Tryshev
1b4560cf2a Adding dummy app apk for tests
Bug: 117888000
Test: In Nexus code
Change-Id: Ibf0b803c9db6b344ffbe5b7761efb2a2d86867c6
2018-11-05 10:36:21 -08:00
Vadim Tryshev
fdd1905e27 Convert more tests to TAPL
Bug: 110103162
Test: running these tests
Change-Id: I76b145eb4d16aca20ce30a5abca8f4568e3297e4
2018-11-05 10:32:01 -08:00
TreeHugger Robot
a47ab8b425 Merge "Make FileLogTest use robolectric" into ub-launcher3-master 2018-11-05 16:59:09 +00:00
Ryan Lothian
499a0c932e Make FileLogTest use robolectric
This allows it to run fast locally on the JVM without an
emulator or physical device.

Change-Id: Idb9c94e6f3fce94a86978ea0709eadd72280432c
2018-11-05 11:44:33 -05:00
Ryan Lothian
f4c42bc79a Migrate GridOccupancyTest to Robolectric
This allows it to run fast locally on the JVM without an
emulator or physical device.

Change-Id: I416877d7c335a7b9c8dc7a216ecfeb1013f66891
2018-11-05 10:52:40 -05:00
Vadim Tryshev
ba8957b3c2 Converting ShortcutsLaunchTest gesture-stable
By converting to TAPL.

Bug: 110103162
Test; TaplTests

Change-Id: I788405f2e52cc0e29ebf69e58feda46b408e9eb9
2018-11-01 17:45:59 -07:00
Winson Chung
b3fe661860 Add kill-process call to TestCommandReceiver
Bug: 117888000
Test: On Nexus side
Change-Id: I4803a884ffe8ae6147fdbaf98e2f813934418b76
2018-10-30 13:52:19 -07:00
Vadim Tryshev
f908a2e50e Adding test methods
Bug: 117888000
Test: Running new Nexus tests
Change-Id: I52a1f89add36dd38bbae8db262dd2e82280db130
2018-10-25 11:43:59 -07:00
Brett Chabot
d7d692c2f9 Replace use of deprecated target androidx-test
Test: make Launcher3Tests
Change-Id: Ib14fd9da1df3c022d39efb69660ff59b8a47db5d
2018-10-23 21:17:58 -07:00
Sunny Goyal
420d54544e Using a common class for observing secure settings
Bug: 117519297
Change-Id: Ie9d948130aea50bf10c9fc625fdb16f4cfc4712e
2018-10-17 12:07:13 -07:00
Vadim Tryshev
34b6f9f106 Supporting OOP tests
AbstractLauncherUiTest was modified to compile and work both in- and
out- of proc.

Bug: 113056917
Test: was in Nexus branch
2018-10-13 01:13:45 +00:00