Home
last modified time | relevance | path

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

12

/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java622 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
729 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
734 result[1] = vStartPadding + cellY * mCellHeight; in cellToPoint()
745 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
746 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
757 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
761 result[1] = vStartPadding + cellY * mCellHeight + (spanY * mCellHeight) / 2; in regionToCenterPoint()
771 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
775 final int top = vStartPadding + cellY * mCellHeight; in regionToRect()
911 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument
[all …]
DItemInfo.java68 public int cellY = -1; field in ItemInfo
120 cellY = info.cellY; in copyFrom()
144 .put(LauncherSettings.Favorites.CELLY, cellY) in writeToValues()
155 cellY = values.getAsInteger(LauncherSettings.Favorites.CELLY); in readFromValues()
185 + " cellY=" + cellY in dumpProperties()
DAppWidgetResizeFrame.java259 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; in resizeWidgetIfNeeded() local
272 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded()
275 cellY = mTempRange2.start; in resizeWidgetIfNeeded()
293 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
301 lp.tmpCellY = cellY; in resizeWidgetIfNeeded()
DWorkspace.java1074 int y = info.cellY; in addInScreenFromBind()
1088 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen()
1143 lp.cellY = y; in addInScreen()
1161 … Log.e(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
2383 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willCreateUserFolder()
2416 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willAddToExistingUserFolder()
2440 mDragInfo.cellY == targetCell[1]) && (cellParent == target); in createUserFolderIfNecessary()
2465 destInfo.cellY = -1; in createUserFolderIfNecessary()
2467 sourceInfo.cellY = -1; in createUserFolderIfNecessary()
2581 && item.cellX == mTargetCell[0] && item.cellY == mTargetCell[1]; in onDrop()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java63 ItemInfo item, long container, long screenId, int cellX, int cellY) { in updateItemInfoProps() argument
66 item.cellY = cellY; in updateItemInfoProps()
71 ? LauncherAppState.getIDP(mContext).numHotseatIcons - cellY - 1 : cellX; in updateItemInfoProps()
82 long container, long screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
85 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
88 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
106 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked()
133 long container, long screenId, int cellX, int cellY) { in moveItemInDatabase() argument
134 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase()
139 .put(Favorites.CELLY, item.cellY) in moveItemInDatabase()
[all …]
DGridSizeMigrationTask.java172 entry.cellY = 0;
389 || (item.cellY <= row && (item.spanY + item.cellY) > row)) {
392 if (item.cellY >= row) item.cellY --;
395 if (item.cellY > row) item.cellY --;
471 int myY = me.cellY;
493 me.cellY = y;
540 me.cellY = myY;
559 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY - y));
576 me.cellY = newY;
586 me.cellY = myY;
[all …]
DLoaderCursor.java368 info.cellY = getInt(cellYIndex); in applyCommonProperties()
394 + item.cellY + ") occupied by all apps"); in checkItemPlacement()
413 + item.cellY + ") already occupied"); in checkItemPlacement()
438 item.cellX < 0 || item.cellY < 0 || in checkItemPlacement()
439 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
442 + item.cellX + "," + item.cellY in checkItemPlacement()
459 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement()
/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java636 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
740 cellInfo.cellY = lp.cellY; in setTagToCellInfoForPoint()
757 cellInfo.cellY = cellXY[1]; in setTagToCellInfoForPoint()
790 cellInfo.cellY = -1; in clearTagCellInfo()
840 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
845 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint()
856 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
857 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
873 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) + in regionToCenterPoint()
[all …]
DLauncherModel.java270 int screen, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
273 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase()
276 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase()
295 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked()
423 final int screen, final int cellX, final int cellY) { in moveItemInDatabase() argument
425 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY + in moveItemInDatabase()
426 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")"; in moveItemInDatabase()
431 item.cellY = cellY; in moveItemInDatabase()
437 item.screen = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase()
445 values.put(LauncherSettings.Favorites.CELLY, item.cellY); in moveItemInDatabase()
[all …]
DFolder.java227 mEmptyCell[1] = item.cellY; in onLongClick()
325 int lhIndex = lhs.cellY * mNumCols + lhs.cellX; in compare()
326 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare()
349 item.cellY = y; in placeInReadingOrder()
514 item.cellY = emptyCell[1]; in findAndSetEmptyCells()
537 if (mContent.getChildAt(item.cellX, item.cellY) != null || item.cellX < 0 || item.cellY < 0 in createAndAddShortcut()
538 || item.cellX >= mContent.getCountX() || item.cellY >= mContent.getCountY()) { in createAndAddShortcut()
547 new CellLayout.LayoutParams(item.cellX, item.cellY, item.spanX, item.spanY); in createAndAddShortcut()
743 info.cellX, info.cellY); in updateItemLocationsInDatabase()
896 lp.cellY = vacant[1]; in arrangeChildren()
[all …]
DPagedViewCellLayout.java108 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) { in addViewToCellLayout()
399 public int cellY; field in PagedViewCellLayout.LayoutParams
449 this.cellY = source.cellY; in LayoutParams()
454 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in LayoutParams() argument
457 this.cellY = cellY; in LayoutParams()
468 final int myCellY = cellY; in setup()
493 return "(" + this.cellX + ", " + this.cellY + ", " + in toString()
DItemInfo.java76 int cellY = -1; field in ItemInfo
127 cellY = info.cellY; in ItemInfo()
172 values.put(LauncherSettings.Favorites.CELLY, cellY); in onAddToDatabase()
180 void updateValuesWithCoordinates(ContentValues values, int cellX, int cellY) { in updateValuesWithCoordinates() argument
182 values.put(LauncherSettings.Favorites.CELLY, cellY); in updateValuesWithCoordinates()
220 + " screen=" + screen + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
DAppWidgetResizeFrame.java259 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; in resizeWidgetIfNeeded() local
281 cellYInc = Math.max(-cellY, vSpanInc); in resizeWidgetIfNeeded()
284 vSpanInc = Math.min(cellY, vSpanInc); in resizeWidgetIfNeeded()
288 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
306 cellY += cellYInc; in resizeWidgetIfNeeded()
324 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
327 lp.tmpCellY = cellY; in resizeWidgetIfNeeded()
DLauncher.java342 int cellY; field in Launcher.PendingAddArguments
626 args.cellY); in completeAdd()
633 args.cellY); in completeAdd()
707 args.cellY = mPendingAddInfo.cellY; in onActivityResult()
982 mPendingAddInfo.cellY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_Y); in restoreState()
1098 void completeAddApplication(Intent data, long container, int screen, int cellX, int cellY) { in completeAddApplication() argument
1103 if (cellX >= 0 && cellY >= 0) { in completeAddApplication()
1105 cellXY[1] = cellY; in completeAddApplication()
1120 isWorkspaceLocked(), cellX, cellY); in completeAddApplication()
1133 int cellY) { in completeAddShortcut() argument
[all …]
DFocusHelper.java581 int lvIndex = (llp.cellY * cellCountX) + llp.cellX; in getCellLayoutChildrenSortedSpatially()
582 int rvIndex = (rlp.cellY * cellCountX) + rlp.cellX; in getCellLayoutChildrenSortedSpatially()
628 final int row = lp.cellY; in getClosestIconOnLine()
638 boolean satisfiesRow = (lineDelta < 0) ? (tmpLp.cellY < row) : (tmpLp.cellY > row); in getClosestIconOnLine()
642 Math.pow(tmpLp.cellY - lp.cellY, 2)); in getClosestIconOnLine()
DInstallShortcutReceiver.java343 int cellX, cellY, spanX, spanY; in findEmptyCell() local
349 cellY = item.cellY; in findEmptyCell()
353 for (int y = cellY; 0 <= y && y < cellY + spanY && y < yCount; y++) { in findEmptyCell()
/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.java180 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrix()
235 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithHotseat()
258 hotseatParent.getChildAt(i).getLayoutParams()).cellY; in createSparseMatrixWithHotseat()
293 int cy = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellY; in createSparseMatrixWithPivotColumn()
563 final int newRow = ((CellLayout.LayoutParams) oldView.getLayoutParams()).cellY;
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java249 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions()
250 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions()
260 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions()
261 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions()
279 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction()
280 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction()
290 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
291 lp.cellY --; in performResizeAction()
292 info.cellY --; in performResizeAction()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderPagedView.java217 item.cellY = pagePos / mGridCountX; in addViewForRank()
221 lp.cellY = item.cellY; in addViewForRank()
237 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView()
335 if (info.cellX != newX || info.cellY != newY || info.rank != rank) { in arrangeChildren()
337 info.cellY = newY; in arrangeChildren()
341 mFolder.mInfo.id, 0, info.cellX, info.cellY); in arrangeChildren()
345 lp.cellY = info.cellY; in arrangeChildren()
DFolderIcon.java249 mBackground.animateToAccept(cl, lp.cellX, lp.cellY); in onDragEnter()
312 item.cellY = -1; in onDrop()
724 private void delegateDrawing(CellLayout delegate, int cellX, int cellY) {
731 delegateCellY = cellY;
793 public void animateToAccept(final CellLayout cl, final int cellX, final int cellY) {
797 delegateDrawing(cl, cellX, cellY);
809 final int cellY = delegateCellY;
814 delegateDrawing(cl, cellX, cellY);
1149 cl.setFolderLeaveBehindCell(lp.cellX, lp.cellY);
/packages/apps/Launcher2/
Dprint_db.py82 cellY = cell["cellY"]
201 cellY = row["cellY"]
204 for j in range(cellY, cellY+spanY):
207 screen[cellY][cellX] = row
/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.java76 entry.cellY++; in loadWorkspaceEntries()
90 if (org.cellX != update.cellX || org.cellY != update.cellY in migrateScreen0()

12