Home
last modified time | relevance | path

Searched refs:spanY (Results 1 – 25 of 43) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java725 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 …]
DWorkspace.java336 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 …]
DAppWidgetResizeFrame.java290 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 …]
DWorkspaceLayoutManager.java47 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()
DItemInfo.java84 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()
DWidgetPreviewLoader.java339 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()
DLauncherAppWidgetInfo.java127 spanY = -1; in LauncherAppWidgetInfo()
158 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in onBindAppWidget()
DLauncherAppWidgetProviderInfo.java27 public int spanY; field in LauncherAppWidgetProviderInfo
75 spanY = Math.max(1, (int) Math.ceil( in initSpans()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DGridOccupancy.java32 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()
DCellAndSpan.java26 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/
DWidgetItem.java31 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()
DGridSizeMigrationTask.java384 || (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 …]
DAddWorkspaceItemsTask.java103 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()
DModelWriter.java130 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/
DLauncherAccessibilityDelegate.java199 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 …]
DWorkspaceAccessibilityHelper.java73 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/
DWidgetItemComparator.java51 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()
DPendingAddWidgetInfo.java50 spanY = i.spanY; in PendingAddWidgetInfo()
/packages/apps/Launcher3/
Dprint_db.py117 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/
DBindWidgetTest.java296 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/
DDumpTargetWrapper.java141 return typeStr + ", grid(" + t.gridX + "," + t.gridY + "), span(" + t.spanX + "," + t.spanY in getItemStr()
165 node.spanY = info.spanY; in writeToDumpTarget()
DLoggerUtils.java119 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/
DLoaderCursorTest.java200 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/
DCustomAppWidgetProviderInfo.java51 spanY = parcel.readInt(); in CustomAppWidgetProviderInfo()
85 out.writeInt(spanY); in writeToParcel()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLossyScreenMigrationTask.java81 || org.spanX != update.spanX || org.spanY != update.spanY) { in migrateScreen0()

12