Home
last modified time | relevance | path

Searched refs:mLauncher (Results 1 – 25 of 150) sorted by relevance

123456

/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DBaseOverview.java73 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingForward()
80 mLauncher.addContextLayer("want to fling forward in overview")) { in flingForwardImpl()
84 mLauncher.getTargetInsets().left + mLauncher.getEdgeSensitivityWidth(); in flingForwardImpl()
85 mLauncher.scroll(overview, Direction.LEFT, new Rect(leftMargin + 1, 0, 0, 0), 20, in flingForwardImpl()
88 mLauncher.addContextLayer("flung forwards")) { in flingForwardImpl()
99 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in flingBackward()
106 mLauncher.addContextLayer("want to fling backward in overview")) { in flingBackwardImpl()
110 mLauncher.getTargetInsets().right + mLauncher.getEdgeSensitivityWidth(); in flingBackwardImpl()
111 mLauncher.scroll( in flingBackwardImpl()
114 mLauncher.addContextLayer("flung backwards")) { in flingBackwardImpl()
[all …]
DBackground.java52 return mLauncher; in getLauncher()
68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToOverview()
69 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in switchToOverview()
73 return mLauncher.is3PLauncher() in switchToOverview()
74 ? new BaseOverview(mLauncher) : new Overview(mLauncher); in switchToOverview()
84 if (mLauncher.getNavigationModel() == NavigationModel.ZERO_BUTTON in goToOverviewUnchecked()
85 || mLauncher.getTrackpadGestureType() == TrackpadGestureType.THREE_FINGER) { in goToOverviewUnchecked()
96 mLauncher.runToState( in goToOverviewUnchecked()
105 mLauncher.executeAndWaitForLauncherEvent( in goToOverviewUnchecked()
111 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in goToOverviewUnchecked()
[all …]
DLaunchedAppState.java56 device -> Math.abs(mLauncher.getTestInfo(REQUEST_STASHED_TASKBAR_SCALE).getFloat(
61 device -> Math.abs(mLauncher.getTestInfo(REQUEST_STASHED_TASKBAR_SCALE).getFloat(
84 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
86 return new Taskbar(mLauncher);
94 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
96 mLauncher.waitUntilSystemLauncherObjectGone(TASKBAR_RES_ID);
104 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer(
106 mLauncher.waitForSystemLauncherObject(TASKBAR_RES_ID);
116 mLauncher.assertTrue("Taskbar is not transient, swipe up not supported",
117 mLauncher.isTransientTaskbar());
[all …]
DKeyboardQuickSwitch.java53 private final LauncherInstrumentation mLauncher; field in KeyboardQuickSwitch
61 mLauncher = launcher; in KeyboardQuickSwitch()
80 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in moveFocusForward()
82 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in moveFocusForward()
83 mLauncher.waitForLauncherObject(KEYBOARD_QUICK_SWITCH_RES_ID); in moveFocusForward()
84 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_ALT_TAB_UP); in moveFocusForward()
85 mLauncher.assertTrue("Failed to press alt+tab", in moveFocusForward()
86 mLauncher.getDevice().pressKeyCode( in moveFocusForward()
89 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in moveFocusForward()
91 mLauncher.waitForLauncherObject(KEYBOARD_QUICK_SWITCH_RES_ID); in moveFocusForward()
[all …]
DAllApps.java69 mHeight = mLauncher.getVisibleBounds(allAppsContainer).height(); in AllApps()
72 mLauncher.waitForObjectInContainer(appListRecycler, By.clazz(TextView.class)); in AllApps()
74 mIconHeight = mLauncher.getTestInfo(TestProtocol.REQUEST_ICON_HEIGHT) in AllApps()
80 return mLauncher; in getLauncher()
94 mLauncher.fail("All apps recycler disappeared from screen"); in hasClickableIcon()
101 final Rect iconBounds = mLauncher.getVisibleBounds(icon); in hasClickableIcon()
126 return mLauncher.getVisibleBounds(getSearchBox(allAppsContainer)).contains( in iconCenterInSearchBox()
133 return iconCenter.y <= mLauncher.getVisibleBounds(appsListRecycler).top in iconCenterInRecyclerTopPadding()
146 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in tryGetAppIcon()
147 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tryGetAppIcon()
[all …]
DTaskbar.java44 private final LauncherInstrumentation mLauncher; field in Taskbar
47 mLauncher = launcher; in Taskbar()
48 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in Taskbar()
50 mLauncher.waitForSystemLauncherObject(TASKBAR_RES_ID); in Taskbar()
53 if (!mLauncher.isTransientTaskbar()) { in Taskbar()
55 getVisibleBounds().width(), mLauncher.getRealDisplaySize().x); in Taskbar()
64 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in getAppIcon()
66 return new TaskbarAppIcon(mLauncher, mLauncher.waitForObjectInContainer( in getAppIcon()
67 mLauncher.waitForSystemLauncherObject(TASKBAR_RES_ID), in getAppIcon()
68 AppIcon.getAppIconSelector(appName, mLauncher))); in getAppIcon()
[all …]
DOverviewTaskMenu.java29 private final LauncherInstrumentation mLauncher; field in OverviewTaskMenu
33 mLauncher = launcher; in OverviewTaskMenu()
35 mMenu = mLauncher.waitForLauncherObject("menu_option_layout"); in OverviewTaskMenu()
36 mLauncher.assertTrue("The overview task menus is not visible", in OverviewTaskMenu()
43 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in tapSplitMenuItem()
44 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in tapSplitMenuItem()
46 mLauncher.runToState(() -> mLauncher.clickLauncherObject( in tapSplitMenuItem()
47 mLauncher.findObjectInContainer(mMenu, By.textStartsWith("Split"))), in tapSplitMenuItem()
52 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in tapSplitMenuItem()
54 return new SplitScreenSelect(mLauncher); in tapSplitMenuItem()
[all …]
DWidgets.java50 return mLauncher; in getLauncher()
67 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingForward()
68 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingForward()
72 mLauncher.scroll( in flingForward()
76 mLauncher.getBottomGestureMarginInContainer(widgetsContainer) + 1), in flingForward()
78 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer("flung forward")) { in flingForward()
89 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in flingBackward()
90 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in flingBackward()
94 mLauncher.scroll( in flingBackward()
98 mLauncher.getBottomGestureMarginInContainer(widgetsContainer) + 1), in flingBackward()
[all …]
DOverviewActions.java27 private final LauncherInstrumentation mLauncher; field in OverviewActions
31 this.mLauncher = launcherInstrumentation; in OverviewActions()
39 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickAndDismissScreenshot()
40 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in clickAndDismissScreenshot()
42 mLauncher.setIndefiniteAccessibilityInteractiveUiTimeout(true); in clickAndDismissScreenshot()
44 UiObject2 screenshot = mLauncher.waitForObjectInContainer(mOverviewActions, in clickAndDismissScreenshot()
47 mLauncher.clickLauncherObject(screenshot); in clickAndDismissScreenshot()
48 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickAndDismissScreenshot()
50 UiObject2 closeScreenshot = mLauncher.waitForSystemUiObject( in clickAndDismissScreenshot()
53 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer( in clickAndDismissScreenshot()
[all …]
DWorkspace.java89 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToAllApps()
91 mLauncher.addContextLayer("want to switch from workspace to all apps")) { in switchToAllApps()
93 final int deviceHeight = mLauncher.getDevice().getDisplayHeight(); in switchToAllApps()
94 final int bottomGestureMargin = mLauncher.getBottomGestureSize(); in switchToAllApps()
95 final int windowCornerRadius = (int) Math.ceil(mLauncher.getWindowCornerRadius()); in switchToAllApps()
97 final int swipeHeight = mLauncher.getTestInfo( in switchToAllApps()
103 + mLauncher.getTouchSlop()); in switchToAllApps()
105 mLauncher.swipeToState( in switchToAllApps()
109 startY - swipeHeight - mLauncher.getTouchSlop(), in switchToAllApps()
114 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToAllApps()
[all …]
DQsb.java37 protected final LauncherInstrumentation mLauncher; field in Qsb
42 mLauncher = launcher; in Qsb()
50 return mLauncher.waitForObjectInContainer(mContainer, mQsbResName); in waitForQsbObject()
59 try (LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in launchAssistant()
61 LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launchAssistant()
62 UiObject2 assistantIcon = mLauncher.waitForLauncherObject(ASSISTANT_ICON_RES_ID); in launchAssistant()
66 + mLauncher.getVisibleBounds(assistantIcon)); in launchAssistant()
68 mLauncher.clickLauncherObject(assistantIcon); in launchAssistant()
70 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launchAssistant()
73 mLauncher.assertTrue( in launchAssistant()
[all …]
DPrivateSpaceHeader.java33 private final LauncherInstrumentation mLauncher; field in PrivateSpaceHeader
37 mLauncher = launcherInstrumentation; in PrivateSpaceHeader()
54 UiObject2 headerText = mLauncher.waitForObjectInContainer(mPrivateSpaceHeader, in verifyUnlockedState()
56 mLauncher.assertEquals("PS Header Text is incorrect ", in verifyUnlockedState()
59 UiObject2 settingsButton = mLauncher.waitForObjectInContainer(mPrivateSpaceHeader, in verifyUnlockedState()
61 mLauncher.waitForObjectEnabled(settingsButton, "Private Space Settings Button"); in verifyUnlockedState()
62 mLauncher.assertTrue("PS Settings button is non-clickable", settingsButton.isClickable()); in verifyUnlockedState()
64 UiObject2 unLockButtonView = mLauncher.waitForObjectInContainer(mPrivateSpaceHeader, in verifyUnlockedState()
66 mLauncher.waitForObjectEnabled(unLockButtonView, "Private Space Unlock Button"); in verifyUnlockedState()
67 mLauncher.assertTrue("PS Unlock Button is non-clickable", unLockButtonView.isClickable()); in verifyUnlockedState()
[all …]
DSearchResultFromQsb.java38 protected final LauncherInstrumentation mLauncher; field in SearchResultFromQsb
42 mLauncher = launcher; in SearchResultFromQsb()
43 mLauncher.waitForLauncherObject("search_container_all_apps"); in SearchResultFromQsb()
44 mSearchContainer = mLauncher.waitForSystemLauncherObject(SEARCH_CONTAINER_RES_ID); in SearchResultFromQsb()
49 UiObject2 icon = mLauncher.waitForLauncherObject(AppIcon.getAppIconSelector(appName)); in findAppIcon()
54 return new AllAppsAppIcon(mLauncher, icon); in createAppIcon()
59 UiObject2 webSuggestion = mLauncher.waitForObjectInContainer(mSearchContainer, in findWebSuggestion()
65 return new SearchWebSuggestion(mLauncher, webSuggestion); in createWebSuggestion()
71 new ArrayList<>(mLauncher.waitForObjectsInContainer(mSearchContainer, in getSearchResultItemSize()
80 final int searchContainerHeight = mLauncher.getVisibleBounds(mSearchContainer).height(); in getNextPageSearchResults()
[all …]
DLaunchable.java37 protected final LauncherInstrumentation mLauncher; field in Launchable
43 mLauncher = launcher; in Launchable()
60 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in launch()
61 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer(String.format( in launch()
65 + mLauncher.getVisibleBounds(mObject)); in launch()
68 mLauncher.executeAndWaitForLauncherStop( in launch()
69 () -> mLauncher.clickLauncherObject(mObject), in launch()
72 mLauncher.clickLauncherObject(mObject); in launch()
75 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("clicked")) { in launch()
77 return mLauncher.assertAppLaunched(expectedPackageName); in launch()
[all …]
DHomeAppIcon.java46 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dragToIcon()
47 LauncherInstrumentation.Closable c = mLauncher.addContextLayer("want to drag icon")) { in dragToIcon()
50 mLauncher, this, in dragToIcon()
56 mLauncher.assertTrue("Can't find the target folder.", result != null); in dragToIcon()
68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dragToFolder()
69 LauncherInstrumentation.Closable c = mLauncher.addContextLayer("want to drag icon")) { in dragToFolder()
71 mLauncher, this, in dragToFolder()
77 return new Folder(mLauncher); in dragToFolder()
84 return mLauncher.getVisibleBounds(mObject); in getDropLocationBounds()
90 for (FolderIcon folderIcon : mLauncher.getWorkspace().getFolderIcons()) { in getTargetIcon()
[all …]
DHomeAllApps.java39 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in switchToWorkspace()
41 mLauncher.addContextLayer("want to switch from all apps to workspace")) { in switchToWorkspace()
46 : mLauncher.getDevice().getDisplayHeight(); in switchToWorkspace()
48 swipeDown ? mLauncher.getDevice().getDisplayHeight() : getTopVisibleIconBounds( in switchToWorkspace()
52 + ", slop = " + mLauncher.getTouchSlop() in switchToWorkspace()
55 mLauncher.swipeToState( in switchToWorkspace()
65 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in switchToWorkspace()
67 return mLauncher.getWorkspace(); in switchToWorkspace()
86 return new AllAppsAppIcon(mLauncher, icon); in createAppIcon()
96 return mLauncher.getTestInfo(TestProtocol.REQUEST_ALL_APPS_TOP_PADDING) in getAppsListRecyclerTopPadding()
[all …]
DOverviewTask.java45 private final LauncherInstrumentation mLauncher; field in OverviewTask
50 mLauncher = launcher; in OverviewTask()
141 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss()
142 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
146 mLauncher.assertNotEquals("Unable to find a task", 0, taskCountBeforeDismiss); in dismiss()
152 boolean taskWasFocused = mLauncher.isTablet() && getVisibleHeight() == mLauncher in dismiss()
160 try (LauncherInstrumentation.Closable c2 = mLauncher.addContextLayer("dismissed")) { in dismiss()
162 mLauncher.assertNotNull("No task became focused", in dismiss()
172 mLauncher.assertTrue("Task centers not aligned", in dismiss()
183 final Rect taskBounds = mLauncher.getVisibleBounds(mTask); in dismissBySwipingUp()
[all …]
DSelectModeButtons.java35 private final LauncherInstrumentation mLauncher; field in SelectModeButtons
42 mLauncher = launcherInstrumentation; in SelectModeButtons()
50 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in clickClose()
52 mLauncher.addContextLayer("want to click close button")) { in clickClose()
53 UiObject2 close = mLauncher.waitForObjectInContainer(mSelectModeButtons, "close"); in clickClose()
54 mLauncher.clickLauncherObject(close); in clickClose()
55 try (LauncherInstrumentation.Closable c1 = mLauncher.addContextLayer( in clickClose()
57 return new Overview(mLauncher); in clickClose()
68 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck()) { in dismissByEscKey()
69 mLauncher.expectEvent(TestProtocol.SEQUENCE_MAIN, EVENT_ALT_ESC_UP); in dismissByEscKey()
[all …]
DWidgetResizeFrame.java32 private final LauncherInstrumentation mLauncher; field in WidgetResizeFrame
35 mLauncher = launcher; in WidgetResizeFrame()
41 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in dismiss()
42 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in dismiss()
45 mLauncher.getDevice().pressHome(); in dismiss()
51 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in resize()
52 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in resize()
54 UiObject2 widget = mLauncher.waitForLauncherObject("widget_resize_frame"); in resize()
56 mLauncher.waitForLauncherObject("widget_resize_bottom_handle"); in resize()
61 originalWidgetSize.height() + mLauncher.getCellLayoutBoarderHeight()); in resize()
[all …]
DFolder.java29 private final LauncherInstrumentation mLauncher; field in Folder
32 this.mLauncher = launcher; in Folder()
41 try (LauncherInstrumentation.Closable ignored = mLauncher.addContextLayer( in getAppIcon()
43 return new WorkspaceAppIcon(mLauncher, in getAppIcon()
44 mLauncher.waitForObjectInContainer( in getAppIcon()
46 AppIcon.getAppIconSelector(appName, mLauncher))); in getAppIcon()
54 try (LauncherInstrumentation.Closable e = mLauncher.eventsCheck(); in close()
55 LauncherInstrumentation.Closable c = mLauncher.addContextLayer( in close()
57 mLauncher.waitForLauncherObject(FOLDER_CONTENT_RES_ID); in close()
58 mLauncher.touchOutsideContainer(this.mContainer, false /* tapRight */); in close()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DKeyboardShortcutsDelegate.java46 Launcher mLauncher; field in KeyboardShortcutsDelegate
49 mLauncher = launcher; in KeyboardShortcutsDelegate()
58 if (mLauncher.isInState(NORMAL)) { in onProvideKeyboardShortcuts()
60 new KeyboardShortcutInfo(mLauncher.getString(R.string.all_apps_button_label), in onProvideKeyboardShortcuts()
63 new KeyboardShortcutInfo(mLauncher.getString(R.string.widget_button_text), in onProvideKeyboardShortcuts()
66 getSupportedActions(mLauncher, mLauncher.getCurrentFocus()).forEach(la -> in onProvideKeyboardShortcuts()
70 data.add(new KeyboardShortcutGroup(mLauncher.getString(R.string.home_screen), in onProvideKeyboardShortcuts()
85 if (mLauncher.isInState(NORMAL)) { in onKeyShortcut()
86 mLauncher.getStateManager().goToState(ALL_APPS); in onKeyShortcut()
91 if (mLauncher.isInState(NORMAL)) { in onKeyShortcut()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DDropTargetHandler.kt24 val mLauncher: Launcher = launcher constant
27 mLauncher.stateManager.goToState(LauncherState.NORMAL) in onDropAnimationComplete()
37 mLauncher.addEventCallback(EVENT_RESUMED) { deferred.onLauncherResume() } in onSecondaryTargetCompleteDrop()
46 mLauncher.setWaitingForResult(PendingRequestArgs.forWidgetInfo(widgetId, null, info)) in reconfigureWidget()
47 mLauncher.appWidgetHolder.startConfigActivity( in reconfigureWidget()
48 mLauncher, in reconfigureWidget()
59 mLauncher.dragLayer.announceForAccessibility(announcement) in dismissPrediction()
60 Snackbar.show(mLauncher, R.string.item_removed, R.string.undo, onDismiss, onActionClicked) in dismissPrediction()
67 mLauncher.workspace.dragInfo != null in getViewUnderDrag()
69 mLauncher.workspace.dragInfo.cell in getViewUnderDrag()
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java108 mLauncher.getWorkspace().switchToAllApps()); in testWorkspaceSwitchToAllApps()
118 Overview overview = mLauncher.goHome().switchToOverview(); in testOverview()
143 OverviewTask task = mLauncher.goHome().switchToOverview().getCurrentTask(); in testOverview()
155 overview = mLauncher.goHome().switchToOverview(); in testOverview()
167 mLauncher.goHome().switchToOverview().dismissAllTasks(); in testOverview()
183 mLauncher.isTablet() && mLauncher.isGridOnlyOverviewEnabled()); in testOverviewActions()
186 mLauncher.goHome().switchToOverview().getOverviewActions(); in testOverviewActions()
193 final Overview overview = mLauncher.goHome().switchToOverview(); in testDismissOverviewWithEscKey()
205 final Overview overview = mLauncher.goHome().switchToOverview(); in testDismissModalTaskAndOverviewWithEscKey()
209 if (mLauncher.isTablet() && mLauncher.isGridOnlyOverviewEnabled()) { in testDismissModalTaskAndOverviewWithEscKey()
[all …]
DTaplTestsSplitscreen.java59 if (mLauncher.isTablet()) { in setUp()
60 mLauncher.enableBlockTimeout(true); in setUp()
61 mLauncher.showTaskbarIfHidden(); in setUp()
69 if (mLauncher.isTablet()) { in tearDown()
70 mLauncher.enableBlockTimeout(false); in tearDown()
78 assumeTrue(mLauncher.isTablet()); in testSplitAppFromHomeWithItself()
80 mLauncher.getWorkspace() in testSplitAppFromHomeWithItself()
81 .deleteAppIcon(mLauncher.getWorkspace().getHotseatAppIcon(0)) in testSplitAppFromHomeWithItself()
88 mLauncher.goHome() in testSplitAppFromHomeWithItself()
97 mLauncher.getAllApps() in testSplitAppFromHomeWithItself()
[all …]
DTaplTestsTrackpad.java53 mLauncher.injectFakeTrackpad(); in setup()
58 mLauncher.ejectFakeTrackpad(); in tearDown()
59 mLauncher.setTrackpadGestureType(TrackpadGestureType.NONE); in tearDown()
66 assumeTrue(mLauncher.isTablet()); in goHome()
68 mLauncher.setTrackpadGestureType(TrackpadGestureType.THREE_FINGER); in goHome()
70 mLauncher.goHome(); in goHome()
80 assumeTrue(mLauncher.isTablet()); in pressBack()
86 mLauncher.setTrackpadGestureType(TrackpadGestureType.THREE_FINGER); in pressBack()
89 mLauncher.getLaunchedAppState().pressBackToWorkspace(); in pressBack()
101 assumeTrue(mLauncher.isTablet()); in switchToOverview()
[all …]

123456