Lines Matching refs:y
330 public void setGridSize(int x, int y) { in setGridSize() argument
332 mCountY = y; in setGridSize()
566 public void setFolderLeaveBehindCell(int x, int y) { in setFolderLeaveBehindCell() argument
568 mFolderLeaveBehindCell[1] = y; in setFolderLeaveBehindCell()
715 final int y = touchY + getScrollY(); in setTagToCellInfoForPoint() local
737 if (frame.contains(x, y)) { in setTagToCellInfoForPoint()
753 pointToCellExact(x, y, cellXY); in setTagToCellInfoForPoint()
806 void pointToCellExact(int x, int y, int[] result) { in pointToCellExact() argument
811 result[1] = (y - vStartPadding) / (mCellHeight + mHeightGap); in pointToCellExact()
828 void pointToCellRounded(int x, int y, int[] result) { in pointToCellRounded() argument
829 pointToCellExact(x + (mCellWidth / 2), y + (mCellHeight / 2), result); in pointToCellRounded()
893 public float getDistanceFromCell(float x, float y, int[] cell) { in getDistanceFromCell() argument
896 Math.pow(y - mTmpPoint[1], 2)); in getDistanceFromCell()
1091 public View getChildAt(int x, int y) { in getChildAt() argument
1092 return mShortcutsAndWidgets.getChildAt(x, y); in getChildAt()
1114 final int oldY = lp.y; in animateChildToPosition()
1130 final int newY = lp.y; in animateChildToPosition()
1133 lp.y = oldY; in animateChildToPosition()
1150 lp.y = (int) ((1 - r) * oldY + r * newY); in animateChildToPosition()
1254 top += dragOffset.y; in visualizeDropLocation()
1400 for (int y = 0; y < countY - (minSpanY - 1); y++) { in findNearestArea()
1409 if (occupied[x + i][y + j]) { in findNearestArea()
1426 if (x + xSize > countX -1 || occupied[x + xSize][y + j]) { in findNearestArea()
1436 if (y + ySize > countY - 1 || occupied[x + i][y + ySize]) { in findNearestArea()
1454 cellToCenterPoint(x, y, cellXY); in findNearestArea()
1460 currentRect.set(x, y, x + xSize, y + ySize); in findNearestArea()
1476 bestXY[1] = y; in findNearestArea()
1528 for (int y = 0; y < countY - (spanY - 1); y++) { in findNearestArea()
1534 … if (occupied[x + i][y + j] && (blockOccupied == null || blockOccupied[i][j])) { in findNearestArea()
1541 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY)); in findNearestArea()
1543 computeDirectionVector(x - cellX, y - cellY, curDirection); in findNearestArea()
1557 bestXY[1] = y; in findNearestArea()
1574 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, false); in addViewToTempLocation()
1577 findNearestArea(c.x, c.y, c.spanX, c.spanY, direction, mTmpOccupied, null, mTempLocation); in addViewToTempLocation()
1581 c.y = mTempLocation[1]; in addViewToTempLocation()
1584 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, true); in addViewToTempLocation()
1640 for (int j = cs.y; j < cs.y + cs.spanY; j++) { in computeEdge()
1648 for (int j = cs.y; j < cs.y + cs.spanY; j++) { in computeEdge()
1655 int top = cs.y; in computeEdge()
1663 int bottom = cs.y + cs.spanY; in computeEdge()
1681 for (int i = cs.y; i < cs.y + cs.spanY; i++) { in isViewTouchingEdge()
1688 for (int i = cs.y; i < cs.y + cs.spanY; i++) { in isViewTouchingEdge()
1696 if (edge[i] == cs.y + cs.spanY) { in isViewTouchingEdge()
1703 if (edge[i] == cs.y) { in isViewTouchingEdge()
1723 c.y -= delta; in shift()
1727 c.y += delta; in shift()
1745 boundingRect.set(c.x, c.y, c.x + c.spanX, c.y + c.spanY); in getBoundingRect()
1748 boundingRect.union(c.x, c.y, c.x + c.spanX, c.y + c.spanY); in getBoundingRect()
1809 return (r.y + r.spanY) - (l.y + l.spanY); in compare()
1812 return l.y - r.y; in compare()
1856 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, false); in pushViewsToTempLocation()
1886 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, false); in pushViewsToTempLocation()
1912 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, true); in pushViewsToTempLocation()
1928 boundingRect = new Rect(c.x, c.y, c.x + c.spanX, c.y + c.spanY); in addViewsToTempLocation()
1930 boundingRect.union(c.x, c.y, c.x + c.spanX, c.y + c.spanY); in addViewsToTempLocation()
1937 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, false); in addViewsToTempLocation()
1947 markCellsForView(c.x - left, c.y - top, c.spanX, c.spanY, blockOccupied, true); in addViewsToTempLocation()
1962 c.y += deltaY; in addViewsToTempLocation()
1970 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, true); in addViewsToTempLocation()
2089 c.y = cellY; in rearrangementExists()
2098 r1.set(c.x, c.y, c.x + c.spanX, c.y + c.spanY); in rearrangementExists()
2225 lp.tmpCellY = c.y; in copySolutionToTempState()
2228 markCellsForView(c.x, c.y, c.spanX, c.spanY, mTmpOccupied, true); in copySolutionToTempState()
2251 animateChildToPosition(child, c.x, c.y, REORDER_ANIMATION_DURATION, 0, in animateItemsToSolution()
2253 markCellsForView(c.x, c.y, c.spanX, c.spanY, occupied, true); in animateItemsToSolution()
2272 c.x, c.y, c.spanX, c.spanY); in beginOrAdjustHintAnimations()
2348 float y = r * finalDeltaY + (1 - r) * initDeltaY; in animate()
2350 child.setTranslationY(y); in animate()
2709 int x, y; field in CellLayout.CellAndSpan
2717 copy.y = y; in copy()
2722 public CellAndSpan(int x, int y, int spanX, int spanY) { in CellAndSpan() argument
2724 this.y = y; in CellAndSpan()
2730 return "(" + x + ", " + y + ": " + spanX + ", " + spanY + ")"; in toString()
2873 for (int y = startY; y < endY && !foundCell; y++) { in findCellForSpanThatIntersectsIgnoring()
2878 if (occupied[x + i][y + j]) { in findCellForSpanThatIntersectsIgnoring()
2888 cellXY[1] = y; in findCellForSpanThatIntersectsIgnoring()
2977 int y = vStartPadding + cellY * (cellHeight + heightGap); in cellToRect() local
2979 resultRect.set(x, y, x + width, y + height); in cellToRect()
3060 for (int y = 0; y < yCount; y++) { in findVacantCell()
3062 boolean available = !occupied[x][y]; in findVacantCell()
3064 for (int j = y; j < y + spanY - 1 && y < yCount; j++) { in findVacantCell()
3072 vacant[1] = y; in findVacantCell()
3083 for (int y = 0; y < mCountY; y++) { in clearOccupiedCells()
3084 mOccupied[x][y] = false; in clearOccupiedCells()
3116 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) { in markCellsForView()
3117 occupied[x][y] = value; in markCellsForView()
3132 public boolean isOccupied(int x, int y) { in isOccupied() argument
3133 if (x < mCountX && y < mCountY) { in isOccupied()
3134 return mOccupied[x][y]; in isOccupied()
3223 int y; field in CellLayout.LayoutParams
3272 y = (int) (myCellY * (cellHeight + heightGap) + topMargin); in setup()
3304 public void setY(int y) { in setY() argument
3305 this.y = y; in setY()
3309 return y; in getY()