Commit Graph

390 Commits

Author SHA1 Message Date
Pinyao Ting 838f4393b6 fix custom shortcut test
Bug: 143725213
Change-Id: I296452faea67568b39a35968bb813dc4e51a51fc
Merged-In: I296452faea67568b39a35968bb813dc4e51a51fc
2019-11-15 01:55:13 +00:00
Pinyao Ting d9dd8ef3ba disable custom shortcut test in oop
Bug: 142154748
Change-Id: I08ec8f665a3cc45610f8f2b27a60f7334a2b1b24
2019-11-12 23:37:20 -08:00
TreeHugger Robot f13109df05 Merge "Refactor SwipeDetector to track both axes" into ub-launcher3-qt-future-dev 2019-10-24 19:24:12 +00:00
Tony Wickham eed585b0c3 Refactor SwipeDetector to track both axes
Existing clients now use the SingleAxisSwipeDetector subclass. A
followup CL will add BothAxesSwipeDetector, whose first client will be
the quick switch from home controller.

Bug: 126596417
Change-Id: I54c71088cfe99ff28cdc719a1eb7a7d06ac95d2d
Merged-In: I54c71088cfe99ff28cdc719a1eb7a7d06ac95d2d
2019-10-24 18:56:44 +00:00
Tony Wickham 476b7d4378 Fix testQuickSwitchFromApp
Instead of starting getAppPackageName() and relying on it being our Test
Pin Item activity, instead launch our own test activities with the
FLAG_ACTIVITY_MULTIPLE_TASK and FLAG_ACTIVITY_NEW_DOCUMENT flags.

Test:
- Locally run testQuickSwitchFromApp() from Android Studio
- flake -oop -t com.android.quickstep.TaplTestsQuickstep#testQuickSwitchFromApp

Bug: 140252765
Change-Id: Ie137261ce65bfd3dd39df78d57784854a026e967
Merged-In: Ie137261ce65bfd3dd39df78d57784854a026e967
2019-10-23 23:40:57 +00:00
vadimt 1ac98548a7 resolve merge conflicts of 08776ada1e to ub-launcher3-qt-future-dev
Bug: None
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I9a3b0f67ee874b5ec4ad67f41a46ec7876d19082
Merged-in: I9a3b0f67ee874b5ec4ad67f41a46ec7876d19082
2019-10-03 20:58:15 +00:00
Pinyao Ting d7fdcab612 correct naming and add comments for test case of custom shortcut.
Bug: 141934188
Change-Id: I69ce5f05214df10e2a376ff68c713efe8874df15
2019-10-03 10:15:30 -07:00
Pinyao Ting d625e49552 include integration test for adding shortcut widget
this integration test help us catching app crashes when adding shortcut
widgets to the workplace. see b/141568904 for more context.

Bug: 141934188
Change-Id: I4d33d6127793efe2071d0d146aef24db6b676360
2019-10-03 07:46:50 -07:00
Andy Wickham 769c795edf Some cleanup for SwipeDetector.
It is now organized as follows:
 - private constants
 - public constants
 - private final fields
 - private variable fields
 - constructors
 - public methods
 - private methods
 - public interface/abstract class

This is intended to be a functional no-op.

Bug: 141939911
Change-Id: Iad5a9b3b73b35641f8a4f1d52ada6adef3825c47
Tested: Built and sanity checked manually.
2019-10-01 14:38:56 -07:00
TreeHugger Robot 08776ada1e Merge "Waiting for Launcher model load in out-of-proc tests." into ub-launcher3-qt-qpr1-dev 2019-10-01 19:48:05 +00:00
vadimt 7371e4da68 Waiting for Launcher model load in out-of-proc tests.
Not doing this seems to have caused flakes.

Bug: 141770616
Change-Id: Ia9caf20e4a2d93298adf4249ca815ad79bced802
Merged-in: Ia9caf20e4a2d93298adf4249ca815ad79bced802
2019-10-01 19:18:14 +00:00
Vadim Tryshev 4c420047cf Merge "Not unlocking phone on the test start" into ub-launcher3-qt-qpr1-dev
am: 872a380b59

Change-Id: I6e0831a2660459803eef6c755e4fcfc9f414c94f
2019-09-30 13:54:36 -07:00
vadimt ee3db65ecc Not unlocking phone on the test start
Somehow tests unlock the phone anyways.

Bug: 141772190
Change-Id: I66de70ec10a7e9ae05ba942570bf9eff9d9e7a82
2019-09-30 12:48:47 -07:00
Vadim Tryshev 1430f132f3 Merge "Deprecating LauncherInstrumentation constructor with parameter" into ub-launcher3-qt-qpr1-dev
am: dd079691c1

