Home
last modified time | relevance | path

Searched refs:workspace (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/workspace/
DTaplTwoPanelWorkspaceTest.java17 package com.android.launcher3.ui.workspace;
99 Workspace workspace = mLauncher.getWorkspace(); in testDragIconToRightPanel() local
101 workspace.dragIcon(workspace.getHotseatAppIcon(CHROME_APP_NAME), 1); in testDragIconToRightPanel()
113 Workspace workspace = mLauncher.getWorkspace(); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible() local
115 workspace.dragIcon(workspace.getHotseatAppIcon(CHROME_APP_NAME), 2); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
117 workspace.flingBackward(); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
119 workspace.dragIcon(workspace.getWorkspaceAppIcon(MAPS_APP_NAME), 3); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
129 workspace.dragIcon(workspace.getWorkspaceAppIcon(MAPS_APP_NAME), 3); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
141 workspace.dragIcon(workspace.getWorkspaceAppIcon(MAPS_APP_NAME), -1); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
151 workspace.dragIcon(workspace.getWorkspaceAppIcon(MAPS_APP_NAME), -1); in testSinglePageDragIconWhenMultiplePageScrollingIsPossible()
[all …]
DTaplWorkspaceTest.java16 package com.android.launcher3.ui.workspace;
73 final Workspace workspace = mLauncher.getWorkspace(); in testWorkspace() local
78 assertEquals("Initial workspace doesn't have the correct page", workspace.pagesPerScreen(), in testWorkspace()
79 workspace.getPageCount()); in testWorkspace()
80 workspace.verifyWorkspaceAppIconIsGone("Chrome app was found on empty workspace", in testWorkspace()
82 workspace.ensureWorkspaceIsScrollable(); in testWorkspace()
87 workspace.pagesPerScreen(), getCurrentWorkspacePage(launcher))); in testWorkspace()
92 workspace.getWorkspaceAppIcon(CHROME_APP_NAME)); in testWorkspace()
95 workspace.flingBackward(); in testWorkspace()
101 workspace.flingForward(); in testWorkspace()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DScalingWorkspaceRevealAnim.kt95 launcher.workspace.stateTransitionAnimation.setScrim(
101 val workspace = launcher.workspace constant
107 Animations.cancelOngoingAnimation(workspace)
110 if (workspace.scaleX != MAX_SIZE) {
111 workspace.scaleX
120 workspace.setPivotToScaleWithSelf(hotseat)
122 workspace,
140 workspace.alpha = MIN_ALPHA
142 workspace,
163 launcher.workspace.stateTransitionAnimation.setScrim(
[all …]
DUnfoldMoveFromCenterWorkspaceAnimator.java44 Workspace<?> workspace = mLauncher.getWorkspace(); in onPrepareViewsForAnimation() local
47 workspace in onPrepareViewsForAnimation()
61 setClipChildren(workspace, false); in onPrepareViewsForAnimation()
62 setClipToPadding(workspace, true); in onPrepareViewsForAnimation()
DStaggeredWorkspaceAnim.java102 Workspace<?> workspace = launcher.getWorkspace(); in StaggeredWorkspaceAnim() local
111 workspace.forEachVisiblePage( in StaggeredWorkspaceAnim()
114 boolean workspaceClipChildren = workspace.getClipChildren(); in StaggeredWorkspaceAnim()
115 boolean workspaceClipToPadding = workspace.getClipToPadding(); in StaggeredWorkspaceAnim()
119 workspace.setClipChildren(false); in StaggeredWorkspaceAnim()
120 workspace.setClipToPadding(false); in StaggeredWorkspaceAnim()
164 workspace.setClipChildren(workspaceClipChildren); in StaggeredWorkspaceAnim()
165 workspace.setClipToPadding(workspaceClipToPadding); in StaggeredWorkspaceAnim()
DWorkspaceRevealAnim.java74 Workspace<?> workspace = launcher.getWorkspace(); in WorkspaceRevealAnim() local
75 workspace.setPivotToScaleWithSelf(launcher.getHotseat()); in WorkspaceRevealAnim()
78 addRevealAnimatorsForView(workspace, WORKSPACE_SCALE_PROPERTY); in WorkspaceRevealAnim()
113 Log.d(TAG, "onAnimationEnd: workspace alpha = " + workspace.getAlpha()); in WorkspaceRevealAnim()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/util/
DViewOnDrawExecutorTest.kt43 @Mock private lateinit var workspace: Workspace<T> variable in com.android.launcher3.util.ViewOnDrawExecutorTest
57 `when`(launcher.workspace).thenReturn(workspace) in setup()
58 `when`(workspace.rootView).thenReturn(rootView) in setup()
59 `when`(workspace.viewTreeObserver).thenReturn(viewTreeObserver) in setup()
64 `when`(workspace.isAttachedToWindow).thenReturn(true) in attachToLauncher_alreadyAttachedToWindow()
68 verify(workspace).addOnAttachStateChangeListener(same(underTest)) in attachToLauncher_alreadyAttachedToWindow()
75 `when`(workspace.isAttachedToWindow).thenReturn(false) in attachToLauncher_notAttachedToWindow()
79 verify(workspace).addOnAttachStateChangeListener(same(underTest)) in attachToLauncher_notAttachedToWindow()
86 `when`(workspace.isAttachedToWindow).thenReturn(false) in onViewAttachedToWindow_registerObserver()
113 verify(workspace).post(same(underTest)) in onDraw_postRunnable()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DModelCallbacks.kt68 launcher.workspace.clearDropTargets() in <lambda>()
69 launcher.workspace.removeAllWorkspaceScreens() in <lambda>()
132 launcher.workspace.restoreInstanceStateForRemainingPages() in <lambda>()
137 launcher.workspace.getPageIndexForScreenId(pagesBoundFirst.array[0]) in <lambda>()
142 launcher.workspace.setCurrentPage(currentPage, currentPage /* overridePrevPage */) in <lambda>()
152 launcher.workspace.removeExtraEmptyScreen(/* stripEmptyScreens= */ true) in <lambda>()
153 launcher.workspace.pageIndicator.setPauseScroll( in <lambda>()
221 launcher.workspace.updateContainerItems(updates, launcher) in <lambda>()
232 launcher.workspace.removeItemsByMatcher(matcher) in <lambda>()
248 !workspaceLoading -> launcher.workspace.currentPageScreenIds in <lambda>()
[all …]
DDropTargetHandler.kt57 mLauncher.workspace.dragInfo != null in getViewUnderDrag()
59 mLauncher.workspace.dragInfo.cell in getViewUnderDrag()
76 mLauncher.workspace.getViewByItemId(item.container)?.let { in onDeleteComplete()
83 else mLauncher.workspace.currentPageScreenIds in onDeleteComplete()
117 mLauncher.workspace.stripEmptyScreens() in removeItemAndStripEmptyScreens()
DWorkspaceStateTransitionAnimation.java88 public WorkspaceStateTransitionAnimation(Launcher launcher, Workspace<?> workspace) { in WorkspaceStateTransitionAnimation() argument
90 mWorkspace = workspace; in WorkspaceStateTransitionAnimation()
248 Workspace<?> workspace, float scale) { in getWorkspaceSpringScaleAnimator() argument
249 return getSpringScaleAnimator(launcher, workspace, scale, WORKSPACE_SCALE_PROPERTY); in getWorkspaceSpringScaleAnimator()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplUninstallRemoveTest.java61 Workspace workspace = mLauncher.getWorkspace().deleteAppIcon(homeAppIcon); in testDeleteFromWorkspace() local
62 workspace.verifyWorkspaceAppIconIsGone( in testDeleteFromWorkspace()
68 private void verifyAppUninstalledFromAllApps(Workspace workspace, String appName) { in verifyAppUninstalledFromAllApps() argument
69 final HomeAllApps allApps = workspace.switchToAllApps(); in verifyAppUninstalledFromAllApps()
118 Workspace workspace = mLauncher.getWorkspace(); in testUninstallFromAllApps() local
119 final HomeAllApps allApps = workspace.switchToAllApps(); in testUninstallFromAllApps()
120 workspace = allApps.getAppIcon(DUMMY_APP_NAME).uninstall(); in testUninstallFromAllApps()
121 verifyAppUninstalledFromAllApps(workspace, DUMMY_APP_NAME); in testUninstallFromAllApps()
157 final Workspace workspace = mLauncher.getWorkspace().getWorkspaceAppIcon( in uninstallWorkspaceIcon() local
159 workspace.verifyWorkspaceAppIconIsGone( in uninstallWorkspaceIcon()
DTaplDragTest.java78 Workspace workspace = folder.close(); in testDragToFolder() local
80 workspace.verifyWorkspaceAppIconIsGone(STORE_APP_NAME + " should be moved to a folder.", in testDragToFolder()
82 workspace.verifyWorkspaceAppIconIsGone(PHOTOS_APP_NAME + " should be moved to a folder.", in testDragToFolder()
88 workspace = folder.close(); in testDragToFolder()
90 workspace.verifyWorkspaceAppIconIsGone(MAPS_APP_NAME + " should be moved to a folder.", in testDragToFolder()
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/integrationtest/
DTestUtils.kt47 workspace: Workspace<*>, in getWidgetAtCell()
52 (workspace.getPageAt(workspace.currentPage) as CellLayout).getChildAt(cellX, cellY) in getWidgetAtCell()
59 workspace: Workspace<*>, in getCellTopLeftRelativeToWorkspace()
63 val cellLayout = workspace.getPageAt(workspace.currentPage) as CellLayout in getCellTopLeftRelativeToWorkspace()
72 Utilities.getDescendantCoordRelativeToAncestor(cellLayout, workspace, point, false) in getCellTopLeftRelativeToWorkspace()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DWorkspace.java191 final UiObject2 workspace = verifyActiveContainer(); in tryGetWorkspaceAppIcon() local
192 final UiObject2 icon = workspace.findObject( in tryGetWorkspaceAppIcon()
205 final UiObject2 workspace = verifyActiveContainer(); in verifyWorkspaceAppIconIsGone() local
207 workspace.wait( in verifyWorkspaceAppIconIsGone()
244 final UiObject2 workspace = verifyActiveContainer(); in ensureWorkspaceIsScrollable() local
245 if (!isWorkspaceScrollable(workspace)) { in ensureWorkspaceIsScrollable()
248 dragIcon(workspace, getHotseatAppIcon(appName), pagesPerScreen()); in ensureWorkspaceIsScrollable()
253 isWorkspaceScrollable(workspace)); in ensureWorkspaceIsScrollable()
259 final UiObject2 workspace = verifyActiveContainer(); in getPageCount() local
260 return workspace.getChildCount(); in getPageCount()
[all …]
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/
DUnfoldAnimationBuilder.kt127 val workspace: Workspace<*> = launcher.workspace in <lambda>() constant
131 workspace.forEachVisiblePage { registerViews(it as CellLayout) } in <lambda>()
132 setClipChildren(workspace, false, restoreList) in <lambda>()
133 setClipToPadding(workspace, true, restoreList) in <lambda>()
136 launcher.workspace.setPivotToScaleWithSelf(launcher.hotseat) in <lambda>()
139 workspace, in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java381 Workspace<?> workspace = mContext.getWorkspace(); in findSpaceOnWorkspace() local
382 IntArray workspaceScreens = workspace.getScreenOrder(); in findSpaceOnWorkspace()
386 int screenIndex = workspace.getCurrentPage(); in findSpaceOnWorkspace()
388 CellLayout layout = (CellLayout) workspace.getPageAt(screenIndex); in findSpaceOnWorkspace()
394 layout = (CellLayout) workspace.getPageAt(screenIndex); in findSpaceOnWorkspace()
403 workspace.addExtraEmptyScreens(); in findSpaceOnWorkspace()
404 IntSet emptyScreenIds = workspace.commitExtraEmptyScreens(); in findSpaceOnWorkspace()
411 layout = workspace.getScreenWithId(screenId); in findSpaceOnWorkspace()
459 Workspace<?> workspace = mContext.getWorkspace(); in addToWorkspace()
460 workspace.post(() -> { in addToWorkspace()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DWallpaperOffsetInterpolator.java46 public WallpaperOffsetInterpolator(Workspace<?> workspace) { in WallpaperOffsetInterpolator() argument
47 mWorkspace = workspace; in WallpaperOffsetInterpolator()
49 workspace.getContext(), UI_HELPER_EXECUTOR, i -> onWallpaperChanged()); in WallpaperOffsetInterpolator()
50 mIsRtl = Utilities.isRtl(workspace.getResources()); in WallpaperOffsetInterpolator()
51 mHandler = new OffsetHandler(workspace.getContext()); in WallpaperOffsetInterpolator()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/states/
DQuickstepAtomicAnimationFactory.java158 Workspace<?> workspace = mContainer.getWorkspace(); in prepareForAtomicAnimation() local
160 boolean isWorkspaceVisible = workspace.getVisibility() == VISIBLE; in prepareForAtomicAnimation()
162 CellLayout currentChild = (CellLayout) workspace.getChildAt( in prepareForAtomicAnimation()
163 workspace.getCurrentPage()); in prepareForAtomicAnimation()
168 workspace.setScaleX(WORKSPACE_PREPARE_SCALE); in prepareForAtomicAnimation()
169 workspace.setScaleY(WORKSPACE_PREPARE_SCALE); in prepareForAtomicAnimation()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatEduController.java85 Workspace<?> workspace = mLauncher.getWorkspace(); in migrateHotseatWhole() local
89 for (int i = 0; i < workspace.getPageCount(); i++) { in migrateHotseatWhole()
90 CellLayout target = workspace.getScreenWithId(workspace.getScreenIdForPageIndex(i)); in migrateHotseatWhole()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java262 final Workspace<?> workspace = launcher.getWorkspace(); in call()
263 final int screenId = workspace.getScreenIdForPageIndex( in call()
264 workspace.getCurrentPage()); in call()
265 final CellLayout cellLayout = workspace.getScreenWithId(screenId); in call()
272 final Workspace<?> workspace = launcher.getWorkspace(); in call()
274 CellLayout cellLayout = (CellLayout) workspace.getPageAt( in call()
275 workspace.getCurrentPage()); in call()
/packages/apps/Launcher3/protos/
Dlauncher_atom.proto67 WorkspaceContainer workspace = 1; field
109 WorkspaceContainer workspace = 2; field
120 // Typically shown up as popup window by longpressing on empty space on workspace.
161 DEFAULT_LAYOUT = 1; // icon automatically placed in workspace, folder, hotseat
254 optional string package_name = 4; // only populated during snapshot if from workspace
255 optional string component_name = 5; // only populated during snapshot if from workspace
334 WorkspaceContainer workspace = 4; field
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DTaplTestsOverviewDesktop.kt51 mLauncher.workspace.switchToOverview() in <lambda>()
111 .that(mLauncher.workspace.switchToOverview().hasTasks()) in <lambda>()
149 .that(mLauncher.workspace.switchToOverview().hasTasks()) in <lambda>()
DTaplTestsTrackpad.java120 Workspace workspace = mLauncher.goHome(); in testQuickSwitchFromHome() local
122 workspace.quickSwitchToPreviousApp(); in testQuickSwitchFromHome()
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DWorkspaceTouchListener.java79 public WorkspaceTouchListener(Launcher launcher, Workspace<?> workspace) { in WorkspaceTouchListener() argument
81 mWorkspace = workspace; in WorkspaceTouchListener()
85 mGestureDetector = new GestureDetector(workspace.getContext(), this); in WorkspaceTouchListener()
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/model/
DShortcutsChangedTaskTest.kt108 fun `When installed pinned shortcut is found then keep in workspace`() { in <lambda>()
138 fun `When installed unpinned shortcut is found with Flag off then remove from workspace`() { in <lambda>()
171 fun `When installed unpinned shortcut is found with Flag on then keep in workspace`() { in <lambda>()
230 fun `When archived pinned shortcut is found with flag off then keep in workspace`() { in <lambda>()
260 fun `When archived unpinned shortcut is found with flag off then keep in workspace`() { in <lambda>()

123