Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DTaplTestsLauncher3.java68 test.mLauncher.getWorkspace(); in initialize()
84 return launcher.getWorkspace().getPageCount() > 1; in isWorkspaceScrollable()
88 return launcher.getWorkspace().getCurrentPage(); in getCurrentWorkspacePage()
117 final AllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testPressHomeOnAllAppsContextMenu()
180 mLauncher.getWorkspace().switchToAllApps()); in testWorkspaceSwitchToAllApps()
187 final Workspace workspace = mLauncher.getWorkspace(); in testWorkspace()
242 final AllApps allApps = mLauncher.getWorkspace().switchToAllApps(); in testAppIconLaunchFromAllAppsFromHome()
255 Widgets widgets = mLauncher.getWorkspace().openAllWidgets(); in testWidgets()
292 getWorkspace(). in testLaunchMenuItem()
318 final AllApps allApps = mLauncher.getWorkspace(). in testDragAppIcon()
[all …]
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/ui/
DLauncherUIScrollTest.java87 assertEquals(3, launcher.getWorkspace().getPageCount()); in testWorkspacePagesBound()
88 assertEquals(0, launcher.getWorkspace().getCurrentPage()); in testWorkspacePagesBound()
92 0, launcher.getWorkspace().getNextPage()); in testWorkspacePagesBound()
112 assertEquals("Workspace was scrolled", 0, launcher.getWorkspace().getNextPage()); in testAllAppsScroll()
131 assertEquals("Workspace was scrolled", 0, launcher.getWorkspace().getNextPage()); in testWidgetsListScroll()
146 launcher.getWorkspace().getFirstMatch((i, v) -> v instanceof FolderIcon).performClick(); in testFolderPageScroll()
154 assertEquals("Workspace was scrolled", 0, launcher.getWorkspace().getNextPage()); in testFolderPageScroll()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DAddWidgetTest.java57 getWorkspace(). in testDragIcon()
69 final Widget widget = mLauncher.getWorkspace().tryGetWidget(widgetInfo.label, in testDragIcon()
86 mLauncher.getWorkspace().openAllWidgets() in testDragCustomShortcut()
89 mLauncher.getWorkspace().getWorkspaceAppIcon("Shortcut") in testDragCustomShortcut()
DBindWidgetTest.java130 final Workspace workspace = mLauncher.getWorkspace(); in testUnboundWidget_removed()
195 assertNull(mLauncher.getWorkspace().tryGetPendingWidget(100)); in testPendingWidget_withConfigScreen()
207 mLauncher.getWorkspace().tryGetPendingWidget(0) == null); in testPendingWidget_notRestored_removed()
267 final Widget widget = mLauncher.getWorkspace().tryGetWidget(info.label, DEFAULT_UI_TIMEOUT); in verifyWidgetPresent()
273 final Widget widget = mLauncher.getWorkspace().tryGetPendingWidget(DEFAULT_UI_TIMEOUT); in verifyPendingWidgetPresent()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/logging/
DStatsLogCompatManager.java432 return info.getContainerInfo().getFolder().getWorkspace().getGridX(); in getGridX()
437 return info.getContainerInfo().getWorkspace().getGridX(); in getGridX()
444 return info.getContainerInfo().getFolder().getWorkspace().getGridY(); in getGridY()
449 return info.getContainerInfo().getWorkspace().getGridY(); in getGridY()
465 return info.getContainerInfo().getWorkspace().getPageIndex(); in getPageId()
476 return info.getContainerInfo().getFolder().getWorkspace().getPageIndex(); in getParentPageId()
478 return info.getContainerInfo().getSearchResultContainer().getWorkspace() in getParentPageId()
481 return info.getContainerInfo().getWorkspace().getPageIndex(); in getParentPageId()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DLauncherDelegate.java71 mLauncher.getWorkspace().beginDragShared(child, source, options); in beginDragShared()
79 mLauncher.getWorkspace().forEachVisiblePage(callback); in forEachVisibleWorkspacePage()
90 mLauncher.getWorkspace().getCurrentPage(), mTempRect, mTempRectF); in addRectForColorExtraction()
128 mLauncher.getWorkspace().addInScreenFromBind(newIcon, info); in replaceFolderWithFinalItem()
/packages/apps/Launcher3/tests/src/com/android/launcher3/compat/
DPromiseIconUiTest.java86 launcher.getWorkspace().getFirstMatch(findPromiseApp) != null); in testPromiseIcon_addedFromEligibleSession()
94 launcher.getWorkspace().getFirstMatch(findPromiseApp) == null); in testPromiseIcon_addedFromEligibleSession()
111 launcher.getWorkspace().getFirstMatch(findPromiseApp) == null); in testPromiseIcon_notAddedFromIneligibleSession()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsQuickstep.java90 mLauncher.getWorkspace().switchToAllApps()); in testWorkspaceSwitchToAllApps()
153 mLauncher.getWorkspace().switchToOverview().dismissAllTasks(); in testOverview()
225 mLauncher.getWorkspace().switchToAllApps()); in testAllAppsFromHome()
235 assertNotNull("getHome returned null", mLauncher.getWorkspace()); in testAllAppsFromHome()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DItemLongClickListener.java79 launcher.getWorkspace().startDrag(longClickCellInfo, dragOptions); in beginDrag()
89 if (launcher.getWorkspace().isSwitchingState()) return false; in onAllAppsItemLongClick()
115 launcher.getWorkspace().beginDragShared(v, launcher.getAppsView(), options); in onAllAppsItemLongClick()
DItemClickHandler.java85 if (!launcher.getWorkspace().isFinishedSwitchingState()) return; in onClick()
170 (d, i) -> launcher.getWorkspace() in onClickPendingAppItem()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DWorkspaceRevealAnim.java62 Workspace workspace = launcher.getWorkspace(); in WorkspaceRevealAnim()
72 launcher.getWorkspace().getStateTransitionAnimation() in WorkspaceRevealAnim()
126 launcher.getWorkspace().getStateTransitionAnimation() in prepareToAnimate()
DStaggeredWorkspaceAnim.java95 Workspace workspace = launcher.getWorkspace(); in StaggeredWorkspaceAnim()
153 launcher.getWorkspace().getStateTransitionAnimation() in StaggeredWorkspaceAnim()
203 launcher.getWorkspace().getStateTransitionAnimation() in prepareToAnimate()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatEduController.java128 Workspace workspace = mLauncher.getWorkspace(); in placeFoldersInWorkspace()
173 Workspace workspace = mLauncher.getWorkspace(); in migrateHotseatWhole()
243 CellLayout cellLayout = mLauncher.getWorkspace().getScreenWithId(Workspace.FIRST_SCREEN_ID); in showEdu()
DHotseatPredictionController.java95 if (mLauncher.getWorkspace().isSwitchingState()) return false;
110 mLauncher.getWorkspace().beginDragShared(
252 mLauncher.getWorkspace().addInScreenFromBind(icon, item); in bindItems()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DAppEventProducer.java249 return getWorkspaceContainerString(ci.getWorkspace(), spanX, spanY); in getContainer()
276 return "folder/" + getWorkspaceContainerString(fc.getWorkspace(), 1, 1); in getContainer()
309 return ci.getWorkspace().getPageIndex() == 0; in isTrackedForHotseatPrediction()
/packages/apps/Launcher3/src/com/android/launcher3/
DDeleteDropTarget.java130 int itemPage = mLauncher.getWorkspace().getCurrentPage(); in completeDrop()
152 mLauncher.getWorkspace().stripEmptyScreens(); in onAccessibilityDrop()
DLauncherState.java273 return launcher.getWorkspace().getCurrentPageDescription(); in getDescription()
281 final int centerPage = launcher.getWorkspace().getNextPage(); in getWorkspacePageAlphaProvider()
DLauncher.java629 getWorkspace().runOnOverlayHidden(runnable); in runOnOverlayHidden()
655 View folderIcon = getWorkspace().getHomescreenIconByItemId(info.container); in invalidateParent()
1062 getWorkspace().setClipChildren(!state.hasFlag(FLAG_MULTI_PAGE)); in onStateSetEnd()
1088 .setPageIndex(getWorkspace().getCurrentPage())) in onStateSetEnd()
1454 public Workspace getWorkspace() { in getWorkspace() method in Launcher
1481 appWidgetId -> getWorkspace().removeWidget(appWidgetId)); in createAppWidgetHost()
1846 return getWorkspace().getPageAreaRelativeToDragLayer(); in getFolderBoundingBox()
1854 int distFromEdgeOfScreen = getWorkspace().getPaddingLeft(); in updateOpenFolderPosition()
2843 out.add(getWorkspace()); in collectStateHandlers()
DSecondaryDropTarget.java237 mLauncher.getWorkspace().getDragInfo() != null) { in getViewUnderDrag()
238 return mLauncher.getWorkspace().getDragInfo().cell; in getViewUnderDrag()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DLauncherDragController.java181 mActivity.getDragLayer().mapCoordInSelfToDescendant(mActivity.getWorkspace(), in getDefaultDropTarget()
183 return mActivity.getWorkspace(); in getDefaultDropTarget()
DSpringLoadedDragController.java58 Workspace w = mLauncher.getWorkspace(); in onAlarm()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DQuickstepAtomicAnimationFactory.java115 Workspace workspace = mActivity.getWorkspace(); in prepareForAtomicAnimation()
169 ValueAnimator va = getSpringScaleAnimator(mActivity, mActivity.getWorkspace(), in prepareForAtomicAnimation()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingItemDragHelper.java102 mEstimatedCellSize = launcher.getWorkspace().estimateItemSize(mAddInfo); in startDrag()
204 launcher.getWorkspace().prepareDragWithProvider(this); in startDrag()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/rule/
DLauncherActivityRule.java56 return launcher.getWorkspace().getFirstMatch(op) != null;
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DLauncherSwipeHandlerV2.java270 return mActivity.getWorkspace().getFirstMatchForAppClose(launchCookieItemId,
335 Workspace workspace = mActivity.getWorkspace();

12