/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 567 int spanY = mDragOutlines[i].cellVSpan; in visualizeGrid() local 572 mCellHeight * spanY + mBorderSpacing * (spanY - 1) - paddingY); in visualizeGrid() 828 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 829 cellToRect(cellX, cellY, spanX, spanY, mTempRect); in regionToCenterPoint() 1036 void visualizeDropLocation(int cellX, int cellY, int spanX, int spanY, in visualizeDropLocation() argument 1039 || mDragCellSpan[1] != spanY) { in visualizeDropLocation() 1043 mDragCellSpan[1] = spanY; in visualizeDropLocation() 1046 applyColorExtractionOnWidget(dragObject, mDragCell, spanX, spanY); in visualizeDropLocation() 1056 cell.cellVSpan = spanY; in visualizeDropLocation() 1070 int spanX, int spanY) { in applyColorExtractionOnWidget() argument [all …]
|
D | Workspace.java | 368 Rect r = estimateItemPosition(cl, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize() 1573 int spanY; in acceptDrop() local 1577 spanY = dragCellInfo.spanY; in acceptDrop() 1580 spanY = d.dragInfo.spanY; in acceptDrop() 1584 int minSpanY = spanY; in acceptDrop() 1607 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop() 1805 int spanY = mDragInfo != null ? mDragInfo.spanY : 1; in onDrop() local 1810 mDragViewVisualCenter[1], spanX, spanY, dropTargetLayout, mTargetCell); in onDrop() 1828 int minSpanY = item.spanY; in onDrop() 1842 .isRegionVacant(mTargetCell[0], mTargetCell[1], spanX, spanY); in onDrop() [all …]
|
D | WorkspaceLayoutManager.java | 49 addInScreen(child, info.container, info.screenId, x, y, info.spanX, info.spanY); in addInScreenFromBind() 58 info.spanX, info.spanY); in addInScreen() 73 int spanX, int spanY) { in addInScreen() argument 107 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen() 113 lp.cellVSpan = spanY; in addInScreen() 116 if (spanX < 0 && spanY < 0) { in addInScreen()
|
D | AppWidgetResizeFrame.java | 270 lp.cellVSpan = widgetInfo.spanY; in setupForWidget() 388 int spanY = lp.cellVSpan; in resizeWidgetIfNeeded() local 403 mTempRange1.set(cellY, spanY + cellY); in resizeWidgetIfNeeded() 407 spanY = mTempRange2.size(); in resizeWidgetIfNeeded() 424 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 426 if (mStateAnnouncer != null && (lp.cellHSpan != spanX || lp.cellVSpan != spanY) ) { in resizeWidgetIfNeeded() 428 mLauncher.getString(R.string.widget_resized, spanX, spanY)); in resizeWidgetIfNeeded() 434 lp.cellVSpan = spanY; in resizeWidgetIfNeeded() 439 WidgetSizes.updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/util/ |
D | WidgetSizes.java | 51 int spanX, int spanY) { in getWidgetPaddedSizes() argument 59 Size widgetSizePx = getWidgetSizePx(profile, spanX, spanY, cellSize); in getWidgetPaddedSizes() 71 public static Size getWidgetSizePx(DeviceProfile profile, int spanX, int spanY) { in getWidgetSizePx() argument 72 return getWidgetSizePx(profile, spanX, spanY, /* recycledCellSize= */ null); in getWidgetSizePx() 79 DeviceProfile profile, int spanX, int spanY) { in getWidgetPaddedSizePx() argument 80 Size size = getWidgetSizePx(profile, spanX, spanY); in getWidgetPaddedSizePx() 100 widgetItem.spanY); in getWidgetItemSizePx() 103 private static Size getWidgetSizePx(DeviceProfile profile, int spanX, int spanY, in getWidgetSizePx() argument 106 final int vBorderSpacing = (spanY - 1) * profile.cellLayoutBorderSpacingPx; in getWidgetSizePx() 112 ((spanY * recycledCellSize.y) + vBorderSpacing)); in getWidgetSizePx() [all …]
|
D | WidgetsTableUtils.java | 42 if (item.spanY == otherItem.spanY) return 0; 43 return item.spanY > otherItem.spanY ? 1 : -1;
|
/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/widget/ |
D | LauncherAppWidgetProviderInfo.java | 45 public int spanY; field in LauncherAppWidgetProviderInfo 106 int spanY = 0; in initSpans() local 145 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()
|
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 | 55 spanY = i.spanY; in PendingAddWidgetInfo() 66 return WidgetSizes.getWidgetSizeOptions(context, componentName, spanX, spanY); in getDefaultSizeOptions()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 241 screenId, coordinates, info.spanX, info.spanY); in performAction() 301 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 302 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions() 320 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 329 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions() 347 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction() 348 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 358 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 363 info.spanY ++; in performResizeAction() 366 info.spanY --; in performResizeAction() [all …]
|
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()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
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()
|
D | AddWorkspaceItemsTask.java | 107 addedWorkspaceScreensFinal, item.spanX, item.spanY); in execute() 271 IntArray workspaceScreens, IntArray addedWorkspaceScreensFinal, int spanX, int spanY) { in findSpaceForItem() argument 299 app, screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem() 307 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem() 327 app, screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem() 336 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument 345 return occupied.findVacantCell(xy, spanX, spanY); in findNextAvailableIconSpaceInScreen()
|
D | GridSizeMigrationTask.java | 389 || (item.cellY <= row && (item.spanY + item.cellY) > row)) { 479 if (me.spanX > 1 || me.spanY > 1) { 484 int myH = me.spanY; 520 me.spanY--; 525 me.spanY++; 532 me.spanY--; 538 me.spanY++; 710 entry.spanY = c.getInt(indexSpanY); 729 * entry.spanX * entry.spanY); 740 entry.minSpanY = spans.y > 0 ? spans.y : entry.spanY; [all …]
|
D | ModelWriter.java | 131 modelItem.spanY == item.spanY) { in checkItemInfoLocked() 195 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 198 item.spanY = spanY; in modifyItemInDatabase() 207 .put(Favorites.SPANY, item.spanY) in modifyItemInDatabase()
|
D | LoaderCursor.java | 452 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement() 465 int spanY = FeatureFlags.EXPANDED_SMARTSPACE.get() ? 2 : 1; in checkItemPlacement() local 466 screen.markCells(0, 0, countX + 1, spanY, FeatureFlags.QSB_ON_FIRST_SCREEN); in checkItemPlacement() 473 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement() 479 + item.cellX + "," + item.cellX + "," + item.spanX + "," + item.spanY in checkItemPlacement()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 122 public int spanY = 1; field in ItemInfo 170 spanY = info.spanY; in copyFrom() 216 .put(LauncherSettings.Favorites.SPANY, spanY) in writeToValues() 227 spanY = values.getAsInteger(LauncherSettings.Favorites.SPANY); in readFromValues() 256 + " span(" + spanX + "," + spanY + ")" in dumpProperties() 335 .setSpanY(spanY)); in buildProto()
|
/packages/apps/Launcher3/tools/ |
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/tests/src_common/com/android/launcher3/common/ |
D | WidgetUtils.java | 50 item.spanY = info.minSpanY; in createWidgetInfo() 63 pendingInfo.spanY = item.spanY; in createWidgetInfo()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 68 assertThat(info.spanY).isEqualTo(1); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() 81 assertThat(info.spanY).isEqualTo(2); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() 95 assertThat(info.spanY).isEqualTo(1); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() 108 assertThat(info.spanY).isEqualTo(NUM_OF_ROWS); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | AppEventProducer.java | 248 int spanY = info.getWidget().getSpanY(); in getContainer() local 249 return getWorkspaceContainerString(ci.getWorkspace(), spanX, spanY); in getContainer() 286 private static String getWorkspaceContainerString(WorkspaceContainer wc, int spanX, int spanY) { in getWorkspaceContainerString() argument 288 wc.getPageIndex(), wc.getGridX(), wc.getGridY(), spanX, spanY); in getWorkspaceContainerString()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/picker/model/ |
D | WidgetsListContentEntryTest.java | 246 private WidgetItem createWidgetItem(ComponentName componentName, int spanX, int spanY) { in createWidgetItem() argument 257 launcherAppWidgetProviderInfo.spanY = spanY; in createWidgetItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomAppWidgetProviderInfo.java | 52 spanY = parcel.readInt(); in CustomAppWidgetProviderInfo() 86 out.writeInt(spanY); in writeToParcel()
|