Home
last modified time | relevance | path

Searched refs:spanX (Results 1 – 25 of 48) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java566 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 …]
DWorkspace.java368 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 …]
DWorkspaceLayoutManager.java49 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()
DAppWidgetResizeFrame.java269 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/
DWidgetSizes.java51 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 …]
DWidgetsTableUtils.java41 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/
DGridOccupancy.java32 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()
DCellAndSpan.java21 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/
DLauncherAppWidgetProviderInfo.java39 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()
DPendingAddWidgetInfo.java54 spanX = i.spanX; in PendingAddWidgetInfo()
66 return WidgetSizes.getWidgetSizeOptions(context, componentName, spanX, spanY); in getDefaultSizeOptions()
DWidgetItemComparator.java51 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/
DLauncherAccessibilityDelegate.java241 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 …]
DWorkspaceAccessibilityHelper.java64 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/
DWidgetItem.java28 public final int spanX, spanY; field in WidgetItem
38 spanX = Math.min(info.spanX, idp.numColumns); in WidgetItem()
48 spanX = spanY = 1; in WidgetItem()
DAddWorkspaceItemsTask.java107 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()
DGridSizeMigrationTask.java388 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 …]
DModelWriter.java130 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/
DItemInfo.java117 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/
Dprint_db.py116 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/
DWidgetUtils.java49 item.spanX = info.minSpanX; in createWidgetInfo()
62 pendingInfo.spanX = item.spanX; in createWidgetInfo()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfoTest.java67 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/
DAppEventProducer.java247 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/
DWidgetsListContentEntryTest.java246 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/
DCustomAppWidgetProviderInfo.java51 spanX = parcel.readInt(); in CustomAppWidgetProviderInfo()
85 out.writeInt(spanX); in writeToParcel()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/
DLoaderCursorTest.java212 private ItemInfo newItemInfo(int cellX, int cellY, int spanX, int spanY, in newItemInfo() argument
217 info.spanX = spanX; in newItemInfo()

12