Lines Matching refs:cellX
636 if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) { in addViewToCellLayout()
739 cellInfo.cellX = lp.cellX; in setTagToCellInfoForPoint()
756 cellInfo.cellX = cellXY[0]; in setTagToCellInfoForPoint()
789 cellInfo.cellX = -1; in clearTagCellInfo()
840 void cellToPoint(int cellX, int cellY, int[] result) { in cellToPoint() argument
844 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap); in cellToPoint()
856 void cellToCenterPoint(int cellX, int cellY, int[] result) { in cellToCenterPoint() argument
857 regionToCenterPoint(cellX, cellY, 1, 1, result); in cellToCenterPoint()
868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) { in regionToCenterPoint() argument
871 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) + in regionToCenterPoint()
884 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) { in regionToRect() argument
887 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap); in regionToRect()
1095 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration, in animateChildToPosition() argument
1116 occupied[lp.cellX][lp.cellY] = false; in animateChildToPosition()
1117 occupied[cellX][cellY] = true; in animateChildToPosition()
1121 lp.cellX = info.cellX = cellX; in animateChildToPosition()
1124 lp.tmpCellX = cellX; in animateChildToPosition()
1209 void visualizeDropLocation(View v, Bitmap dragOutline, int originX, int originY, int cellX, in visualizeDropLocation() argument
1224 if (cellX != oldDragCellX || cellY != oldDragCellY) { in visualizeDropLocation()
1225 mDragCell[0] = cellX; in visualizeDropLocation()
1229 cellToPoint(cellX, cellY, topLeft); in visualizeDropLocation()
1269 cellToRect(cellX, cellY, spanX, spanY, r); in visualizeDropLocation()
1518 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction, in findNearestArea() argument
1541 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY)); in findNearestArea()
1543 computeDirectionVector(x - cellX, y - cellY, curDirection); in findNearestArea()
2076 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction, in rearrangementExists() argument
2079 if (cellX < 0 || cellY < 0) return false; in rearrangementExists()
2082 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY); in rearrangementExists()
2088 c.x = cellX; in rearrangementExists()
2092 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY); in rearrangementExists()
2204 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan); in copyCurrentStateToSolution()
2271 ReorderHintAnimation rha = new ReorderHintAnimation(child, lp.cellX, lp.cellY, in beginOrAdjustHintAnimations()
2414 if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY || in commitTempPlacement()
2418 info.cellX = lp.cellX = lp.tmpCellX; in commitTempPlacement()
2505 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY, in getViewsIntersectingRegion() argument
2508 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY); in getViewsIntersectingRegion()
2511 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY); in getViewsIntersectingRegion()
2518 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan); in getViewsIntersectingRegion()
2542 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) { in revertTempState()
2543 lp.tmpCellX = lp.cellX; in revertTempState()
2545 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION, in revertTempState()
2553 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY, in createAreaForResize() argument
2556 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY); in createAreaForResize()
2964 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) { in cellToRect() argument
2976 int x = hStartPadding + cellX * (cellWidth + widthGap); in cellToRect()
3100 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true); in markCellsAsOccupiedForView()
3109 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, false); in markCellsAsUnoccupiedForView()
3112 private void markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied, in markCellsForView() argument
3114 if (cellX < 0 || cellY < 0) return; in markCellsForView()
3115 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) { in markCellsForView()
3171 public int cellX; field in CellLayout.LayoutParams
3241 this.cellX = source.cellX; in LayoutParams()
3247 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) { in LayoutParams() argument
3249 this.cellX = cellX; in LayoutParams()
3260 int myCellX = useTmpCoords ? tmpCellX : cellX; in setup()
3277 return "(" + this.cellX + ", " + this.cellY + ")"; in toString()
3321 int cellX = -1; field in CellLayout.CellInfo
3331 + ", x=" + cellX + ", y=" + cellY + "]"; in toString()