Home
last modified time | relevance | path

Searched refs:getWorkspace (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/Launcher3/tests/src/com/android/launcher3/allapps/
DTaplOpenCloseAllAppsTest.java54 final AllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testPressHomeOnAllAppsContextMenu()
71 mLauncher.getWorkspace().switchToAllApps()); in testWorkspaceSwitchToAllApps()
83 mLauncher.getWorkspace().switchToAllApps() in testAllAppsSwitchToWorkspace()
97 mLauncher.getWorkspace().switchToAllApps() in testAllAppsSwipeUpToWorkspace()
111 mLauncher.getWorkspace().switchToAllApps().dismissByTappingOutsideForTablet( in testAllAppsDeadzoneForTablet()
113 mLauncher.getWorkspace().switchToAllApps().dismissByTappingOutsideForTablet( in testAllAppsDeadzoneForTablet()
126 mLauncher.getWorkspace().switchToAllApps()); in testAllAppsFromHome()
136 assertNotNull("getHome returned null", mLauncher.getWorkspace()); in testAllAppsFromHome()
201 .getWorkspace() in testPressBackFromAllAppsToHome()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplUninstallRemoveTest.java66 Workspace workspace = mLauncher.getWorkspace().deleteAppIcon(homeAppIcon); in testDeleteFromWorkspace()
121 Workspace workspace = mLauncher.getWorkspace(); in testUninstallFromAllApps()
159 mLauncher.getWorkspace().getWorkspaceIconsPositions(); in uninstallWorkspaceIcon()
162 mLauncher.getWorkspace().getWorkspaceAppIcon(DUMMY_APP_NAME).uninstall(); in uninstallWorkspaceIcon()
163 mLauncher.getWorkspace().verifyWorkspaceAppIconIsGone( in uninstallWorkspaceIcon()
168 mLauncher.getWorkspace().getWorkspaceIconsPositions(); in uninstallWorkspaceIcon()
183 mLauncher.getWorkspace() in testAddDeleteShortcutOnHotseat()
184 .deleteAppIcon(mLauncher.getWorkspace().getHotseatAppIcon(0)) in testAddDeleteShortcutOnHotseat()
188 mLauncher.getWorkspace().deleteAppIcon( in testAddDeleteShortcutOnHotseat()
189 mLauncher.getWorkspace().getHotseatAppIcon(TEST_APP_NAME)); in testAddDeleteShortcutOnHotseat()
DTaplDragTest.java106 assertNotNull(mLauncher.getWorkspace().tryGetWorkspaceAppIcon(STORE_APP_NAME)); in testDragOutOfFolder()
107 assertNotNull(mLauncher.getWorkspace().tryGetWorkspaceAppIcon(PHOTOS_APP_NAME)); in testDragOutOfFolder()
122 .getWorkspace() in testDragShortcut()
135 mLauncher.getWorkspace().getWorkspaceAppIcon(expectedShortcutName) in testDragShortcut()
153 final HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testDragShortcutToMultipleWorkspaceCells()
177 mLauncher.getWorkspace().getWorkspaceIconsPositions().get(GMAIL_APP_NAME); in testDragAndCancelAppIcon()
180 mLauncher.getWorkspace().dragAndCancelAppIcon(homeAppIcon); in testDragAndCancelAppIcon()
183 mLauncher.getWorkspace().getWorkspaceIconsPositions().get(GMAIL_APP_NAME); in testDragAndCancelAppIcon()
201 final HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testDragAppIcon()
205 mLauncher.getWorkspace().getWorkspaceAppIcon(TEST_APP_NAME).launch(getAppPackageName()); in testDragAppIcon()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/workspace/
DTaplThemeIconsTest.java63 HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testIconWithoutTheme()
70 executeOnLauncher(l -> verifyIconTheme(APP_NAME, l.getWorkspace(), false)); in testIconWithoutTheme()
81 HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testShortcutIconWithoutTheme()
89 executeOnLauncher(l -> verifyIconTheme(SHORTCUT_NAME, l.getWorkspace(), false)); in testShortcutIconWithoutTheme()
100 HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testIconWithTheme()
107 executeOnLauncher(l -> verifyIconTheme(APP_NAME, l.getWorkspace(), true)); in testIconWithTheme()
118 HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testShortcutIconWithTheme()
126 executeOnLauncher(l -> verifyIconTheme(SHORTCUT_NAME, l.getWorkspace(), true)); in testShortcutIconWithTheme()
DTaplTwoPanelWorkspaceTest.java103 Workspace workspace = mLauncher.getWorkspace(); in testDragIconToRightPanel()
119 Workspace workspace = mLauncher.getWorkspace(); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
173 Workspace workspace = mLauncher.getWorkspace(); in testDragIconToPage2()
189 Workspace workspace = mLauncher.getWorkspace(); in testDragIconToPage3()
206 Workspace workspace = mLauncher.getWorkspace(); in testMultiplePageDragIcon()
254 Workspace workspace = mLauncher.getWorkspace(); in testEmptyPageDoesNotGetRemovedIfPagePairIsNotEmpty()
294 Workspace workspace = mLauncher.getWorkspace(); in testEmptyPagesGetRemovedIfBothPagesAreEmpty()
321 Workspace workspace = mLauncher.getWorkspace(); in testMiddleEmptyPagesGetRemoved()
349 CellLayout page = launcher.getWorkspace().getScreenWithId(pageId); in assertPageEmpty()
356 int pageCount = launcher.getWorkspace().getPageCount(); in assertPagesExist()
[all …]
DTaplWorkspaceTest.java46 return launcher.getWorkspace().getPageCount() > launcher.getWorkspace().getPanelCount(); in isWorkspaceScrollable()
50 return launcher.getWorkspace().getCurrentPage(); in getCurrentWorkspacePage()
80 final Workspace workspace = mLauncher.getWorkspace(); in testWorkspace()
126 Workspace workspace = mLauncher.getWorkspace(); in testAddAndDeletePageAndFling()
141 workspace = mLauncher.getWorkspace(); in testAddAndDeletePageAndFling()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DTaplAddWidgetTest.java66 .getWorkspace() in testDragIcon()
74 final Widget widget = mLauncher.getWorkspace().tryGetWidget(widgetInfo.label, in testDragIcon()
95 mLauncher.getWorkspace().openAllWidgets() in testDragCustomShortcut()
98 mLauncher.getWorkspace().getWorkspaceAppIcon("Shortcut") in testDragCustomShortcut()
117 .getWorkspace() in testResizeWidget()
DTaplBindWidgetTest.java127 final Workspace workspace = mLauncher.getWorkspace(); in testUnboundWidget_removed()
181 assertNull(mLauncher.getWorkspace().tryGetPendingWidget(100)); in testPendingWidget_withConfigScreen()
189 mLauncher.getWorkspace().tryGetPendingWidget(0) == null); in testPendingWidget_notRestored_removed()
241 final Widget widget = mLauncher.getWorkspace().tryGetWidget(info.label, DEFAULT_UI_TIMEOUT); in verifyWidgetPresent()
247 final Widget widget = mLauncher.getWorkspace().tryGetPendingWidget(DEFAULT_UI_TIMEOUT); in verifyPendingWidgetPresent()
DTaplAddConfigWidgetTest.java94 mLauncher.getWorkspace() in runTest()
140 return l != null && l.getWorkspace().getFirstMatch(this) != null; in isTrue()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DTaplReorderWidgetsTest.java158 Widget widget = mLauncher.getWorkspace().getWidgetAtCell(widgetRect.getCellX(), in triggerWidgetResize()
181 Widget widget = mLauncher.getWorkspace().getWidgetAtCell(mainWidgetCellPos.getCellX(), in runTestCase()
203 Point iconGridDimensions = mLauncher.getWorkspace().getIconGridDimensions(); in runTestCaseMap()
266 l -> l.getWorkspace().getScreenWithId(0) instanceof MultipageCellLayout)); in multipleCellLayoutsSimpleReorder()
274 l -> l.getWorkspace().getScreenWithId(0) instanceof MultipageCellLayout)); in multipleCellLayoutsNoSpaceReorder()
283 l -> l.getWorkspace().getScreenWithId(0) instanceof MultipageCellLayout)); in multipleCellLayoutsReorderToOtherSide()
/packages/apps/Launcher3/tests/src/com/android/launcher3/appiconmenu/
DTaplAppIconMenuTest.java56 final AllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testLaunchMenuItem()
81 final HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testLaunchHomeScreenMenuItem()
85 final AppIconMenu menu = mLauncher.getWorkspace().getWorkspaceAppIcon( in testLaunchHomeScreenMenuItem()
/packages/apps/Launcher3/tests/src/com/android/launcher3/compat/
DTaplPromiseIconUiTest.java108 launcher.getWorkspace().getFirstMatch(findPromiseApp) != null); in testPromiseIcon_addedFromEligibleSession()
116 launcher.getWorkspace().getFirstMatch(findPromiseApp) == null); in testPromiseIcon_addedFromEligibleSession()
134 launcher.getWorkspace().getFirstMatch(findPromiseApp) == null); in testPromiseIcon_notAddedFromIneligibleSession()
151 final AllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testPromiseIcon_addedArchivedApp()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DWorkspaceRevealAnim.java71 Workspace<?> workspace = launcher.getWorkspace(); in WorkspaceRevealAnim()
81 launcher.getWorkspace().getStateTransitionAnimation() in WorkspaceRevealAnim()
136 launcher.getWorkspace().getStateTransitionAnimation() in prepareToAnimate()
DLauncherUnfoldAnimationController.java136 OneShotPreDrawListener.add(mLauncher.getWorkspace(), in preemptivelyStartAnimationOnNextFrame()
230 mLauncher.getWorkspace().setPivotToScaleWithSelf(mLauncher.getHotseat()); in onTransitionStarted()
244 WORKSPACE_SCALE_PROPERTY.setValue(mLauncher.getWorkspace(), value); in setScale()
DStaggeredWorkspaceAnim.java98 Workspace<?> workspace = launcher.getWorkspace(); in StaggeredWorkspaceAnim()
173 launcher.getWorkspace().getStateTransitionAnimation() in StaggeredWorkspaceAnim()
224 launcher.getWorkspace().getStateTransitionAnimation() in prepareToAnimate()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DLauncherDelegate.java64 mLauncher.getWorkspace().beginDragShared(child, source, options); in beginDragShared()
72 mLauncher.getWorkspace().forEachVisiblePage(callback); in forEachVisibleWorkspacePage()
114 mLauncher.getWorkspace().addInScreenFromBind(newIcon, info); in replaceFolderWithFinalItem()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DCellLayoutTestUtils.java34 for (CellLayout cellLayout : launcher.getWorkspace().mWorkspaceScreens) { in workspaceToBoards()
44 launcher.getWorkspace().getCellLayoutId(cellLayout), CONTAINER_DESKTOP); in workspaceToBoards()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemLongClickListener.java99 launcher.getWorkspace().startDrag(longClickCellInfo, dragOptions); in beginDrag()
151 if (launcher.getWorkspace().isSwitchingState()) return false; in onAllAppsItemLongClick()
177 launcher.getWorkspace().beginDragShared(v, launcher.getAppsView(), new DragOptions()); in onAllAppsItemLongClick()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherState.java370 return launcher.getWorkspace().getCurrentPageDescription(); in getDescription()
382 final int centerPage = launcher.getWorkspace().getNextPage(); in getWorkspacePageAlphaProvider()
399 final float quarterPageSpacing = launcher.getWorkspace().getPageSpacing() / 4f;
403 boolean isRtl = launcher.getWorkspace().mIsRtl;
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/
DStatsLogCompatManager.java780 return containerInfo.getFolder().getWorkspace().getGridX();
788 return containerInfo.getWorkspace().getGridX();
795 return info.getContainerInfo().getFolder().getWorkspace().getGridY();
800 return info.getContainerInfo().getWorkspace().getGridY();
818 return info.getContainerInfo().getWorkspace().getPageIndex();
829 return info.getContainerInfo().getFolder().getWorkspace().getPageIndex();
831 return info.getContainerInfo().getSearchResultContainer().getWorkspace()
834 return info.getContainerInfo().getWorkspace().getPageIndex();
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DHomeAllApps.java67 return mLauncher.getWorkspace(); in switchToWorkspace()
114 mLauncher.getWorkspace(); in verifyVisibleContainerOnDismiss()
DHomeAppIcon.java90 for (FolderIcon folderIcon : mLauncher.getWorkspace().getFolderIcons()) { in getTargetIcon()
147 (WorkspaceAppIcon) mLauncher.getWorkspace().getHotseatAppIcon(mAppName); in dragToHotseat()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsSplitscreen.java80 mLauncher.getWorkspace() in testSplitAppFromHomeWithItself()
81 .deleteAppIcon(mLauncher.getWorkspace().getHotseatAppIcon(0)) in testSplitAppFromHomeWithItself()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DAbstractLauncherUiTest.java234 test.mLauncher.getWorkspace(); in initialize()
670 Point dimension = mLauncher.getWorkspace().getIconGridDimensions(); in createShortcutInCenterIfNotExist()
679 HomeAppIcon homeAppIcon = mLauncher.getWorkspace().tryGetWorkspaceAppIcon(name); in createShortcutIfNotExist()
683 HomeAllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in createShortcutIfNotExist()
690 homeAppIcon = mLauncher.getWorkspace().getWorkspaceAppIcon(name); in createShortcutIfNotExist()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/util/
DTaplTestsPredictionRow.java28 mLauncher.getWorkspace().switchToAllApps(); in setUp()

123