• Home
  • Raw
  • Download

Lines Matching defs:cellX

867      * @param cellX X coordinate of the cell
872 void cellToPoint(int cellX, int cellY, int[] result) {
873 cellToRect(cellX, cellY, 1, 1, mTempRect);
881 * @param cellX X coordinate of the cell
886 void cellToCenterPoint(int cellX, int cellY, int[] result) {
887 regionToCenterPoint(cellX, cellY, 1, 1, result);
893 * @param cellX X 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
1094 lp.setCellX(cellX);
1097 lp.setTmpCellX(cellX);
1161 void visualizeDropLocation(int cellX, int cellY, int spanX, int spanY,
1163 if (mDragCell[0] != cellX || mDragCell[1] != cellY || mDragCellSpan[0] != spanX
1165 mDragCell[0] = cellX;
1178 cell.setCellX(cellX);
1187 dragObject.stateAnnouncer.announce(getItemMoveDescription(cellX, cellY));
1207 public String getItemMoveDescription(int cellX, int cellY) {
1210 Math.max(cellX, cellY) + 1);
1214 int col = workspace.mIsRtl ? mCountX - cellX : cellX + 1;
1400 lp.setTmpCellX(c.cellX);
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);
1642 final boolean requiresDbUpdate = (presenterPos.cellX != lp.getTmpCellX()
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);
1755 * @param cellX The X cell nearest to which you want to search for a vacant area.
1761 * @param blockOccupied The array which represents which cells in the specified block (cellX,
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,
1827 c.cellX = mTempLocation[0];
1979 int left = cs.cellX;
1987 int right = cs.cellX + cs.spanX;
1996 for (int j = cs.cellX; j < cs.cellX + cs.spanX; j++) {
2004 for (int j = cs.cellX; j < cs.cellX + cs.spanX; j++) {
2025 if (leftEdge[i] == cs.cellX + cs.spanX) {
2032 if (rightEdge[i] == cs.cellX) {
2038 for (int i = cs.cellX; i < cs.cellX + cs.spanX; i++) {
2045 for (int i = cs.cellX; i < cs.cellX + cs.spanX; i++) {
2060 c.cellX -= delta;
2063 c.cellX += delta;
2097 return (r.cellX + r.spanX) - (l.cellX + l.spanX);
2099 return l.cellX - r.cellX;
2300 blockOccupied.markCells(c.cellX - left, c.cellY - top, c.spanX, c.spanY, true);
2315 c.cellX += deltaX;
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);
2341 c.cellX = cellX;
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);
2469 result[0] = finalSolution.cellX;
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);
2676 * @param cellX X coordinate of upper left corner expressed as a cell position
2682 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2691 int x = hStartPadding + (cellX * mBorderSpace.x) + (cellX * cellWidth);
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
2775 cellX = cellPos.cellX;
2787 + ", x=" + cellX + ", y=" + cellY + "]";
2816 for (int cellX = 0; cellX < getCountX(); cellX++) {
2818 cellToPoint(cellX, cellY, cellPoint);