Loading quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ public class FallbackRecentsTest { Context context = instrumentation.getContext(); mDevice = UiDevice.getInstance(instrumentation); mDevice.setOrientationNatural(); mLauncher = new LauncherInstrumentation(instrumentation); mLauncher = new LauncherInstrumentation(); if (TestHelpers.isInLauncherProcess()) { Utilities.enableRunningInTestHarnessForTests(); Loading tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -98,8 +98,7 @@ public abstract class AbstractLauncherUiTest { protected LooperExecutor mMainThreadExecutor = MAIN_EXECUTOR; protected final UiDevice mDevice = UiDevice.getInstance(getInstrumentation()); protected final LauncherInstrumentation mLauncher = new LauncherInstrumentation(getInstrumentation()); protected final LauncherInstrumentation mLauncher = new LauncherInstrumentation(); protected Context mTargetContext; protected String mTargetPackage; Loading tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +10 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import android.view.accessibility.AccessibilityEvent; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.test.InstrumentationRegistry; import androidx.test.uiautomator.By; import androidx.test.uiautomator.BySelector; import androidx.test.uiautomator.Configurator; Loading Loading @@ -144,6 +145,15 @@ public final class LauncherInstrumentation { /** * Constructs the root of TAPL hierarchy. You get all other objects from it. */ public LauncherInstrumentation() { this(InstrumentationRegistry.getInstrumentation()); } /** * Constructs the root of TAPL hierarchy. You get all other objects from it. * Deprecated: use the constructor without parameters instead. */ @Deprecated public LauncherInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; mDevice = UiDevice.getInstance(instrumentation); Loading Loading
quickstep/tests/src/com/android/quickstep/FallbackRecentsTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ public class FallbackRecentsTest { Context context = instrumentation.getContext(); mDevice = UiDevice.getInstance(instrumentation); mDevice.setOrientationNatural(); mLauncher = new LauncherInstrumentation(instrumentation); mLauncher = new LauncherInstrumentation(); if (TestHelpers.isInLauncherProcess()) { Utilities.enableRunningInTestHarnessForTests(); Loading
tests/src/com/android/launcher3/ui/AbstractLauncherUiTest.java +1 −2 Original line number Diff line number Diff line Loading @@ -98,8 +98,7 @@ public abstract class AbstractLauncherUiTest { protected LooperExecutor mMainThreadExecutor = MAIN_EXECUTOR; protected final UiDevice mDevice = UiDevice.getInstance(getInstrumentation()); protected final LauncherInstrumentation mLauncher = new LauncherInstrumentation(getInstrumentation()); protected final LauncherInstrumentation mLauncher = new LauncherInstrumentation(); protected Context mTargetContext; protected String mTargetPackage; Loading
tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +10 −0 Original line number Diff line number Diff line Loading @@ -51,6 +51,7 @@ import android.view.accessibility.AccessibilityEvent; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import androidx.test.InstrumentationRegistry; import androidx.test.uiautomator.By; import androidx.test.uiautomator.BySelector; import androidx.test.uiautomator.Configurator; Loading Loading @@ -144,6 +145,15 @@ public final class LauncherInstrumentation { /** * Constructs the root of TAPL hierarchy. You get all other objects from it. */ public LauncherInstrumentation() { this(InstrumentationRegistry.getInstrumentation()); } /** * Constructs the root of TAPL hierarchy. You get all other objects from it. * Deprecated: use the constructor without parameters instead. */ @Deprecated public LauncherInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; mDevice = UiDevice.getInstance(instrumentation); Loading