/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 | 270 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 …]
|
D | Folder.java | 227 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 …]
|
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 | ItemInfo.java | 76 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()
|
D | Launcher.java | 337 int cellY; field in Launcher.PendingAddArguments 600 args.cellY); in completeAdd() 607 args.cellY); in completeAdd() 681 args.cellY = mPendingAddInfo.cellY; in onActivityResult() 956 mPendingAddInfo.cellY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_Y); in restoreState() 1072 void completeAddApplication(Intent data, long container, int screen, int cellX, int cellY) { in completeAddApplication() argument 1077 if (cellX >= 0 && cellY >= 0) { in completeAddApplication() 1079 cellXY[1] = cellY; in completeAddApplication() 1094 isWorkspaceLocked(), cellX, cellY); in completeAddApplication() 1107 int cellY) { in completeAddShortcut() argument [all …]
|
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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 609 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout() 730 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument 735 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap); in cellToPoint() 746 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument 747 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint() 758 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 763 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) + in regionToCenterPoint() 774 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 778 final int top = vStartPadding + cellY * (mCellHeight + mHeightGap); in regionToRect() 973 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | Folder.java | 255 mEmptyCell[1] = item.cellY; in onLongClick() 353 int lhIndex = lhs.cellY * mNumCols + lhs.cellX; in compare() 354 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare() 377 item.cellY = y; in placeInReadingOrder() 571 mEmptyCell[1] = item.cellY; in beginExternalDrag() 634 item.cellY = emptyCell[1]; in findAndSetEmptyCells() 652 if (mContent.getChildAt(item.cellX, item.cellY) != null || item.cellX < 0 || item.cellY < 0 in createAndAddShortcut() 653 || item.cellX >= mContent.getCountX() || item.cellY >= mContent.getCountY()) { in createAndAddShortcut() 662 new CellLayout.LayoutParams(item.cellX, item.cellY, item.spanX, item.spanY); in createAndAddShortcut() 923 info.cellX, info.cellY); in updateItemLocationsInDatabase() [all …]
|
D | LauncherModel.java | 295 int cellX, cellY, spanX, spanY; in findNextAvailableIconSpaceInScreen() local 301 cellY = item.cellY; in findNextAvailableIconSpaceInScreen() 305 for (int y = cellY; 0 <= y && y < cellY + spanY && y < yCount; y++) { in findNextAvailableIconSpaceInScreen() 564 long screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 567 addItemToDatabase(context, item, container, screenId, cellX, cellY, false); in addOrMoveItemInDatabase() 570 moveItemInDatabase(context, item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 589 modelShortcut.cellY == shortcut.cellY && in checkItemInfoLocked() 750 final long screenId, final int cellX, final int cellY) { in moveItemInDatabase() argument 753 item.cellY = cellY; in moveItemInDatabase() 759 item.screenId = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase() [all …]
|
D | PagedViewCellLayout.java | 102 lp.cellY >= 0 && (lp.cellY <= mCellCountY - 1)) { in addViewToCellLayout() 393 public int cellY; field in PagedViewCellLayout.LayoutParams 443 this.cellY = source.cellY; in LayoutParams() 448 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in LayoutParams() argument 451 this.cellY = cellY; in LayoutParams() 463 final int myCellY = cellY; in setup() 488 return "(" + this.cellX + ", " + this.cellY + ", " + in toString()
|
D | ItemInfo.java | 78 public int cellY = -1; field in ItemInfo 135 cellY = info.cellY; in copyFrom() 161 values.put(LauncherSettings.Favorites.CELLY, cellY); in onAddToDatabase() 173 void updateValuesWithCoordinates(ContentValues values, int cellX, int cellY) { in updateValuesWithCoordinates() argument 175 values.put(LauncherSettings.Favorites.CELLY, cellY); in updateValuesWithCoordinates() 213 + " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
D | AppWidgetResizeFrame.java | 256 int cellY = lp.useTmpCoords ? lp.tmpCellY : lp.cellY; in resizeWidgetIfNeeded() local 278 cellYInc = Math.max(-cellY, vSpanInc); in resizeWidgetIfNeeded() 281 vSpanInc = Math.min(cellY, vSpanInc); in resizeWidgetIfNeeded() 285 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded() 303 cellY += cellYInc; in resizeWidgetIfNeeded() 321 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 324 lp.tmpCellY = cellY; in resizeWidgetIfNeeded()
|
D | Launcher.java | 370 int cellY; field in Launcher.PendingAddArguments 724 args.cellY); in completeAdd() 893 args.cellY = info.cellY; in preparePendingAddArgs() 1316 mPendingAddInfo.cellY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_Y); in restoreState() 1505 int cellY) { in completeAddShortcut() argument 1519 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1521 cellXY[1] = cellY; in completeAddShortcut() 1608 if (mPendingAddInfo.cellX >= 0 && mPendingAddInfo.cellY >= 0) { in completeAddAppWidget() 1610 cellXY[1] = mPendingAddInfo.cellY; in completeAddAppWidget() 2033 outState.putInt(RUNTIME_STATE_PENDING_ADD_CELL_Y, mPendingAddInfo.cellY); in onSaveInstanceState() [all …]
|
D | FocusHelper.java | 336 int lvIndex = (llp.cellY * cellCountX) + llp.cellX; in getCellLayoutChildrenSortedSpatially() 337 int rvIndex = (rlp.cellY * cellCountX) + rlp.cellX; in getCellLayoutChildrenSortedSpatially() 383 final int row = lp.cellY; in getClosestIconOnLine() 393 boolean satisfiesRow = (lineDelta < 0) ? (tmpLp.cellY < row) : (tmpLp.cellY > row); in getClosestIconOnLine() 397 Math.pow(tmpLp.cellY - lp.cellY, 2)); in getClosestIconOnLine()
|
D | Hotseat.java | 105 Rect getCellCoordinates(int cellX, int cellY) { in getCellCoordinates() argument 107 mContent.cellToRect(cellX, cellY, 1, 1, coords); in getCellCoordinates() 192 fi.cellY = getCellYFromOrder(mAllAppsButtonRank); in addAllAppsFolder() 200 fi.cellY, false); in addAllAppsFolder() 203 workspace.addInScreen(folder, fi.container, fi.screenId, fi.cellX, fi.cellY, in addAllAppsFolder()
|
D | Workspace.java | 1043 lp.cellY = y; in addInScreen() 1061 …Launcher.addDumpLog(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayo… in addInScreen() 2832 int cellX, int cellY, boolean insertAtFirst, int intersectX, int intersectY) { in addApplicationShortcut() argument 2997 mDragInfo.cellY == targetCell[1]) && (cellParent == target); in createUserFolderIfNecessary() 3022 destInfo.cellY = -1; in createUserFolderIfNecessary() 3024 sourceInfo.cellY = -1; in createUserFolderIfNecessary() 3169 lp.cellY = lp.tmpCellY = mTargetCell[1]; in onDrop() 3203 lp.cellY, item.spanX, item.spanY); in onDrop() 3208 mTargetCell[1] = lp.cellY; in onDrop() 3779 int cellY; [all …]
|
D | LauncherBackupHelper.java | 748 favorite.cellY = c.getInt(CELLY_INDEX); in packFavorite() 803 values.put(Favorites.CELLY, favorite.cellY); in unpackFavorite() 843 || ((favorite.cellY + favorite.spanY) > currentProfile.desktopRows)) { in unpackFavorite() 860 || (favorite.cellY >= currentProfile.desktopRows)) { in unpackFavorite()
|
D | Stats.java | 124 .putExtra(EXTRA_CELLY, shortcut.cellY); in recordLaunch() 147 mLog.writeShort((short) shortcut.cellY); in recordLaunch()
|
/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
|
/packages/apps/Launcher3/ |
D | print_db.py | 113 cellY = cell["cellY"] 262 cellY = row["cellY"] 265 for j in range(cellY, cellY+spanY): 268 screen[cellY][cellX] = row
|