Home
last modified time | relevance | path

Searched refs:spanY (Results 1 – 25 of 47) sorted by relevance

12

/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java742 cellInfo.spanY = lp.cellVSpan; in setTagToCellInfoForPoint()
759 cellInfo.spanY = 1; in setTagToCellInfoForPoint()
792 cellInfo.spanY = 0; in clearTagCellInfo()
868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
874 (spanY * mCellHeight + (spanY - 1) * mHeightGap) / 2; in regionToCenterPoint()
884 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
890 top + (spanY * mCellHeight + (spanY - 1) * mHeightGap)); in regionToRect()
1188 void estimateDropCell(int originX, int originY, int spanX, int spanY, int[] result) { in estimateDropCell() argument
1202 int bottomOverhang = result[1] + spanY - countY; in estimateDropCell()
1210 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) { in visualizeDropLocation() argument
[all …]
DWorkspace.java493 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY) { in addInScreen() argument
494 addInScreen(child, container, screen, x, y, spanX, spanY, false); in addInScreen()
509 void addInScreen(View child, long container, int screen, int x, int y, int spanX, int spanY, in addInScreen() argument
550 lp = new CellLayout.LayoutParams(x, y, spanX, spanY); in addInScreen()
556 lp.cellVSpan = spanY; in addInScreen()
559 if (spanX < 0 && spanY < 0) { in addInScreen()
564 int childId = LauncherModel.getCellLayoutChildId(container, screen, x, y, spanX, spanY); in addInScreen()
1533 int[] size = estimateItemSize(info.spanX, info.spanY, info, false);
1986 int spanY = 1;
1990 spanY = dragCellInfo.spanY;
[all …]
DAppWidgetResizeFrame.java257 int spanY = lp.cellVSpan; in resizeWidgetIfNeeded() local
288 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
305 spanY += vSpanInc; in resizeWidgetIfNeeded()
324 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
329 lp.cellVSpan = spanY; in resizeWidgetIfNeeded()
333 updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded()
340 int spanX, int spanY) { in updateWidgetSizeRanges() argument
342 getWidgetSizeRanges(launcher, spanX, spanY, mTmpRect); in updateWidgetSizeRanges()
347 static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { in getWidgetSizeRanges() argument
361 int landHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
[all …]
DItemInfo.java86 int spanY = 1; field in ItemInfo
129 spanY = info.spanY; in ItemInfo()
174 values.put(LauncherSettings.Favorites.SPANY, spanY); in onAddToDatabase()
221 + " spanY=" + spanY + " dropPos=" + dropPos + " user=" + user in toString()
DAppsCustomizePagedView.java565 AppWidgetResizeFrame.getWidgetSizeRanges(mLauncher, info.spanX, info.spanY, mTmpRect); in getDefaultOptionsForWidget()
620 info.spanY, info, false); in preloadWidget()
718 int spanY = createItemInfo.spanY; in beginDraggingWidget() local
719 int[] size = mLauncher.getWorkspace().estimateItemSize(spanX, spanY, in beginDraggingWidget()
731 spanY, maxWidth, maxHeight, null, previewSizeBeforeScale); in beginDraggingWidget()
760 createItemInfo.spanX = createItemInfo.spanY = 1; in beginDraggingWidget()
885 !layout.findCellForSpan(null, itemInfo.spanX, itemInfo.spanY); in onDropCompleted()
1200 createItemInfo.spanY = spanXY[1]; in syncWidgetPageItems()
DInstallShortcutReceiver.java343 int cellX, cellY, spanX, spanY; in findEmptyCell() local
351 spanY = item.spanY; in findEmptyCell()
353 for (int y = cellY; 0 <= y && y < cellY + spanY && y < yCount; y++) { in findEmptyCell()
DLauncherModel.java297 modelShortcut.spanY == shortcut.spanY && in checkItemInfoLocked()
455 final int screen, final int cellX, final int cellY, final int spanX, final int spanY) { in modifyItemInDatabase() argument
464 item.spanY = spanY; in modifyItemInDatabase()
480 values.put(LauncherSettings.Favorites.SPANY, item.spanY); in modifyItemInDatabase()
543 item.spanY = c.getInt(spanYIndex); in getItemsInLocalCoordinates()
681 long container, int screen, int localCellX, int localCellY, int spanX, int spanY) { in getCellLayoutChildId() argument
1246 for (int y = item.cellY; y < (item.cellY+item.spanY); y++) { in checkItemPlacement()
1258 for (int y = item.cellY; y < (item.cellY+item.spanY); y++) { in checkItemPlacement()
1476 appWidgetInfo.spanY = c.getInt(spanYIndex); in loadWorkspace()
DLauncherAppWidgetInfo.java62 spanY = -1; in LauncherAppWidgetInfo()
85 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in notifyWidgetSizeChanged()
DPendingAddItemInfo.java79 spanY = copy.spanY; in PendingAddWidgetInfo()
DFolder.java512 if (mContent.findCellForSpan(emptyCell, item.spanX, item.spanY)) { in findAndSetEmptyCells()
547 new CellLayout.LayoutParams(item.cellX, item.cellY, item.spanX, item.spanY); in createAndAddShortcut()
970 mInfo.cellX, mInfo.cellY, mInfo.spanX, mInfo.spanY); in replaceFolderWithFinalItem()
1004 item.spanY = 1; in onDrop()
/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java758 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
764 (spanY * mCellHeight + (spanY - 1) * mHeightGap) / 2; in regionToCenterPoint()
774 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
780 top + (spanY * mCellHeight + (spanY - 1) * mHeightGap)); in regionToRect()
1022 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) { in visualizeDropLocation() argument
1067 top += ((mCellHeight * spanY) + ((spanY - 1) * mHeightGap) in visualizeDropLocation()
1077 cellToRect(cellX, cellY, spanX, spanY, r); in visualizeDropLocation()
1104 int[] findNearestVacantArea(int pixelX, int pixelY, int spanX, int spanY, int[] result) { in findNearestVacantArea() argument
1105 return findNearestVacantArea(pixelX, pixelY, spanX, spanY, spanX, spanY, result, null); in findNearestVacantArea()
1124 int spanY, int[] result, int[] resultSpan) { in findNearestVacantArea() argument
[all …]
DWorkspace.java361 Rect r = estimateItemPosition(cl, itemInfo, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize()
638 int spanY = customScreen.getCountY(); in addToCustomContentPage() local
639 CellLayout.LayoutParams lp = new CellLayout.LayoutParams(0, 0, spanX, spanY); in addToCustomContentPage()
933 int x, int y, int spanX, int spanY) { in addInScreen() argument
934 addInScreen(child, container, screenId, x, y, spanX, spanY, false, false); in addInScreen()
940 int spanX, int spanY) { in addInScreenFromBind() argument
941 addInScreen(child, container, screenId, x, y, spanX, spanY, false, true); in addInScreenFromBind()
945 void addInScreen(View child, long container, long screenId, int x, int y, int spanX, int spanY, in addInScreen() argument
947 addInScreen(child, container, screenId, x, y, spanX, spanY, insert, false); in addInScreen()
965 void addInScreen(View child, long container, long screenId, int x, int y, int spanX, int spanY, in addInScreen() argument
[all …]
DAppWidgetResizeFrame.java254 int spanY = lp.cellVSpan; in resizeWidgetIfNeeded() local
285 vSpanInc = Math.min(countY - (cellY + spanY), vSpanInc); in resizeWidgetIfNeeded()
302 spanY += vSpanInc; in resizeWidgetIfNeeded()
321 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
326 lp.cellVSpan = spanY; in resizeWidgetIfNeeded()
330 updateWidgetSizeRanges(mWidgetView, mLauncher, spanX, spanY); in resizeWidgetIfNeeded()
337 int spanX, int spanY) { in updateWidgetSizeRanges() argument
338 getWidgetSizeRanges(launcher, spanX, spanY, sTmpRect); in updateWidgetSizeRanges()
343 public static Rect getWidgetSizeRanges(Launcher launcher, int spanX, int spanY, Rect rect) { in getWidgetSizeRanges() argument
357 int landHeight = (int) ((spanY * cellHeight + (spanY - 1) * heightGap) / density); in getWidgetSizeRanges()
[all …]
DItemInfo.java85 public int spanY = 1; field in ItemInfo
139 spanY = info.spanY; in copyFrom()
166 values.put(LauncherSettings.Favorites.SPANY, spanY); in onAddToDatabase()
197 + " spanY=" + spanY + " dropPos=" + Arrays.toString(dropPos) in toString()
DLauncherModel.java407 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument
416 int bottom = r.cellY + r.spanY; in findNextAvailableIconSpaceInScreen()
424 return Utilities.findVacantCell(xy, spanX, spanY, xCount, yCount, occupied); in findNextAvailableIconSpaceInScreen()
435 int spanX, int spanY) { in findSpaceForItem() argument
464 screenItems.get(screenId), cordinates, spanX, spanY); in findSpaceForItem()
472 screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem()
490 screenItems.get(screenId), cordinates, spanX, spanY)) { in findSpaceForItem()
651 modelShortcut.spanY == shortcut.spanY && in checkItemInfoLocked()
845 … final long screenId, final int cellX, final int cellY, final int spanX, final int spanY) { in modifyItemInDatabase() argument
850 item.spanY = spanY; in modifyItemInDatabase()
[all …]
DLauncher.java1330 mPendingAddInfo.spanY = savedState.getInt(RUNTIME_STATE_PENDING_ADD_SPAN_Y); in restoreState()
1575 launcherInfo.spanY = info.spanY; in completeAddAppWidget()
1597 info.cellY, launcherInfo.spanX, launcherInfo.spanY, isWorkspaceLocked()); in completeAddAppWidget()
1967 outState.putInt(RUNTIME_STATE_PENDING_ADD_SPAN_Y, mPendingAddInfo.spanY); in onSaveInstanceState()
2220 mPendingAddInfo.spanX = mPendingAddInfo.spanY = -1; in resetAddInfo()
2264 int[] cell, int spanX, int spanY) { in addPendingItem() argument
2270 span[1] = spanY; in addPendingItem()
2328 mPendingAddInfo.spanY = span[1]; in addAppWidgetFromDrop()
3904 pendingInfo.spanY = item.spanY; in bindAppWidget()
3967 item.cellY, item.spanX, item.spanY, false); in bindAppWidget()
DWidgetPreviewLoader.java356 final int spanY = info.spanY; in generateWidgetPreview() local
370 previewHeight = tileBitmap.getHeight() * spanY; in generateWidgetPreview()
418 for (int j = 0; j < spanY; j++, ty += tileH) { in generateWidgetPreview()
DLauncherAppWidgetInfo.java102 spanY = -1; in LauncherAppWidgetInfo()
134 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in notifyWidgetSizeChanged()
DLauncherAppWidgetProviderInfo.java26 public int spanY; field in LauncherAppWidgetProviderInfo
87 spanY = Math.max(1, (int) Math.ceil( in initSpans()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java170 screenId, coordinates, info.spanX, info.spanY); in performAction()
233 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions()
234 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions()
244 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions()
249 if (info.spanY > info.minSpanY && info.spanY > 1) { in getSupportedResizeActions()
263 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction()
264 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction()
274 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
279 info.spanY ++; in performResizeAction()
282 info.spanY --; in performResizeAction()
[all …]
DWorkspaceAccessibilityHelper.java64 int spanY = dragInfo.info.spanY; in intersectsValidDropTarget() local
67 for (int n = 0; n < spanY; n++) { in intersectsValidDropTarget()
77 for (int j = y0; j < y0 + spanY; j++) { in intersectsValidDropTarget()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DMigrateFromRestoreTask.java309 || (item.cellY <= row && (item.spanY + item.cellY) > row)) {
331 for (int j = item.cellY; j < (item.cellY + item.spanY); j++) {
414 if (me.spanX > 1 || me.spanY > 1) {
419 int myH = me.spanY;
455 me.spanY --;
460 me.spanY ++;
467 me.spanY --;
473 me.spanY ++;
579 entry.spanY = c.getInt(indexSpanY); in loadEntries()
597 * entry.spanX * entry.spanY); in loadEntries()
[all …]
/packages/apps/Launcher2/
Dprint_db.py84 spanY = cell["spanY"]
92 spanX, spanY,
93 (CELL_SIZE*spanX), (CELL_SIZE*spanY),
203 spanY = row["spanY"]
204 for j in range(cellY, cellY+spanY):
/packages/apps/Launcher3/
Dprint_db.py115 spanY = cell["spanY"]
123 spanX, spanY,
124 (CELL_SIZE*spanX), (CELL_SIZE*spanY),
264 spanY = row["spanY"]
265 for j in range(cellY, cellY+spanY):
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DPendingAddWidgetInfo.java53 spanY = i.spanY; in PendingAddWidgetInfo()

12