Home | History | Annotate | Download | only in launcher2

Lines Matching refs:cellInfo

177     private CellLayout.CellInfo mAddItemCellInfo;
178 private CellLayout.CellInfo mMenuAddInfo;
672 mAddItemCellInfo = new CellLayout.CellInfo();
673 final CellLayout.CellInfo addItemCellInfo = mAddItemCellInfo;
834 * @param cellInfo The position on screen where to create the shortcut.
836 void completeAddApplication(Context context, Intent data, CellLayout.CellInfo cellInfo) {
837 cellInfo.screen = mWorkspace.getCurrentScreen();
838 if (!findSingleSlot(cellInfo)) return;
847 mWorkspace.addApplicationShortcut(info, cellInfo, isWorkspaceLocked());
857 cellInfo The position on screen where to create the shortcut.
859 private void completeAddShortcut(Intent data, CellLayout.CellInfo cellInfo) {
860 cellInfo.screen = mWorkspace.getCurrentScreen();
861 if (!findSingleSlot(cellInfo)) return;
863 final ShortcutInfo info = mModel.addShortcut(this, data, cellInfo, false);
867 mWorkspace.addInCurrentScreen(view, cellInfo.cellX, cellInfo.cellY, 1, 1,
877 * @param cellInfo The position on screen where to create the widget.
879 private void completeAddAppWidget(Intent data, CellLayout.CellInfo cellInfo) {
888 CellLayout layout = (CellLayout) mWorkspace.getChildAt(cellInfo.screen);
893 if (!findSlot(cellInfo, xy, spans[0], spans[1])) {
1006 final CellLayout.CellInfo addItemCellInfo = mAddItemCellInfo;
1225 CellLayout.CellInfo cellInfo = mAddItemCellInfo;
1226 cellInfo.screen = mWorkspace.getCurrentScreen();
1227 if (!findSingleSlot(cellInfo)) return;
1232 mWorkspace.getCurrentScreen(), cellInfo.cellX, cellInfo.cellY, false);
1239 cellInfo.cellX, cellInfo.cellY, 1, 1, isWorkspaceLocked());
1246 private void completeAddLiveFolder(Intent data, CellLayout.CellInfo cellInfo) {
1247 cellInfo.screen = mWorkspace.getCurrentScreen();
1248 if (!findSingleSlot(cellInfo)) return;
1250 final LiveFolderInfo info = addLiveFolder(this, data, cellInfo, false);
1255 mWorkspace.addInCurrentScreen(view, cellInfo.cellX, cellInfo.cellY, 1, 1,
1261 CellLayout.CellInfo cellInfo, boolean notify) {
1297 cellInfo.screen, cellInfo.cellX, cellInfo.cellY, notify);
1303 private boolean findSingleSlot(CellLayout.CellInfo cellInfo) {
1305 if (findSlot(cellInfo, xy, 1, 1)) {
1306 cellInfo.cellX = xy[0];
1307 cellInfo.cellY = xy[1];
1313 private boolean findSlot(CellLayout.CellInfo cellInfo, int[] xy, int spanX, int spanY) {
1314 if (!cellInfo.findCellForSpan(xy, spanX, spanY)) {
1317 cellInfo = mWorkspace.findAllVacantCells(occupied);
1318 if (!cellInfo.findCellForSpan(xy, spanX, spanY)) {
1573 CellLayout.CellInfo cellInfo = (CellLayout.CellInfo) v.getTag();
1576 if (cellInfo == null) {
1581 if (cellInfo.cell == null) {
1582 if (cellInfo.valid) {
1587 showAddDialog(cellInfo);
1590 if (!(cellInfo.cell instanceof Folder)) {
1594 mWorkspace.startDrag(cellInfo);
1772 private void showAddDialog(CellLayout.CellInfo cellInfo) {
1773 mAddItemCellInfo = cellInfo;