/aosp12/packages/apps/Launcher3/src/com/android/launcher3/util/ |
H A D | CellAndSpan.java | 21 public int spanX = 1; field in CellAndSpan 34 spanX = copy.spanX; in copyFrom() 38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument 41 this.spanX = spanX; 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 34 for (int x = 0; (x + spanX) <= mCountX; x++) { in findVacantCell() 37 for (int i = x; i < x + spanX; i++) { in findVacantCell() 61 public boolean isRegionVacant(int x, int y, int spanX, int spanY) { in isRegionVacant() argument 62 int x2 = x + spanX - 1; in isRegionVacant() 77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { in markCells() argument 79 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { 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() 70 public static Size getWidgetSizePx(DeviceProfile profile, int spanX, int spanY) { in getWidgetSizePx() argument 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() 104 Size widgetItemSize = getWidgetSizePx(profile, widgetItem.spanX, in getWidgetItemSizePx() 117 final int hBorderSpacing = (spanX - 1) * profile.cellLayoutBorderSpacePx.x; in getWidgetSizePx() 123 return new Size(((spanX * recycledCellSize.x) + hBorderSpacing), in getWidgetSizePx() 134 int spanX, int spanY) { in updateWidgetSizeRanges() argument [all …]
|
H A D | WidgetsTableUtils.java | 41 if (item.spanX == otherItem.spanX) { 45 return item.spanX > otherItem.spanX ? 1 : -1; 89 int totalHorizontalSpan = widgetItemsAtRow.stream().map(item -> item.spanX) in groupWidgetItemsIntoTableWithoutReordering() 91 int totalHorizontalSpanAfterAddingWidget = widgetItem.spanX + totalHorizontalSpan; in groupWidgetItemsIntoTableWithoutReordering()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | CellLayout.java | 605 mCellWidth * spanX + mBorderSpace.x * (spanX - 1) - paddingX, in visualizeGrid() 1130 mDragCellSpan[0] = spanX; in visualizeDropLocation() 1143 cell.cellHSpan = spanX; in visualizeDropLocation() 1158 int spanX, int spanY) { in applyColorExtractionOnWidget() argument 1611 return (r.cellX + r.spanX) - (l.cellX + l.spanX); in compare() 1980 solution.spanX = spanX; in findReorderSolution() 2013 lp.cellHSpan = c.spanX; in copySolutionToTempState() 2258 info.spanX = lp.cellHSpan; in commitTempPlacement() 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() 121 lp.cellHSpan = spanX; in addInScreen() 125 if (spanX < 0 && spanY < 0) { in addInScreen()
|
H A D | Workspace.java | 1751 int spanX; in acceptDrop() local 1755 spanX = dragCellInfo.spanX; in acceptDrop() 1758 spanX = d.dragInfo.spanX; in acceptDrop() 1762 int minSpanX = spanX; in acceptDrop() 1980 int spanX = mDragInfo != null ? mDragInfo.spanX : 1; in onDrop() local 2003 int minSpanX = item.spanX; in onDrop() 2401 int minSpanX = item.spanX; in onDragOver() 2594 this.spanX = spanX; in ReorderAlarmListener() 2649 int spanX = info.spanX; in onDropExternal() local 2652 spanX = mDragInfo.spanX; in onDropExternal() [all …]
|
H A D | AppWidgetResizeFrame.java | 291 lp.cellHSpan = widgetInfo.spanX; in setupForWidget() 440 int spanX = lp.cellHSpan; 447 mTempRange1.set(cellX, spanX + cellX); 451 spanX = 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)); 486 lp.cellHSpan = spanX; 492 WidgetSizes.updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY);
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
H A D | LauncherAppWidgetProviderInfo.java | 39 public int spanX; field in LauncherAppWidgetProviderInfo 105 int spanX = 0; in initSpans() local 141 spanX = Math.max(spanX, in initSpans() 158 spanX = targetCellWidth; in initSpans() 166 this.minSpanX = Math.min(spanX, minSpanX); in initSpans() 170 this.mIsMinSizeFulfilled = Math.min(spanX, minSpanX) <= idp.numColumns in initSpans() 173 this.spanX = Math.min(spanX, idp.numColumns); in initSpans()
|
H A D | PendingAddWidgetInfo.java | 54 spanX = i.spanX; in PendingAddWidgetInfo() 66 return WidgetSizes.getWidgetSizeOptions(context, componentName, spanX, spanY); in getDefaultSizeOptions()
|
H A D | WidgetItemComparator.java | 51 int thisArea = a.spanX * a.spanY; in compare() 52 int otherArea = b.spanX * b.spanY; in compare()
|
H A D | DatabaseWidgetPreviewLoader.java | 191 final int spanX = info.spanX; in generateWidgetPreview() local 204 Size widgetSize = WidgetSizes.getWidgetPaddedSizePx(mContext, info.provider, dp, spanX, in generateWidgetPreview() 256 float tileSize = boxRect.width() / spanX; in generateWidgetPreview() 257 for (int i = 1; i < spanX; i++) { in generateWidgetPreview()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/ |
H A D | WidgetItem.java | 28 public final int spanX, spanY; field in WidgetItem 38 spanX = Math.min(info.spanX, idp.numColumns); 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 | 139 modelItem.spanX == item.spanX && in checkItemInfoLocked() 207 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 209 item.spanX = spanX; in modifyItemInDatabase() 219 .put(Favorites.SPANX, item.spanX) in modifyItemInDatabase()
|
/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() 325 if (info.spanX > info.minSpanX && info.spanX > 1) { in getSupportedResizeActions() 335 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 336 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 368 info.spanX ++; in performResizeAction() 371 info.spanX --; 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 | 64 int spanX = dragInfo.info.spanX; in intersectsValidDropTarget() local 67 for (int m = 0; m < spanX; m++) { in intersectsValidDropTarget() 76 for (int i = x0; i < x0 + spanX; i++) { in intersectsValidDropTarget()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 329 final float spanX = devX * 2; in onTouchEvent() local 335 span = (float) Math.hypot(spanX, spanY); in onTouchEvent() 350 mPrevSpanX = mCurrSpanX = spanX; in onTouchEvent() 358 mPrevSpanX = mCurrSpanX = spanX; in onTouchEvent() 367 mCurrSpanX = spanX; in onTouchEvent()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
H A D | ItemInfo.java | 119 public int spanX = 1; field in ItemInfo 172 spanX = info.spanX; in copyFrom() 218 .put(LauncherSettings.Favorites.SPANX, spanX) in writeToValues() 229 spanX = values.getAsInteger(LauncherSettings.Favorites.SPANX); in readFromValues() 259 + " span(" + spanX + "," + spanY + ")" in dumpProperties() 337 .setSpanX(spanX) in buildProto()
|
/aosp12/packages/apps/Launcher3/tools/ |
H A D | print_db.py | 116 spanX = cell["spanX"] 125 spanX, spanY, 126 (CELL_SIZE*spanX), (CELL_SIZE*spanY), 265 spanX = row["spanX"] 268 for k in range(cellX, cellX+spanX):
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
H A D | WidgetUtils.java | 55 item.spanX = info.minSpanX; in createWidgetInfo() 68 pendingInfo.spanX = item.spanX; in createWidgetInfo()
|
/aosp12/packages/apps/Launcher3/tests/src/com/android/launcher3/widget/ |
H A D | LauncherAppWidgetProviderInfoTest.java | 70 assertThat(info.spanX).isEqualTo(1); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() 83 assertThat(info.spanX).isEqualTo(2); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() 97 assertThat(info.spanX).isEqualTo(NUM_OF_COLS); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() 110 assertThat(info.spanX).isEqualTo(1); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
H A D | CustomAppWidgetProviderInfo.java | 51 spanX = parcel.readInt(); in CustomAppWidgetProviderInfo() 85 out.writeInt(spanX); 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 254 launcherAppWidgetProviderInfo.spanX = spanX; in createWidgetItem()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
H A D | AppEventProducer.java | 261 int spanX = info.getWidget().getSpanX(); in getContainer() local 263 return getWorkspaceContainerString(ci.getWorkspace(), spanX, spanY); in getContainer() 307 private static String getWorkspaceContainerString(WorkspaceContainer wc, int spanX, int spanY) { in getWorkspaceContainerString() argument 309 wc.getPageIndex(), wc.getGridX(), wc.getGridY(), spanX, spanY); in getWorkspaceContainerString()
|