Change-Id: I7419be6416f26274bf03abfd84eedef20fd6f084
2019-09-27 13:21:46 -07:00
vadimt 2611d79f69 Deprecating LauncherInstrumentation constructor with parameter
Change-Id: I779b4a8fde2db73cced8133f12d1356ad0b8729e
2019-09-27 12:00:09 -07:00
Vadim Tryshev 12db478e46 Merge "Removing magic constants from TAPL/Widgets" into ub-launcher3-qt-qpr1-dev
am: 77f045b607

Change-Id: I8ea519aca0ef3830f506c91c2086e1eb31b4b6f2
2019-09-26 14:40:40 -07:00
vadimt aca7e6da5b Removing magic constants from TAPL/Widgets
Bug: 123904290
Change-Id: I8abc6cde6be8a51b38782f5c94749fe0c33384c1
2019-09-26 13:45:42 -07:00
vadimt 7ab1d09f84 Continuing experiments with test stability attribute
am: 7ad1026cad

Change-Id: I0bb9774313856cd90cb23aea85779d4220d61271
2019-09-25 14:46:57 -07:00
vadimt 7ad1026cad Continuing experiments with test stability attribute
Change-Id: I7ada0a7f4f0e0e9ca90a3d44ae88fc00d54d74df
2019-09-25 13:59:37 -07:00
Vadim Tryshev 52b1ff2050 Merge "Not using dropbox entries before the test start for diagnostics" into ub-launcher3-qt-qpr1-dev
am: dcb5412e1c

Change-Id: I70b2434f162f6575a88bcc0b43bdf8cce1cbc359
2019-09-20 19:48:40 -07:00
Vadim Tryshev dcb5412e1c Merge "Not using dropbox entries before the test start for diagnostics" into ub-launcher3-qt-qpr1-dev 2019-09-21 02:11:26 +00:00
vadimt 3bdba61542 Not using dropbox entries before the test start for diagnostics
Change-Id: Ieb48d969d86a855c91109f4ace0d636fa01aafc7
Merged-in: Ia060b5d2b98ea9ea3b6e61ae11d610f1a888d7a0
2019-09-21 01:37:56 +00:00
Vadim Tryshev 7cb5a6e973 Merge "Adding recognition of R launcher builds for test stability rule" into ub-launcher3-qt-qpr1-dev
am: f8a9a14aca

Change-Id: I0eb777bd191da9708976431a944fc7441c1800ff
2019-09-20 18:25:52 -07:00
vadimt fc041efe92 Adding recognition of R launcher builds for test stability rule
Change-Id: Icf1251c02d328e634bf4d5c951dd53f203905838
2019-09-20 17:23:11 -07:00
Vadim Tryshev 493ea23bfd Merge "Experimenting with detecting whether a test runs in presubmit" into ub-launcher3-qt-qpr1-dev
am: 37cc797fd0

Change-Id: I0ab81659ea9aaf6b75cd1106bbbaf9c75c679a41
2019-09-18 19:33:40 -07:00
vadimt fead086f2d Experimenting with detecting whether a test runs in presubmit
Change-Id: I386c6ad29182170326c557252fe6e20a8d2af34a
Merged-in: I386c6ad29182170326c557252fe6e20a8d2af34a
2019-09-19 01:18:46 +00:00
Jon Miranda bf7371e510 Key by both package and user for list of active install sessions.
am: c1322b6ac8

Change-Id: I112298649de8f9abd0898fdf4feda02395b7a31c
2019-09-17 12:00:03 -07:00
Jon Miranda c1322b6ac8 Key by both package and user for list of active install sessions.
This fixes the bug where items are left on the home screen for the wrong
user.

Bug: 139281702
Change-Id: I03c31bb308fc496b9fc633c2fde23ae4568f8c44
2019-09-17 11:20:35 -07:00
vadimt c563ec22ef Fully qualifying @Ignore
am: b1ccbd9def

Change-Id: Ia4aee260bf57fde304e1e54364b15c6880899c7c
2019-09-13 14:31:12 -07:00
Vadim Tryshev a8a23bd745 Merge "Disable failing widget tests" into ub-launcher3-qt-qpr1-dev
am: 90f4536ae3

Change-Id: If045b86ee809fd4b727d82bd4926ccd40aa01e27
2019-09-13 14:30:54 -07:00
vadimt b1ccbd9def Fully qualifying @Ignore
Strangely, @Ignore-s won't be recognized in ub-launcher-master

