Home | History | Annotate | Download | only in launcher3

Lines Matching defs:cellY

619         if (lp.cellX >= 0 && lp.cellX <= mCountX - 1 && lp.cellY >= 0 && lp.cellY <= mCountY - 1) {
726 cellInfo.cellY = lp.cellY;
743 cellInfo.cellY = cellXY[1];
776 cellInfo.cellY = -1;
822 * @param cellY Y coordinate of the cell
826 void cellToPoint(int cellX, int cellY, int[] result) {
831 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap);
838 * @param cellY Y coordinate of the cell
842 void cellToCenterPoint(int cellX, int cellY, int[] result) {
843 regionToCenterPoint(cellX, cellY, 1, 1, result);
850 * @param cellY Y coordinate of the cell
854 void regionToCenterPoint(int cellX, int cellY, int spanX, int spanY, int[] result) {
859 result[1] = vStartPadding + cellY * (mCellHeight + mHeightGap) +
867 * @param cellY Y coordinate of the cell
870 void regionToRect(int cellX, int cellY, int spanX, int spanY, Rect result) {
874 final int top = vStartPadding + cellY * (mCellHeight + mHeightGap);
1074 public boolean animateChildToPosition(final View child, int cellX, int cellY, int duration,
1095 occupied[lp.cellX][lp.cellY] = false;
1096 occupied[cellX][cellY] = true;
1101 lp.cellY = info.cellY = cellY;
1104 lp.tmpCellY = cellY;
1189 int cellY, int spanX, int spanY, boolean resize, Point dragOffset, Rect dragRegion) {
1197 if (cellX != oldDragCellX || cellY != oldDragCellY) {
1199 mDragCell[1] = cellY;
1202 cellToPoint(cellX, cellY, topLeft);
1244 cellToRect(cellX, cellY, spanX, spanY, r);
1479 * @param cellY The Y cell nearest which you want to search for a vacant area.
1487 * cellY, spanX, spanY) are occupied. This is used when try to move a group of views.
1493 private int[] findNearestArea(int cellX, int cellY, int spanX, int spanY, int[] direction,
1516 Math.sqrt((x - cellX) * (x - cellX) + (y - cellY) * (y - cellY));
1518 computeDirectionVector(x - cellX, y - cellY, curDirection);
2051 private boolean rearrangementExists(int cellX, int cellY, int spanX, int spanY, int[] direction,
2054 if (cellX < 0 || cellY < 0) return false;
2057 mOccupiedRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2064 c.y = cellY;
2067 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2179 c = new CellAndSpan(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan);
2246 ReorderHintAnimation rha = new ReorderHintAnimation(child, lp.cellX, lp.cellY,
2389 if (info.cellX != lp.tmpCellX || info.cellY != lp.tmpCellY ||
2394 info.cellY = lp.cellY = lp.tmpCellY;
2480 private void getViewsIntersectingRegion(int cellX, int cellY, int spanX, int spanY,
2483 boundingRect.set(cellX, cellY, cellX + spanX, cellY + spanY);
2486 Rect r0 = new Rect(cellX, cellY, cellX + spanX, cellY + spanY);
2493 r1.set(lp.cellX, lp.cellY, lp.cellX + lp.cellHSpan, lp.cellY + lp.cellVSpan);
2517 if (lp.tmpCellX != lp.cellX || lp.tmpCellY != lp.cellY) {
2519 lp.tmpCellY = lp.cellY;
2520 animateChildToPosition(child, lp.cellX, lp.cellY, REORDER_ANIMATION_DURATION,
2528 boolean createAreaForResize(int cellX, int cellY, int spanX, int spanY,
2531 regionToCenterPoint(cellX, cellY, spanX, spanY, pixelXY);
2934 * @param cellY Y coordinate of upper left corner expressed as a cell position
2939 public void cellToRect(int cellX, int cellY, int cellHSpan, int cellVSpan, Rect resultRect) {
2952 int y = vStartPadding + cellY * (cellHeight + heightGap);
3078 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true);
3087 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, false);
3090 private void markCellsForView(int cellX, int cellY, int spanX, int spanY, boolean[][] occupied,
3092 if (cellX < 0 || cellY < 0) return;
3094 for (int y = cellY; y < cellY + spanY && y < mCountY; y++) {
3155 public int cellY;
3186 * or whether these will be computed based on cellX, cellY, cellHSpan and cellVSpan.
3225 this.cellY = source.cellY;
3230 public LayoutParams(int cellX, int cellY, int cellHSpan, int cellVSpan) {
3233 this.cellY = cellY;
3244 int myCellY = useTmpCoords ? tmpCellY : cellY;
3260 return "(" + this.cellX + ", " + this.cellY + ")";
3297 // 1. When dragging items (mDragInfo in Workspace), we store the View, its cellX & cellY,
3300 // cellX and cellY coordinates and which page was clicked. We then set this as a tag on
3305 int cellY = -1;
3314 + ", x=" + cellX + ", y=" + cellY + "]";