Home
last modified time | relevance | path

Searched refs:cellLayout (Results 1 – 18 of 18) sorted by relevance

/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/celllayout/
DHotseatReorderUnitTest.kt83 cellLayout: CellLayout, in addViewInCellLayout()
94 cellLayout.addViewToCellLayout( in addViewInCellLayout()
114 cellLayout = cl, in solve()
142 private fun commitTempPosition(cellLayout: CellLayout) { in commitTempPosition()
143 val count = cellLayout.shortcutsAndWidgets.childCount in commitTempPosition()
145 val params = cellLayout.shortcutsAndWidgets[i].layoutParams as CellLayoutLayoutParams in commitTempPosition()
151 private fun boardFromCellLayout(cellLayout: CellLayout): CellLayoutBoard { in boardFromCellLayout()
153 for (i in 0 until cellLayout.shortcutsAndWidgets.childCount) { in boardFromCellLayout()
154 views.add(cellLayout.shortcutsAndWidgets.getChildAt(i)) in boardFromCellLayout()
156 return CellLayoutTestUtils.viewsToBoard(views, cellLayout.countX, cellLayout.countY) in boardFromCellLayout()
DCellLayoutTestUtils.java34 for (CellLayout cellLayout : launcher.getWorkspace().mWorkspaceScreens) { in workspaceToBoards()
36 int count = cellLayout.getShortcutsAndWidgets().getChildCount(); in workspaceToBoards()
38 View callView = cellLayout.getShortcutsAndWidgets().getChildAt(i); in workspaceToBoards()
44 launcher.getWorkspace().getCellLayoutId(cellLayout), CONTAINER_DESKTOP); in workspaceToBoards()
47 boards.add(new CellLayoutBoard(cellLayout.getCountX(), cellLayout.getCountY())); in workspaceToBoards()
DUnitTestCellLayoutBuilderRule.kt46 override fun getCellLayoutId(cellLayout: CellLayout): Int = 0 in getCellLayoutId()
48 override fun getCellLayoutIndex(cellLayout: CellLayout): Int = 0 in getCellLayoutId()
DReorderPreviewAnimationTest.kt90 val cellLayout = cellLayoutBuilder.createCellLayout(100, 100, false) in testAnimationAtGivenProgress() constant
103 cellLayout, in testAnimationAtGivenProgress()
DReorderAlgorithmUnitTest.java136 private void addViewInCellLayout(CellLayout cellLayout, int cellX, int cellY, int spanX, in addViewInCellLayout() argument
141 cellLayout.addViewToCellLayout(cell, -1, cell.getId(), in addViewInCellLayout()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DUnfoldMoveFromCenterWorkspaceAnimator.java49 final CellLayout cellLayout = (CellLayout) page; in onPrepareViewsForAnimation()
50 ShortcutAndWidgetContainer itemsContainer = cellLayout in onPrepareViewsForAnimation()
52 setClipChildren(cellLayout, false); in onPrepareViewsForAnimation()
53 setClipToPadding(cellLayout, false); in onPrepareViewsForAnimation()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/
DUnfoldAnimationBuilder.kt121 val registerViews: (CellLayout) -> Unit = { cellLayout -> in <lambda>() method
122 setClipChildren(cellLayout, false, restoreList) in <lambda>()
123 setClipToPadding(cellLayout, false, restoreList) in <lambda>()
124 addChildrenAnimation(cellLayout.shortcutsAndWidgets, isVerticalFold, screenSize, anim) in <lambda>()
/packages/apps/Launcher3/src/com/android/launcher3/testing/
DTestInformationHandler.java270 final CellLayout cellLayout = workspace.getScreenWithId(screenId); in call()
271 return new int[]{cellLayout.getCountX(), cellLayout.getCountY()}; in call()
280 CellLayout cellLayout = (CellLayout) workspace.getPageAt( in call()
283 cellLayout, request.cellX, request.cellY, request.spanX, request.spanY); in call()
470 CellLayout cellLayout, int cellX, int cellY, int spanX, int spanY) {
474 cellLayout.cellToRect(cellX, cellY, spanX, spanY, target);
477 dragLayer.getDescendantCoordRelativeToSelf(cellLayout, leftTop);
478 dragLayer.getDescendantCoordRelativeToSelf(cellLayout, rightBottom);
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java207 public static void showForWidget(LauncherAppWidgetHostView widget, CellLayout cellLayout) { in showForWidget() argument
212 Launcher launcher = Launcher.getLauncher(cellLayout.getContext()); in showForWidget()
218 frame.setupForWidget(widget, cellLayout, dl); in showForWidget()
238 private void setupForWidget(LauncherAppWidgetHostView widgetView, CellLayout cellLayout, in setupForWidget() argument
240 mCellLayout = cellLayout; in setupForWidget()
252 InvariantDeviceProfile idp = LauncherAppState.getIDP(cellLayout.getContext()); in setupForWidget()
745 private void updateInvalidResizeEffect(CellLayout cellLayout, CellLayout pairedCellLayout,
747 updateInvalidResizeEffect(cellLayout, pairedCellLayout, alpha,
751 private void updateInvalidResizeEffect(CellLayout cellLayout, CellLayout pairedCellLayout,
766 ObjectAnimator.ofFloat(cellLayout, SPRING_LOADED_PROGRESS,
[all …]
DCellLayoutContainer.java27 int getCellLayoutId(CellLayout cellLayout); in getCellLayoutId() argument
32 int getCellLayoutIndex(CellLayout cellLayout); in getCellLayoutIndex() argument
DWorkspace.java381 mWorkspaceScreens.forEach(cellLayout -> { in updateCellLayoutMeasures()
382 cellLayout.setPadding(padding.left, padding.top, padding.right, padding.bottom); in updateCellLayoutMeasures()
383 cellLayout.setSpaceBetweenCellLayoutsPx(getPageSpacing() / 4); in updateCellLayoutMeasures()
966 public int getCellLayoutIndex(CellLayout cellLayout) { in getCellLayoutIndex() argument
967 return indexOfChild(mWorkspaceScreens.get(getCellLayoutId(cellLayout))); in getCellLayoutIndex()
1011 public CellLayout getScreenPair(CellLayout cellLayout) { in getScreenPair() argument
1015 int screenId = getCellLayoutId(cellLayout); in getScreenPair()
2155 final CellLayout cellLayout = getParentCellLayoutForView(cell); in onDrop() local
2156 boolean pageIsVisible = isVisible(cellLayout); in onDrop()
2160 (LauncherAppWidgetHostView) cell, cellLayout); in onDrop()
[all …]
DWorkspaceStateTransitionAnimation.java234 private void applyPageTranslation(CellLayout cellLayout, int childIndex, in applyPageTranslation() argument
240 propertySetter.setFloat(cellLayout, VIEW_TRANSLATE_X, pageTranslation, in applyPageTranslation()
DLauncher.java1041 CellLayout cellLayout = mWorkspace.getScreenWithId(
1070 mWorkspace.animateWidgetDrop(requestArgs, cellLayout,
1572 CellLayout cellLayout = getCellLayout(launcherInfo.container, presenterPos.screenId);
1580 AppWidgetResizeFrame.showForWidget(launcherHostView, cellLayout);
1587 AppWidgetResizeFrame.showForWidget(launcherHostView, cellLayout);
/packages/apps/Launcher3/src/com/android/launcher3/celllayout/
DMulticellReorderAlgorithm.java36 public MulticellReorderAlgorithm(CellLayout cellLayout) { in MulticellReorderAlgorithm() argument
37 super(cellLayout); in MulticellReorderAlgorithm()
38 mSeam = new View(cellLayout.getContext()); in MulticellReorderAlgorithm()
DReorderPreviewAnimation.kt53 cellLayout: CellLayout,
83 cellLayout.regionToCenterPoint(cellX0, cellY0, spanX, spanY, tmpRes)
85 cellLayout.regionToCenterPoint(cellX1, cellY1, spanX, spanY, tmpRes)
DReorderAlgorithm.java40 public ReorderAlgorithm(CellLayout cellLayout) { in ReorderAlgorithm() argument
41 mCellLayout = cellLayout; in ReorderAlgorithm()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DLauncherDelegate.java94 CellLayout cellLayout = mLauncher.getCellLayout(info.container, in replaceFolderWithFinalItem()
98 finalItem, mLauncher.getModelWriter(), cellLayout); in replaceFolderWithFinalItem()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/hybridhotseat/
DHotseatEduController.java156 CellLayout cellLayout = mLauncher.getWorkspace().getScreenWithId(Workspace.FIRST_SCREEN_ID); in showEdu() local
163 boolean canMigrateToFirstPage = cellLayout.makeSpaceForHotseatMigration(false); in showEdu()