Lines Matching refs:cellX

648         if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {  in addViewToCellLayout()
755 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
759 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
771 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
772 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
783 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
786 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint()
799 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
802 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect()
974 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument
995 occupied[lp.cellX][lp.cellY] = false; in animateChildToPosition()
996 occupied[cellX][cellY] = true; in animateChildToPosition()
1000 lp.cellX = info.cellX = cellX; in animateChildToPosition()
1003 lp.tmpCellX = cellX; in animateChildToPosition()
1058 void visualizeDropLocation(View v, Bitmap dragOutline, int cellX, int cellY, int spanX, in visualizeDropLocation() argument
1067 if (cellX != oldDragCellX || cellY != oldDragCellY) { in visualizeDropLocation()
1071 mDragCell[0] = cellX; in visualizeDropLocation()
1075 cellToPoint(cellX, cellY, topLeft); in visualizeDropLocation()
1117 cellToRect(cellX, cellY, spanX, spanY, r); in visualizeDropLocation()
1127 Math.max(cellX, cellY) + 1); in visualizeDropLocation()
1130 cellY + 1, cellX + 1); in visualizeDropLocation()
1351 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument
1373 float distance = (float) Math.hypot(x - cellX, y - cellY); in findNearestArea()
1375 computeDirectionVector(x - cellX, y - cellY, curDirection); in findNearestArea()
1908 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, in rearrangementExists() argument
1911 if (cellX < 0 || cellY < 0) return false; in rearrangementExists()
1914 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY); in rearrangementExists()
1920 c.x = cellX; in rearrangementExists()
1924 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY); in rearrangementExists()
2039 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan); in copyCurrentStateToSolution()
2111 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX, in beginOrAdjustReorderPreviewAnimations()
2272 if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY || in commitTempPlacement()
2276 info.cellX = lp.cellX = lp.tmpCellX; in commitTempPlacement()
2363 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, in getViewsIntersectingRegion() argument
2366 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY); in getViewsIntersectingRegion()
2369 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY); in getViewsIntersectingRegion()
2376 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan); in getViewsIntersectingRegion()
2401 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) { in revertTempState()
2402 lp.tmpCellX = lp.cellX; in revertTempState()
2404 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION, in revertTempState()
2412 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY, in createAreaForResize() argument
2415 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY); in createAreaForResize()
2730 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) { in cellToRect() argument
2742 int x = hStartPadding + cellX * (cellWidth + widthGap); in cellToRect()
2759 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, mOccupied, true); in markCellsAsOccupiedForView()
2765 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, mOccupied, false); in markCellsAsUnoccupiedForView()
2768 private void markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied, in markCellsForView() argument
2770 if (cellX < 0 || cellY < 0) return; in markCellsForView()
2771 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { in markCellsForView()
2816 public int cellX; field in CellLayout.LayoutParams
2891 this.cellX = source.cellX; in LayoutParams()
2897 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in LayoutParams() argument
2899 this.cellX = cellX; in LayoutParams()
2910 int myCellX = useTmpCoords ? tmpCellX : cellX; in setup()
2927 return "(" + this.cellX + ", " + this.cellY + ")"; in toString()
2971 int cellX = -1; field in CellLayout.CellInfo
2980 cellX = info.cellX; in CellInfo()
2991 + ", x=" + cellX + ", y=" + cellY + "]"; in toString()