Home | History | Annotate | Download | only in launcher3

Lines Matching refs:cellX

609         if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
725 * @param cellX X coordinate of the cell
730 void cellToPoint(int cellX, int cellY, int[] result) {
734 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap);
741 * @param cellX X coordinate of the cell
746 void cellToCenterPoint(int cellX, int cellY, int[] result) {
747 regionToCenterPoint(cellX, cellY, 1, 1, result);
753 * @param cellX X coordinate of the cell
758 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
761 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) +
770 * @param cellX X coordinate of the cell
774 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) {
777 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap);
973 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
994 occupied[lp.cellX][lp.cellY] = false;
995 occupied[cellX][cellY] = true;
999 lp.cellX = info.cellX = cellX;
1002 lp.tmpCellX = cellX;
1087 void visualizeDropLocation(View v, Bitmap dragOutline, int originX, int originY, int cellX,
1096 if (cellX != oldDragCellX || cellY != oldDragCellY) {
1097 mDragCell[0] = cellX;
1101 cellToPoint(cellX, cellY, topLeft);
1143 cellToRect(cellX, cellY, spanX, spanY, r);
1377 * @param cellX The X cell nearest to which you want to search for a vacant area.
1385 * @param blockOccupied The array which represents which cells in the specified block (cellX,
1392 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction,
1415 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY));
1417 computeDirectionVector(x - cellX, y - cellY, curDirection);
1950 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction,
1953 if (cellX < 0 || cellY < 0) return false;
1956 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
1962 c.x = cellX;
1966 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2081 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan);
2153 ReorderPreviewAnimation rha = new ReorderPreviewAnimation(child, mode, lp.cellX,
2307 if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY ||
2311 info.cellX = lp.cellX = lp.tmpCellX;
2398 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY,
2401 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2404 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2411 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan);
2436 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) {
2437 lp.tmpCellX = lp.cellX;
2439 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2447 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY,
2450 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY);
2871 * @param cellX X coordinate of upper left corner expressed as a cell position
2877 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2889 int x = hStartPadding + cellX * (cellWidth + widthGap);
3016 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true);
3025 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, false);
3028 private void markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied,
3030 if (cellX < 0 || cellY < 0) return;
3031 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) {
3087 public int cellX;
3124 * or whether these will be computed based on cellX, cellY, cellHSpan and cellVSpan.
3162 this.cellX = source.cellX;
3168 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) {
3170 this.cellX = cellX;
3181 int myCellX = useTmpCoords ? tmpCellX : cellX;
3198 return "(" + this.cellX + ", " + this.cellY + ")";
3235 // 1. When dragging items (mDragInfo in Workspace), we store the View, its cellX & cellY,
3238 // cellX and cellY coordinates and which page was clicked. We then set this as a tag on
3242 int cellX = -1;
3251 cellX = info.cellX;
3262 + ", x=" + cellX + ", y=" + cellY + "]";