Loading tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +3 −1 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ public final class LauncherInstrumentation { static final Pattern EVENT_TOUCH_DOWN_TIS = getTouchEventPatternTIS("ACTION_DOWN"); static final Pattern EVENT_TOUCH_UP_TIS = getTouchEventPatternTIS("ACTION_UP"); private final String mLauncherPackage; private final boolean mIsLauncher3; // Types for launcher containers that the user is interacting with. "Background" is a // pseudo-container corresponding to inactive launcher covered by another app. Loading Loading @@ -205,6 +206,7 @@ public final class LauncherInstrumentation { public LauncherInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; mDevice = UiDevice.getInstance(instrumentation); mIsLauncher3 = "com.android.launcher3".equals(getLauncherPackageName()); // Launcher should run in test harness so that custom accessibility protocol between // Launcher and TAPL is enabled. In-process tests enable this protocol with a direct call Loading Loading @@ -1396,7 +1398,7 @@ public final class LauncherInstrumentation { } boolean isLauncher3() { return "com.android.launcher3".equals(getLauncherPackageName()); return mIsLauncher3; } void expectEvent(String sequence, Pattern expected) { Loading Loading
tests/tapl/com/android/launcher3/tapl/LauncherInstrumentation.java +3 −1 Original line number Diff line number Diff line Loading @@ -105,6 +105,7 @@ public final class LauncherInstrumentation { static final Pattern EVENT_TOUCH_DOWN_TIS = getTouchEventPatternTIS("ACTION_DOWN"); static final Pattern EVENT_TOUCH_UP_TIS = getTouchEventPatternTIS("ACTION_UP"); private final String mLauncherPackage; private final boolean mIsLauncher3; // Types for launcher containers that the user is interacting with. "Background" is a // pseudo-container corresponding to inactive launcher covered by another app. Loading Loading @@ -205,6 +206,7 @@ public final class LauncherInstrumentation { public LauncherInstrumentation(Instrumentation instrumentation) { mInstrumentation = instrumentation; mDevice = UiDevice.getInstance(instrumentation); mIsLauncher3 = "com.android.launcher3".equals(getLauncherPackageName()); // Launcher should run in test harness so that custom accessibility protocol between // Launcher and TAPL is enabled. In-process tests enable this protocol with a direct call Loading Loading @@ -1396,7 +1398,7 @@ public final class LauncherInstrumentation { } boolean isLauncher3() { return "com.android.launcher3".equals(getLauncherPackageName()); return mIsLauncher3; } void expectEvent(String sequence, Pattern expected) { Loading