Lines Matching refs:cellX

622         if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
724 * @param cellX X coordinate of the cell
729 void cellToPoint(int cellX, int cellY, int[] result) {
733 result[0] = hStartPadding + cellX * mCellWidth;
740 * @param cellX X coordinate of the cell
745 void cellToCenterPoint(int cellX, int cellY, int[] result) {
746 regionToCenterPoint(cellX, cellY, 1, 1, result);
752 * @param cellX X coordinate of the cell
757 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
760 result[0] = hStartPadding + cellX * mCellWidth + (spanX * mCellWidth) / 2;
767 * @param cellX X coordinate of the cell
771 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) {
774 final int left = hStartPadding + cellX * mCellWidth;
911 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
929 occupied.markCells(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, false);
930 occupied.markCells(cellX, cellY, lp.cellHSpan, lp.cellVSpan, true);
934 lp.cellX = info.cellX = cellX;
937 lp.tmpCellX = cellX;
992 void visualizeDropLocation(View v, DragPreviewProvider outlineProvider, int cellX, int cellY,
1002 if (cellX != oldDragCellX || cellY != oldDragCellY) {
1006 mDragCell[0] = cellX;
1015 cellToRect(cellX, cellY, spanX, spanY, r);
1023 cellToPoint(cellX, cellY, topLeft);
1063 dragObject.stateAnnouncer.announce(getItemMoveDescription(cellX, cellY));
1068 public String getItemMoveDescription(int cellX, int cellY) {
1071 Math.max(cellX, cellY) + 1);
1074 cellY + 1, cellX + 1);
1260 * @param cellX The X cell nearest to which you want to search for a vacant area.
1266 * @param blockOccupied The array which represents which cells in the specified block (cellX,
1273 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction,
1295 float distance = (float) Math.hypot(x - cellX, y - cellY);
1297 computeDirectionVector(x - cellX, y - cellY, curDirection);
1328 findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction,
1332 c.cellX = mTempLocation[0];
1389 int left = cs.cellX;
1397 int right = cs.cellX + cs.spanX;
1406 for (int j = cs.cellX; j < cs.cellX + cs.spanX; j++) {
1414 for (int j = cs.cellX; j < cs.cellX + cs.spanX; j++) {
1435 if (leftEdge[i] == cs.cellX + cs.spanX) {
1442 if (rightEdge[i] == cs.cellX) {
1448 for (int i = cs.cellX; i < cs.cellX + cs.spanX; i++) {
1455 for (int i = cs.cellX; i < cs.cellX + cs.spanX; i++) {
1470 c.cellX -= delta;
1473 c.cellX += delta;
1507 return (r.cellX + r.spanX) - (l.cellX + l.spanX);
1509 return l.cellX - r.cellX;
1642 blockOccupied.markCells(c.cellX - left, c.cellY - top, c.spanX, c.spanY, true);
1657 c.cellX += deltaX;
1768 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction,
1771 if (cellX < 0 || cellY < 0) return false;
1774 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
1780 c.cellX = cellX;
1784 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
1790 r1.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY);
1874 solution.cellX = result[0];
1891 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan);
1907 lp.tmpCellX = c.cellX;
1929 animateChildToPosition(child, c.cellX, c.cellY, REORDER_ANIMATION_DURATION, 0,
1953 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX,
1954 lp.cellY, c.cellX, c.cellY, c.spanX, c.spanY);
2138 final boolean requiresDbUpdate = (info.cellX != lp.tmpCellX
2142 info.cellX = lp.cellX = lp.tmpCellX;
2149 info.cellX, info.cellY, info.spanX, info.spanY);
2171 solution.cellX = result[0];
2229 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY,
2232 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2235 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2242 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan);
2267 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) {
2268 lp.tmpCellX = lp.cellX;
2270 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2278 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY,
2281 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY);
2358 result[0] = finalSolution.cellX;
2374 result[0] = finalSolution.cellX;
2455 outRect.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY);
2458 outRect.union(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY);
2552 * @param cellX X coordinate of upper left corner expressed as a cell position
2558 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2567 int x = hStartPadding + cellX * cellWidth;
2576 mOccupied.markCells(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, true);
2582 mOccupied.markCells(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, false);
2621 public int cellX;
2658 * or whether these will be computed based on cellX, cellY, cellHSpan and cellVSpan.
2696 this.cellX = source.cellX;
2702 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) {
2704 this.cellX = cellX;
2726 int myCellX = useTmpCoords ? tmpCellX : cellX;
2741 return "(" + this.cellX + ", " + this.cellY + ")";
2778 // 1. When dragging items (mDragInfo in Workspace), we store the View, its cellX & cellY,
2781 // cellX and cellY coordinates and which page was clicked. We then set this as a tag on
2789 cellX = info.cellX;
2801 + ", x=" + cellX + ", y=" + cellY + "]";
2812 for (int cellX = 0; cellX < getCountX(); cellX++) {
2814 cellToPoint(cellX, cellY, cellPoint);