summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2019-05-30 17:58:04 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2019-05-30 17:58:04 +0000
commit5f642bf783d774637ecc12e35c0be5f10ce86c25 (patch)
treec23099602f961488c5d19e188decd758435bf81b /tests
parentcae0a80c83992fd874473373f7324f13725b24ae (diff)
parent26185e1feddbb92cbf251c4910116e81923e79a5 (diff)
downloadandroid_packages_apps_Trebuchet-5f642bf783d774637ecc12e35c0be5f10ce86c25.tar.gz
android_packages_apps_Trebuchet-5f642bf783d774637ecc12e35c0be5f10ce86c25.tar.bz2
android_packages_apps_Trebuchet-5f642bf783d774637ecc12e35c0be5f10ce86c25.zip
Merge "Adding debug tracing for a lab-only issue" into ub-launcher3-qt-dev
Diffstat (limited to 'tests')
-rw-r--r--tests/tapl/com/android/launcher3/tapl/OverviewTask.java13
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/tapl/com/android/launcher3/tapl/OverviewTask.java b/tests/tapl/com/android/launcher3/tapl/OverviewTask.java
index 2ea76185e..8b124641f 100644
--- a/tests/tapl/com/android/launcher3/tapl/OverviewTask.java
+++ b/tests/tapl/com/android/launcher3/tapl/OverviewTask.java
@@ -20,6 +20,8 @@ import androidx.test.uiautomator.Direction;
import androidx.test.uiautomator.UiObject2;
import androidx.test.uiautomator.Until;
+import com.android.launcher3.testing.TestProtocol;
+
/**
* A recent task in the overview panel carousel.
*/
@@ -59,9 +61,14 @@ public final class OverviewTask {
*/
public Background open() {
verifyActiveContainer();
- mLauncher.assertTrue("Launching task didn't open a new window: " +
- mTask.getParent().getContentDescription(),
- mTask.clickAndWait(Until.newWindow(), WAIT_TIME_MS));
+ mLauncher.getTestInfo(TestProtocol.REQUEST_ENABLE_DEBUG_TRACING);
+ try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
+ "clicking an overview task")) {
+ mLauncher.assertTrue("Launching task didn't open a new window: " +
+ mTask.getParent().getContentDescription(),
+ mTask.clickAndWait(Until.newWindow(), WAIT_TIME_MS));
+ }
+ mLauncher.getTestInfo(TestProtocol.REQUEST_DISABLE_DEBUG_TRACING);
return new Background(mLauncher);
}
}