Home
last modified time | relevance | path

Searched refs:minSpanY (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Launcher3/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfo.java57 public int minSpanY; field in LauncherAppWidgetProviderInfo
102 int minSpanY = 0; in initSpans() local
126 minSpanY = Math.max(minSpanY, in initSpans()
152 maxSpanY = Math.max(maxSpanY, minSpanY); in initSpans()
157 && targetCellHeight >= minSpanY && targetCellHeight <= maxSpanY) { in initSpans()
167 this.minSpanY = Math.min(spanY, minSpanY); in initSpans()
171 && Math.min(spanY, minSpanY) <= idp.numRows; in initSpans()
204 (resizeMode & RESIZE_VERTICAL) != 0 ? minSpanY : -1); in getMinSpans()
DPendingAddWidgetInfo.java57 minSpanY = i.minSpanY; in PendingAddWidgetInfo()
/packages/apps/Launcher3/tests/src_common/com/android/launcher3/common/
DWidgetUtils.java50 item.spanY = info.minSpanY; in createWidgetInfo()
52 item.minSpanY = info.minSpanY; in createWidgetInfo()
65 pendingInfo.minSpanY = item.minSpanY; in createWidgetInfo()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/widget/
DLauncherAppWidgetProviderInfoTest.java119 assertThat(info.minSpanY).isEqualTo(1); in initSpans_minResizeWidthUnspecified_shouldInitializeMinSpansToOne()
134 assertThat(info.minSpanY).isEqualTo(1); in initSpans_minResizeWidthSmallerThanCellWidth_shouldInitializeMinSpansToOne()
149 assertThat(info.minSpanY).isEqualTo(2); in initSpans_minResizeWidthLargerThanCellWidth_shouldInitializeMinSpans()
172 assertThat(info.minSpanY).isEqualTo(2); in initSpans_minResizeWidthWithCellSpacingAndWidgetInset_shouldInitializeMinSpans()
194 assertThat(info.minSpanY).isEqualTo(3); in initSpans_minResizeWidthWithCellSpacingAndNoWidgetInset_shouldInitializeMinSpans()
210 assertThat(info.minSpanY).isEqualTo(1); in initSpans_minResizeWidthHeightLargerThanMinWidth_shouldUseMinWidthHeightAsMinSpans()
/packages/apps/Launcher3/src/com/android/launcher3/
DWorkspace.java1584 int minSpanY = spanY; in acceptDrop() local
1587 minSpanY = ((PendingAddWidgetInfo) d.dragInfo).minSpanY; in acceptDrop()
1591 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, dropTargetLayout, in acceptDrop()
1607 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, in acceptDrop()
1828 int minSpanY = item.spanY; in onDrop() local
1829 if (item.minSpanX > 0 && item.minSpanY > 0) { in onDrop()
1831 minSpanY = item.minSpanY; in onDrop()
1848 (int) mDragViewVisualCenter[1], minSpanX, minSpanY, spanX, spanY, cell, in onDrop()
2219 int minSpanY = item.spanY;
2220 if (item.minSpanX > 0 && item.minSpanY > 0) {
[all …]
DCellLayout.java1121 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()
1182 for (int y = 0; y < countY - (minSpanY - 1); y++) { in findNearestArea()
1190 for (int j = 0; j < minSpanY; j++) { in findNearestArea()
1197 ySize = minSpanY; 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 …]
DLauncher.java1340 launcherInfo.minSpanY = itemInfo.minSpanY; in completeAddAppWidget()
2430 pendingInfo.minSpanY = item.minSpanY; in inflateAppWidget()
2487 item.minSpanY = appWidgetInfo.minSpanY; in inflateAppWidget()
DAppWidgetResizeFrame.java214 mMinVSpan = info.minSpanY; in setupForWidget()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DItemInfo.java132 public int minSpanY = 1; field in ItemInfo
172 minSpanY = info.minSpanY; in copyFrom()
257 + " minSpan(" + minSpanX + "," + minSpanY + ")" in dumpProperties()
/packages/apps/Launcher3/src/com/android/launcher3/widget/custom/
DCustomAppWidgetProviderInfo.java54 minSpanY = parcel.readInt(); in CustomAppWidgetProviderInfo()
88 out.writeInt(minSpanY); in writeToParcel()
DCustomWidgetManager.java166 info.minSpanY = plugin.getMinSpanY(); in newInfo()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DGridSizeMigrationTask.java519 if (myH > me.minSpanY && occupied.isRegionVacant(x, y, myW, myH - 1)) {
529 if (myH > me.minSpanY && myW > me.minSpanX &&
740 entry.minSpanY = spans.y > 0 ? spans.y : entry.spanY;
743 entry.minSpanX = entry.minSpanY = 2;
746 if (entry.minSpanX > mTrgX || entry.minSpanY > mTrgY) {
834 entry.minSpanY = minSpanY;
DGridSizeMigrationTaskV2.java392 if (entry.minSpanX > mTrgX || entry.minSpanY > mTrgY) { in find()
414 entry.minSpanY); in findPlacement()
417 entry.spanY = entry.minSpanY; in findPlacement()
641 entry.minSpanY = spans.y > 0 ? spans.y : entry.spanY; in loadWorkspaceEntries()
644 entry.minSpanX = entry.minSpanY = 2; in loadWorkspaceEntries()
DItemInstallQueue.java319 widgetInfo.minSpanY = info.minSpanY; in getItemInfo()
DLoaderTask.java762 || appWidgetInfo.spanY < widgetProviderInfo.minSpanY)) { in loadWorkspace()
767 + widgetProviderInfo.minSpanY); in loadWorkspace()
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DViewInflationDuringSwipeUp.java193 info.minSpanY = 2; in executeSwipeUpTestWithWidget()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/widget/
DBindWidgetTest.java309 item.minSpanY = 2; in getInvalidWidgetInfo()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DAddItemActivity.java252 if (widgetInfo.minSpanX > mIdp.numColumns || widgetInfo.minSpanY > mIdp.numRows) { in setupWidget()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java329 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions()