Home
last modified time | relevance | path

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

/packages/apps/Launcher2/src/com/android/launcher2/
DCellLayout.java179 cellInfo.cellX = lp.cellX; in onInterceptTouchEvent()
205 cellInfo.cellX = cellXY[0]; in onInterceptTouchEvent()
222 cellInfo.cellX = -1; in onInterceptTouchEvent()
245 findIntersectingVacantCells(info, info.cellX, info.cellY, xCount, yCount, occupied);
310 cell.cellX = current.left;
362 cellInfo.cellX = -1; in findAllVacantCells()
434 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
441 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
538 child.setId(((getId() & 0xFF) << 16) | (lp.cellX & 0xFF) << 8 | (lp.cellY & 0xFF)); in onMeasure()
628 cellToPoint(cell.cellX, cell.cellY, cellXY); in findNearestVacantArea()
[all …]
DItemInfo.java62 int cellX = -1; field in ItemInfo
89 cellX = info.cellX; in ItemInfo()
108 values.put(LauncherSettings.Favorites.CELLX, cellX); in onAddToDatabase()
DInstallShortcutReceiver.java52 cell.cellX = mCoordinates[0]; in installShortcut()
103 int cellX = c.getInt(cellXIndex); in findEmptyCell() local
108 for (int x = cellX; x < cellX + spanX && x < xCount; x++) { in findEmptyCell()
DLauncherModel.java87 int screen, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
90 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase()
93 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase()
101 int cellX, int cellY) { in moveItemInDatabase() argument
104 item.cellX = cellX; in moveItemInDatabase()
111 values.put(LauncherSettings.Favorites.CELLX, item.cellX); in moveItemInDatabase()
170 folderInfo.cellX = c.getInt(cellXIndex); in getFolderById()
187 int screen, int cellX, int cellY, boolean notify) { in addItemToDatabase() argument
190 item.cellX = cellX; in addItemToDatabase()
701 info.cellX = c.getInt(cellXIndex); in loadWorkspace()
[all …]
DLauncher.java514 addItemCellInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); in restoreState()
695 mWorkspace.addInCurrentScreen(view, cellInfo.cellX, cellInfo.cellY, 1, 1, in completeAddShortcut()
763 cellInfo.screen, cellInfo.cellX, cellInfo.cellY, notify); in addShortcut()
896 outState.putInt(RUNTIME_STATE_PENDING_ADD_CELL_X, addItemCellInfo.cellX); in onSaveInstanceState()
1181 mWorkspace.getCurrentScreen(), cellInfo.cellX, cellInfo.cellY, false); in addFolder()
1188 cellInfo.cellX, cellInfo.cellY, 1, 1, isWorkspaceLocked()); in addFolder()
1204 mWorkspace.addInCurrentScreen(view, cellInfo.cellX, cellInfo.cellY, 1, 1, in completeAddLiveFolder()
1248 cellInfo.screen, cellInfo.cellX, cellInfo.cellY, notify); in addLiveFolder()
1257 cellInfo.cellX = xy[0]; in findSingleSlot()
2039 workspace.addInScreen(shortcut, item.screen, item.cellX, item.cellY, 1, 1, in bindItems()
[all …]
DWorkspace.java263 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, RectF rect) { in cellToRect() argument
264 ((CellLayout)getChildAt(mCurrentScreen)).cellToRect(cellX, cellY, in cellToRect()
348 lp.cellX = x; in addInScreen()
363 addInScreen(view, widget.screen, widget.cellX, widget.cellY, widget.spanX, in addWidget()
368 addInScreen(view, widget.screen, widget.cellX, widget.cellY, widget.spanX, in addWidget()
1022 layout.cellToPoint(cellInfo.cellX, cellInfo.cellY, result); in addApplicationShortcut()
1048 LauncherSettings.Favorites.CONTAINER_DESKTOP, index, lp.cellX, lp.cellY); in onDrop()
1107 LauncherSettings.Favorites.CONTAINER_DESKTOP, mCurrentScreen, lp.cellX, lp.cellY); in onDropExternal()
/packages/apps/Launcher/src/com/android/launcher/
DCellLayout.java168 cellInfo.cellX = lp.cellX; in onInterceptTouchEvent()
192 cellInfo.cellX = cellXY[0]; in onInterceptTouchEvent()
209 cellInfo.cellX = -1; in onInterceptTouchEvent()
232 findIntersectingVacantCells(info, info.cellX, info.cellY, xCount, yCount, occupied);
297 cell.cellX = current.left;
358 cellInfo.cellX = -1; in findAllVacantCellsFromOccupied()
420 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
427 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
500 child.setId(((getId() & 0xFF) << 16) | (lp.cellX & 0xFF) << 8 | (lp.cellY & 0xFF)); in onMeasure()
583 cellToPoint(cell.cellX, cell.cellY, cellXY); in findNearestVacantArea()
[all …]
DItemInfo.java62 int cellX = -1; field in ItemInfo
89 cellX = info.cellX; in ItemInfo()
108 values.put(LauncherSettings.Favorites.CELLX, cellX); in onAddToDatabase()
DInstallShortcutReceiver.java52 cell.cellX = mCoordinates[0]; in installShortcut()
103 int cellX = c.getInt(cellXIndex); in findEmptyCell() local
108 for (int x = cellX; x < cellX + spanX && x < xCount; x++) { in findEmptyCell()
DLauncherModel.java835 info.cellX = c.getInt(cellXIndex); in run()
862 folderInfo.cellX = c.getInt(cellXIndex); in run()
891 liveFolderInfo.cellX = c.getInt(cellXIndex); in run()
919 widgetInfo.cellX = c.getInt(cellXIndex); in run()
930 appWidgetInfo.cellX = c.getInt(cellXIndex); in run()
1163 for (int xx = item.cellX; xx < item.cellX + item.spanX; xx++) { in addOccupiedCells()
1303 int screen, int cellX, int cellY) { in addOrMoveItemInDatabase() argument
1306 addItemToDatabase(context, item, container, screen, cellX, cellY, false); in addOrMoveItemInDatabase()
1309 moveItemInDatabase(context, item, container, screen, cellX, cellY); in addOrMoveItemInDatabase()
1317 int cellX, int cellY) { in moveItemInDatabase() argument
[all …]
DLauncher.java502 addItemCellInfo.cellX = savedState.getInt(RUNTIME_STATE_PENDING_ADD_CELL_X); in restoreState()
668 … mWorkspace.addInCurrentScreen(view, cellInfo.cellX, cellInfo.cellY, 1, 1, insertAtFirst); in completeAddShortcut()
736 cellInfo.screen, cellInfo.cellX, cellInfo.cellY, notify); in addShortcut()
925 outState.putInt(RUNTIME_STATE_PENDING_ADD_CELL_X, addItemCellInfo.cellX); in onSaveInstanceState()
1217 mWorkspace.getCurrentScreen(), cellInfo.cellX, cellInfo.cellY, false); in addFolder()
1225 cellInfo.cellX, cellInfo.cellY, 1, 1, insertAtFirst); in addFolder()
1240 … mWorkspace.addInCurrentScreen(view, cellInfo.cellX, cellInfo.cellY, 1, 1, insertAtFirst); in completeAddLiveFolder()
1285 cellInfo.screen, cellInfo.cellX, cellInfo.cellY, notify); in addLiveFolder()
1294 cellInfo.cellX = xy[0]; in findSingleSlot()
1507 workspace.addInScreen(shortcut, item.screen, item.cellX, item.cellY, 1, 1, in bindItems()
[all …]
DWorkspace.java319 lp.cellX = x; in addInScreen()
331 addInScreen(view, widget.screen, widget.cellX, widget.cellY, widget.spanX, in addWidget()
828 layout.cellToPoint(cellInfo.cellX, cellInfo.cellY, result); in addApplicationShortcut()
853 LauncherSettings.Favorites.CONTAINER_DESKTOP, index, lp.cellX, lp.cellY); in onDrop()
910 LauncherSettings.Favorites.CONTAINER_DESKTOP, mCurrentScreen, lp.cellX, lp.cellY); in onDropExternal()
/packages/wallpapers/Basic/src/com/android/wallpaper/nexus/
DNexusWallpaper.java345 final int cellX = (int)((x + mOffsetX * (bw-dw)) / mCellSize); in onCommand() local
349 p.start(0, cellX, cellY, 0, 1); in onCommand()
353 p.start(0, cellX, cellY, 1, 0); in onCommand()
357 p.start(0, cellX, cellY, -1, 0); in onCommand()
361 p.start(0, cellX, cellY, 0, -1); in onCommand()