/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 | 336 int cellX; field in Launcher.PendingAddArguments 599 completeAddApplication(args.intent, args.container, args.screen, args.cellX, in completeAdd() 606 completeAddShortcut(args.intent, args.container, args.screen, args.cellX, in completeAdd() 680 args.cellX = mPendingAddInfo.cellX; in onActivityResult() 955 mPendingAddInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); 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() 1078 cellXY[0] = cellX; in completeAddApplication() 1094 isWorkspaceLocked(), cellX, cellY); in completeAddApplication() 1106 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 | 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 | 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 | 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/ |
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 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() 973 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument [all …]
|
D | Folder.java | 254 mEmptyCell[0] = item.cellX; in onLongClick() 353 int lhIndex = lhs.cellY * mNumCols + lhs.cellX; in compare() 354 int rhIndex = rhs.cellY * mNumCols + rhs.cellX; in compare() 364 if (item.cellX > maxX) { in placeInReadingOrder() 365 maxX = item.cellX; in placeInReadingOrder() 376 item.cellX = x; in placeInReadingOrder() 570 mEmptyCell[0] = item.cellX; in beginExternalDrag() 633 item.cellX = emptyCell[0]; 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() [all …]
|
D | LauncherModel.java | 295 int cellX, cellY, spanX, spanY; in findNextAvailableIconSpaceInScreen() local 300 cellX = item.cellX; in findNextAvailableIconSpaceInScreen() 304 for (int x = cellX; 0 <= x && x < cellX + spanX && x < xCount; x++) { 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() 588 modelShortcut.cellX == shortcut.cellX && in checkItemInfoLocked() 750 final long screenId, final int cellX, final int cellY) { in moveItemInDatabase() argument 752 item.cellX = cellX; in moveItemInDatabase() 759 item.screenId = ((Launcher) context).getHotseat().getOrderInHotseat(cellX, cellY); in moveItemInDatabase() [all …]
|
D | PagedViewCellLayout.java | 101 if (lp.cellX >= 0 && lp.cellX <= (mCellCountX - 1) && in addViewToCellLayout() 387 public int cellX; field in PagedViewCellLayout.LayoutParams 442 this.cellX = source.cellX; in LayoutParams() 448 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in LayoutParams() argument 450 this.cellX = cellX; in LayoutParams() 462 final int myCellX = cellX; in setup() 488 return "(" + this.cellX + ", " + this.cellY + ", " + in toString()
|
D | ItemInfo.java | 73 public int cellX = -1; field in ItemInfo 134 cellX = info.cellX; in copyFrom() 160 values.put(LauncherSettings.Favorites.CELLX, cellX); in onAddToDatabase() 173 void updateValuesWithCoordinates(ContentValues values, int cellX, int cellY) { in updateValuesWithCoordinates() argument 174 values.put(LauncherSettings.Favorites.CELLX, cellX); in updateValuesWithCoordinates() 213 + " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
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 | Launcher.java | 369 int cellX; field in Launcher.PendingAddArguments 723 completeAddShortcut(args.intent, args.container, screenId, args.cellX, in completeAdd() 892 args.cellX = info.cellX; in preparePendingAddArgs() 1315 mPendingAddInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); in restoreState() 1504 private void completeAddShortcut(Intent data, long container, long screenId, int cellX, in completeAddShortcut() argument 1519 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut() 1520 cellXY[0] = cellX; in completeAddShortcut() 1608 if (mPendingAddInfo.cellX >= 0 && mPendingAddInfo.cellY >= 0) { in completeAddAppWidget() 1609 cellXY[0] = mPendingAddInfo.cellX; in completeAddAppWidget() 2032 outState.putInt(RUNTIME_STATE_PENDING_ADD_CELL_X, mPendingAddInfo.cellX); in onSaveInstanceState() [all …]
|
D | Hotseat.java | 105 Rect getCellCoordinates(int cellX, int cellY) { in getCellCoordinates() argument 107 mContent.cellToRect(cellX, cellY, 1, 1, coords); in getCellCoordinates() 191 fi.cellX = getCellXFromOrder(mAllAppsButtonRank); in addAllAppsFolder() 199 LauncherModel.addItemToDatabase(launcher, fi, fi.container, fi.screenId, fi.cellX, in addAllAppsFolder() 203 workspace.addInScreen(folder, fi.container, fi.screenId, fi.cellX, fi.cellY, in addAllAppsFolder()
|
D | Workspace.java | 1042 lp.cellX = x; 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 2944 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.tmpCellY)) { in willCreateUserFolder() 2973 if (lp.useTmpCoords && (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.tmpCellY)) { in willAddToExistingUserFolder() 2996 hasntMoved = (mDragInfo.cellX == targetCell[0] && in createUserFolderIfNecessary() 3021 destInfo.cellX = -1; in createUserFolderIfNecessary() 3023 sourceInfo.cellX = -1; in createUserFolderIfNecessary() 3168 lp.cellX = lp.tmpCellX = mTargetCell[0]; in onDrop() 3202 … LauncherModel.modifyItemInDatabase(mLauncher, info, container, screenId, lp.cellX, in onDrop() [all …]
|
D | FocusHelper.java | 336 int lvIndex = (llp.cellY * cellCountX) + llp.cellX; in getCellLayoutChildrenSortedSpatially() 337 int rvIndex = (rlp.cellY * cellCountX) + rlp.cellX; in getCellLayoutChildrenSortedSpatially() 396 float tmpDistance = (float) Math.sqrt(Math.pow(tmpLp.cellX - lp.cellX, 2) + in getClosestIconOnLine()
|
D | LauncherBackupHelper.java | 747 favorite.cellX = c.getInt(CELLX_INDEX); in packFavorite() 802 values.put(Favorites.CELLX, favorite.cellX); in unpackFavorite() 842 if (((favorite.cellX + favorite.spanX) > currentProfile.desktopCols) in unpackFavorite() 859 if ((favorite.cellX >= currentProfile.desktopCols) in unpackFavorite()
|
D | Stats.java | 123 .putExtra(EXTRA_CELLX, shortcut.cellX) in recordLaunch() 146 mLog.writeShort((short) shortcut.cellX); in recordLaunch()
|
/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
|