Lines Matching defs:cellX
632 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
738 cellInfo.cellX = lp.cellX;
755 cellInfo.cellX = cellXY[0];
788 cellInfo.cellX = -1;
834 * @param cellX X coordinate of the cell
839 void cellToPoint(int cellX, int cellY, int[] result) {
843 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap);
850 * @param cellX X coordinate of the cell
855 void cellToCenterPoint(int cellX, int cellY, int[] result) {
856 regionToCenterPoint(cellX, cellY, 1, 1, result);
862 * @param cellX X coordinate of the cell
867 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
870 result[0] = hStartPadding + cellX
879 * @param cellX X coordinate of the cell
883 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) {
886 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap);
1087 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
1108 occupied[lp.cellX][lp.cellY] = false;
1109 occupied[cellX][cellY] = true;
1113 lp.cellX = info.cellX = cellX;
1116 lp.tmpCellX = cellX;
1201 void visualizeDropLocation(View v, Bitmap dragOutline, int originX, int originY, int cellX,
1210 if (cellX != oldDragCellX || cellY != oldDragCellY) {
1211 mDragCell[0] = cellX;
1215 cellToPoint(cellX, cellY, topLeft);
1257 cellToRect(cellX, cellY, spanX, spanY, r);
1491 * @param cellX The X cell nearest to which you want to search for a vacant area.
1499 * @param blockOccupied The array which represents which cells in the specified block (cellX,
1506 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction,
1529 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY));
1531 computeDirectionVector(x - cellX, y - cellY, curDirection);
2064 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction,
2067 if (cellX < 0 || cellY < 0) return false;
2070 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2076 c.x = cellX;
2080 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2195 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan);
2267 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX,
2421 if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY ||
2425 info.cellX = lp.cellX = lp.tmpCellX;
2512 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY,
2515 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2518 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2525 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan);
2550 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) {
2551 lp.tmpCellX = lp.cellX;
2553 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2561 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY,
2564 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY);
2985 * @param cellX X coordinate of upper left corner expressed as a cell position
2991 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
3003 int x = hStartPadding + cellX * (cellWidth + widthGap);
3130 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true);
3139 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, false);
3142 private void markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied,
3144 if (cellX < 0 || cellY < 0) return;
3145 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) {
3201 public int cellX;
3238 * or whether these will be computed based on cellX, cellY, cellHSpan and cellVSpan.
3276 this.cellX = source.cellX;
3282 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) {
3284 this.cellX = cellX;
3295 int myCellX = useTmpCoords ? tmpCellX : cellX;
3312 return "(" + this.cellX + ", " + this.cellY + ")";
3349 // 1. When dragging items (mDragInfo in Workspace), we store the View, its cellX & cellY,
3352 // cellX and cellY coordinates and which page was clicked. We then set this as a tag on
3356 int cellX = -1;
3366 + ", x=" + cellX + ", y=" + cellY + "]";