/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 566 int spanX = mDragOutlines[i].cellHSpan; in visualizeGrid() local 571 mCellWidth * spanX + mBorderSpacing * (spanX - 1) - paddingX, 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 1038 if (mDragCell[0] != cellX || mDragCell[1] != cellY || mDragCellSpan[0] != spanX in visualizeDropLocation() 1042 mDragCellSpan[0] = spanX; in visualizeDropLocation() 1046 applyColorExtractionOnWidget(dragObject, mDragCell, spanX, spanY); in visualizeDropLocation() 1055 cell.cellHSpan = spanX; 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() 1572 int spanX; in acceptDrop() local 1576 spanX = dragCellInfo.spanX; in acceptDrop() 1579 spanX = d.dragInfo.spanX; in acceptDrop() 1583 int minSpanX = spanX; in acceptDrop() 1607 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop() 1804 int spanX = mDragInfo != null ? mDragInfo.spanX : 1; in onDrop() local 1810 mDragViewVisualCenter[1], spanX, spanY, dropTargetLayout, mTargetCell); in onDrop() 1827 int minSpanX = item.spanX; 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() 112 lp.cellHSpan = spanX; in addInScreen() 116 if (spanX < 0 && spanY < 0) { in addInScreen()
|
D | AppWidgetResizeFrame.java | 269 lp.cellHSpan = widgetInfo.spanX; in setupForWidget() 387 int spanX = lp.cellHSpan; in resizeWidgetIfNeeded() local 394 mTempRange1.set(cellX, spanX + cellX); in resizeWidgetIfNeeded() 398 spanX = 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() 433 lp.cellHSpan = spanX; 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() 99 return getWidgetPaddedSizePx(context, widgetItem.componentName, profile, widgetItem.spanX, in getWidgetItemSizePx() 103 private static Size getWidgetSizePx(DeviceProfile profile, int spanX, int spanY, in getWidgetSizePx() argument 105 final int hBorderSpacing = (spanX - 1) * profile.cellLayoutBorderSpacingPx; in getWidgetSizePx() 111 return new Size(((spanX * recycledCellSize.x) + hBorderSpacing), in getWidgetSizePx() [all …]
|
D | WidgetsTableUtils.java | 41 if (item.spanX == otherItem.spanX) { 45 return item.spanX > otherItem.spanX ? 1 : -1; 79 int totalHorizontalSpan = widgetItemsAtRow.stream().map(item -> item.spanX) in groupWidgetItemsIntoTable() 81 int totalHorizontalSpanAfterAddingWidget = widgetItem.spanX + totalHorizontalSpan; in groupWidgetItemsIntoTable()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
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()
|
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()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfo.java | 39 public int spanX; field in LauncherAppWidgetProviderInfo 105 int spanX = 0; in initSpans() local 143 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()
|
D | PendingAddWidgetInfo.java | 54 spanX = i.spanX; in PendingAddWidgetInfo() 66 return WidgetSizes.getWidgetSizeOptions(context, componentName, spanX, spanY); in getDefaultSizeOptions()
|
D | WidgetItemComparator.java | 51 int thisArea = a.spanX * a.spanY; in compare() 52 int otherArea = b.spanX * b.spanY; in compare()
|
/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() 310 if (info.spanX > info.minSpanX && info.spanX > 1) { in getSupportedResizeActions() 320 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 321 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 348 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 353 info.spanX ++; in performResizeAction() 356 info.spanX --; in performResizeAction() 358 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 371 info.spanX, info.spanY); in performResizeAction() [all …]
|
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()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
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()
|
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 | 388 if ((item.cellX <= col && (item.spanX + item.cellX) > col) 479 if (me.spanX > 1 || me.spanY > 1) { 483 int myW = me.spanX; 510 me.spanX--; 515 me.spanX++; 531 me.spanX--; 537 me.spanX++; 709 entry.spanX = c.getInt(indexSpanX); 729 * entry.spanX * entry.spanY); 739 entry.minSpanX = spans.x > 0 ? spans.x : entry.spanX; [all …]
|
D | ModelWriter.java | 130 modelItem.spanX == item.spanX && in checkItemInfoLocked() 195 int container, int screenId, int cellX, int cellY, int spanX, int spanY) { in modifyItemInDatabase() argument 197 item.spanX = spanX; in modifyItemInDatabase() 206 .put(Favorites.SPANX, item.spanX) in modifyItemInDatabase()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 117 public int spanX = 1; field in ItemInfo 169 spanX = info.spanX; in copyFrom() 215 .put(LauncherSettings.Favorites.SPANX, spanX) in writeToValues() 226 spanX = values.getAsInteger(LauncherSettings.Favorites.SPANX); in readFromValues() 256 + " span(" + spanX + "," + spanY + ")" in dumpProperties() 334 .setSpanX(spanX) in buildProto()
|
/packages/apps/Launcher3/tools/ |
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):
|
/packages/apps/Launcher3/tests/src_common/com/android/launcher3/common/ |
D | WidgetUtils.java | 49 item.spanX = info.minSpanX; in createWidgetInfo() 62 pendingInfo.spanX = item.spanX; in createWidgetInfo()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 67 assertThat(info.spanX).isEqualTo(1); in initSpans_minWidthSmallerThanCellWidth_shouldInitializeSpansToOne() 80 assertThat(info.spanX).isEqualTo(2); in initSpans_minWidthLargerThanCellWidth_shouldInitializeSpans() 94 assertThat(info.spanX).isEqualTo(NUM_OF_COLS); in initSpans_minWidthLargerThanGridColumns_shouldInitializeSpansToAtMostTheGridColumns() 107 assertThat(info.spanX).isEqualTo(1); in initSpans_minHeightLargerThanGridRows_shouldInitializeSpansToAtMostTheGridRows()
|
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/ |
D | AppEventProducer.java | 247 int spanX = info.getWidget().getSpanX(); 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 256 launcherAppWidgetProviderInfo.spanX = spanX; in createWidgetItem()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomAppWidgetProviderInfo.java | 51 spanX = parcel.readInt(); in CustomAppWidgetProviderInfo() 85 out.writeInt(spanX); in writeToParcel()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | LoaderCursorTest.java | 212 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument 217 info.spanX = spanX; in newItemInfo()
|