/aosp12/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/ |
H A D | Workspace.java | 63 Workspace(LauncherInstrumentation launcher) { in Workspace() 75 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps() 76 LauncherInstrumentation.Closable c = in switchToAllApps() 86 LauncherInstrumentation.log( in switchToAllApps() 114 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tryGetWorkspaceAppIcon() 132 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in getWorkspaceAppIcon() 146 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in ensureWorkspaceIsScrollable() 233 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in deleteAppIcon() 292 LauncherInstrumentation.GestureScope.INSIDE), in dropDraggedIcon() 298 LauncherInstrumentation.log("dropIcon: end"); in dropDraggedIcon() [all …]
|
H A D | Background.java | 40 public class Background extends LauncherInstrumentation.VisibleContainer { 44 Background(LauncherInstrumentation launcher) { in Background() 49 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType() 50 return LauncherInstrumentation.ContainerType.BACKGROUND; in getContainerType() 61 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview() 165 LauncherInstrumentation.EVENT_TOUCH_DOWN); in goToOverviewUnchecked() 167 LauncherInstrumentation.EVENT_TOUCH_UP); in goToOverviewUnchecked() 186 final LauncherInstrumentation.GestureScope gestureScope = in sendDownPointerToEnterOverviewToLauncher() 204 final LauncherInstrumentation.GestureScope gestureScope = in sendSwipeUpAndHoldToEnterOverviewGestureToLauncher() 226 final LauncherInstrumentation.GestureScope gestureScope = in sendUpPointerToEnterOverviewToLauncher() [all …]
|
H A D | OverviewActions.java | 29 private final LauncherInstrumentation mLauncher; 41 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickAndDismissScreenshot() 42 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in clickAndDismissScreenshot() 48 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickAndDismissScreenshot() 53 != LauncherInstrumentation.NavigationModel.THREE_BUTTON) { in clickAndDismissScreenshot() 55 LauncherInstrumentation.EVENT_TOUCH_DOWN_TIS); in clickAndDismissScreenshot() 57 LauncherInstrumentation.EVENT_TOUCH_UP_TIS); in clickAndDismissScreenshot() 75 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickSelect() 76 LauncherInstrumentation.Closable c = in clickSelect() 81 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickSelect() [all …]
|
H A D | BaseOverview.java | 33 public class BaseOverview extends LauncherInstrumentation.VisibleContainer { 36 BaseOverview(LauncherInstrumentation launcher) { in BaseOverview() 43 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType() 44 return LauncherInstrumentation.ContainerType.FALLBACK_OVERVIEW; in getContainerType() 51 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingForward() 57 try (LauncherInstrumentation.Closable c = in flingForwardImpl() 65 try (LauncherInstrumentation.Closable c2 = in flingForwardImpl() 77 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismissAllTasks() 100 LauncherInstrumentation.Closable c = in flingBackward() 108 try (LauncherInstrumentation.Closable c2 = in flingBackward() [all …]
|
H A D | AllApps.java | 38 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() 90 LauncherInstrumentation.log("hasClickableIcon: icon is clickable"); in hasClickableIcon() 109 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in getAppIcon() 169 LauncherInstrumentation.log("Scrolling to the beginning"); in scrollBackToBeginning() 210 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingForward() 211 LauncherInstrumentation.Closable c = in flingForward() 225 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward() [all …]
|
H A D | Overview.java | 23 import com.android.launcher3.tapl.LauncherInstrumentation.ContainerType; 31 Overview(LauncherInstrumentation launcher) { in Overview() 37 return LauncherInstrumentation.ContainerType.OVERVIEW; in getContainerType() 47 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps() 48 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToAllApps() 53 LauncherInstrumentation.log("Overview.switchToAllApps before swipe"); in switchToAllApps() 63 LauncherInstrumentation.GestureScope.INSIDE); in switchToAllApps() 65 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToAllApps() 75 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in dismissAllTasks()
|
H A D | Widgets.java | 19 import static com.android.launcher3.tapl.LauncherInstrumentation.WAIT_TIME_MS; 20 import static com.android.launcher3.tapl.LauncherInstrumentation.log; 37 public final class Widgets extends LauncherInstrumentation.VisibleContainer { 41 Widgets(LauncherInstrumentation launcher) { in Widgets() 50 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingForward() 51 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingForward() 72 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward() 73 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingBackward() 91 protected LauncherInstrumentation.ContainerType getContainerType() { in getContainerType() 92 return LauncherInstrumentation.ContainerType.WIDGETS; in getContainerType() [all …]
|
H A D | Launchable.java | 32 protected final LauncherInstrumentation mLauncher; 36 Launchable(LauncherInstrumentation launcher, UiObject2 object) { in Launchable() 49 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launch() 59 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in launch() 61 LauncherInstrumentation.log("Launchable.launch before click " in launch() 74 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("clicked")) { in launch() 78 LauncherInstrumentation.WAIT_TIME_MS)); in launch() 91 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in dragToWorkspace()
|
H A D | Home.java | 31 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()
|
H A D | Folder.java | 32 private final LauncherInstrumentation mLauncher; 34 Folder(LauncherInstrumentation launcher) { in Folder() 44 try (LauncherInstrumentation.Closable ignored = mLauncher.addContextLayer( in getAppIcon() 58 containerLeftTopCorner, LauncherInstrumentation.GestureScope.INSIDE); in touchOutsideFolder() 60 containerLeftTopCorner, LauncherInstrumentation.GestureScope.INSIDE); in touchOutsideFolder() 67 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in close() 68 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in close()
|
H A D | OptionsPopupMenuItem.java | 27 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()
|
H A D | AllAppsFromOverview.java | 33 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()
|
H A D | AddToHomeScreenPrompt.java | 32 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()
|
H A D | AppIcon.java | 39 AppIcon(LauncherInstrumentation launcher, UiObject2 icon) { in AppIcon() 43 static BySelector getAppIconSelector(String appName, LauncherInstrumentation launcher) { in getAppIconSelector() 51 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openMenu() 61 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in openDeepShortcutMenu() 74 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dragToIcon() 75 LauncherInstrumentation.Closable c = mLauncher.addContextLayer("want to drag icon")) { in dragToIcon() 102 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
|
H A D | SelectModeButtons.java | 27 private final LauncherInstrumentation mLauncher; 30 LauncherInstrumentation launcherInstrumentation) { in SelectModeButtons() 40 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickClose() 41 LauncherInstrumentation.Closable c = in clickClose() 45 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickClose()
|
H A D | OverviewTask.java | 37 private final LauncherInstrumentation mLauncher; 41 OverviewTask(LauncherInstrumentation launcher, UiObject2 task, BaseOverview overview) { in OverviewTask() 68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss() 69 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss() 86 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("dismissed")) { in dismiss() 113 LauncherInstrumentation.GestureScope.INSIDE), in dismissBySwipingUp() 131 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in open()
|
H A D | WidgetResizeFrame.java | 21 private final LauncherInstrumentation mLauncher; 23 WidgetResizeFrame(LauncherInstrumentation launcher) { in WidgetResizeFrame() 30 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss() 31 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
|
H A D | FolderIcon.java | 32 protected final LauncherInstrumentation mLauncher; 34 FolderIcon(LauncherInstrumentation launcher, UiObject2 icon) { in FolderIcon() 44 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in open() 45 LauncherInstrumentation.Closable c = mLauncher.addContextLayer("open folder")) { in open()
|
H A D | Widget.java | 37 Widget(LauncherInstrumentation launcher, UiObject2 icon) { in Widget() 95 .wait(Until.findObject(selector), LauncherInstrumentation.WAIT_TIME_MS) in dragWidgetToWorkspace() 105 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dragWidgetToWorkspace()
|
H A D | LauncherInstrumentation.java | 98 public final class LauncherInstrumentation { class 138 protected final LauncherInstrumentation mLauncher; 140 protected VisibleContainer(LauncherInstrumentation launcher) { in VisibleContainer() 210 public LauncherInstrumentation() { in LauncherInstrumentation() method in LauncherInstrumentation 219 public LauncherInstrumentation(Instrumentation instrumentation) { in LauncherInstrumentation() method in LauncherInstrumentation 451 .map(LauncherInstrumentation::getApplicationPackageSafe) in getSystemAnomalyMessage() 490 .map(LauncherInstrumentation::getApplicationPackageSafe) in getVisiblePackages() 769 try (LauncherInstrumentation.Closable c = addContextLayer(actionName)) { in executeAndWaitForEvent() 819 try (LauncherInstrumentation.Closable c1 = addContextLayer( in swipeUpToCloseFloatingView() 832 try (LauncherInstrumentation.Closable e = eventsCheck(); in pressHome() [all …]
|
H A D | AppIconMenuItem.java | 28 AppIconMenuItem(LauncherInstrumentation launcher, UiObject2 shortcut) { in AppIconMenuItem() 50 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, LauncherInstrumentation.EVENT_START); in expectActivityStartEvents()
|
/aosp12/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
H A D | NavigationModeSwitchRule.java | 35 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() 128 LauncherInstrumentation.NavigationModel.TWO_BUTTON, description)) { in apply() 153 private static LauncherInstrumentation.NavigationModel currentSysUiNavigationMode() { 154 return LauncherInstrumentation.getNavigationModel( 162 LauncherInstrumentation.NavigationModel expectedMode, Description description) 178 if (LauncherInstrumentation.getNavigationModel(newMode.resValue) [all …]
|
H A D | AbstractQuickStepTest.java | 24 import com.android.launcher3.tapl.LauncherInstrumentation; 25 import com.android.launcher3.tapl.LauncherInstrumentation.ContainerType; 77 LauncherInstrumentation.ContainerType expectedContainerType) { in isInLiveTileMode() 79 || expectedContainerType != LauncherInstrumentation.ContainerType.OVERVIEW) { in isInLiveTileMode()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/ |
H A D | WorkProfileTest.java | 34 import com.android.launcher3.tapl.LauncherInstrumentation; 94 }, LauncherInstrumentation.WAIT_TIME_MS); in waitForWorkTabSetup() 101 LauncherInstrumentation.WAIT_TIME_MS); in workTabExists() 104 LauncherInstrumentation.WAIT_TIME_MS); in workTabExists() 123 LauncherInstrumentation.WAIT_TIME_MS); in toggleWorks() 131 }, LauncherInstrumentation.WAIT_TIME_MS); in toggleWorks() 144 }, LauncherInstrumentation.WAIT_TIME_MS); in toggleWorks() 160 LauncherInstrumentation.WAIT_TIME_MS); in testEdu()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
H A D | Wait.java | 6 import com.android.launcher3.tapl.LauncherInstrumentation; 20 LauncherInstrumentation launcher) { in atMost() 25 LauncherInstrumentation launcher) { in atMost() 31 LauncherInstrumentation launcher) { in atMost()
|