/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 636 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 …]
|
D | LauncherModel.java | 259 int screen, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 262 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase() 265 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase() 284 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked() 412 final int screen, final int cellX, final int cellY) { in moveItemInDatabase() argument 414 " (" + item.container + ", " + item.screen + ", " + item.cellX + ", " + item.cellY + in moveItemInDatabase() 415 ") --> " + "(" + container + ", " + screen + ", " + cellX + ", " + cellY + ")"; in moveItemInDatabase() 420 item.cellY = cellY; in moveItemInDatabase() 426 item.screen = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase() 434 values.put(LauncherSettings.Favorites.CELLY, item.cellY); in moveItemInDatabase() [all …]
|
D | Folder.java | 228 mEmptyCell[1] = item.cellY; in onLongClick() 326 int lhIndex = lhs.cellY * mNumCols + lhs.cellX; in compare() 327 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare() 350 item.cellY = y; in placeInReadingOrder() 518 item.cellY = emptyCell[1]; in findAndSetEmptyCells() 538 if (mContent.getChildAt(item.cellX, item.cellY) != null || item.cellX < 0 || item.cellY < 0 in createAndAddShortcut() 539 || item.cellX >= mContent.getCountX() || item.cellY >= mContent.getCountY()) { in createAndAddShortcut() 548 new CellLayout.LayoutParams(item.cellX, item.cellY, item.spanX, item.spanY); in createAndAddShortcut() 745 info.cellX, info.cellY); in updateItemLocationsInDatabase() 898 lp.cellY = vacant[1]; in arrangeChildren() [all …]
|
D | PagedViewCellLayout.java | 108 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()
|
D | Launcher.java | 334 int cellY; field in Launcher.PendingAddArguments 597 args.cellY); in completeAdd() 604 args.cellY); in completeAdd() 667 args.cellY = mPendingAddInfo.cellY; in onActivityResult() 941 mPendingAddInfo.cellY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_Y); in restoreState() 1056 void completeAddApplication(Intent data, long container, int screen, int cellX, int cellY) { in completeAddApplication() argument 1061 if (cellX >= 0 && cellY >= 0) { in completeAddApplication() 1063 cellXY[1] = cellY; in completeAddApplication() 1076 isWorkspaceLocked(), cellX, cellY); in completeAddApplication() 1089 int cellY) { in completeAddShortcut() argument [all …]
|
D | ItemInfo.java | 68 int cellY = -1; field in ItemInfo 111 cellY = info.cellY; in ItemInfo() 146 values.put(LauncherSettings.Favorites.CELLY, cellY); in onAddToDatabase() 151 void updateValuesWithCoordinates(ContentValues values, int cellX, int cellY) { in updateValuesWithCoordinates() argument 153 values.put(LauncherSettings.Favorites.CELLY, cellY); in updateValuesWithCoordinates() 191 + " screen=" + screen + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
D | AppWidgetResizeFrame.java | 259 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()
|
D | FocusHelper.java | 581 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()
|
D | InstallShortcutReceiver.java | 343 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()
|
D | Workspace.java | 554 lp.cellY = y; in addInScreen() 570 … Log.w(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen() 1948 int cellX, int cellY, boolean insertAtFirst, int intersectX, int intersectY) { 2104 mDragInfo.cellY == targetCell[1]) && (cellParent == target); 2129 destInfo.cellY = -1; 2131 sourceInfo.cellY = -1; 2271 lp.cellY = lp.tmpCellY = mTargetCell[1]; 2307 lp.cellY); 2312 mTargetCell[1] = lp.cellY; 2915 int cellY; [all …]
|
D | ShortcutAndWidgetContainer.java | 67 (lp.cellY <= y) && (y < lp.cellY + lp.cellVSpan)) { in getChildAt()
|
D | FolderIcon.java | 312 mFolderRingAnimator.setCell(lp.cellX, lp.cellY); in onDragEnter() 362 item.cellY = -1; in onDrop()
|
D | ShortcutInfo.java | 149 + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX + " spanY=" + spanY in toString()
|
/packages/apps/Launcher2/ |
D | print_db.py | 82 cellY = cell["cellY"] 201 cellY = row["cellY"] 204 for j in range(cellY, cellY+spanY): 207 screen[cellY][cellX] = row
|