/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A 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()
|
H A 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()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/util/ |
H A D | WidgetSizes.java | 50 int spanX, int spanY) { in getWidgetPaddedSizes() argument 58 Size widgetSizePx = getWidgetSizePx(profile, spanX, spanY, cellSize); in getWidgetPaddedSizes() 71 return getWidgetSizePx(profile, spanX, spanY, /* recycledCellSize= */ null); in getWidgetSizePx() 78 DeviceProfile profile, int spanX, int spanY) { in getWidgetPaddedSizePx() argument 79 Size size = getWidgetSizePx(profile, spanX, spanY); in getWidgetPaddedSizePx() 105 widgetItem.spanY, /* recycledCellSize= */ null); in getWidgetItemSizePx() 118 final int vBorderSpacing = (spanY - 1) * profile.cellLayoutBorderSpacePx.y; in getWidgetSizePx() 124 ((spanY * recycledCellSize.y) + vBorderSpacing)); in getWidgetSizePx() 134 int spanX, int spanY) { in updateWidgetSizeRanges() argument 141 spanX, spanY); in updateWidgetSizeRanges() [all …]
|
H A D | WidgetsTableUtils.java | 42 if (item.spanY == otherItem.spanY) return 0; 43 return item.spanY > otherItem.spanY ? 1 : -1;
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | CellLayout.java | 606 mCellHeight * spanY + mBorderSpace.y * (spanY - 1) - paddingY); in visualizeGrid() 1131 mDragCellSpan[1] = spanY; in visualizeDropLocation() 1144 cell.cellVSpan = spanY; in visualizeDropLocation() 1158 int spanX, int spanY) { in applyColorExtractionOnWidget() argument 1615 return (r.cellY + r.spanY) - (l.cellY + l.spanY); in compare() 1971 } else if (spanY > minSpanY) { in findReorderSolution() 1981 solution.spanY = spanY; in findReorderSolution() 2014 lp.cellVSpan = c.spanY; in copySolutionToTempState() 2564 return spanX * spanY; in area() 2594 return findNearestArea(pixelX, pixelY, spanX, spanY, spanX, spanY, false, result, null); in findNearestArea() [all …]
|
H A D | WorkspaceLayoutManager.java | 58 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 67 info.spanX, info.spanY); in addInScreen() 82 int spanX, int spanY) { in addInScreen() argument 116 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen() 122 lp.cellVSpan = spanY; in addInScreen() 125 if (spanX < 0 && spanY < 0) { in addInScreen()
|
H A D | Workspace.java | 1752 int spanY; in acceptDrop() local 1756 spanY = dragCellInfo.spanY; in acceptDrop() 1759 spanY = d.dragInfo.spanY; in acceptDrop() 1763 int minSpanY = spanY; in acceptDrop() 1981 int spanY = mDragInfo != null ? mDragInfo.spanY : 1; in onDrop() local 2004 int minSpanY = item.spanY; in onDrop() 2402 int minSpanY = item.spanY; in onDragOver() 2595 this.spanY = spanY; in ReorderAlarmListener() 2650 int spanY = info.spanY; in onDropExternal() local 2653 spanY = mDragInfo.spanY; in onDropExternal() [all …]
|
H A D | AppWidgetResizeFrame.java | 292 lp.cellVSpan = widgetInfo.spanY; in setupForWidget() 441 int spanY = lp.cellVSpan; 456 mTempRange1.set(cellY, spanY + cellY); 460 spanY = mTempRange2.size(); 477 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, 479 if (mStateAnnouncer != null && (lp.cellHSpan != spanX || lp.cellVSpan != spanY) ) { 481 mLauncher.getString(R.string.widget_resized, spanX, spanY)); 487 lp.cellVSpan = spanY; 492 WidgetSizes.updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY);
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
H A D | LauncherAppWidgetProviderInfo.java | 45 public int spanY; field in LauncherAppWidgetProviderInfo 106 int spanY = 0; in initSpans() local 144 spanY = Math.max(spanY, in initSpans() 159 spanY = targetCellHeight; in initSpans() 167 this.minSpanY = Math.min(spanY, minSpanY); in initSpans() 171 && Math.min(spanY, minSpanY) <= idp.numRows; in initSpans() 174 this.spanY = Math.min(spanY, idp.numRows); in initSpans()
|
H A 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()
|
H A D | PendingAddWidgetInfo.java | 55 spanY = i.spanY; in PendingAddWidgetInfo() 66 return WidgetSizes.getWidgetSizeOptions(context, componentName, spanX, spanY); in getDefaultSizeOptions()
|
H A D | DatabaseWidgetPreviewLoader.java | 192 final int spanY = info.spanY; in generateWidgetPreview() local 205 spanY); in generateWidgetPreview() 263 tileSize = boxRect.height() / spanY; in generateWidgetPreview() 264 for (int i = 1; i < spanY; i++) { in generateWidgetPreview()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
H A D | LauncherAccessibilityDelegate.java | 246 screenId, coordinates, info.spanX, info.spanY); in performAction() 316 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 317 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 344 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions() 362 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 378 info.spanY ++; in performResizeAction() 381 info.spanY --; in performResizeAction() 386 info.spanX, info.spanY); in performResizeAction() 494 boolean found = layout.findCellForSpan(outCoordinates, info.spanX, info.spanY); in findSpaceOnWorkspace() 499 found = layout.findCellForSpan(outCoordinates, info.spanX, info.spanY); in findSpaceOnWorkspace() [all …]
|
H A D | WorkspaceAccessibilityHelper.java | 65 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget() local 68 for (int n = 0; n < spanY; n++) { in intersectsValidDropTarget() 78 for (int j = y0; j < y0 + spanY; j++) { in intersectsValidDropTarget()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | WidgetItem.java | 28 public final int spanX, spanY; field in WidgetItem 39 spanY = Math.min(info.spanY, idp.numRows); in WidgetItem() 48 spanX = spanY = 1; in WidgetItem()
|
H A D | AddWorkspaceItemsTask.java | 111 addedWorkspaceScreensFinal, item.spanX, item.spanY); in execute() 275 IntArray workspaceScreens, IntArray addedWorkspaceScreensFinal, int spanX, int spanY) { in findSpaceForItem() argument 307 app, screenItems.get(screenId), coordinates, spanX, spanY)) { in findSpaceForItem() 326 app, screenItems.get(screenId), coordinates, spanX, spanY)) { in findSpaceForItem() 335 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument 344 return occupied.findVacantCell(xy, spanX, spanY); in findNextAvailableIconSpaceInScreen()
|
H A D | ModelWriter.java | 140 modelItem.spanY == item.spanY) { in checkItemInfoLocked() 207 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 210 item.spanY = spanY; in modifyItemInDatabase() 220 .put(Favorites.SPANY, item.spanY) in modifyItemInDatabase()
|
H A D | LoaderCursor.java | 450 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement() 463 int spanY = FeatureFlags.EXPANDED_SMARTSPACE.get() ? 2 : 1; in checkItemPlacement() local 464 screen.markCells(0, 0, countX + 1, spanY, FeatureFlags.QSB_ON_FIRST_SCREEN); in checkItemPlacement() 471 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement() 477 + item.cellX + "," + item.cellX + "," + item.spanX + "," + item.spanY in checkItemPlacement()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 330 final float spanY = devY * 2; in onTouchEvent() local 333 span = spanY; in onTouchEvent() 335 span = (float) Math.hypot(spanX, spanY); in onTouchEvent() 351 mPrevSpanY = mCurrSpanY = spanY; in onTouchEvent() 359 mPrevSpanY = mCurrSpanY = spanY; in onTouchEvent() 368 mCurrSpanY = spanY; in onTouchEvent()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
H A D | ItemInfo.java | 124 public int spanY = 1; field in ItemInfo 173 spanY = info.spanY; in copyFrom() 219 .put(LauncherSettings.Favorites.SPANY, spanY) in writeToValues() 230 spanY = values.getAsInteger(LauncherSettings.Favorites.SPANY); in readFromValues() 259 + " span(" + spanX + "," + spanY + ")" in dumpProperties() 338 .setSpanY(spanY)); in buildProto()
|
/aosp12/packages/apps/Launcher3/tools/ |
H A 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):
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
H A D | WidgetUtils.java | 56 item.spanY = info.minSpanY; in createWidgetInfo() 69 pendingInfo.spanY = item.spanY; in createWidgetInfo()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/ |
H A D | LauncherAppWidgetProviderInfoTest.java | 71 assertThat(info.spanY).isEqualTo(1); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() 84 assertThat(info.spanY).isEqualTo(2); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() 98 assertThat(info.spanY).isEqualTo(1); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() 111 assertThat(info.spanY).isEqualTo(NUM_OF_ROWS); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
H A D | CustomAppWidgetProviderInfo.java | 52 spanY = parcel.readInt(); in CustomAppWidgetProviderInfo() 86 out.writeInt(spanY); in writeToParcel()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/picker/model/ |
H A D | WidgetsListContentEntryTest.java | 248 private WidgetItem createWidgetItem(ComponentName componentName, int spanX, int spanY) { in createWidgetItem() argument 255 launcherAppWidgetProviderInfo.spanY = spanY; in createWidgetItem()
|