Loading tests/tapl/com/android/launcher3/tapl/Launchable.java +23 −18 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ abstract class Launchable { protected abstract String launchableType(); private Background launch(BySelector selector) { try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( "want to launch an app from " + launchableType())) { LauncherInstrumentation.log("Launchable.launch before click " + mObject.getVisibleCenter() + " in " + mLauncher.getVisibleBounds(mObject)); final String label = mObject.getText(); Loading @@ -69,12 +71,15 @@ abstract class Launchable { () -> "Launching an app didn't open a new window: " + label, "clicking " + launchableType()); try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("clicked")) { mLauncher.assertTrue( "App didn't start: " + label + " (" + selector + ")", TestHelpers.wait(Until.hasObject(selector), LauncherInstrumentation.WAIT_TIME_MS)); return new Background(mLauncher); } } } /** * Drags an object to the center of homescreen. Loading Loading
tests/tapl/com/android/launcher3/tapl/Launchable.java +23 −18 Original line number Diff line number Diff line Loading @@ -56,6 +56,8 @@ abstract class Launchable { protected abstract String launchableType(); private Background launch(BySelector selector) { try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( "want to launch an app from " + launchableType())) { LauncherInstrumentation.log("Launchable.launch before click " + mObject.getVisibleCenter() + " in " + mLauncher.getVisibleBounds(mObject)); final String label = mObject.getText(); Loading @@ -69,12 +71,15 @@ abstract class Launchable { () -> "Launching an app didn't open a new window: " + label, "clicking " + launchableType()); try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("clicked")) { mLauncher.assertTrue( "App didn't start: " + label + " (" + selector + ")", TestHelpers.wait(Until.hasObject(selector), LauncherInstrumentation.WAIT_TIME_MS)); return new Background(mLauncher); } } } /** * Drags an object to the center of homescreen. Loading