Home
last modified time | relevance | path

Searched refs:LauncherInstrumentation (Results 1 – 25 of 66) 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;
64 LaunchedAppState(LauncherInstrumentation launcher) {
69 protected LauncherInstrumentation.ContainerType getContainerType() {
70 return LauncherInstrumentation.ContainerType.LAUNCHED_APP;
84 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
94 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
104 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
121 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck();
[all …]
DWorkspace.java77 Workspace(LauncherInstrumentation launcher) { in Workspace()
89 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps()
90 LauncherInstrumentation.Closable c = in switchToAllApps()
100 LauncherInstrumentation.log( in switchToAllApps()
112 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER); in switchToAllApps()
114 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToAllApps()
123 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in openAllAppsFromKeyboardShortcut()
124 LauncherInstrumentation.Closable c = in openAllAppsFromKeyboardShortcut()
131 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in openAllAppsFromKeyboardShortcut()
140 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in openOverviewFromActionPlusTabKeyboardShortcut()
[all …]
DBaseOverview.java21 import static com.android.launcher3.tapl.LauncherInstrumentation.TASKBAR_RES_ID;
47 public class BaseOverview extends LauncherInstrumentation.VisibleContainer {
58 BaseOverview(LauncherInstrumentation launcher) { in BaseOverview()
65 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType()
66 return LauncherInstrumentation.ContainerType.FALLBACK_OVERVIEW; in getContainerType()
73 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingForward()
79 try (LauncherInstrumentation.Closable c = in flingForwardImpl()
81 LauncherInstrumentation.log("Overview.flingForward before fling"); in flingForwardImpl()
87 try (LauncherInstrumentation.Closable c2 = in flingForwardImpl()
99 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingBackward()
[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 …]
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 …]
DLaunchable.java37 protected final LauncherInstrumentation mLauncher;
41 Launchable(LauncherInstrumentation launcher, UiObject2 object) { in Launchable()
60 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launch()
61 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(String.format( in launch()
63 LauncherInstrumentation.log("Launchable.launch before click " in launch()
75 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launch()
94 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in launchIntoSplitScreen()
95 LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in launchIntoSplitScreen()
97 LauncherInstrumentation.log("Launchable.launch before click " in launchIntoSplitScreen()
105 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launchIntoSplitScreen()
[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 …]
DBackground.java30 import com.android.launcher3.tapl.LauncherInstrumentation.NavigationModel;
31 import com.android.launcher3.tapl.LauncherInstrumentation.TrackpadGestureType;
41 public abstract class Background extends LauncherInstrumentation.VisibleContainer
46 Background(LauncherInstrumentation launcher) { in Background()
51 public LauncherInstrumentation getLauncher() { in getLauncher()
56 public LauncherInstrumentation.ContainerType getStartingContainerType() { in getStartingContainerType()
68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview()
69 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToOverview()
111 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in goToOverviewUnchecked()
157 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;
38 public final class Widgets extends LauncherInstrumentation.VisibleContainer
43 Widgets(LauncherInstrumentation launcher) { in Widgets()
49 public LauncherInstrumentation getLauncher() { in getLauncher()
54 public LauncherInstrumentation.ContainerType getStartingContainerType() { in getStartingContainerType()
67 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingForward()
68 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingForward()
78 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung forward")) { in flingForward()
89 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward()
[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 …]
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()
DOverviewTask.java45 private final LauncherInstrumentation mLauncher;
49 OverviewTask(LauncherInstrumentation launcher, UiObject2 task, BaseOverview overview) { in OverviewTask()
141 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss()
142 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
160 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("dismissed")) { in dismiss()
188 LauncherInstrumentation.GestureScope.DONT_EXPECT_PILFER), in dismissBySwipingUp()
206 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in open()
212 == LauncherInstrumentation.ContainerType.SPLIT_SCREEN_SELECT) { in open()
215 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in open()
238 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in tapMenu()
[all …]
DWorkspaceDragSource.java36 LauncherInstrumentation launcher = launchable.mLauncher; in dragToWorkspace()
37 try (LauncherInstrumentation.Closable e = launcher.eventsCheck()) { in dragToWorkspace()
51 LauncherInstrumentation launcher = launchable.mLauncher; in internalDragToWorkspace()
77 LauncherInstrumentation launcher = launchable.mLauncher; in dragToWorkspace()
78 try (LauncherInstrumentation.Closable e = launcher.eventsCheck(); in dragToWorkspace()
79 LauncherInstrumentation.Closable c = launcher.addContextLayer( in dragToWorkspace()
93 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.java38 AppIcon(LauncherInstrumentation launcher, UiObject2 icon) { in AppIcon()
58 static BySelector getAppIconSelector(String appName, LauncherInstrumentation launcher) { in getAppIconSelector()
62 static BySelector getMenuItemSelector(String text, LauncherInstrumentation launcher) { in getMenuItemSelector()
76 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openMenu()
86 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openDeepShortcutMenu()
108 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.java33 import com.android.launcher3.tapl.LauncherInstrumentation;
73 private final LauncherInstrumentation mLauncher;
78 public NavigationModeSwitchRule(LauncherInstrumentation launcher) { in NavigationModeSwitchRule()
93 LauncherInstrumentation.getCurrentInteractionMode(context); in apply()
95 final LauncherInstrumentation.NavigationModel originalMode = in apply()
117 LauncherInstrumentation.NavigationModel.THREE_BUTTON, description)) { in apply()
124 LauncherInstrumentation.NavigationModel.ZERO_BUTTON, description)) { in apply()
140 private static LauncherInstrumentation.NavigationModel currentSysUiNavigationMode() {
141 return LauncherInstrumentation.getNavigationModel(
148 public static boolean setActiveOverlay(LauncherInstrumentation launcher, String overlayPackage,
[all …]

123