Bug: 140837771
Change-Id: Ie5e4911d4812d396826b50024943c14c6bfe3376
2019-09-12 17:46:17 -07:00
Vadim Tryshev 90f4536ae3 Merge "Disable failing widget tests" into ub-launcher3-qt-qpr1-dev 2019-09-13 00:06:56 +00:00
vadimt b59f65d2d8 Disable failing widget tests
Bug: 140837771
Change-Id: Ibba7769543e682315ea23640f68416defa85f365
2019-09-12 17:05:39 -07:00
vadimt 87b871eaee Adding testing for opening a widget
am: 5e742772d0

Change-Id: I0109fa62c88714584ec84c4c03a85a7924d4c9d5
2019-09-12 15:05:33 -07:00
vadimt 9c524db4c8 Reenabling some widget tests
am: 599b1fc4d3

Change-Id: I9d00e745ea026a796a0edd1c3c65d057349098ad
2019-09-12 15:05:04 -07:00
vadimt 627e0aefb6 Disable currently failing widget tests
am: d81f60f324

Change-Id: I496d02f2b9f23a7f91ae7627ea08f22576d8bf90
2019-09-12 15:04:50 -07:00
vadimt 5e742772d0 Adding testing for opening a widget
Bug: 140252951
Change-Id: Ic1c867db602f1890b74e7b539b44b2a440267384
2019-09-11 12:36:46 -07:00
vadimt 599b1fc4d3 Reenabling some widget tests
Bug: 140837771
Change-Id: I437f39b4a7f4b518551a157858c9b1a4812ee65d
2019-09-10 18:37:28 -07:00
vadimt d81f60f324 Disable currently failing widget tests
Change-Id: I2009b9c6f11a698bcf12a0b5ba97f98262fcee54
2019-09-10 13:58:22 -07:00
Jon Miranda 36e3953538 [DO NOT MERGE] Merge commit '735d1fe124812fd11feabc644c9a4f8482039f57' into manual_merge_735d1fe124812fd11feabc644c9a4f8482039f57
The ub-launcher3-qt-future-dev branch cut missed the CLs that went into
ub-launcher3-master, so the merge failed

Change-Id: I4f6f5ca8323350af3bc84c72d61d935b36f8064f
2019-09-09 22:29:49 +00:00
Jonathan Miranda 735d1fe124 Merge "Add tests for play promise icons." into ub-launcher3-qt-qpr1-dev 2019-09-09 21:44:15 +00:00
vadimt 83775e28f6 Add one null check to tests
am: f083b7741a

Change-Id: Id2e678bfb216302ef93e593a210edefe5092772a
2019-09-09 14:17:56 -07:00
Vadim Tryshev c698c0cdbb Merge "Adding a test method to get a Launcher object when it becomes non-null" into ub-launcher3-qt-qpr1-dev
am: b34f951e7e

Change-Id: Id63a1df1aef2f35b0f6cdb0f8ab851163c8140c9
2019-09-09 14:17:20 -07:00
vadimt 84fa5893e7 Enabling some tests in landscape mode
am: 8c2efd0de0

Change-Id: If74fe6cec774787f73f43aae43863cd71887b81f
2019-09-09 14:17:08 -07:00
vadimt f083b7741a Add one null check to tests
Change-Id: Ib4b50ac06d44b1811e0388bc373fe420fa5570fd
2019-09-06 18:08:22 -07:00
Jon Miranda 4b9edfbbe5 Add tests for play promise icons.
Bug: 139021165
Change-Id: Ie1a049b283b70f6bd22b43c09aef263282cb0f56
Merged-In: I45469b7523d8aea12c34d460c7b69c571a415675
2019-09-06 21:57:04 +00:00
Vadim Tryshev b34f951e7e Merge "Adding a test method to get a Launcher object when it becomes non-null" into ub-launcher3-qt-qpr1-dev 2019-09-05 18:49:10 +00:00
vadimt cf61e16a2c Adding a test method to get a Launcher object when it becomes non-null
Change-Id: I1c56777c87827b5edf1c7f55ad9639321e598311
2019-09-04 19:02:54 -07:00
vadimt 8c2efd0de0 Enabling some tests in landscape mode
Bug: 121280703
Change-Id: I285638d832594d5fed26ee812737a4356b110899
2019-09-04 17:33:52 -07:00
Vadim Tryshev 72fddba837 Merge "Enabling debug tracing for all UI tests" into ub-launcher3-qt-qpr1-dev
am: 846656f138

Change-Id: Ie40cc1d55d40ffefe6c1b2d3588b03ff92d2cb38
2019-09-04 12:37:40 -07:00