/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 648 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout() 755 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument 759 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint() 771 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument 772 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint() 783 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 786 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint() 799 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 802 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect() 974 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | ItemInfo.java | 70 public int cellX = -1; field in ItemInfo 136 cellX = info.cellX; in copyFrom() 163 values.put(LauncherSettings.Favorites.CELLX, cellX); in onAddToDatabase() 196 + " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
D | FolderPagedView.java | 199 item.cellX = pagePos % mGridCountX; in addViewForRank() 203 lp.cellX = item.cellX; in addViewForRank() 220 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView() 319 if (info.cellX != newX || info.cellY != newY || info.rank != rank) { in arrangeChildren() 320 info.cellX = newX; in arrangeChildren() 325 mFolder.mInfo.id, 0, info.cellX, info.cellY); in arrangeChildren() 328 lp.cellX = info.cellX; in arrangeChildren()
|
D | AppWidgetResizeFrame.java | 266 int cellX = lp.useTmpCoords ? lp.tmpCellX : lp.cellX; in resizeWidgetIfNeeded() local 275 cellXInc = Math.max(-cellX, hSpanInc); in resizeWidgetIfNeeded() 278 hSpanInc = Math.min(cellX, hSpanInc); in resizeWidgetIfNeeded() 283 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded() 306 cellX += cellXInc; in resizeWidgetIfNeeded() 332 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 339 lp.tmpCellX = cellX; in resizeWidgetIfNeeded()
|
D | LauncherModel.java | 412 int right = r.cellX + r.spanX; in findNextAvailableIconSpaceInScreen() 414 for (int x = r.cellX; 0 <= x && x < right && x < xCount; x++) { in findNextAvailableIconSpaceInScreen() 621 long screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 624 addItemToDatabase(context, item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 627 moveItemInDatabase(context, item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 645 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked() 778 final long screenId, final int cellX, final int cellY) { in moveItemInDatabase() argument 780 item.cellX = cellX; in moveItemInDatabase() 787 item.screenId = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase() 794 values.put(LauncherSettings.Favorites.CELLX, item.cellX); in moveItemInDatabase() [all …]
|
D | Launcher.java | 371 int cellX; field in Launcher.PendingAddArguments 674 completeAddShortcut(args.intent, args.container, screenId, args.cellX, in completeAdd() 852 v = layout.getChildAt(sPendingAddItem.cellX, sPendingAddItem.cellY); in onRequestPermissionsResult() 878 args.cellX = info.cellX; in preparePendingAddArgs() 1311 mPendingAddInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); in restoreState() 1495 private void completeAddShortcut(Intent data, long container, long screenId, int cellX, in completeAddShortcut() argument 1509 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1510 cellXY[0] = cellX; in completeAddShortcut() 1572 container, screenId, info.cellX, info.cellY); in completeAddAppWidget() 1598 item.cellX, item.cellY, item.spanX, item.spanY, insert); in addAppWidgetToWorkspace() [all …]
|
D | Folder.java | 974 info.cellX, info.cellY); in addItemLocationsInDatabase() 1140 mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem() 1154 mInfo.screenId, mInfo.cellX, mInfo.cellY, mInfo.spanX, mInfo.spanY); in replaceFolderWithFinalItem() 1246 mLauncher, si, mInfo.id, 0, si.cellX, si.cellY); in onDrop() 1310 mLauncher, item, mInfo.id, 0, item.cellX, item.cellY); in onAdd() 1455 return lhs.cellX - rhs.cellX;
|
D | Workspace.java | 1020 lp.cellX = x; in addInScreen() 1039 …Launcher.addDumpLog(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayo… in addInScreen() 2596 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willCreateUserFolder() 2628 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY)) { in willAddToExistingUserFolder() 2651 hasntMoved = (mDragInfo.cellX == targetCell[0] && in createUserFolderIfNecessary() 2676 destInfo.cellX = -1; in createUserFolderIfNecessary() 2678 sourceInfo.cellX = -1; in createUserFolderIfNecessary() 2824 lp.cellX = lp.tmpCellX = mTargetCell[0]; in onDrop() 2858 … LauncherModel.modifyItemInDatabase(mLauncher, info, container, screenId, lp.cellX, in onDrop() 2863 mTargetCell[0] = lp.cellX; in onDrop() [all …]
|
D | ShortcutAndWidgetContainer.java | 73 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
|
/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() 739 cellInfo.cellX = lp.cellX; in setTagToCellInfoForPoint() 756 cellInfo.cellX = cellXY[0]; in setTagToCellInfoForPoint() 789 cellInfo.cellX = -1; in clearTagCellInfo() 840 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument 844 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); 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 871 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint() [all …]
|
D | ItemInfo.java | 71 int cellX = -1; field in ItemInfo 126 cellX = info.cellX; in ItemInfo() 171 values.put(LauncherSettings.Favorites.CELLX, cellX); in onAddToDatabase() 180 void updateValuesWithCoordinates(ContentValues values, int cellX, int cellY) { in updateValuesWithCoordinates() argument 181 values.put(LauncherSettings.Favorites.CELLX, cellX); in updateValuesWithCoordinates() 220 + " screen=" + screen + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
D | Folder.java | 226 mEmptyCell[0] = item.cellX; in onLongClick() 325 int lhIndex = lhs.cellY * mNumCols + lhs.cellX; in compare() 326 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare() 336 if (item.cellX > maxX) { in placeInReadingOrder() 337 maxX = item.cellX; in placeInReadingOrder() 348 item.cellX = x; in placeInReadingOrder() 513 item.cellX = emptyCell[0]; 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() [all …]
|
D | PagedViewCellLayout.java | 107 if (lp.cellX >= 0 && lp.cellX <= (mCellCountX - 1) && in addViewToCellLayout() 393 public int cellX; field in PagedViewCellLayout.LayoutParams 448 this.cellX = source.cellX; in LayoutParams() 454 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in LayoutParams() argument 456 this.cellX = cellX; in LayoutParams() 467 final int myCellX = cellX; in setup() 493 return "(" + this.cellX + ", " + this.cellY + ", " + in toString()
|
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() 294 modelShortcut.cellX == shortcut.cellX && 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() 430 item.cellX = cellX; in moveItemInDatabase() 437 item.screen = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase() 444 values.put(LauncherSettings.Favorites.CELLX, item.cellX); in moveItemInDatabase() [all …]
|
D | AppWidgetResizeFrame.java | 258 int cellX = lp.useTmpCoords ? lp.tmpCellX : lp.cellX; in resizeWidgetIfNeeded() local 267 cellXInc = Math.max(-cellX, hSpanInc); in resizeWidgetIfNeeded() 270 hSpanInc = Math.min(cellX, hSpanInc); in resizeWidgetIfNeeded() 275 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded() 298 cellX += cellXInc; in resizeWidgetIfNeeded() 324 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 326 lp.tmpCellX = cellX; in resizeWidgetIfNeeded()
|
D | InstallShortcutReceiver.java | 343 int cellX, cellY, spanX, spanY; in findEmptyCell() local 348 cellX = item.cellX; in findEmptyCell() 352 for (int x = cellX; 0 <= x && x < cellX + spanX && x < xCount; x++) { in findEmptyCell()
|
D | Launcher.java | 341 int cellX; field in Launcher.PendingAddArguments 625 completeAddApplication(args.intent, args.container, args.screen, args.cellX, in completeAdd() 632 completeAddShortcut(args.intent, args.container, args.screen, args.cellX, in completeAdd() 706 args.cellX = mPendingAddInfo.cellX; in onActivityResult() 981 mPendingAddInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); 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() 1104 cellXY[0] = cellX; in completeAddApplication() 1120 isWorkspaceLocked(), cellX, cellY); in completeAddApplication() 1132 private void completeAddShortcut(Intent data, long container, int screen, int cellX, in completeAddShortcut() argument [all …]
|
D | ShortcutAndWidgetContainer.java | 66 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
|
D | Workspace.java | 553 lp.cellX = x; 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) { 2051 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.tmpCellY)) { 2080 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.tmpCellY)) { 2103 hasntMoved = (mDragInfo.cellX == targetCell[0] && 2128 destInfo.cellX = -1; 2130 sourceInfo.cellX = -1; 2270 lp.cellX = lp.tmpCellX = mTargetCell[0]; 2306 LauncherModel.moveItemInDatabase(mLauncher, info, container, screen, lp.cellX, [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridSizeMigrationTask.java | 179 entry.cellX = newScreenId; 384 if ((item.cellX <= col && (item.spanX + item.cellX) > col) 387 if (item.cellX >= col) item.cellX --; 390 if (item.cellX > col) item.cellX --; 406 for (int i = item.cellX; i < (item.cellX + item.spanX); i++) { 482 int myX = me.cellX; 501 me.cellX = x; 551 me.cellX = myX; 571 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY - y)); 584 me.cellX = newX; [all …]
|
/packages/apps/Launcher2/ |
D | print_db.py | 81 cellX = cell["cellX"] 200 cellX = row["cellX"] 205 for k in range(cellX, cellX+spanX): 207 screen[cellY][cellX] = row
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 232 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 233 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 243 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 244 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 262 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 263 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 264 lp.cellX --; in performResizeAction() 265 info.cellX --; in performResizeAction() 273 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
|
D | DragAndDropAccessibilityDelegate.java | 130 int cellX = id % mView.getCountX(); in getItemBounds() local 133 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
|
/packages/apps/Launcher3/ |
D | print_db.py | 114 cellX = cell["cellX"] 263 cellX = row["cellX"] 268 for k in range(cellX, cellX+spanX): 270 screen[cellY][cellX] = row
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FocusLogic.java | 177 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrix() 229 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithHotseat() 248 hotseatParent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrixWithHotseat() 286 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithPivotColumn()
|