/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 626 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 734 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); 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 761 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint() 774 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 777 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect() 937 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | LauncherModel.java | 415 int right = r.cellX + r.spanX; in findNextAvailableIconSpaceInScreen() 417 for (int x = r.cellX; 0 <= x && x < right && x < xCount; x++) { in findNextAvailableIconSpaceInScreen() 624 long screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument 627 addItemToDatabase(context, item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 630 moveItemInDatabase(context, item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase() 648 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked() 781 final long screenId, final int cellX, final int cellY) { in moveItemInDatabase() argument 783 item.cellX = cellX; in moveItemInDatabase() 790 item.screenId = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase() 797 values.put(LauncherSettings.Favorites.CELLX, item.cellX); in moveItemInDatabase() [all …]
|
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 | 255 int cellX = lp.useTmpCoords ? lp.tmpCellX : lp.cellX; in resizeWidgetIfNeeded() local 264 cellXInc = Math.max(-cellX, hSpanInc); in resizeWidgetIfNeeded() 267 hSpanInc = Math.min(cellX, hSpanInc); in resizeWidgetIfNeeded() 272 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded() 295 cellX += cellXInc; in resizeWidgetIfNeeded() 321 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 323 lp.tmpCellX = cellX; in resizeWidgetIfNeeded()
|
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 | Launcher.java | 378 int cellX; field in Launcher.PendingAddArguments 700 completeAddShortcut(args.intent, args.container, screenId, args.cellX, in completeAdd() 883 args.cellX = info.cellX; in preparePendingAddArgs() 1327 mPendingAddInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); in restoreState() 1503 private void completeAddShortcut(Intent data, long container, long screenId, int cellX, in completeAddShortcut() argument 1517 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1518 cellXY[0] = cellX; in completeAddShortcut() 1581 container, screenId, info.cellX, info.cellY); in completeAddAppWidget() 1596 mWorkspace.addInScreen(launcherInfo.hostView, container, screenId, info.cellX, in completeAddAppWidget() 1964 outState.putInt(RUNTIME_STATE_PENDING_ADD_CELL_X, mPendingAddInfo.cellX); in onSaveInstanceState() [all …]
|
D | Workspace.java | 1011 lp.cellX = x; in addInScreen() 1030 …Launcher.addDumpLog(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayo… in addInScreen() 2479 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.tmpCellY)) { in willCreateUserFolder() 2508 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.tmpCellY)) { in willAddToExistingUserFolder() 2531 hasntMoved = (mDragInfo.cellX == targetCell[0] && in createUserFolderIfNecessary() 2556 destInfo.cellX = -1; in createUserFolderIfNecessary() 2558 sourceInfo.cellX = -1; in createUserFolderIfNecessary() 2704 lp.cellX = lp.tmpCellX = mTargetCell[0]; in onDrop() 2738 … LauncherModel.modifyItemInDatabase(mLauncher, info, container, screenId, lp.cellX, in onDrop() 2743 mTargetCell[0] = lp.cellX; in onDrop() [all …]
|
D | Folder.java | 936 info.cellX, info.cellY); in addItemLocationsInDatabase() 1122 mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem() 1141 mInfo.cellX, mInfo.cellY, mInfo.spanX, mInfo.spanY); in replaceFolderWithFinalItem() 1207 mLauncher, si, mInfo.id, 0, si.cellX, si.cellY); in onDrop() 1271 mLauncher, item, mInfo.id, 0, item.cellX, item.cellY); in onAdd() 1408 return lhs.cellX - rhs.cellX;
|
/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 | 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 | 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 | 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 | 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 | 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 | 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 …]
|
D | FocusHelper.java | 581 int lvIndex = (llp.cellY * cellCountX) + llp.cellX; in getCellLayoutChildrenSortedSpatially() 582 int rvIndex = (rlp.cellY * cellCountX) + rlp.cellX; in getCellLayoutChildrenSortedSpatially() 641 float tmpDistance = (float) Math.sqrt(Math.pow(tmpLp.cellX - lp.cellX, 2) + in getClosestIconOnLine()
|
D | ShortcutAndWidgetContainer.java | 66 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | MigrateFromRestoreTask.java | 308 if ((item.cellX <= col && (item.spanX + item.cellX) > col) 311 if (item.cellX >= col) item.cellX --; 314 if (item.cellX > col) item.cellX --; 330 for (int i = item.cellX; i < (item.cellX + item.spanX); i++) { 406 int myX = me.cellX; 425 me.cellX = x; 475 me.cellX = myX; 495 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY - y)); 508 me.cellX = newX; 521 me.cellX = myX; [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 233 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 234 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 244 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 245 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 263 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 264 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 265 lp.cellX --; in performResizeAction() 266 info.cellX --; in performResizeAction() 274 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/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/ |
D | print_db.py | 112 cellX = cell["cellX"] 261 cellX = row["cellX"] 266 for k in range(cellX, cellX+spanX): 268 screen[cellY][cellX] = row
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | FocusLogic.java | 171 int cx = ((CellLayout.LayoutParams) parent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrix() 205 int cx = ((CellLayout.LayoutParams) iconParent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrix() 218 hotseatParent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrix() 259 int cx = ((CellLayout.LayoutParams) iconParent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrix()
|