Lines Matching full:cell
180 cellInfo.cell = child;
206 cellInfo.cell = null;
223 cellInfo.cell = null;
311 CellInfo.VacantCell cell = CellInfo.VacantCell.acquire();
312 cell.cellX = current.left;
313 cell.cellY = current.top;
314 cell.spanX = current.right - current.left + 1;
315 cell.spanY = current.bottom - current.top + 1;
316 if (cell.spanX > cellInfo.maxVacantSpanX) {
317 cellInfo.maxVacantSpanX = cell.spanX;
318 cellInfo.maxVacantSpanXSpanY = cell.spanY;
320 if (cell.spanY > cellInfo.maxVacantSpanY) {
321 cellInfo.maxVacantSpanY = cell.spanY;
322 cellInfo.maxVacantSpanYSpanX = cell.spanX;
324 cellInfo.vacantCells.add(cell);
388 // Assume the caller will perform their own cell searching, otherwise we
395 * Given a point, return the cell that strictly encloses that point
398 * @param result Array of 2 ints to hold the x and y coordinate of the cell
419 * Given a point, return the cell that most closely encloses that point
422 * @param result Array of 2 ints to hold the x and y coordinate of the cell
429 * Given a cell coordinate, return the point that represents the upper left corner of that cell
431 * @param cellX X coordinate of the cell
432 * @param cellY Y coordinate of the cell
598 * cell location. Uses Euclidean distance to score multiple vacant areas.
606 * @return The X, Y cell of a vacant area that can contain this object,
625 final CellInfo.VacantCell cell = vacantCells.vacantCells.get(i);
627 // Reject if vacant cell isn't our exact size
628 if (cell.spanX != spanX || cell.spanY != spanY) {
633 cellToPoint(cell.cellX, cell.cellY, cellXY);
639 bestXY[0] = cell.cellX;
640 bestXY[1] = cell.cellY;
694 * @param cellX The child's new x cell location
695 * @param cellY The child's new y cell location
708 * @param cellX X coordinate of upper left corner expressed as a cell position
709 * @param cellY Y coordinate of upper left corner expressed as a cell position
734 * Computes the required horizontal and vertical cell spans to always
748 // Always round up to next largest cell
756 * Find the first vacant cell, if there is one.
758 * @param vacant Holds the x and y coordinate of the vacant cell
759 * @param spanX Horizontal cell span.
760 * @param spanY Vertical cell span.
762 * @return True if a vacant cell was found
939 * the user long presses an empty cell.
990 View cell;
1036 * hold a cell of the specified dimensions.
1038 * @param cellXY The array that will contain the position of a vacant cell if such a cell
1040 * @param spanX The horizontal span of the cell we want to find.
1041 * @param spanY The vertical span of the cell we want to find.
1043 * @return True if a vacant cell of the specified dimension was found, false otherwise.
1063 VacantCell cell = list.get(i);
1064 if (cell.spanX == spanX && cell.spanY == spanY) {
1065 cellXY[0] = cell.cellX;
1066 cellXY[1] = cell.cellY;
1072 // Look for the first cell large enough
1074 VacantCell cell = list.get(i);
1075 if (cell.spanX >= spanX && cell.spanY >= spanY) {
1076 cellXY[0] = cell.cellX;
1077 cellXY[1] = cell.cellY;
1090 return "Cell[view=" + (cell == null ? "null" : cell.getClass()) + ", x=" + cellX +