Lines Matching refs:occupied
1077 boolean[][] occupied = mOccupied;
1079 occupied = mTmpOccupied;
1095 occupied[lp.cellX][lp.cellY] = false;
1096 occupied[cellX][cellY] = true;
1305 * @param ignoreOccupied If true, the result can be an occupied cell
1342 * @param ignoreOccupied If true, the result can be an occupied cell
1350 boolean[][] occupied) {
1353 markCellsAsUnoccupiedForView(ignoreView, occupied);
1384 if (occupied[x + i][y + j]) {
1401 if (x + xSize > countX -1 || occupied[x + xSize][y + j]) {
1411 if (y + ySize > countY - 1 || occupied[x + i][y + ySize]) {
1460 // re-mark space taken by ignoreView as occupied
1461 markCellsAsOccupiedForView(ignoreView, occupied);
1485 * @param occoupied The array which represents which cells in the CellLayout are occupied
1487 * cellY, spanX, spanY) are occupied. This is used when try to move a group of views.
1494 boolean[][] occupied, boolean blockOccupied[][], int[] result) {
1509 if (occupied[x + i][y + j] && (blockOccupied == null || blockOccupied[i][j])) {
1828 // Mark the occupied state as false for the group of views we want to move.
1860 // Adding view to cluster, mark it as not occupied.
1884 // In either case, we set the occupied array as marked for the location of the views
1909 // Mark the occupied state as false for the group of views we want to move.
1918 // We mark more precisely which parts of the bounding rect are truly occupied, allowing
1942 // In either case, we set the occupied array as marked for the location of the views
1950 private void markCellsForRect(Rect r, boolean[][] occupied, boolean value) {
1951 markCellsForView(r.left, r.top, r.width(), r.height(), occupied, value);
1957 private boolean attemptPushInDirection(ArrayList<View> intersectingViews, Rect occupied,
1965 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
1973 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
1985 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
1993 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2005 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2012 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2027 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2035 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2122 private void copyOccupiedArray(boolean[][] occupied) {
2125 occupied[i][j] = mOccupied[i][j];
2134 // Copy the current occupied array into the temporary occupied array. This array will be
2213 boolean[][] occupied = DESTRUCTIVE_REORDER ? mOccupied : mTmpOccupied;
2216 occupied[i][j] = false;
2228 markCellsForView(c.x, c.y, c.spanX, c.spanY, occupied, true);
2233 solution.dragViewSpanY, occupied, true);
2718 * @param ignoreView Considers space occupied by this view as unoccupied
2738 * @param ignoreView Considers space occupied by this view as unoccupied
2757 * @param ignoreView Considers space occupied by this view as unoccupied
2789 * Like above, but ignores any cells occupied by the item "ignoreView"
2825 int intersectX, int intersectY, View ignoreView, boolean occupied[][]) {
2827 markCellsAsUnoccupiedForView(ignoreView, occupied);
2853 if (occupied[x + i][y + j]) {
2855 // an occupied cell
2880 // re-mark space taken by ignoreView as occupied
2881 markCellsAsOccupiedForView(ignoreView, occupied);
3036 int xCount, int yCount, boolean[][] occupied) {
3040 boolean available = !occupied[x][y];
3043 available = available && !occupied[i][j];
3075 public void markCellsAsOccupiedForView(View view, boolean[][] occupied) {
3078 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true);
3084 public void markCellsAsUnoccupiedForView(View view, boolean occupied[][]) {
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,
3095 occupied[x][y] = value;