/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 | 338 Rect r = estimateItemPosition(cl, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize() 1555 int spanY; in acceptDrop() local 1559 spanY = dragCellInfo.spanY; in acceptDrop() 1562 spanY = d.dragInfo.spanY; in acceptDrop() 1566 int minSpanY = spanY; in acceptDrop() 1589 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop() 1780 int spanY = mDragInfo != null ? mDragInfo.spanY : 1; in onDrop() local 1785 mDragViewVisualCenter[1], spanX, spanY, dropTargetLayout, mTargetCell); in onDrop() 1803 int minSpanY = item.spanY; in onDrop() 1817 .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 | 82 public int spanY = 1; field in ItemInfo 124 spanY = info.spanY; in copyFrom() 153 .put(LauncherSettings.Favorites.SPANY, spanY) in writeToValues() 164 spanY = values.getAsInteger(LauncherSettings.Favorites.SPANY); in readFromValues() 192 + " span(" + spanX + "," + spanY + ")" in dumpProperties()
|
D | WidgetPreviewLoader.java | 342 final int spanY = info.spanY; in generateWidgetPreview() local 355 previewHeight = tileSize * spanY; in generateWidgetPreview() 412 tileSize = boxRect.height() / spanY; in generateWidgetPreview() 413 for (int i = 1; i < spanY; i++) { in generateWidgetPreview()
|
D | LauncherAppWidgetInfo.java | 119 spanY = -1; in LauncherAppWidgetInfo() 149 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 | AddWorkspaceItemsTask.java | 91 addedWorkspaceScreensFinal, item.spanX, item.spanY); in execute() 199 IntArray workspaceScreens, IntArray addedWorkspaceScreensFinal, int spanX, int spanY) { in findSpaceForItem() argument 227 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem() 235 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem() 255 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem() 264 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument 273 return occupied.findVacantCell(xy, spanX, spanY); in findNextAvailableIconSpaceInScreen()
|
D | GridSizeMigrationTask.java | 382 || (item.cellY <= row && (item.spanY + item.cellY) > row)) { 472 if (me.spanX > 1 || me.spanY > 1) { 477 int myH = me.spanY; 513 me.spanY --; 518 me.spanY ++; 525 me.spanY --; 531 me.spanY ++; 702 entry.spanY = c.getInt(indexSpanY); 721 * entry.spanX * entry.spanY); 732 entry.minSpanY = spans.y > 0 ? spans.y : entry.spanY; [all …]
|
D | ModelWriter.java | 128 modelItem.spanY == item.spanY) { in checkItemInfoLocked() 192 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 195 item.spanY = spanY; in modifyItemInDatabase() 204 .put(Favorites.SPANY, item.spanY) in modifyItemInDatabase()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 189 screenId, coordinates, info.spanX, info.spanY); in performAction() 263 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 264 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 274 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 279 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions() 293 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 294 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 304 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 309 info.spanY ++; in performResizeAction() 312 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/src/com/android/launcher3/logging/ |
D | DumpTargetWrapper.java | 130 return typeStr + ", grid(" + t.gridX + "," + t.gridY + "), span(" + t.spanX + "," + t.spanY in getItemStr() 147 node.spanY = info.spanY; in writeToDumpTarget()
|
D | LoggerUtils.java | 118 if (t.spanX != 1 || t.spanY != 1) { in getTargetStr() 119 str += " span(" + t.spanX + "," + t.spanY + ")"; in getTargetStr() 143 + "), span(" + t.spanX + "," + t.spanY in getItemStr()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 294 item.spanY = info.minSpanY; in createWidgetInfo() 305 pendingInfo.spanY = item.spanY; in createWidgetInfo() 347 item.spanY = 2; in getInvalidWidgetInfo()
|
/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()
|