Home
last modified time | relevance | path

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

123

/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DLaunchedAppState.java19 import static com.android.launcher3.tapl.LauncherInstrumentation.DEFAULT_POLL_INTERVAL;
20 import static com.android.launcher3.tapl.LauncherInstrumentation.TASKBAR_RES_ID;
21 import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS;
65 LaunchedAppState(LauncherInstrumentation launcher) {
70 protected LauncherInstrumentation.ContainerType getContainerType() {
71 return LauncherInstrumentation.ContainerType.LAUNCHED_APP;
82 try (LauncherInstrumentation.Closable ignored = mLauncher.eventsCheck();
83 LauncherInstrumentation.Closable ignored1 = mLauncher.addContextLayer(
99 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
109 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
[all …]
DWorkspace.java73 Workspace(LauncherInstrumentation launcher) { in Workspace()
85 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps()
86 LauncherInstrumentation.Closable c = in switchToAllApps()
96 LauncherInstrumentation.log( in switchToAllApps()
108 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER); in switchToAllApps()
110 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToAllApps()
119 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in openAllAppsFromKeyboardShortcut()
120 LauncherInstrumentation.Closable c = in openAllAppsFromKeyboardShortcut()
127 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in openAllAppsFromKeyboardShortcut()
136 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in openOverviewFromActionPlusTabKeyboardShortcut()
[all …]
DKeyboardQuickSwitch.java18 import static com.android.launcher3.tapl.LauncherInstrumentation.KEYBOARD_QUICK_SWITCH_RES_ID;
53 private final LauncherInstrumentation mLauncher;
54 private final LauncherInstrumentation.ContainerType mStartingContainerType;
58 LauncherInstrumentation launcher, in KeyboardQuickSwitch()
59 LauncherInstrumentation.ContainerType startingContainerType, in KeyboardQuickSwitch()
80 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in moveFocusForward()
82 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in moveFocusForward()
89 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in moveFocusForward()
112 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in moveFocusBackward()
114 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in moveFocusBackward()
[all …]
DTaskbar.java20 import static com.android.launcher3.tapl.LauncherInstrumentation.TASKBAR_RES_ID;
44 private final LauncherInstrumentation mLauncher;
46 Taskbar(LauncherInstrumentation launcher) { in Taskbar()
48 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in Taskbar()
64 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in getAppIcon()
81 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in swipeDownToStash()
83 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in swipeDownToStash()
93 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER); in swipeDownToStash()
94 LauncherInstrumentation.log("swipeDownToStash: sent linear swipe down gesture"); in swipeDownToStash()
95 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in swipeDownToStash()
[all …]
DQsb.java37 protected final LauncherInstrumentation mLauncher;
41 protected Qsb(LauncherInstrumentation launcher, UiObject2 container, String qsbResName) { in Qsb()
59 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in launchAssistant()
61 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launchAssistant()
64 LauncherInstrumentation.log("Qsb.launchAssistant before click " in launchAssistant()
70 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launchAssistant()
76 LauncherInstrumentation.WAIT_TIME_MS) in launchAssistant()
88 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in launchLens()
90 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launchLens()
93 LauncherInstrumentation.log("Qsb.launchLens before click " in launchLens()
[all …]
DBaseOverview.java21 import static com.android.launcher3.tapl.LauncherInstrumentation.TASKBAR_RES_ID;
22 import static com.android.launcher3.tapl.LauncherInstrumentation.log;
51 public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
68 BaseOverview(LauncherInstrumentation launcher) { in BaseOverview()
72 BaseOverview(LauncherInstrumentation launcher, boolean launchedFromApp) { in BaseOverview()
84 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
85 return LauncherInstrumentation.ContainerType.FALLBACK_OVERVIEW; in getContainerType()
92 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingForward()
98 try (LauncherInstrumentation.Closable c = in flingForwardImpl()
106 try (LauncherInstrumentation.Closable c2 = in flingForwardImpl()
[all …]
DAllApps.java22 import static com.android.launcher3.tapl.LauncherInstrumentation.DEFAULT_POLL_INTERVAL;
23 import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS;
50 public abstract class AllApps extends LauncherInstrumentation.VisibleContainer
66 AllApps(LauncherInstrumentation launcher) { in AllApps()
79 public LauncherInstrumentation getLauncher() { in getLauncher()
84 public LauncherInstrumentation.ContainerType getStartingContainerType() { in getStartingContainerType()
98 LauncherInstrumentation.log("hasClickableIcon: icon not visible"); in hasClickableIcon()
102 LauncherInstrumentation.log("hasClickableIcon: icon bounds: " + iconBounds); in hasClickableIcon()
104 LauncherInstrumentation.log("hasClickableIcon: icon has insufficient height"); in hasClickableIcon()
108 LauncherInstrumentation.log("hasClickableIcon: icon center is under search box"); in hasClickableIcon()
[all …]
DOverviewActions.java27 private final LauncherInstrumentation mLauncher;
29 OverviewActions(UiObject2 overviewActions, LauncherInstrumentation launcherInstrumentation) { in OverviewActions()
39 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickAndDismissScreenshot()
40 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in clickAndDismissScreenshot()
48 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickAndDismissScreenshot()
53 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in clickAndDismissScreenshot()
70 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickSelect()
71 LauncherInstrumentation.Closable c = in clickSelect()
76 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickSelect()
90 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in getSelectModeButtons()
[all …]
DOverviewTaskMenu.java29 private final LauncherInstrumentation mLauncher;
32 OverviewTaskMenu(LauncherInstrumentation launcher) { in OverviewTaskMenu()
43 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in tapSplitMenuItem()
44 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tapSplitMenuItem()
52 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in tapSplitMenuItem()
65 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in tapAppInfoMenuItem()
66 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tapAppInfoMenuItem()
73 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in tapAppInfoMenuItem()
84 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in tapSelectMenuItem()
85 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tapSelectMenuItem()
[all …]
DLaunchable.java35 protected final LauncherInstrumentation mLauncher;
39 Launchable(LauncherInstrumentation launcher, UiObject2 object) { in Launchable()
58 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launch()
59 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(String.format( in launch()
61 LauncherInstrumentation.log("Launchable.launch before click " in launch()
73 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launch()
92 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in launchIntoSplitScreen()
93 LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in launchIntoSplitScreen()
95 LauncherInstrumentation.log("Launchable.launch before click " in launchIntoSplitScreen()
103 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launchIntoSplitScreen()
[all …]
DWidgetResizeFrame.java32 private final LauncherInstrumentation mLauncher;
34 WidgetResizeFrame(LauncherInstrumentation launcher) { in WidgetResizeFrame()
41 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss()
42 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
51 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in resize()
52 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in resize()
65 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER); in resize()
69 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER); in resize()
72 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER); in resize()
75 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in resize()
DHomeAllApps.java27 HomeAllApps(LauncherInstrumentation launcher) { in HomeAllApps()
39 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToWorkspace()
40 LauncherInstrumentation.Closable c = in switchToWorkspace()
50 LauncherInstrumentation.log( in switchToWorkspace()
62 swipeDown ? LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER in switchToWorkspace()
63 : LauncherInstrumentation.GestureScope.EXPECT_PILFER); in switchToWorkspace()
65 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToWorkspace()
73 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
74 return LauncherInstrumentation.ContainerType.HOME_ALL_APPS; in getContainerType()
124 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in pressBackToWorkspace()
[all …]
DBackground.java30 import com.android.launcher3.tapl.LauncherInstrumentation.NavigationModel;
31 import com.android.launcher3.tapl.LauncherInstrumentation.TrackpadGestureType;
42 public abstract class Background extends LauncherInstrumentation.VisibleContainer
47 Background(LauncherInstrumentation launcher) { in Background()
52 public LauncherInstrumentation getLauncher() { in getLauncher()
57 public LauncherInstrumentation.ContainerType getStartingContainerType() { in getStartingContainerType()
69 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview()
70 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToOverview()
112 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in goToOverviewUnchecked()
177 LauncherInstrumentation.GestureScope.EXPECT_PILFER); in sendDownPointerToEnterOverviewToLauncher()
[all …]
DWidgets.java19 import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS;
20 import static com.android.launcher3.tapl.LauncherInstrumentation.log;
40 public final class Widgets extends LauncherInstrumentation.VisibleContainer
45 Widgets(LauncherInstrumentation launcher) { in Widgets()
51 public LauncherInstrumentation getLauncher() { in getLauncher()
56 public LauncherInstrumentation.ContainerType getStartingContainerType() { in getStartingContainerType()
69 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingForward()
70 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingForward()
80 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung forward")) { in flingForward()
91 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward()
[all …]
DOverviewTask.java48 private final LauncherInstrumentation mLauncher;
54 OverviewTask(LauncherInstrumentation launcher, @NonNull UiObject2 task, BaseOverview overview) { in OverviewTask()
148 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss()
149 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
171 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("dismissed")) { in dismiss()
199 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER), in dismissBySwipingUp()
217 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismissCancel()
218 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismissCancel()
234 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER), in dismissCancel()
247 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in open()
[all …]
DKeyboardQuickSwitchSource.java18 import static com.android.launcher3.tapl.LauncherInstrumentation.KEYBOARD_QUICK_SWITCH_RES_ID;
32 LauncherInstrumentation launcher = getLauncher(); in showQuickSwitchView()
34 try (LauncherInstrumentation.Closable c1 = launcher.addContextLayer( in showQuickSwitchView()
36 LauncherInstrumentation.Closable e = launcher.eventsCheck()) { in showQuickSwitchView()
39 try (LauncherInstrumentation.Closable c2 = launcher.addContextLayer( in showQuickSwitchView()
51 LauncherInstrumentation getLauncher(); in getLauncher()
54 LauncherInstrumentation.ContainerType getStartingContainerType(); in getStartingContainerType()
DHomeAppIcon.java34 HomeAppIcon(LauncherInstrumentation launcher, UiObject2 icon) { in HomeAppIcon()
46 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dragToIcon()
47 LauncherInstrumentation.Closable c = mLauncher.addContextLayer("want to drag icon")) { in dragToIcon()
68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dragToFolder()
69 LauncherInstrumentation.Closable c = mLauncher.addContextLayer("want to drag icon")) { in dragToFolder()
115 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in uninstall()
116 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in uninstall()
133 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dragToHotseat()
134 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dragToHotseat()
145 try (LauncherInstrumentation.Closable ignore = mLauncher.addContextLayer("dragged")) { in dragToHotseat()
DSelectModeButtons.java35 private final LauncherInstrumentation mLauncher;
40 SelectModeButtons(LauncherInstrumentation launcherInstrumentation) { in SelectModeButtons()
50 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickClose()
51 LauncherInstrumentation.Closable c = in clickClose()
55 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickClose()
68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in dismissByEscKey()
74 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismissByEscKey()
DHome.java31 protected Home(LauncherInstrumentation launcher) { in Home()
37 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
38 return LauncherInstrumentation.ContainerType.WORKSPACE; in getContainerType()
49 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview()
50 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToOverview()
54 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToOverview()
DWorkspaceDragSource.java33 LauncherInstrumentation launcher = launchable.mLauncher; in dragToWorkspace()
34 try (LauncherInstrumentation.Closable e = launcher.eventsCheck()) { in dragToWorkspace()
48 LauncherInstrumentation launcher = launchable.mLauncher; in internalDragToWorkspace()
74 LauncherInstrumentation launcher = launchable.mLauncher; in dragToWorkspace()
75 try (LauncherInstrumentation.Closable e = launcher.eventsCheck(); in dragToWorkspace()
76 LauncherInstrumentation.Closable c = launcher.addContextLayer( in dragToWorkspace()
87 try (LauncherInstrumentation.Closable ignore = launcher.addContextLayer("dragged")) { in dragToWorkspace()
DSplitScreenMenuItem.java30 private final LauncherInstrumentation mLauncher;
33 SplitScreenMenuItem(LauncherInstrumentation launcher, UiObject2 object) { in SplitScreenMenuItem()
42 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in click()
44 LauncherInstrumentation.log("clicking on split screen menu item " in click()
49 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in click()
DFolder.java29 private final LauncherInstrumentation mLauncher;
31 Folder(LauncherInstrumentation launcher) { in Folder()
41 try (LauncherInstrumentation.Closable ignored = mLauncher.addContextLayer( in getAppIcon()
54 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in close()
55 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in close()
DAppIcon.java37 AppIcon(LauncherInstrumentation launcher, UiObject2 icon) { in AppIcon()
57 static BySelector getAppIconSelector(String appName, LauncherInstrumentation launcher) { in getAppIconSelector()
61 static BySelector getMenuItemSelector(String text, LauncherInstrumentation launcher) { in getMenuItemSelector()
75 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openMenu()
85 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openDeepShortcutMenu()
105 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
DSearchResultFromQsb.java38 protected final LauncherInstrumentation mLauncher;
41 SearchResultFromQsb(LauncherInstrumentation launcher) { in SearchResultFromQsb()
94 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismissByTappingOutsideForTablet()
95 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismissByTappingOutsideForTablet()
101 try (LauncherInstrumentation.Closable tapped = mLauncher.addContextLayer( in dismissByTappingOutsideForTablet()
120 public LauncherInstrumentation getLauncher() { in getLauncher()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DNavigationModeSwitchRule.java34 import com.android.launcher3.tapl.LauncherInstrumentation;
72 private final LauncherInstrumentation mLauncher;
77 public NavigationModeSwitchRule(LauncherInstrumentation launcher) { in NavigationModeSwitchRule()
92 LauncherInstrumentation.getCurrentInteractionMode(context); in apply()
94 final LauncherInstrumentation.NavigationModel originalMode = in apply()
116 LauncherInstrumentation.NavigationModel.THREE_BUTTON, description)) { in apply()
123 LauncherInstrumentation.NavigationModel.ZERO_BUTTON, description)) { in apply()
139 private static LauncherInstrumentation.NavigationModel currentSysUiNavigationMode() {
140 return LauncherInstrumentation.getNavigationModel(
147 public static boolean setActiveOverlay(LauncherInstrumentation launcher, String overlayPackage,
[all …]

123