Merge "Adding waiting for Launcher initialization" into ub-launcher3-rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
4f51725717
@@ -297,6 +297,7 @@ public abstract class AbstractLauncherUiTest {
|
||||
clearPackageData(mDevice.getLauncherPackageName());
|
||||
mLauncher.enableDebugTracing();
|
||||
mLauncherPid = mLauncher.getPid();
|
||||
mLauncher.waitForLauncherInitialized();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -625,6 +625,7 @@ public final class LauncherInstrumentation {
|
||||
mInstrumentation.getUiAutomation().setOnAccessibilityEventListener(
|
||||
e -> Log.d("b/155926212", e.toString()));
|
||||
try (LauncherInstrumentation.Closable e = eventsCheck()) {
|
||||
waitForLauncherInitialized();
|
||||
// Click home, then wait for any accessibility event, then wait until accessibility
|
||||
// events stop.
|
||||
// We need waiting for any accessibility event generated after pressing Home because
|
||||
|
||||
Reference in New Issue
Block a user