summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/testing/TestProtocol.java
diff options
context:
space:
mode:
authorvadimt <vadimt@google.com>2019-06-04 13:59:43 -0700
committervadimt <vadimt@google.com>2019-06-06 11:10:56 -0700
commitd4c90e12e9b6b61d3c0374ee5899425c84ffe65b (patch)
tree689ab03575a555087992e67640d0a7a334e4e19e /src/com/android/launcher3/testing/TestProtocol.java
parent8474ab2b9dfb05daf82f0afe3f05181a2e40b89c (diff)
downloadpackages_apps_Trebuchet-d4c90e12e9b6b61d3c0374ee5899425c84ffe65b.tar.gz
packages_apps_Trebuchet-d4c90e12e9b6b61d3c0374ee5899425c84ffe65b.tar.bz2
packages_apps_Trebuchet-d4c90e12e9b6b61d3c0374ee5899425c84ffe65b.zip
Freezing all apps updates during certain tests
This CL adds a very low risk because most (but not all) changes affect only Launcher behavior during the test. This should fix a lab-only flake when all apps keeps changing while the test is working with it. Example: test figures out which icon to click, by the moment it clicks there, there is another icon there, or the icon is under the search box, and clicking opens IME. Switching test devices to airplane mode didn't help. The earlier change that prevents popup menu cancellation is not general enough. Now the tests are given an API to explicitly freeze and unfreeze all-apps, which should be a final solution. Bug: 132900132 Bug: 133765434 Change-Id: I8b81cc9be004482beb6cdcdd05406e2d9b4c7629
Diffstat (limited to 'src/com/android/launcher3/testing/TestProtocol.java')
-rw-r--r--src/com/android/launcher3/testing/TestProtocol.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/com/android/launcher3/testing/TestProtocol.java b/src/com/android/launcher3/testing/TestProtocol.java
index 99efb22cf..e60b665ea 100644
--- a/src/com/android/launcher3/testing/TestProtocol.java
+++ b/src/com/android/launcher3/testing/TestProtocol.java
@@ -57,6 +57,7 @@ public final class TestProtocol {
}
public static final String TEST_INFO_RESPONSE_FIELD = "response";
+
public static final String REQUEST_HOME_TO_OVERVIEW_SWIPE_HEIGHT =
"home-to-overview-swipe-height";
public static final String REQUEST_BACKGROUND_TO_OVERVIEW_SWIPE_HEIGHT =
@@ -65,6 +66,10 @@ 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_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";
+
public static boolean sDebugTracing = false;
public static final String REQUEST_ENABLE_DEBUG_TRACING = "enable-debug-tracing";
public static final String REQUEST_DISABLE_DEBUG_TRACING = "disable-debug-tracing";