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
Hyunyoung Song
da4fcfea63
Move tapl build rule to Android.bp
...
Bug: 113683301
Test: make Launcher3Tests
Change-Id: I9f279bb80f3f399a2271ed8ee94445afbebacb2e
2018-09-05 10:18:28 -07:00
TreeHugger Robot
b75f5366f9
Merge "Removing tryGetAllApps" into ub-launcher3-master
2018-09-04 21:01:05 +00:00
Vadim Tryshev
46e81de3d2
Not assuming that all accessibility events contain bundle
...
Bundles come from Launcher being explicitly asked a question.
When waiting for ANY event, it may contain any parcelable, so it's
incorrect to cast it to Bundle.
See this:
https://sponge.corp.google.com/target?show=FAILED&sortBy=STATUS&id=9b8d0d26-f81d-427f-8857-b8d71e012504&target=android.test.appsmoke
Bug: 110103162
Test: will watch for reducing flakes in platform tests.
Change-Id: I989cee018183140d7fd672c0a925f03441ca339c
2018-08-30 12:07:39 -07:00
Vadim Tryshev
a90d17b411
Removing tryGetAllApps
...
There were plans to use it from platform tests, but this turned to be
unnecessary.
Bug: 110103162
Test: compiling
Change-Id: I39bf3f4cff57018bec87dcb3e8dfee522121d85b
2018-08-29 11:54:49 -07:00
Vadim Tryshev
530c3cd018
Removing AllApps.getObjectDeprecated()
...
I was planning to use it from platform tests, but managed to avoid this.
Bug: 110103162
Test: TaplTests
Change-Id: Ic7bd6afe2097d64f8baca59b74d61e2ff7ff9c76
2018-08-29 18:33:39 +00:00
Hyunyoung Song
b441a7e765
Create a distinction between prebuilt tapl and tapl built from source.
...
Bug: 113128349
Change-Id: Ib1e09f13ee677a903f607b89d6bbb6af419677c4
2018-08-28 14:55:19 -07:00
TreeHugger Robot
a537578498
Merge "Fixing AOSP tests after AndroidX migration" into ub-launcher3-master
2018-08-27 17:02:19 +00:00
Vadim Tryshev
a3fd1e5bfe
Fixing AOSP tests after AndroidX migration
...
Test: adb shell am instrument -w -r -e debug false com.android.launcher3.tests/androidx.test.runner.AndroidJUnitRunner
Change-Id: I72bf7095087b012a6eceac71ee02f2d7a5c8c51b
2018-08-24 17:48:38 -07:00
Vadim Tryshev
12daab5597
Enabling some test suites that miss from ATP
...
ATP requires the test size attribute, or else the test won't be run.
Test: Will see on ATP
Change-Id: If231781b5188c022e47cc40e46af933d753fa114
2018-08-24 14:04:43 -07:00
Vadim Tryshev
98afc96461
Increasing wait time to populate suggested apps
...
Bug: 110103162
Test: ReflectionBasicUiTest
Change-Id: Iee5d4f328bdde93e6d9c2db9869314aa3a8eb00f
2018-08-23 15:06:37 -07:00
Vadim Tryshev
d819b8f743
Comment fix
...
Bug: 110103162
Test: ReflectionBasicUiTest
Change-Id: Ic9cfe925bb396e3fa0257009d5d9f53db728f9f0
2018-08-23 18:48:06 +00:00
Vadim Tryshev
9aca88cbf9
Fixing tests on a larger device
...
See atp for failed tests.
Widget container may return objects outside of screen, hence the test
failures.
Test: AddConfigWidgetTest.com.android.launcher3.ui.widget.AddConfigWidgetTest etc
Change-Id: Ia402dae0c9bc8f0585e57ac5f562a59e8ff4ed53
2018-08-22 17:35:18 -07:00
Vadim Tryshev
fd34b94b33
Passing instrumentation to LauncherInstrumentation
...
UiDevice, the old param, belongs to a support lib; as TAPL switched to
AndroidX, it became impossible to pass it from platform tests
that still use the old support lib.
Bug: 110103162
Test: TaplTests
Change-Id: I1f82099b432912fa40da96df0d6179579aab66a3
2018-08-21 18:45:02 -07:00
TreeHugger Robot
23bb710b3d
Merge "Converting tests to Androidx" into ub-launcher3-master
2018-08-22 01:22:56 +00:00
Vadim Tryshev
0a9f3ab4a6
Converting tests to Androidx
...
Bug: 112610679
Change-Id: I712826e668f1fbeb4e47cc541d4f5296d8eb74c0
2018-08-21 15:04:48 -04:00
Vadim Tryshev
923b81c14f
Reducing time of TaplTests run
...
From ~245 to ~150 sec.
Done by removing testing behaviors that don't depend on QS from tests
marked with QuickstepOnOff attribute.
Also fixing a bug that went unnoticed: now restoring Launcher QS mode
after each test.
Bug: 110103162
Test: TaplTests suite
Change-Id: I715158b47ac1e370f578b8d4f13d9633283763fe
2018-08-16 17:55:34 -07:00
Vadim Tryshev
b6398a1eb8
Sharing protocol constants between Launcher and TAPL
...
Bug: 110103162
Test: TaplTests
Change-Id: I5b2a2b8576a7a6ea4a156f00858711496d6b5bba
2018-08-14 19:53:43 -07:00
Sunny Goyal
d230307a95
Migrating to android-x
...
Change-Id: I9a774152d13a541e8496dd84f2469bfed407f86d
2018-08-14 15:22:12 -07:00
TreeHugger Robot
a950d40d09
Merge "Started converting Launcher to be gesture-stable" into ub-launcher3-master
2018-08-14 19:18:46 +00:00
Vadim Tryshev
dc755e718d
Started converting Launcher to be gesture-stable
...
All tests keep passing.
WorkTabTest.workTabExists was made gesture-stable. There is no need to
use TAPL, as the point is not to check answering to gestures, but to
check presence of tabs, which is better to do using launcher internal
state. (It still fails if run as a part of all tests, presumably,
because after Launcher's start, changes in user configuration are not
recognized, so I've commented the failing part)
Bug: 110103162
Test: Run all tests
Change-Id: Ic30b8e8475d16cee3880332f12311a44ddfa26cb
2018-08-14 10:29:57 -07:00
Sunny Goyal
6edb1b84bf
Changing Condition to an interface to allow using lambdas
...
Change-Id: Ib7ad6a45d2ce556f843cd3a9767001904707dced
2018-08-14 10:27:48 -07:00
Vadim Tryshev
3b5793fdf5
Support for running Overview tests with quickstep on and off
...
Bug: 110103162
Test: TaplTests suite
Change-Id: Ic479156f2973aeec5cc3d288e1c891b8086d9daa
2018-08-10 17:35:43 -07:00
TreeHugger Robot
8f7137b769
Merge "Removing magic constant 0.1f from Overview" into ub-launcher3-master
2018-08-10 22:03:12 +00:00
Vadim Tryshev
309053fff9
Using SWIPE_UP_SETTING_NAME in TAPL
...
Bug: 110103162
Test: TaplTests suite
Change-Id: Ia62207773a156aca1e226307ccc462c252cc9227
2018-08-10 14:30:59 -07:00
Vadim Tryshev
846718a79a
Removing magic constant 0.1f from Overview
...
Bug: 110103162
Test: TaplTests suite
Change-Id: If3af510360158a2c2b1c3d13c75321c49ece67e2
2018-08-09 14:21:46 -07:00
Vadim Tryshev
b02bcd4c76
Removing code duplication for getting swipe-up setting
...
This is between Tapl and Launcher
Bug: 110103162
Test: TaplTests suite
Change-Id: I5b458438834204ca257f45c707577b4d2793fb4e
2018-08-07 18:01:12 -07:00
Vadim Tryshev
7d0cf2a748
Increasing wait time.
...
Extremely rarely starting an app takes more than 10 sec.
Bug: 110103162
Test: TaplTests suite
Change-Id: Ic6127e373b76c610eea5126e53e6048ba0f9bd3e
2018-08-06 11:11:25 -07:00