Home
last modified time | relevance | path

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

123

/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java742 cellInfo.spanY = lp.cellVSpan; in setTagToCellInfoForPoint()
759 cellInfo.spanY = 1; in setTagToCellInfoForPoint()
792 cellInfo.spanY = 0; in clearTagCellInfo()
868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
874 (spanY * mCellHeight + (spanY - 1) * mHeightGap) / 2; in regionToCenterPoint()
884 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
890 top + (spanY * mCellHeight + (spanY - 1) * mHeightGap)); in regionToRect()
1188 void estimateDropCell(int originX, int originY, int spanX, int spanY, int[] result) { in estimateDropCell() argument
1202 int bottomOverhang = result[1] + spanY - countY; in estimateDropCell()
1210 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) { in visualizeDropLocation() argument
[all …]
DWorkspace.java493 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) { in addInScreen() argument
494 addInScreen(child, container, screen, x, y, spanX, spanY, false); in addInScreen()
509 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY, in addInScreen() argument
550 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen()
556 lp.cellVSpan = spanY; in addInScreen()
559 if (spanX < 0 && spanY < 0) { in addInScreen()
564 int childId = LauncherModel.getCellLayoutChildId(container, screen, x, y, spanX, spanY); in addInScreen()
1533 int[] size = estimateItemSize(info.spanX, info.spanY, info, false);
1986 int spanY = 1;
1990 spanY = dragCellInfo.spanY;
[all …]
DAppWidgetResizeFrame.java257 int spanY = lp.cellVSpan; in resizeWidgetIfNeeded() local
288 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
305 spanY += vSpanInc; in resizeWidgetIfNeeded()
324 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
329 lp.cellVSpan = spanY; in resizeWidgetIfNeeded()
333 updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded()
340 int spanX, int spanY) { in updateWidgetSizeRanges() argument
342 getWidgetSizeRanges(launcher, spanX, spanY, mTmpRect); in updateWidgetSizeRanges()
347 static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { in getWidgetSizeRanges() argument
361 int landHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
[all …]
DItemInfo.java86 int spanY = 1; field in ItemInfo
129 spanY = info.spanY; in ItemInfo()
174 values.put(LauncherSettings.Favorites.SPANY, spanY); in onAddToDatabase()
221 + " spanY=" + spanY + " dropPos=" + dropPos + " user=" + user in toString()
DAppsCustomizePagedView.java565 AppWidgetResizeFrame.getWidgetSizeRanges(mLauncher, info.spanX, info.spanY, mTmpRect); in getDefaultOptionsForWidget()
620 info.spanY, info, false); in preloadWidget()
718 int spanY = createItemInfo.spanY; in beginDraggingWidget() local
719 int[] size = mLauncher.getWorkspace().estimateItemSize(spanX, spanY, in beginDraggingWidget()
731 spanY, maxWidth, maxHeight, null, previewSizeBeforeScale); in beginDraggingWidget()
760 createItemInfo.spanX = createItemInfo.spanY = 1; in beginDraggingWidget()
885 !layout.findCellForSpan(null, itemInfo.spanX, itemInfo.spanY); in onDropCompleted()
1200 createItemInfo.spanY = spanXY[1]; in syncWidgetPageItems()
DInstallShortcutReceiver.java343 int cellX, cellY, spanX, spanY; in findEmptyCell() local
351 spanY = item.spanY; in findEmptyCell()
353 for (int y = cellY; 0 <= y && y < cellY + spanY && y < yCount; y++) { in findEmptyCell()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java752 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
756 result[1] = vStartPadding + cellY * mCellHeight + (spanY * mCellHeight) / 2; in regionToCenterPoint()
766 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
771 result.set(left, top, left + (spanX * mCellWidth), top + (spanY * mCellHeight)); in regionToRect()
988 int spanX, int spanY, boolean resize, DropTarget.DragObject dragObject) { in visualizeDropLocation() argument
1010 cellToRect(cellX, cellY, spanX, spanY, r); in visualizeDropLocation()
1033 top += ((mCellHeight * spanY) - dragOutline.getHeight()) / 2; in visualizeDropLocation()
1047 top += ((mCellHeight * spanY) - dragOutline.getHeight()) / 2; in visualizeDropLocation()
1095 int spanY, int[] result, int[] resultSpan) { in findNearestVacantArea() argument
1096 return findNearestArea(pixelX, pixelY, minSpanX, minSpanY, spanX, spanY, true, in findNearestVacantArea()
[all …]
DWorkspace.java386 Rect r = estimateItemPosition(cl, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize()
736 int spanY = customScreen.getCountY(); in addToCustomContentPage() local
737 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, spanX, spanY); in addToCustomContentPage()
1039 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind()
1048 info.spanX, info.spanY); in addInScreen()
1063 int spanX, int spanY) { in addInScreen() argument
1098 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen()
1104 lp.cellVSpan = spanY; in addInScreen()
1107 if (spanX < 0 && spanY < 0) { in addInScreen()
2227 int spanY; in acceptDrop() local
[all …]
DAppWidgetResizeFrame.java256 int spanY = lp.cellVSpan; in resizeWidgetIfNeeded() local
271 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded()
275 spanY = mTempRange2.size(); in resizeWidgetIfNeeded()
292 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
294 if (mStateAnnouncer != null && (lp.cellHSpan != spanX || lp.cellVSpan != spanY) ) { in resizeWidgetIfNeeded()
296 mLauncher.getString(R.string.widget_resized, spanX, spanY)); in resizeWidgetIfNeeded()
302 lp.cellVSpan = spanY; in resizeWidgetIfNeeded()
307 updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded()
314 int spanX, int spanY) { in updateWidgetSizeRanges() argument
315 getWidgetSizeRanges(launcher, spanX, spanY, sTmpRect); in updateWidgetSizeRanges()
[all …]
DItemInfo.java82 public int spanY = 1; field in ItemInfo
126 spanY = info.spanY; in copyFrom()
155 .put(LauncherSettings.Favorites.SPANY, spanY) in writeToValues()
166 spanY = values.getAsInteger(LauncherSettings.Favorites.SPANY); in readFromValues()
194 + " span(" + spanX + "," + spanY + ")" in dumpProperties()
DWidgetPreviewLoader.java338 final int spanY = info.spanY; in generateWidgetPreview() local
350 previewHeight = tileSize * spanY; in generateWidgetPreview()
407 tileSize = boxRect.height() / spanY; in generateWidgetPreview()
408 for (int i = 1; i < spanY; i++) { in generateWidgetPreview()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java182 screenId, coordinates, info.spanX, info.spanY); in performAction()
248 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions()
249 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions()
259 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions()
264 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions()
278 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction()
279 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction()
289 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
294 info.spanY ++; in performResizeAction()
297 info.spanY --; in performResizeAction()
[all …]
DWorkspaceAccessibilityHelper.java72 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget() local
75 for (int n = 0; n < spanY; n++) { in intersectsValidDropTarget()
85 for (int j = y0; j < y0 + spanY; j++) { in intersectsValidDropTarget()
/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.java30 public final int spanX, spanY; field in WidgetItem
41 spanY = Math.min(info.spanY, idp.numRows); in WidgetItem()
49 spanX = spanY = 1; in WidgetItem()
75 int thisArea = spanX * spanY; in compareTo()
76 int otherArea = another.spanX * another.spanY; in compareTo()
78 ? Integer.compare(spanY, another.spanY) in compareTo()
DGridSizeMigrationTask.java385 || (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 ++;
703 entry.spanY = c.getInt(indexSpanY);
722 * entry.spanX * entry.spanY);
733 entry.minSpanY = spans.y > 0 ? spans.y : entry.spanY;
[all …]
DAddWorkspaceItemsTask.java116 addedWorkspaceScreensFinal, item.spanX, item.spanY); in execute()
239 int spanX, int spanY) { in findSpaceForItem() argument
267 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem()
275 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem()
295 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem()
304 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument
313 return occupied.findVacantCell(xy, spanX, spanY); in findNextAvailableIconSpaceInScreen()
DModelWriter.java108 modelShortcut.spanY == shortcut.spanY) { in checkItemInfoLocked()
174 long container, long screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument
177 item.spanY = spanY; in modifyItemInDatabase()
185 .put(Favorites.SPANY, item.spanY) in modifyItemInDatabase()
/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/Launcher2/
Dprint_db.py84 spanY = cell["spanY"]
92 spanX, spanY,
93 (CELL_SIZE*spanX), (CELL_SIZE*spanY),
203 spanY = row["spanY"]
204 for j in range(cellY, cellY+spanY):
/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/src/com/android/launcher3/logging/
DDumpTargetWrapper.java130 return typeStr + ", grid(" + t.gridX + "," + t.gridY + "), span(" + t.spanX + "," + t.spanY in getItemStr()
147 node.spanY = info.spanY; in writeToDumpTarget()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java297 item.spanY = info.minSpanY; in createWidgetInfo()
308 pendingInfo.spanY = item.spanY; in createWidgetInfo()
354 item.spanY = 2; in getInvalidWidgetInfo()

123