Home
last modified time | relevance | path

Searched refs:cellX (Results 1 – 25 of 38) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DCellLayout.java595 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
702 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
706 result[0] = hStartPadding + cellX * mCellWidth; in cellToPoint()
718 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
719 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
730 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
733 result[0] = hStartPadding + cellX * mCellWidth + (spanX * mCellWidth) / 2; in regionToCenterPoint()
744 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
747 final int left = hStartPadding + cellX * mCellWidth; in regionToRect()
858 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument
[all …]
DWorkspaceLayoutManager.java41 int x = info.cellX; in addInScreenFromBind()
57 addInScreen(child, info.container, info.screenId, info.cellX, info.cellY, in addInScreen()
110 lp.cellX = x; in addInScreen()
129 … Log.e(TAG, "Failed to add to item at (" + lp.cellX + "," + lp.cellY + ") to CellLayout"); in addInScreen()
DAppWidgetResizeFrame.java297 int cellX = lp.useTmpCoords ? lp.tmpCellX : lp.cellX; in resizeWidgetIfNeeded() local
302 mTempRange1.set(cellX, spanX + cellX); in resizeWidgetIfNeeded()
305 cellX = mTempRange2.start; in resizeWidgetIfNeeded()
332 if (mCellLayout.createAreaForResize(cellX, cellY, spanX, spanY, mWidgetView, in resizeWidgetIfNeeded()
339 lp.tmpCellX = cellX; in resizeWidgetIfNeeded()
DDropTarget.java123 return dragInfo.cellX != originalDragInfo.cellX in isMoved()
DLauncher.java649 completeAddShortcut(intent, info.container, screenId, info.cellX, info.cellY, info); in completeAdd()
811 v = layout.getChildAt(pendingArgs.cellX, pendingArgs.cellY); in onRequestPermissionsResult()
1188 private void completeAddShortcut(Intent data, int container, int screenId, int cellX, in completeAddShortcut() argument
1225 if (cellX >= 0 && cellY >= 0) { in completeAddShortcut()
1226 cellXY[0] = cellX; in completeAddShortcut()
1290 itemInfo.container, itemInfo.screenId, itemInfo.cellX, itemInfo.cellY); in completeAddAppWidget()
1639 info.cellX = cell[0]; in addPendingItem()
1713 public FolderIcon addFolder(CellLayout layout, int container, final int screenId, int cellX, in addFolder() argument
1718 getModelWriter().addItemToDatabase(folderInfo, container, screenId, cellX, cellY); in addFolder()
2122 if (cl != null && cl.isOccupied(item.cellX, item.cellY)) { in bindItems()
[all …]
DShortcutAndWidgetContainer.java69 if ((lp.cellX <= x) && (x < lp.cellX + lp.cellHSpan) && in getChildAt()
/packages/apps/Launcher3/src/com/android/launcher3/model/
DModelWriter.java85 ItemInfo item, int container, int screenId, int cellX, int cellY) { in updateItemInfoProps() argument
87 item.cellX = cellX; in updateItemInfoProps()
93 ? LauncherAppState.getIDP(mContext).numHotseatIcons - cellY - 1 : cellX; in updateItemInfoProps()
104 int container, int screenId, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
107 addItemToDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
110 moveItemInDatabase(item, container, screenId, cellX, cellY); in addOrMoveItemInDatabase()
127 modelItem.cellX == item.cellX && in checkItemInfoLocked()
155 int container, int screenId, int cellX, int cellY) { in moveItemInDatabase() argument
156 updateItemInfoProps(item, container, screenId, cellX, cellY); in moveItemInDatabase()
160 .put(Favorites.CELLX, item.cellX) in moveItemInDatabase()
[all …]
DGridSizeMigrationTask.java179 entry.cellX = newScreenId;
388 if ((item.cellX <= col && (item.spanX + item.cellX) > col)
391 if (item.cellX >= col) item.cellX--;
394 if (item.cellX > col) item.cellX--;
471 int myX = me.cellX;
490 me.cellX = x;
540 me.cellX = myX;
560 ((me.cellX - x) * (me.cellX - x) + (me.cellY - y) * (me.cellY
574 me.cellX = newX;
587 me.cellX = myX;
[all …]
DLoaderCursor.java377 info.cellX = getInt(cellXIndex); in applyCommonProperties()
413 + " into position (" + item.screenId + ":" + item.cellX + "," in checkItemPlacement()
434 item.cellX < 0 || item.cellY < 0 || in checkItemPlacement()
435 item.cellX + item.spanX > countX || item.cellY + item.spanY > countY) { in checkItemPlacement()
438 + item.cellX + "," + item.cellY in checkItemPlacement()
455 if (occupancy.isRegionVacant(item.cellX, item.cellY, item.spanX, item.spanY)) { in checkItemPlacement()
461 + item.cellX + "," + item.cellX + "," + item.spanX + "," + item.spanY in checkItemPlacement()
DGridSizeMigrationTaskV2.java420 entry.cellX = x; in findPlacement()
464 entry.cellX = i; in find()
611 entry.cellX = c.getInt(indexCellX); in loadWorkspaceEntries()
741 return Integer.compare(cellX, another.cellX); in compareTo()
759 values.put(LauncherSettings.Favorites.CELLX, cellX); in updateContentValues()
DModelUtils.java93 + lhs.cellX); in sortWorkspaceItemsSpatially()
95 + rhs.cellX); in sortWorkspaceItemsSpatially()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DCellAndSpan.java11 public int cellX = -1; field in CellAndSpan
32 cellX = copy.cellX; in copyFrom()
38 public CellAndSpan(int cellX, int cellY, int spanX, int spanY) { in CellAndSpan() argument
39 this.cellX = cellX; in CellAndSpan()
46 return "(" + cellX + ", " + cellY + ": " + spanX + ", " + spanY + ")"; in toString()
DGridOccupancy.java77 public void markCells(int cellX, int cellY, int spanX, int spanY, boolean value) { in markCells() argument
78 if (cellX < 0 || cellY < 0) return; in markCells()
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()
DFocusLogic.java178 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrix()
220 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithHotseat()
229 hotseatParent.getChildAt(i).getLayoutParams()).cellX; in createSparseMatrixWithHotseat()
267 int cx = ((CellLayout.LayoutParams) cell.getLayoutParams()).cellX; in createSparseMatrixWithPivotColumn()
/packages/apps/Launcher3/src/com/android/launcher3/model/data/
DItemInfo.java101 public int cellX = -1; field in ItemInfo
161 cellX = info.cellX; in copyFrom()
187 .put(LauncherSettings.Favorites.CELLX, cellX) in writeToValues()
198 cellX = values.getAsInteger(LauncherSettings.Favorites.CELLX); in readFromValues()
229 + " cell(" + cellX + "," + cellY + ")" in dumpProperties()
317 folderBuilder.setGridX(cellX).setGridY(cellY).setPageIndex(screenId); in buildProto()
328 .setGridX(fInfo.cellX).setGridY(fInfo.cellY)); in buildProto()
361 .setGridX(cellX) in getContainerInfo()
/packages/apps/Launcher3/src/com/android/launcher3/accessibility/
DLauncherAccessibilityDelegate.java304 if (layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY) || in getSupportedResizeActions()
305 layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) { in getSupportedResizeActions()
315 if (layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1) || in getSupportedResizeActions()
316 layout.isRegionVacant(info.cellX, info.cellY - 1, info.spanX, 1)) { in getSupportedResizeActions()
334 && layout.isRegionVacant(info.cellX - 1, info.cellY, 1, info.spanY)) in performResizeAction()
335 || !layout.isRegionVacant(info.cellX + info.spanX, info.cellY, 1, info.spanY)) { in performResizeAction()
336 lp.cellX --; in performResizeAction()
337 info.cellX --; in performResizeAction()
345 if (!layout.isRegionVacant(info.cellX, info.cellY + info.spanY, info.spanX, 1)) { in performResizeAction()
DDragAndDropAccessibilityDelegate.java138 int cellX = id % mView.getCountX(); in getItemBounds() local
141 mView.cellToRect(cellX, cellY, dragInfo.info.spanX, dragInfo.info.spanY, mTempRect); in getItemBounds()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewBackground.java337 private void delegateDrawing(CellLayout delegate, int cellX, int cellY) { in delegateDrawing() argument
343 mDelegateCellX = cellX; in delegateDrawing()
407 public void animateToAccept(CellLayout cl, int cellX, int cellY) { in animateToAccept() argument
409 () -> delegateDrawing(cl, cellX, cellY), null); in animateToAccept()
417 int cellX = mDelegateCellX; in animateToRest() local
419 animateScale(1f, 1f, () -> delegateDrawing(cl, cellX, cellY), this::clearDrawingDelegate); in animateToRest()
DFolder.java626 LauncherLogProto.ItemType.FOLDER_ICON, mInfo.cellX, mInfo.cellY); in animateOpen()
1163 mInfo.container, mInfo.screenId, mInfo.cellX, mInfo.cellY); in replaceFolderWithFinalItem()
1283 si, mInfo.id, 0, si.cellX, si.cellY); in onDrop()
1357 mLauncher.getModelWriter().addOrMoveItemInDatabase(item, mInfo.id, 0, item.cellX, in onAdd()
1483 child.gridX = childInfo.cellX; in fillInLogContainerData()
1489 target.gridX = mInfo.cellX; in fillInLogContainerData()
1560 return lhs.cellX - rhs.cellX;
DFolderGridOrganizer.java134 if (!pos.equals(item.cellX, item.cellY) || rank != item.rank) { in updateRankAndPos()
136 item.cellX = pos.x; in updateRankAndPos()
DFolderPagedView.java214 item.cellX, item.cellY, item.spanX, item.spanY)); in createNewView()
216 lp.cellX = item.cellX; in createNewView()
/packages/apps/Launcher3/tools/
Dprint_db.py114 cellX = cell["cellX"]
263 cellX = row["cellX"]
268 for k in range(cellX, cellX+spanX):
270 screen[cellY][cellX] = row
/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
215 info.cellX = cellX; in newItemInfo()
/packages/apps/Launcher3/src/com/android/launcher3/provider/
DLossyScreenMigrationTask.java79 if (org.cellX != update.cellX || org.cellY != update.cellY in migrateScreen0()
DImportDataTask.java168 int cellX = c.getInt(cellXIndex); in importWorkspaceItems() local
192 mMaxGridSizeX = Math.max(mMaxGridSizeX, cellX + spanX); in importWorkspaceItems()
259 values.put(Favorites.CELLX, cellX); in importWorkspaceItems()

12