Fix flaky two panel TAPL tests v2

Cuttlefish emulators are getting slower and slower and some
of the two panel related TAPL tests were failing
due to multiple page changes instead of single ones, so
we need to increase the page change hover time in the tests.

Test: atest -c NexusLauncherTests:com.android.launcher3.ui.workspace.TwoPanelWorkspaceTest
Bug: 236136463
Change-Id: I8007a73a17089a7f7a639ce615af52695b55002c
This commit is contained in:
Andras Kloczl
2022-07-21 07:29:13 +00:00
parent 974d77056c
commit a9ecc3d1bd
@@ -26,7 +26,7 @@ import com.android.launcher3.Workspace;
public class SpringLoadedDragController implements OnAlarmListener {
// how long the user must hover over a mini-screen before it unshrinks
private static final long ENTER_SPRING_LOAD_HOVER_TIME = 500;
private static final long ENTER_SPRING_LOAD_HOVER_TIME_IN_TEST = 1500;
private static final long ENTER_SPRING_LOAD_HOVER_TIME_IN_TEST = 2000;
private static final long ENTER_SPRING_LOAD_CANCEL_HOVER_TIME = 950;
Alarm mAlarm;