Increase wait times in TAPL
This helps to avoid misleading errors when the system has performance problems. Test: presubmit Bug: 179392551 Change-Id: I4de3c543f32f41af64bd6107885df82b03973d35
This commit is contained in:
@@ -18,7 +18,6 @@ package com.android.launcher3.ui;
|
||||
import static com.android.launcher3.LauncherState.ALL_APPS;
|
||||
import static com.android.launcher3.LauncherState.NORMAL;
|
||||
import static com.android.launcher3.allapps.AllAppsStore.DEFER_UPDATES_TEST;
|
||||
import static com.android.launcher3.tapl.LauncherInstrumentation.LONG_WAIT_TIME_MS;
|
||||
|
||||
import static org.junit.Assert.assertEquals;
|
||||
import static org.junit.Assert.assertTrue;
|
||||
@@ -37,6 +36,7 @@ import com.android.launcher3.allapps.AllAppsContainerView;
|
||||
import com.android.launcher3.allapps.AllAppsPagedView;
|
||||
import com.android.launcher3.allapps.WorkModeSwitch;
|
||||
import com.android.launcher3.dragndrop.DragLayer;
|
||||
import com.android.launcher3.tapl.LauncherInstrumentation;
|
||||
import com.android.launcher3.testing.TestProtocol;
|
||||
import com.android.launcher3.views.WorkEduView;
|
||||
|
||||
@@ -147,7 +147,7 @@ public class WorkTabTest extends AbstractLauncherUiTest {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}, LONG_WAIT_TIME_MS);
|
||||
}, LauncherInstrumentation.WAIT_TIME_MS);
|
||||
|
||||
executeOnLauncher(launcher -> launcher.getStateManager().goToState(ALL_APPS));
|
||||
WorkEduView workEduView = getEduView();
|
||||
|
||||
@@ -155,8 +155,7 @@ public final class LauncherInstrumentation {
|
||||
private static final String OVERVIEW_RES_ID = "overview_panel";
|
||||
private static final String WIDGETS_RES_ID = "primary_widgets_list_view";
|
||||
private static final String CONTEXT_MENU_RES_ID = "deep_shortcuts_container";
|
||||
public static final int WAIT_TIME_MS = 10000;
|
||||
public static final int LONG_WAIT_TIME_MS = 60000;
|
||||
public static final int WAIT_TIME_MS = 60000;
|
||||
private static final String SYSTEMUI_PACKAGE = "com.android.systemui";
|
||||
private static final String ANDROID_PACKAGE = "android";
|
||||
|
||||
@@ -656,7 +655,7 @@ public final class LauncherInstrumentation {
|
||||
try {
|
||||
final AccessibilityEvent event =
|
||||
mInstrumentation.getUiAutomation().executeAndWaitForEvent(
|
||||
command, eventFilter, LONG_WAIT_TIME_MS);
|
||||
command, eventFilter, WAIT_TIME_MS);
|
||||
assertNotNull("executeAndWaitForEvent returned null (this can't happen)", event);
|
||||
final Parcelable parcelableData = event.getParcelableData();
|
||||
event.recycle();
|
||||
|
||||
Reference in New Issue
Block a user