Home
last modified time | relevance | path

Searched refs:cellY (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java590 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
697 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
702 result[1] = vStartPadding + cellY * mCellHeight; in cellToPoint()
713 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
714 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
725 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
729 result[1] = vStartPadding + cellY * mCellHeight + (spanY * mCellHeight) / 2; in regionToCenterPoint()
739 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
743 final int top = vStartPadding + cellY * mCellHeight; in regionToRect()
869 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument
[all …]
DItemInfo.java72 public int cellY = -1; field in ItemInfo
122 cellY = info.cellY; in copyFrom()
151 .put(LauncherSettings.Favorites.CELLY, cellY) in writeToValues()
162 cellY = values.getAsInteger(LauncherSettings.Favorites.CELLY); in readFromValues()
191 + " cell(" + cellX + "," + cellY + ")" in dumpProperties()
DWorkspaceLayoutManager.java41 int y = info.cellY; in addInScreenFromBind()
55 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen()
108 lp.cellY = y; in addInScreen()
126 … Log.e(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
DAppWidgetResizeFrame.java292 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; in resizeWidgetIfNeeded() local
305 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded()
308 cellY = mTempRange2.start; in resizeWidgetIfNeeded()
326 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
334 lp.tmpCellY = cellY; in resizeWidgetIfNeeded()
DWorkspace.java1618 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willCreateUserFolder()
1651 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willAddToExistingUserFolder()
1674 mDragInfo.cellY == targetCell[1]) && (cellParent == target); in createUserFolderIfNecessary()
1699 destInfo.cellY = -1; in createUserFolderIfNecessary()
1701 sourceInfo.cellY = -1; in createUserFolderIfNecessary()
1810 && item.cellX == mTargetCell[0] && item.cellY == mTargetCell[1]; in onDrop()
1862 lp.cellY = lp.tmpCellY = mTargetCell[1]; in onDrop()
1888 lp.cellX, lp.cellY, item.spanX, item.spanY); in onDrop()
1897 mTargetCell[1] = lp.cellY; in onDrop()
2345 final int cellY;
[all …]
DLauncher.java630 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd()
799 v = layout.getChildAt(pendingArgs.cellX, pendingArgs.cellY); in onRequestPermissionsResult()
1146 int cellY, PendingRequestArgs args) { in completeAddShortcut() argument
1182 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut()
1184 cellXY[1] = cellY; in completeAddShortcut()
1246 itemInfo.container, itemInfo.screenId, itemInfo.cellX, itemInfo.cellY); in completeAddAppWidget()
1592 info.cellY = cell[1]; in addPendingItem()
1663 int cellY) { in addFolder() argument
1668 getModelWriter().addItemToDatabase(folderInfo, container, screenId, cellX, cellY); in addFolder()
2054 if (cl != null && cl.isOccupied(item.cellX, item.cellY)) { in bindItems()
[all …]
DShortcutAndWidgetContainer.java70 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { in getChildAt()
DFocusHelper.java133 int row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in onKey()
380 int row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in handleIconKeyEvent()
420 row = ((CellLayout.LayoutParams) v.getLayoutParams()).cellY; in handleIconKeyEvent()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java84 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument
87 item.cellY = cellY; in updateItemInfoProps()
92 ? LauncherAppState.getIDP(mContext).numHotseatIcons - cellY - 1 : cellX; in updateItemInfoProps()
103 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
106 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
109 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
126 modelItem.cellY == item.cellY && in checkItemInfoLocked()
153 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument
154 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase()
159 .put(Favorites.CELLY, item.cellY) in moveItemInDatabase()
[all …]
DGridSizeMigrationTask.java173 entry.cellY = 0;
382 || (item.cellY <= row && (item.spanY + item.cellY) > row)) {
385 if (item.cellY >= row) item.cellY --;
388 if (item.cellY > row) item.cellY --;
465 int myY = me.cellY;
487 me.cellY = y;
534 me.cellY = myY;
553 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY
571 me.cellY = newY;
581 me.cellY = myY;
[all …]
DLoaderCursor.java375 info.cellY = getInt(cellYIndex); in applyCommonProperties()
411 + item.cellY + ") already occupied"); in checkItemPlacement()
431 item.cellX < 0 || item.cellY < 0 || in checkItemPlacement()
432 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
435 + item.cellX + "," + item.cellY in checkItemPlacement()
452 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement()
DBaseLoaderResults.java231 lhs.cellY * screenCols + lhs.cellX); in sortWorkspaceItemsSpatially()
233 rhs.cellY * screenCols + rhs.cellX); in sortWorkspaceItemsSpatially()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DCellAndSpan.java16 public int cellY = -1; field in CellAndSpan
33 cellY = copy.cellY; in copyFrom()
38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument
40 this.cellY = cellY; in CellAndSpan()
46 return "(" + cellX + ", " + cellY + ": " + spanX + ", " + spanY + ")"; in toString()
DGridOccupancy.java77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { in markCells() argument
78 if (cellX < 0 || cellY < 0) return; in markCells()
80 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { in markCells()
91 markCells(cell.cellX, cell.cellY, cell.spanX, cell.spanY, value); in markCells()
95 markCells(item.cellX, item.cellY, item.spanX, item.spanY, value); in markCells()
DFocusLogic.java179 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrix()
221 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithHotseat()
233 hotseatParent.getChildAt(i).getLayoutParams()).cellY; in createSparseMatrixWithHotseat()
268 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithPivotColumn()
538 final int newRow = ((CellLayout.LayoutParams) oldView.getLayoutParams()).cellY;
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java263 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions()
264 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions()
274 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions()
275 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions()
293 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction()
294 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction()
304 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
305 lp.cellY --; in performResizeAction()
306 info.cellY --; in performResizeAction()
DDragAndDropAccessibilityDelegate.java132 int cellY = id / mView.getCountX(); in getItemBounds() local
134 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java223 item.cellY = pagePos / mGridCountX; in addViewForRank()
227 lp.cellY = item.cellY; in addViewForRank()
242 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView()
343 if (info.cellX != newX || info.cellY != newY || info.rank != rank) { in arrangeChildren()
345 info.cellY = newY; in arrangeChildren()
349 mFolder.mInfo.id, 0, info.cellX, info.cellY); in arrangeChildren()
353 lp.cellY = info.cellY; in arrangeChildren()
DPreviewBackground.java318 private void delegateDrawing(CellLayout delegate, int cellX, int cellY) { in delegateDrawing() argument
325 delegateCellY = cellY; in delegateDrawing()
388 public void animateToAccept(CellLayout cl, int cellX, int cellY) { in animateToAccept() argument
390 () -> delegateDrawing(cl, cellX, cellY), null); in animateToAccept()
399 int cellY = delegateCellY; in animateToRest() local
400 animateScale(1f, 1f, () -> delegateDrawing(cl, cellX, cellY), this::clearDrawingDelegate); in animateToRest()
DFolder.java1059 mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem()
1173 si, mInfo.id, 0, si.cellX, si.cellY); in onDrop()
1240 item.cellY); in onAdd()
1344 target.gridY = info.cellY;
1405 } else if (lhs.cellY != rhs.cellY) {
1406 return lhs.cellY - rhs.cellY;
/packages/apps/Launcher3/
Dprint_db.py115 cellY = cell["cellY"]
264 cellY = row["cellY"]
267 for j in range(cellY, cellY+spanY):
270 screen[cellY][cellX] = row
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLossyScreenMigrationTask.java66 entry.cellY++; in loadWorkspaceEntries()
80 if (org.cellX != update.cellX || org.cellY != update.cellY in migrateScreen0()
DImportDataTask.java169 int cellY = c.getInt(cellYIndex); in importWorkspaceItems() local
187 cellY++; in importWorkspaceItems()
193 mMaxGridSizeY = Math.max(mMaxGridSizeY, cellY + spanY); in importWorkspaceItems()
260 values.put(Favorites.CELLY, cellY); in importWorkspaceItems()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DLoaderCursorTest.java200 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument
204 info.cellY = cellY; in newItemInfo()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DStaggeredWorkspaceAnim.java93 addStaggeredAnimationForView(child, lp.cellY + lp.cellVSpan, totalRows); in StaggeredWorkspaceAnim()
102 addStaggeredAnimationForView(child, lp.cellY + 1, totalRows); in StaggeredWorkspaceAnim()

12