/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 729 result[1] = vStartPadding + cellY * mCellHeight + (spanY * mCellHeight) / 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() 996 top += ((mCellHeight * spanY) - dragOutline.getHeight()) / 2; in visualizeDropLocation() 1010 top += ((mCellHeight * spanY) - dragOutline.getHeight()) / 2; in visualizeDropLocation() 1059 int spanY, int[] result, int[] resultSpan) { in findNearestVacantArea() argument 1060 return findNearestArea(pixelX, pixelY, minSpanX, minSpanY, spanX, spanY, true, in findNearestVacantArea() [all …]
|
D | Workspace.java | 336 Rect r = estimateItemPosition(cl, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize() 1567 int spanY; in acceptDrop() local 1571 spanY = dragCellInfo.spanY; in acceptDrop() 1574 spanY = d.dragInfo.spanY; in acceptDrop() 1578 int minSpanY = spanY; in acceptDrop() 1601 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop() 1795 int spanY = mDragInfo != null ? mDragInfo.spanY : 1; in onDrop() local 1800 mDragViewVisualCenter[1], spanX, spanY, dropTargetLayout, mTargetCell); in onDrop() 1818 int minSpanY = item.spanY; in onDrop() 1832 .isRegionVacant(mTargetCell[0], mTargetCell[1], spanX, spanY); in onDrop() [all …]
|
D | AppWidgetResizeFrame.java | 290 int spanY = lp.cellVSpan; in resizeWidgetIfNeeded() local 305 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded() 309 spanY = 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() 336 lp.cellVSpan = spanY; 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() 110 lp.cellVSpan = spanY; in addInScreen() 113 if (spanX < 0 && spanY < 0) { in addInScreen()
|
D | ItemInfo.java | 84 public int spanY = 1; field in ItemInfo 126 spanY = info.spanY; in copyFrom() 156 .put(LauncherSettings.Favorites.SPANY, spanY) in writeToValues() 167 spanY = values.getAsInteger(LauncherSettings.Favorites.SPANY); in readFromValues() 195 + " span(" + spanX + "," + spanY + ")" in dumpProperties()
|
D | WidgetPreviewLoader.java | 339 final int spanY = info.spanY; in generateWidgetPreview() local 352 previewHeight = tileSize * spanY; in generateWidgetPreview() 409 tileSize = boxRect.height() / spanY; in generateWidgetPreview() 410 for (int i = 1; i < spanY; i++) { in generateWidgetPreview()
|
D | LauncherAppWidgetInfo.java | 127 spanY = -1; in LauncherAppWidgetInfo() 158 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in onBindAppWidget()
|
D | LauncherAppWidgetProviderInfo.java | 27 public int spanY; field in LauncherAppWidgetProviderInfo 75 spanY = 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 33 for (int y = 0; (y + spanY) <= mCountY; y++) { in findVacantCell() 38 for (int j = y; j < y + spanY; j++) { in findVacantCell() 61 public boolean isRegionVacant(int x, int y, int spanX, int spanY) { in isRegionVacant() argument 63 int y2 = y + spanY - 1; in isRegionVacant() 77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { in markCells() argument 80 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { 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 | 26 public int spanY = 1; field in CellAndSpan 35 spanY = copy.spanY; in copyFrom() 38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument 42 this.spanY = spanY; in CellAndSpan() 46 return "(" + cellX + ", " + cellY + ": " + spanX + ", " + spanY + ")"; in toString()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | WidgetItem.java | 31 public final int spanX, spanY; field in WidgetItem 42 spanY = Math.min(info.spanY, idp.numRows); in WidgetItem() 51 spanX = spanY = 1; in WidgetItem() 77 int thisArea = spanX * spanY; in compareTo() 78 int otherArea = another.spanX * another.spanY; in compareTo() 80 ? Integer.compare(spanY, another.spanY) in compareTo()
|
D | GridSizeMigrationTask.java | 384 || (item.cellY <= row && (item.spanY + item.cellY) > row)) { 474 if (me.spanX > 1 || me.spanY > 1) { 479 int myH = me.spanY; 515 me.spanY --; 520 me.spanY ++; 527 me.spanY --; 533 me.spanY ++; 704 entry.spanY = c.getInt(indexSpanY); 723 * entry.spanX * entry.spanY); 734 entry.minSpanY = spans.y > 0 ? spans.y : entry.spanY; [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 | 130 modelItem.spanY == item.spanY) { in checkItemInfoLocked() 194 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 197 item.spanY = spanY; in modifyItemInDatabase() 206 .put(Favorites.SPANY, item.spanY) in modifyItemInDatabase()
|
/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() 274 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 284 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 289 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions() 303 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 304 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 314 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 319 info.spanY ++; in performResizeAction() 322 info.spanY --; in performResizeAction() [all …]
|
D | WorkspaceAccessibilityHelper.java | 73 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget() local 76 for (int n = 0; n < spanY; n++) { in intersectsValidDropTarget() 86 for (int j = y0; j < y0 + spanY; j++) { in intersectsValidDropTarget()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | WidgetItemComparator.java | 51 int thisArea = a.spanX * a.spanY; in compare() 52 int otherArea = b.spanX * b.spanY; in compare() 54 ? Integer.compare(a.spanY, b.spanY) in compare()
|
D | PendingAddWidgetInfo.java | 50 spanY = i.spanY; in PendingAddWidgetInfo()
|
/packages/apps/Launcher3/ |
D | print_db.py | 117 spanY = cell["spanY"] 125 spanX, spanY, 126 (CELL_SIZE*spanX), (CELL_SIZE*spanY), 266 spanY = row["spanY"] 267 for j in range(cellY, cellY+spanY):
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 296 item.spanY = info.minSpanY; in createWidgetInfo() 307 pendingInfo.spanY = item.spanY; in createWidgetInfo() 352 item.spanY = 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() 165 node.spanY = info.spanY; 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/tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 200 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument 206 info.spanY = spanY; in newItemInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomAppWidgetProviderInfo.java | 51 spanY = parcel.readInt(); in CustomAppWidgetProviderInfo() 85 out.writeInt(spanY); in writeToParcel()
|
/packages/apps/Launcher3/src/com/android/launcher3/provider/ |
D | LossyScreenMigrationTask.java | 81 || org.spanX != update.spanX || org.spanY != update.spanY) { in migrateScreen0()
|