Home | History | Annotate | Download | only in launcher2

Lines Matching refs:cellY

636         if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
740 cellInfo.cellY = lp.cellY;
757 cellInfo.cellY = cellXY[1];
790 cellInfo.cellY = -1;
836 * @param cellY Y coordinate of the cell
840 void cellToPoint(int cellX, int cellY, int[] result) {
845 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap);
852 * @param cellY Y coordinate of the cell
856 void cellToCenterPoint(int cellX, int cellY, int[] result) {
857 regionToCenterPoint(cellX, cellY, 1, 1, result);
864 * @param cellY Y coordinate of the cell
868 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
873 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) +
881 * @param cellY Y coordinate of the cell
884 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) {
888 final int top = vStartPadding + cellY * (mCellHeight + mHeightGap);
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;
1122 lp.cellY = info.cellY = cellY;
1125 lp.tmpCellY = cellY;
1210 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) {
1224 if (cellX != oldDragCellX || cellY != oldDragCellY) {
1226 mDragCell[1] = cellY;
1229 cellToPoint(cellX, cellY, topLeft);
1269 cellToRect(cellX, cellY, spanX, spanY, r);
1504 * @param cellY The Y cell nearest which you want to search for a vacant area.
1512 * cellY, spanX, spanY) are occupied. This is used when try to move a group of views.
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);
2089 c.y = cellY;
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 ||
2419 info.cellY = lp.cellY = lp.tmpCellY;
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) {
2544 lp.tmpCellY = lp.cellY;
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);
2959 * @param cellY Y coordinate of upper left corner expressed as a cell position
2964 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2977 int y = vStartPadding + cellY * (cellHeight + heightGap);
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;
3116 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) {
3177 public int cellY;
3208 * or whether these will be computed based on cellX, cellY, cellHSpan and cellVSpan.
3242 this.cellY = source.cellY;
3247 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) {
3250 this.cellY = cellY;
3261 int myCellY = useTmpCoords ? tmpCellY : cellY;
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
3322 int cellY = -1;
3331 + ", x=" + cellX + ", y=" + cellY + "]";