Home | History | Annotate | Download | only in launcher2

Lines Matching refs:cellX

636         if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
739 cellInfo.cellX = lp.cellX;
756 cellInfo.cellX = cellXY[0];
789 cellInfo.cellX = -1;
835 * @param cellX X coordinate of the cell
840 void cellToPoint(int cellX, int cellY, int[] result) {
844 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap);
851 * @param cellX X coordinate of the cell
856 void cellToCenterPoint(int cellX, int cellY, int[] result) {
857 regionToCenterPoint(cellX, cellY, 1, 1, result);
863 * @param cellX X coordinate of the cell
868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
871 result[0] = hStartPadding + cellX * (mCellWidth + mWidthGap) +
880 * @param cellX X coordinate of the cell
884 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) {
887 final int left = hStartPadding + cellX * (mCellWidth + mWidthGap);
1095 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
1116 occupied[lp.cellX][lp.cellY] = false;
1117 occupied[cellX][cellY] = true;
1121 lp.cellX = info.cellX = cellX;
1124 lp.tmpCellX = cellX;
1209 void visualizeDropLocation(View v, Bitmap dragOutline, int originX, int originY, int cellX,
1224 if (cellX != oldDragCellX || cellY != oldDragCellY) {
1225 mDragCell[0] = cellX;
1229 cellToPoint(cellX, cellY, topLeft);
1269 cellToRect(cellX, cellY, spanX, spanY, r);
1503 * @param cellX The X cell nearest to which you want to search for a vacant area.
1511 * @param blockOccupied The array which represents which cells in the specified block (cellX,
1518 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction,
1541 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY));
1543 computeDirectionVector(x - cellX, y - cellY, curDirection);
2076 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction,
2079 if (cellX < 0 || cellY < 0) return false;
2082 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2088 c.x = cellX;
2092 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2204 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan);
2271 ReorderHintAnimation rha = new ReorderHintAnimation(child, lp.cellX, lp.cellY,
2414 if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY ||
2418 info.cellX = lp.cellX = lp.tmpCellX;
2505 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY,
2508 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2511 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2518 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan);
2542 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) {
2543 lp.tmpCellX = lp.cellX;
2545 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2553 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY,
2556 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY);
2958 * @param cellX X coordinate of upper left corner expressed as a cell position
2964 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2976 int x = hStartPadding + cellX * (cellWidth + widthGap);
3100 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true);
3109 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, false);
3112 private void markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied,
3114 if (cellX < 0 || cellY < 0) return;
3115 for (int x = cellX; x < cellX + spanX && x < mCountX; x++) {
3171 public int cellX;
3208 * or whether these will be computed based on cellX, cellY, cellHSpan and cellVSpan.
3241 this.cellX = source.cellX;
3247 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) {
3249 this.cellX = cellX;
3260 int myCellX = useTmpCoords ? tmpCellX : cellX;
3277 return "(" + this.cellX + ", " + this.cellY + ")";
3314 // 1. When dragging items (mDragInfo in Workspace), we store the View, its cellX & cellY,
3317 // cellX and cellY coordinates and which page was clicked. We then set this as a tag on
3321 int cellX = -1;
3331 + ", x=" + cellX + ", y=" + cellY + "]";