Home
last modified time | relevance | path

Searched refs:LauncherInstrumentation (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DWorkspace.java59 Workspace(LauncherInstrumentation launcher) { in Workspace()
99 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps()
100 LauncherInstrumentation.Closable c = in switchToAllApps()
112 LauncherInstrumentation.log( in switchToAllApps()
122 ALL_APPS_STATE_ORDINAL, LauncherInstrumentation.GestureScope.INSIDE); in switchToAllApps()
124 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToAllApps()
139 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tryGetWorkspaceAppIcon()
157 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in getWorkspaceAppIcon()
171 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in ensureWorkspaceIsScrollable()
174 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in ensureWorkspaceIsScrollable()
[all …]
DWidgets.java19 import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS;
30 import com.android.launcher3.tapl.LauncherInstrumentation.GestureScope;
37 public final class Widgets extends LauncherInstrumentation.VisibleContainer {
40 Widgets(LauncherInstrumentation launcher) { in Widgets()
49 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingForward()
50 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingForward()
52 LauncherInstrumentation.log("Widgets.flingForward enter"); in flingForward()
60 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung forward")) { in flingForward()
63 LauncherInstrumentation.log("Widgets.flingForward exit"); in flingForward()
71 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward()
[all …]
DAllApps.java38 public class AllApps extends LauncherInstrumentation.VisibleContainer {
44 AllApps(LauncherInstrumentation launcher) { in AllApps()
59 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
60 return LauncherInstrumentation.ContainerType.ALL_APPS; in getContainerType()
67 LauncherInstrumentation.log("hasClickableIcon: icon not visible"); in hasClickableIcon()
71 LauncherInstrumentation.log("hasClickableIcon: icon bounds: " + iconBounds); in hasClickableIcon()
73 LauncherInstrumentation.log("hasClickableIcon: icon has insufficient height"); in hasClickableIcon()
77 LauncherInstrumentation.log("hasClickableIcon: icon center is under search box"); in hasClickableIcon()
81 LauncherInstrumentation.log("hasClickableIcon: icon bottom below bottom offset"); in hasClickableIcon()
84 LauncherInstrumentation.log("hasClickableIcon: icon is clickable"); in hasClickableIcon()
[all …]
DBaseOverview.java32 public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
35 BaseOverview(LauncherInstrumentation launcher) { in BaseOverview()
41 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
42 return LauncherInstrumentation.ContainerType.FALLBACK_OVERVIEW; in getContainerType()
49 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingForward()
55 try (LauncherInstrumentation.Closable c = in flingForwardImpl()
57 LauncherInstrumentation.log("Overview.flingForward before fling"); in flingForwardImpl()
70 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismissAllTasks()
71 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismissAllTasks()
90 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward()
[all …]
DBackground.java38 public class Background extends LauncherInstrumentation.VisibleContainer {
42 Background(LauncherInstrumentation launcher) { in Background()
47 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
48 return LauncherInstrumentation.ContainerType.BACKGROUND; in getContainerType()
59 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview()
60 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToOverview()
85 final LauncherInstrumentation.GestureScope gestureScope = in goToOverviewUnchecked()
87 ? LauncherInstrumentation.GestureScope.INSIDE_TO_OUTSIDE in goToOverviewUnchecked()
88 : LauncherInstrumentation.GestureScope.OUTSIDE; in goToOverviewUnchecked()
133 LauncherInstrumentation.GestureScope.OUTSIDE); in goToOverviewUnchecked()
[all …]
DOverview.java23 import com.android.launcher3.tapl.LauncherInstrumentation.ContainerType;
31 Overview(LauncherInstrumentation launcher) { in Overview()
38 return LauncherInstrumentation.ContainerType.OVERVIEW; in getContainerType()
48 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps()
49 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToAllApps()
54 LauncherInstrumentation.log("Overview.switchToAllApps before swipe"); in switchToAllApps()
64 LauncherInstrumentation.GestureScope.INSIDE); in switchToAllApps()
66 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToAllApps()
76 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in dismissAllTasks()
DOverviewTask.java35 private final LauncherInstrumentation mLauncher;
39 OverviewTask(LauncherInstrumentation launcher, UiObject2 task, BaseOverview overview) { in OverviewTask()
54 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss()
55 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
63 LauncherInstrumentation.GestureScope.INSIDE); in dismiss()
72 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in open()
74 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in open()
DHome.java33 protected Home(LauncherInstrumentation launcher) { in Home()
39 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
40 return LauncherInstrumentation.ContainerType.WORKSPACE; in getContainerType()
51 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview()
52 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToOverview()
56 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToOverview()
DOptionsPopupMenuItem.java27 private final LauncherInstrumentation mLauncher;
30 OptionsPopupMenuItem(@NonNull LauncherInstrumentation launcher, @NonNull UiObject2 shortcut) { in OptionsPopupMenuItem()
40 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launch()
41 LauncherInstrumentation.log("OptionsPopupMenuItem before click " in launch()
44 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in launch()
48 LauncherInstrumentation.WAIT_TIME_MS)); in launch()
DAddToHomeScreenPrompt.java32 private final LauncherInstrumentation mLauncher;
35 AddToHomeScreenPrompt(LauncherInstrumentation launcher) { in AddToHomeScreenPrompt()
46 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in addAutomatically()
48 != LauncherInstrumentation.NavigationModel.THREE_BUTTON) { in addAutomatically()
52 LauncherInstrumentation.EVENT_TOUCH_DOWN_TIS); in addAutomatically()
54 TestProtocol.SEQUENCE_TIS, LauncherInstrumentation.EVENT_TOUCH_UP_TIS); in addAutomatically()
DAllAppsFromOverview.java33 AllAppsFromOverview(LauncherInstrumentation launcher) { in AllAppsFromOverview()
45 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchBackToOverview()
46 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchBackToOverview()
58 LauncherInstrumentation.log("AllAppsFromOverview.switchBackToOverview before swipe"); in switchBackToOverview()
60 LauncherInstrumentation.GestureScope.INSIDE); in switchBackToOverview()
62 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("swiped down")) { in switchBackToOverview()
DLauncherInstrumentation.java91 public final class LauncherInstrumentation { class
124 protected final LauncherInstrumentation mLauncher;
126 protected VisibleContainer(LauncherInstrumentation launcher) { in VisibleContainer()
192 public LauncherInstrumentation() { in LauncherInstrumentation() method in LauncherInstrumentation
201 public LauncherInstrumentation(Instrumentation instrumentation) { in LauncherInstrumentation() method in LauncherInstrumentation
384 .map(LauncherInstrumentation::getApplicationPackageSafe) in getVisiblePackages()
657 try (LauncherInstrumentation.Closable e = eventsCheck()) { in pressHome()
677 try (LauncherInstrumentation.Closable c = addContextLayer( in pressHome()
689 try (LauncherInstrumentation.Closable c = addContextLayer(action)) { in pressHome()
703 try (LauncherInstrumentation.Closable c = addContextLayer(action)) { in pressHome()
[all …]
DLaunchable.java32 protected final LauncherInstrumentation mLauncher;
36 Launchable(LauncherInstrumentation launcher, UiObject2 object) { in Launchable()
49 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launch()
57 LauncherInstrumentation.log("Launchable.launch before click " + in launch()
69 LauncherInstrumentation.WAIT_TIME_MS)); in launch()
80 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in dragToWorkspace()
DAppIcon.java36 AppIcon(LauncherInstrumentation launcher, UiObject2 icon) { in AppIcon()
40 static BySelector getAppIconSelector(String appName, LauncherInstrumentation launcher) { in getAppIconSelector()
48 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openMenu()
66 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
DAppIconMenuItem.java30 AppIconMenuItem(LauncherInstrumentation launcher, UiObject2 shortcut) { in AppIconMenuItem()
52 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
DOptionsPopupMenu.java24 private final LauncherInstrumentation mLauncher;
27 OptionsPopupMenu(LauncherInstrumentation launcher) { in OptionsPopupMenu()
DAppIconMenu.java29 private final LauncherInstrumentation mLauncher;
32 AppIconMenu(LauncherInstrumentation launcher, in AppIconMenu()
DLogEventChecker.java33 private final LauncherInstrumentation mLauncher;
38 LogEventChecker(LauncherInstrumentation launcher) { in LogEventChecker()
DWidget.java32 Widget(LauncherInstrumentation launcher, UiObject2 icon) { in Widget()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DNavigationModeSwitchRule.java36 import com.android.launcher3.tapl.LauncherInstrumentation;
74 private final LauncherInstrumentation mLauncher;
79 public NavigationModeSwitchRule(LauncherInstrumentation launcher) { in NavigationModeSwitchRule()
94 LauncherInstrumentation.getCurrentInteractionMode(context); in apply()
96 final LauncherInstrumentation.NavigationModel originalMode = in apply()
121 LauncherInstrumentation.NavigationModel.THREE_BUTTON, description)) { in apply()
128 LauncherInstrumentation.NavigationModel.TWO_BUTTON, description)) { in apply()
135 LauncherInstrumentation.NavigationModel.ZERO_BUTTON, description)) { in apply()
153 private static LauncherInstrumentation.NavigationModel currentSysUiNavigationMode() {
154 return LauncherInstrumentation.getNavigationModel(
[all …]
DFallbackRecentsTest.java22 import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS;
53 import com.android.launcher3.tapl.LauncherInstrumentation;
77 private final LauncherInstrumentation mLauncher;
94 mLauncher = new LauncherInstrumentation(); in FallbackRecentsTest()
DTaplTestsQuickstep.java37 import com.android.launcher3.tapl.LauncherInstrumentation.NavigationModel;
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DWait.java6 import com.android.launcher3.tapl.LauncherInstrumentation;
20 LauncherInstrumentation launcher) { in atMost()
25 LauncherInstrumentation launcher) { in atMost()
31 LauncherInstrumentation launcher) { in atMost()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java59 import com.android.launcher3.tapl.LauncherInstrumentation;
60 import com.android.launcher3.tapl.LauncherInstrumentation.ContainerType;
110 protected final LauncherInstrumentation mLauncher = new LauncherInstrumentation();
132 public static void checkDetectedLeaks(LauncherInstrumentation launcher) { in checkDetectedLeaks()