/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 725 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 728 result[0] = hStartPadding + cellX * mCellWidth + (spanX * mCellWidth) / 2; in regionToCenterPoint() 739 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 744 result.set(left, top, left + (spanX * mCellWidth), top + (spanY * mCellHeight)); in regionToRect() 951 int spanX, int spanY, boolean resize, DropTarget.DragObject dragObject) { in visualizeDropLocation() argument 973 cellToRect(cellX, cellY, spanX, spanY, r); in visualizeDropLocation() 998 left += ((mCellWidth * spanX) - dragOutline.getWidth()) / 2; in visualizeDropLocation() 1003 left += dragOffset.x + ((mCellWidth * spanX) - dragRegion.width()) / 2; in visualizeDropLocation() 1009 left += ((mCellWidth * spanX) - dragOutline.getWidth()) / 2; in visualizeDropLocation() 1058 int[] findNearestVacantArea(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, in findNearestVacantArea() argument [all …]
|
D | Workspace.java | 336 Rect r = estimateItemPosition(cl, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize() 1566 int spanX; in acceptDrop() local 1570 spanX = dragCellInfo.spanX; in acceptDrop() 1573 spanX = d.dragInfo.spanX; in acceptDrop() 1577 int minSpanX = spanX; in acceptDrop() 1601 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop() 1794 int spanX = mDragInfo != null ? mDragInfo.spanX : 1; in onDrop() local 1800 mDragViewVisualCenter[1], spanX, spanY, dropTargetLayout, mTargetCell); in onDrop() 1817 int minSpanX = item.spanX; in onDrop() 1832 .isRegionVacant(mTargetCell[0], mTargetCell[1], spanX, spanY); in onDrop() [all …]
|
D | AppWidgetResizeFrame.java | 289 int spanX = lp.cellHSpan; in resizeWidgetIfNeeded() local 296 mTempRange1.set(cellX, spanX + cellX); in resizeWidgetIfNeeded() 300 spanX = mTempRange2.size(); in resizeWidgetIfNeeded() 326 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 328 if (mStateAnnouncer != null && (lp.cellHSpan != spanX || lp.cellVSpan != spanY) ) { in resizeWidgetIfNeeded() 330 mLauncher.getString(R.string.widget_resized, spanX, spanY)); in resizeWidgetIfNeeded() 335 lp.cellHSpan = spanX; in resizeWidgetIfNeeded() 341 updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded() 348 int spanX, int spanY) { in updateWidgetSizeRanges() argument 349 getWidgetSizeRanges(launcher, spanX, spanY, sTmpRect); in updateWidgetSizeRanges() [all …]
|
D | WorkspaceLayoutManager.java | 47 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 56 info.spanX, info.spanY); in addInScreen() 71 int spanX, int spanY) { in addInScreen() argument 104 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen() 109 lp.cellHSpan = spanX; in addInScreen() 113 if (spanX < 0 && spanY < 0) { in addInScreen()
|
D | ItemInfo.java | 79 public int spanX = 1; field in ItemInfo 125 spanX = info.spanX; in copyFrom() 155 .put(LauncherSettings.Favorites.SPANX, spanX) in writeToValues() 166 spanX = values.getAsInteger(LauncherSettings.Favorites.SPANX); in readFromValues() 195 + " span(" + spanX + "," + spanY + ")" in dumpProperties()
|
D | WidgetPreviewLoader.java | 338 final int spanX = info.spanX; in generateWidgetPreview() local 351 previewWidth = tileSize * spanX; in generateWidgetPreview() 402 float tileSize = boxRect.width() / spanX; in generateWidgetPreview() 403 for (int i = 1; i < spanX; i++) { in generateWidgetPreview()
|
D | LauncherAppWidgetInfo.java | 126 spanX = -1; in LauncherAppWidgetInfo() 158 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in onBindAppWidget()
|
D | LauncherAppWidgetProviderInfo.java | 26 public int spanX; field in LauncherAppWidgetProviderInfo 73 spanX = Math.max(1, (int) Math.ceil( in initSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | GridOccupancy.java | 32 public boolean findVacantCell(int[] vacantOut, int spanX, int spanY) { in findVacantCell() argument 34 for (int x = 0; (x + spanX) <= mCountX; x++) { in findVacantCell() 37 for (int i = x; i < x + spanX; i++) { in findVacantCell() 61 public boolean isRegionVacant(int x, int y, int spanX, int spanY) { in isRegionVacant() argument 62 int x2 = x + spanX - 1; in isRegionVacant() 77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { in markCells() argument 79 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { in markCells() 91 markCells(cell.cellX, cell.cellY, cell.spanX, cell.spanY, value); in markCells() 95 markCells(item.cellX, item.cellY, item.spanX, item.spanY, value); in markCells()
|
D | CellAndSpan.java | 21 public int spanX = 1; field in CellAndSpan 34 spanX = copy.spanX; in copyFrom() 38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument 41 this.spanX = spanX; in CellAndSpan() 46 return "(" + cellX + ", " + cellY + ": " + spanX + ", " + spanY + ")"; in toString()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 199 screenId, coordinates, info.spanX, info.spanY); in performAction() 273 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 278 if (info.spanX > info.minSpanX && info.spanX > 1) { in getSupportedResizeActions() 284 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 285 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 304 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 309 info.spanX ++; in performResizeAction() 312 info.spanX --; in performResizeAction() 314 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 327 AppWidgetResizeFrame.getWidgetSizeRanges(mLauncher, info.spanX, info.spanY, sizeRange); in performResizeAction() [all …]
|
D | WorkspaceAccessibilityHelper.java | 72 int spanX = dragInfo.info.spanX; in intersectsValidDropTarget() local 75 for (int m = 0; m < spanX; m++) { in intersectsValidDropTarget() 84 for (int i = x0; i < x0 + spanX; i++) { in intersectsValidDropTarget()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetItem.java | 31 public final int spanX, spanY; field in WidgetItem 41 spanX = Math.min(info.spanX, idp.numColumns); in WidgetItem() 51 spanX = spanY = 1; in WidgetItem() 77 int thisArea = spanX * spanY; in compareTo() 78 int otherArea = another.spanX * another.spanY; in compareTo()
|
D | GridSizeMigrationTask.java | 383 if ((item.cellX <= col && (item.spanX + item.cellX) > col) 474 if (me.spanX > 1 || me.spanY > 1) { 478 int myW = me.spanX; 505 me.spanX --; 510 me.spanX ++; 526 me.spanX --; 532 me.spanX ++; 703 entry.spanX = c.getInt(indexSpanX); 723 * entry.spanX * entry.spanY); 733 entry.minSpanX = spans.x > 0 ? spans.x : entry.spanX; [all …]
|
D | AddWorkspaceItemsTask.java | 103 addedWorkspaceScreensFinal, item.spanX, item.spanY); in execute() 255 IntArray workspaceScreens, IntArray addedWorkspaceScreensFinal, int spanX, int spanY) { in findSpaceForItem() argument 283 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem() 291 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem() 311 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem() 320 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument 329 return occupied.findVacantCell(xy, spanX, spanY); in findNextAvailableIconSpaceInScreen()
|
D | ModelWriter.java | 129 modelItem.spanX == item.spanX && in checkItemInfoLocked() 194 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 196 item.spanX = spanX; in modifyItemInDatabase() 205 .put(Favorites.SPANX, item.spanX) in modifyItemInDatabase()
|
/packages/apps/Launcher3/ |
D | print_db.py | 116 spanX = cell["spanX"] 125 spanX, spanY, 126 (CELL_SIZE*spanX), (CELL_SIZE*spanY), 265 spanX = row["spanX"] 268 for k in range(cellX, cellX+spanX):
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 295 item.spanX = info.minSpanX; in createWidgetInfo() 306 pendingInfo.spanX = item.spanX; in createWidgetInfo() 351 item.spanX = 2; in getInvalidWidgetInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/logging/ |
D | DumpTargetWrapper.java | 141 return typeStr + ", grid(" + t.gridX + "," + t.gridY + "), span(" + t.spanX + "," + t.spanY in getItemStr() 164 node.spanX = info.spanX; in writeToDumpTarget()
|
D | LoggerUtils.java | 119 if (t.spanX != 1 || t.spanY != 1) { in getTargetStr() 120 str += " span(" + t.spanX + "," + t.spanY + ")"; in getTargetStr() 146 + "), span(" + t.spanX + "," + t.spanY + "), pageIdx=" + t.pageIndex; in getItemStr()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAddWidgetInfo.java | 49 spanX = i.spanX; in PendingAddWidgetInfo()
|
D | WidgetItemComparator.java | 51 int thisArea = a.spanX * a.spanY; in compare() 52 int otherArea = b.spanX * b.spanY; in compare()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 200 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument 205 info.spanX = spanX; in newItemInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomAppWidgetProviderInfo.java | 50 spanX = parcel.readInt(); in CustomAppWidgetProviderInfo() 84 out.writeInt(spanX); in writeToParcel()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LossyScreenMigrationTask.java | 81 || org.spanX != update.spanX || org.spanY != update.spanY) { in migrateScreen0()
|