/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfo.java | 51 public int minSpanX; field in LauncherAppWidgetProviderInfo 101 int minSpanX = 0; in initSpans() local 123 minSpanX = Math.max(minSpanX, in initSpans() 151 maxSpanX = Math.max(maxSpanX, minSpanX); in initSpans() 156 if (targetCellWidth >= minSpanX && targetCellWidth <= maxSpanX in initSpans() 166 this.minSpanX = Math.min(spanX, minSpanX); in initSpans() 170 this.mIsMinSizeFulfilled = Math.min(spanX, minSpanX) <= idp.numColumns in initSpans() 203 return new Point((resizeMode & RESIZE_HORIZONTAL) != 0 ? minSpanX : -1, in getMinSpans()
|
D | PendingAddWidgetInfo.java | 56 minSpanX = i.minSpanX; in PendingAddWidgetInfo()
|
/packages/apps/Launcher3/tests/src_common/com/android/launcher3/common/ |
D | WidgetUtils.java | 49 item.spanX = info.minSpanX; in createWidgetInfo() 51 item.minSpanX = info.minSpanX; in createWidgetInfo() 64 pendingInfo.minSpanX = item.minSpanX; in createWidgetInfo()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/ |
D | LauncherAppWidgetProviderInfoTest.java | 118 assertThat(info.minSpanX).isEqualTo(1); in initSpans_minResizeWidthUnspecified_shouldInitializeMinSpansToOne() 133 assertThat(info.minSpanX).isEqualTo(1); in initSpans_minResizeWidthSmallerThanCellWidth_shouldInitializeMinSpansToOne() 148 assertThat(info.minSpanX).isEqualTo(2); in initSpans_minResizeWidthLargerThanCellWidth_shouldInitializeMinSpans() 171 assertThat(info.minSpanX).isEqualTo(2); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans() 193 assertThat(info.minSpanX).isEqualTo(3); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans() 209 assertThat(info.minSpanX).isEqualTo(1); in initSpans_minResizeWidthHeightLargerThanMinWidth_shouldUseMinWidthHeightAsMinSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Workspace.java | 1583 int minSpanX = spanX; in acceptDrop() local 1586 minSpanX = ((PendingAddWidgetInfo) d.dragInfo).minSpanX; in acceptDrop() 1591 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, dropTargetLayout, in acceptDrop() 1607 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop() 1827 int minSpanX = item.spanX; in onDrop() local 1829 if (item.minSpanX > 0 && item.minSpanY > 0) { in onDrop() 1830 minSpanX = item.minSpanX; in onDrop() 1848 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, cell, in onDrop() 2218 int minSpanX = item.spanX; 2220 if (item.minSpanX > 0 && item.minSpanY > 0) { [all …]
|
D | CellLayout.java | 1121 int[] findNearestVacantArea(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, in findNearestVacantArea() argument 1123 return findNearestArea(pixelX, pixelY, minSpanX, minSpanY, spanX, spanY, true, in findNearestVacantArea() 1158 private int[] findNearestArea(int pixelX, int pixelY, int minSpanX, int minSpanY, int spanX, in findNearestArea() argument 1177 if (minSpanX <= 0 || minSpanY <= 0 || spanX <= 0 || spanY <= 0 || in findNearestArea() 1178 spanX < minSpanX || spanY < minSpanY) { in findNearestArea() 1184 for (int x = 0; x < countX - (minSpanX - 1); x++) { in findNearestArea() 1189 for (int i = 0; i < minSpanX; i++) { in findNearestArea() 1196 xSize = minSpanX; in findNearestArea() 1863 … private ItemConfiguration findReorderSolution(int pixelX, int pixelY, int minSpanX, int minSpanY, in findReorderSolution() argument 1886 if (spanX > minSpanX && (minSpanY == spanY || decX)) { in findReorderSolution() [all …]
|
D | Launcher.java | 1339 launcherInfo.minSpanX = itemInfo.minSpanX; in completeAddAppWidget() 2429 pendingInfo.minSpanX = item.minSpanX; in inflateAppWidget() 2486 item.minSpanX = appWidgetInfo.minSpanX; in inflateAppWidget()
|
D | AppWidgetResizeFrame.java | 213 mMinHSpan = info.minSpanX; in setupForWidget()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/data/ |
D | ItemInfo.java | 127 public int minSpanX = 1; field in ItemInfo 171 minSpanX = info.minSpanX; in copyFrom() 257 + " minSpan(" + minSpanX + "," + minSpanY + ")" in dumpProperties()
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/ |
D | CustomAppWidgetProviderInfo.java | 53 minSpanX = parcel.readInt(); in CustomAppWidgetProviderInfo() 87 out.writeInt(minSpanX); in writeToParcel()
|
D | CustomWidgetManager.java | 165 info.minSpanX = plugin.getMinSpanX(); in newInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | GridSizeMigrationTask.java | 509 if (myW > me.minSpanX && occupied.isRegionVacant(x, y, myW - 1, myH)) { 529 if (myH > me.minSpanY && myW > me.minSpanX && 739 entry.minSpanX = spans.x > 0 ? spans.x : entry.spanX; 743 entry.minSpanX = entry.minSpanY = 2; 746 if (entry.minSpanX > mTrgX || entry.minSpanY > mTrgY) { 833 entry.minSpanX = minSpanX;
|
D | GridSizeMigrationTaskV2.java | 392 if (entry.minSpanX > mTrgX || entry.minSpanY > mTrgY) { in find() 413 boolean minFits = mOccupied.isRegionVacant(x, y, entry.minSpanX, in findPlacement() 416 entry.spanX = entry.minSpanX; in findPlacement() 640 entry.minSpanX = spans.x > 0 ? spans.x : entry.spanX; in loadWorkspaceEntries() 644 entry.minSpanX = entry.minSpanY = 2; in loadWorkspaceEntries()
|
D | ItemInstallQueue.java | 318 widgetInfo.minSpanX = info.minSpanX; in getItemInfo()
|
D | LoaderTask.java | 761 && (appWidgetInfo.spanX < widgetProviderInfo.minSpanX in loadWorkspace() 766 + widgetProviderInfo.minSpanX + "x" in loadWorkspace()
|
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/ |
D | ViewInflationDuringSwipeUp.java | 192 info.minSpanX = 2; in executeSwipeUpTestWithWidget()
|
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/ |
D | BindWidgetTest.java | 308 item.minSpanX = 2; in getInvalidWidgetInfo()
|
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/ |
D | AddItemActivity.java | 252 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 310 if (info.spanX > info.minSpanX && info.spanX > 1) { in getSupportedResizeActions()
|