/packages/apps/Launcher2/src/com/android/launcher2/ |
D | CellLayout.java | 741 cellInfo.spanX = lp.cellHSpan; in setTagToCellInfoForPoint() 758 cellInfo.spanX = 1; in setTagToCellInfoForPoint() 791 cellInfo.spanX = 0; in clearTagCellInfo() 868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 872 (spanX * mCellWidth + (spanX - 1) * mWidthGap) / 2; in regionToCenterPoint() 884 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 889 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect() 1188 void estimateDropCell(int originX, int originY, int spanX, int spanY, int[] result) { in estimateDropCell() argument 1197 int rightOverhang = result[0] + spanX - countX; in estimateDropCell() 1210 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) { in visualizeDropLocation() argument [all …]
|
D | Workspace.java | 493 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() 555 lp.cellHSpan = spanX; 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); 1985 int spanX = 1; 1989 spanX = dragCellInfo.spanX; [all …]
|
D | AppWidgetResizeFrame.java | 256 int spanX = lp.cellHSpan; in resizeWidgetIfNeeded() local 275 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded() 297 spanX += hSpanInc; in resizeWidgetIfNeeded() 324 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 328 lp.cellHSpan = spanX; 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 360 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges() [all …]
|
D | ItemInfo.java | 81 int spanX = 1; field in ItemInfo 128 spanX = info.spanX; in ItemInfo() 173 values.put(LauncherSettings.Favorites.SPANX, spanX); in onAddToDatabase() 220 + " screen=" + screen + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
D | AppsCustomizePagedView.java | 565 AppWidgetResizeFrame.getWidgetSizeRanges(mLauncher, info.spanX, info.spanY, mTmpRect); in getDefaultOptionsForWidget() 619 int[] unScaledSize = mLauncher.getWorkspace().estimateItemSize(info.spanX, in preloadWidget() 717 int spanX = createItemInfo.spanX; in beginDraggingWidget() local 719 int[] size = mLauncher.getWorkspace().estimateItemSize(spanX, spanY, in beginDraggingWidget() 730 preview = mWidgetPreviewLoader.generateWidgetPreview(createWidgetInfo.info, spanX, in beginDraggingWidget() 735 mWidgetPreviewLoader.maxWidthForWidgetPreview(spanX)); in beginDraggingWidget() 760 createItemInfo.spanX = createItemInfo.spanY = 1; in beginDraggingWidget() 885 !layout.findCellForSpan(null, itemInfo.spanX, itemInfo.spanY); in onDropCompleted() 1199 createItemInfo.spanX = spanXY[0]; in syncWidgetPageItems()
|
D | InstallShortcutReceiver.java | 343 int cellX, cellY, spanX, spanY; in findEmptyCell() local 350 spanX = item.spanX; in findEmptyCell() 352 for (int x = cellX; 0 <= x && x < cellX + spanX && x < xCount; x++) { in findEmptyCell()
|
D | LauncherModel.java | 296 modelShortcut.spanX == shortcut.spanX && in checkItemInfoLocked() 455 final int screen, final int cellX, final int cellY, final int spanX, final int spanY) { in modifyItemInDatabase() argument 463 item.spanX = spanX; in modifyItemInDatabase() 479 values.put(LauncherSettings.Favorites.SPANX, item.spanX); in modifyItemInDatabase() 542 item.spanX = c.getInt(spanXIndex); in getItemsInLocalCoordinates() 681 long container, int screen, int localCellX, int localCellY, int spanX, int spanY) { in getCellLayoutChildId() argument 1245 for (int x = item.cellX; x < (item.cellX+item.spanX); x++) { in checkItemPlacement() 1257 for (int x = item.cellX; x < (item.cellX+item.spanX); x++) { in checkItemPlacement() 1475 appWidgetInfo.spanX = c.getInt(spanXIndex); in loadWorkspace()
|
D | LauncherAppWidgetInfo.java | 61 spanX = -1; in LauncherAppWidgetInfo() 85 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in notifyWidgetSizeChanged()
|
D | PendingAddItemInfo.java | 78 spanX = copy.spanX; in PendingAddWidgetInfo()
|
D | Folder.java | 512 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() 1003 item.spanX = 1; in onDrop()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | CellLayout.java | 758 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument 762 (spanX * mCellWidth + (spanX - 1) * mWidthGap) / 2; in regionToCenterPoint() 774 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument 779 result.set(left, top, left + (spanX * mCellWidth + (spanX - 1) * mWidthGap), in regionToRect() 1022 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) { in visualizeDropLocation() argument 1052 left += ((mCellWidth * spanX) + ((spanX - 1) * mWidthGap) in visualizeDropLocation() 1058 left += dragOffset.x + ((mCellWidth * spanX) + ((spanX - 1) * mWidthGap) in visualizeDropLocation() 1065 left += ((mCellWidth * spanX) + ((spanX - 1) * mWidthGap) 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 [all …]
|
D | Workspace.java | 361 Rect r = estimateItemPosition(cl, itemInfo, 0, 0, itemInfo.spanX, itemInfo.spanY); in estimateItemSize() 637 int spanX = customScreen.getCountX(); 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 …]
|
D | AppWidgetResizeFrame.java | 253 int spanX = lp.cellHSpan; in resizeWidgetIfNeeded() local 272 hSpanInc = Math.min(countX - (cellX + spanX), hSpanInc); in resizeWidgetIfNeeded() 294 spanX += hSpanInc; in resizeWidgetIfNeeded() 321 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded() 325 lp.cellHSpan = spanX; 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 356 int landWidth = (int) ((spanX * cellWidth + (spanX - 1) * widthGap) / density); in getWidgetSizeRanges() [all …]
|
D | ItemInfo.java | 80 public int spanX = 1; field in ItemInfo 138 spanX = info.spanX; in copyFrom() 165 values.put(LauncherSettings.Favorites.SPANX, spanX); in onAddToDatabase() 196 + " screen=" + screenId + " cellX=" + cellX + " cellY=" + cellY + " spanX=" + spanX in toString()
|
D | LauncherModel.java | 407 int[] xy, int spanX, int spanY) { in findNextAvailableIconSpaceInScreen() argument 415 int right = r.cellX + r.spanX; 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() 650 modelShortcut.spanX == shortcut.spanX && in checkItemInfoLocked() 845 … final long screenId, final int cellX, final int cellY, final int spanX, final int spanY) { in modifyItemInDatabase() argument 849 item.spanX = spanX; in modifyItemInDatabase() [all …]
|
D | Launcher.java | 1329 mPendingAddInfo.spanX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_SPAN_X); in restoreState() 1574 launcherInfo.spanX = info.spanX; in completeAddAppWidget() 1597 info.cellY, launcherInfo.spanX, launcherInfo.spanY, isWorkspaceLocked()); in completeAddAppWidget() 1966 outState.putInt(RUNTIME_STATE_PENDING_ADD_SPAN_X, mPendingAddInfo.spanX); in onSaveInstanceState() 2220 mPendingAddInfo.spanX = mPendingAddInfo.spanY = -1; in resetAddInfo() 2264 int[] cell, int spanX, int spanY) { in addPendingItem() argument 2269 span[0] = spanX; in addPendingItem() 2327 mPendingAddInfo.spanX = span[0]; in addAppWidgetFromDrop() 3903 pendingInfo.spanX = item.spanX; in bindAppWidget() 3967 item.cellY, item.spanX, item.spanY, false); in bindAppWidget()
|
D | WidgetPreviewLoader.java | 355 final int spanX = info.spanX; in generateWidgetPreview() local 369 previewWidth = tileBitmap.getWidth() * spanX; in generateWidgetPreview() 416 for (int i = 0; i < spanX; i++, tx += tileW) { in generateWidgetPreview()
|
D | LauncherAppWidgetInfo.java | 101 spanX = -1; in LauncherAppWidgetInfo() 134 AppWidgetResizeFrame.updateWidgetSizeRanges(hostView, launcher, spanX, spanY); in notifyWidgetSizeChanged()
|
D | LauncherAppWidgetProviderInfo.java | 25 public int spanX; field in LauncherAppWidgetProviderInfo 85 spanX = Math.max(1, (int) Math.ceil( in initSpans()
|
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/ |
D | LauncherAccessibilityDelegate.java | 170 screenId, coordinates, info.spanX, info.spanY); in performAction() 233 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions() 238 if (info.spanX > info.minSpanX && info.spanX > 1) { in getSupportedResizeActions() 244 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions() 245 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions() 264 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction() 269 info.spanX ++; in performResizeAction() 272 info.spanX --; in performResizeAction() 274 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction() 287 AppWidgetResizeFrame.getWidgetSizeRanges(mLauncher, info.spanX, info.spanY, sizeRange); in performResizeAction() [all …]
|
D | WorkspaceAccessibilityHelper.java | 63 int spanX = dragInfo.info.spanX; in intersectsValidDropTarget() local 66 for (int m = 0; m < spanX; m++) { in intersectsValidDropTarget() 75 for (int i = x0; i < x0 + spanX; i++) { in intersectsValidDropTarget()
|
/packages/apps/Launcher3/src/com/android/launcher3/model/ |
D | MigrateFromRestoreTask.java | 308 if ((item.cellX <= col && (item.spanX + item.cellX) > col) 330 for (int i = item.cellX; i < (item.cellX + item.spanX); i++) { 414 if (me.spanX > 1 || me.spanY > 1) { 418 int myW = me.spanX; 445 me.spanX --; 450 me.spanX ++; 466 me.spanX --; 472 me.spanX ++; 578 entry.spanX = c.getInt(indexSpanX); in loadEntries() 597 * entry.spanX * entry.spanY); in loadEntries() [all …]
|
/packages/apps/Launcher2/ |
D | print_db.py | 83 spanX = cell["spanX"] 92 spanX, spanY, 93 (CELL_SIZE*spanX), (CELL_SIZE*spanY), 202 spanX = row["spanX"] 205 for k in range(cellX, cellX+spanX):
|
/packages/apps/Launcher3/ |
D | print_db.py | 114 spanX = cell["spanX"] 123 spanX, spanY, 124 (CELL_SIZE*spanX), (CELL_SIZE*spanY), 263 spanX = row["spanX"] 266 for k in range(cellX, cellX+spanX):
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | PendingAddWidgetInfo.java | 52 spanX = i.spanX; in PendingAddWidgetInfo()
|