• Home
  • Raw
  • Download

Lines Matching defs:cellY

868      * @param cellY Y coordinate of the cell
872 void cellToPoint(int cellX, int cellY, int[] result) {
873 cellToRect(cellX, cellY, 1, 1, mTempRect);
882 * @param cellY Y coordinate of the cell
886 void cellToCenterPoint(int cellX, int cellY, int[] result) {
887 regionToCenterPoint(cellX, cellY, 1, 1, result);
894 * @param cellY Y coordinate of the cell
898 public void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
899 cellToRect(cellX, cellY, spanX, spanY, mTempRect);
912 private void getWorkspaceCellVisualCenter(int cellX, int cellY, int[] outPoint) {
913 View child = getChildAt(cellX, cellY);
917 cellToPoint(cellX, cellY, outPoint);
925 cellToCenterPoint(cellX, cellY, outPoint);
1061 public View getChildAt(int cellX, int cellY) {
1062 return mShortcutsAndWidgets.getChildAt(cellX, cellY);
1065 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
1084 occupied.markCells(cellX, cellY, lp.cellHSpan, lp.cellVSpan, true);
1087 // Compute the new x and y position based on the new cellX and cellY
1095 lp.setCellY(cellY);
1098 lp.setTmpCellY(cellY);
1161 void visualizeDropLocation(int cellX, int cellY, int spanX, int spanY,
1163 if (mDragCell[0] != cellX || mDragCell[1] != cellY || mDragCellSpan[0] != spanX
1166 mDragCell[1] = cellY;
1179 cell.setCellY(cellY);
1187 dragObject.stateAnnouncer.announce(getItemMoveDescription(cellX, cellY));
1207 public String getItemMoveDescription(int cellX, int cellY) {
1210 Math.max(cellX, cellY) + 1);
1213 int row = cellY + 1;
1401 lp.setTmpCellY(c.cellY);
1422 animateChildToPosition(child, c.cellX, c.cellY, REORDER_ANIMATION_DURATION, 0,
1448 mode, lp.getCellX(), lp.getCellY(), c.cellX, c.cellY, c.spanX, c.spanY);
1643 || presenterPos.cellY != lp.getTmpCellY() || info.spanX != lp.cellHSpan
1666 public void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY,
1669 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
1672 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
1718 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY,
1721 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY);
1756 * @param cellY The Y cell nearest which you want to search for a vacant area.
1762 * cellY, spanX, spanY) are occupied. This is used when try to move a group of views.
1768 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction,
1790 float distance = (float) Math.hypot(x - cellX, y - cellY);
1792 computeDirectionVector(x - cellX, y - cellY, curDirection);
1823 findNearestArea(c.cellX, c.cellY, c.spanX, c.spanY, direction,
1828 c.cellY = mTempLocation[1];
1980 for (int j = cs.cellY; j < cs.cellY + cs.spanY; j++) {
1988 for (int j = cs.cellY; j < cs.cellY + cs.spanY; j++) {
1995 int top = cs.cellY;
2003 int bottom = cs.cellY + cs.spanY;
2024 for (int i = cs.cellY; i < cs.cellY + cs.spanY; i++) {
2031 for (int i = cs.cellY; i < cs.cellY + cs.spanY; i++) {
2039 if (topEdge[i] == cs.cellY + cs.spanY) {
2046 if (bottomEdge[i] == cs.cellY) {
2066 c.cellY -= delta;
2070 c.cellY += delta;
2101 return (r.cellY + r.spanY) - (l.cellY + l.spanY);
2104 return l.cellY - r.cellY;
2300 blockOccupied.markCells(c.cellX - left, c.cellY - top, c.spanX, c.spanY, true);
2316 c.cellY += deltaY;
2329 public boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction,
2332 if (cellX < 0 || cellY < 0) return false;
2335 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2342 c.cellY = cellY;
2345 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2360 r1.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY);
2470 result[1] = finalSolution.cellY;
2575 outRect.set(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY);
2578 outRect.union(c.cellX, c.cellY, c.cellX + c.spanX, c.cellY + c.spanY);
2677 * @param cellY Y coordinate of upper left corner expressed as a cell position
2682 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2692 int y = vStartPadding + (cellY * mBorderSpace.y) + (cellY * cellHeight);
2705 mOccupied.markCells(pos.cellX, pos.cellY, info.spanX, info.spanY, true);
2719 mOccupied.markCells(pos.cellX, pos.cellY, info.spanX, info.spanY, false);
2764 // 1. When dragging items (mDragInfo in Workspace), we store the View, its cellX & cellY,
2767 // cellX and cellY coordinates and which page was clicked. We then set this as a tag on
2776 cellY = cellPos.cellY;
2787 + ", x=" + cellX + ", y=" + cellY + "]";
2817 for (int cellY = 0; cellY < getCountY(); cellY++) {
2818 cellToPoint(cellX, cellY, cellPoint);