summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-06-28 12:04:36 -0700
committervadimt <vadimt@google.com>2019-07-11 14:17:06 -0700
commit853852351f3b1bd9fbaa063b0e99cd8067e61c50 (patch)
tree5ec47d595605c6c56538a410fd491f1d8efc8df9 /src/com
parentf11dd8e1077ca229e228afd6a39e7b22d12105f7 (diff)
downloadandroid_packages_apps_Trebuchet-853852351f3b1bd9fbaa063b0e99cd8067e61c50.tar.gz
android_packages_apps_Trebuchet-853852351f3b1bd9fbaa063b0e99cd8067e61c50.tar.bz2
android_packages_apps_Trebuchet-853852351f3b1bd9fbaa063b0e99cd8067e61c50.zip
Correctly restarting Launcher from OOP tests
Waiting for touch interaction service; waiting for package-restart events. Bug: 136215685 Change-Id: I0c31c09fe3a58b898168dfdb4e4d23757b94a47c
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher3/testing/TestInformationHandler.java5
-rw-r--r--src/com/android/launcher3/testing/TestProtocol.java1
2 files changed, 6 insertions, 0 deletions
diff --git a/src/com/android/launcher3/testing/TestInformationHandler.java b/src/com/android/launcher3/testing/TestInformationHandler.java
index d2e196138..bab454f07 100644
--- a/src/com/android/launcher3/testing/TestInformationHandler.java
+++ b/src/com/android/launcher3/testing/TestInformationHandler.java
@@ -74,6 +74,11 @@ public class TestInformationHandler implements ResourceBasedOverride {
break;
}
+ case TestProtocol.REQUEST_IS_LAUNCHER_INITIALIZED: {
+ response.putBoolean(TestProtocol.TEST_INFO_RESPONSE_FIELD, true);
+ break;
+ }
+
case TestProtocol.REQUEST_ENABLE_DEBUG_TRACING:
TestProtocol.sDebugTracing = true;
break;
diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java
index 3774042c9..3a07be096 100644
--- a/src/com/android/launcher3/testing/TestProtocol.java
+++ b/src/com/android/launcher3/testing/TestProtocol.java
@@ -66,6 +66,7 @@ public final class TestProtocol {
"all-apps-to-overview-swipe-height";
public static final String REQUEST_HOME_TO_ALL_APPS_SWIPE_HEIGHT =
"home-to-all-apps-swipe-height";
+ public static final String REQUEST_IS_LAUNCHER_INITIALIZED = "is-launcher-initialized";
public static final String REQUEST_FREEZE_APP_LIST = "freeze-app-list";
public static final String REQUEST_UNFREEZE_APP_LIST = "unfreeze-app-list";
public static final String REQUEST_APP_LIST_FREEZE_FLAGS = "app-list-freeze-flags";