Lines Matching refs:occupied
1098 boolean[][] occupied = mOccupied;
1100 occupied = mTmpOccupied;
1116 occupied[lp.cellX][lp.cellY] = false;
1117 occupied[cellX][cellY] = true;
1330 * @param ignoreOccupied If true, the result can be an occupied cell
1367 * @param ignoreOccupied If true, the result can be an occupied cell
1375 boolean[][] occupied) {
1378 markCellsAsUnoccupiedForView(ignoreView, occupied);
1409 if (occupied[x + i][y + j]) {
1426 if (x + xSize > countX -1 || occupied[x + xSize][y + j]) {
1436 if (y + ySize > countY - 1 || occupied[x + i][y + ySize]) {
1485 // re-mark space taken by ignoreView as occupied
1486 markCellsAsOccupiedForView(ignoreView, occupied);
1510 * @param occoupied The array which represents which cells in the CellLayout are occupied
1512 * cellY, spanX, spanY) are occupied. This is used when try to move a group of views.
1519 boolean[][] occupied, boolean blockOccupied[][], int[] result) {
1534 if (occupied[x + i][y + j] && (blockOccupied == null || blockOccupied[i][j])) {
1853 // Mark the occupied state as false for the group of views we want to move.
1885 // Adding view to cluster, mark it as not occupied.
1909 // In either case, we set the occupied array as marked for the location of the views
1934 // Mark the occupied state as false for the group of views we want to move.
1943 // We mark more precisely which parts of the bounding rect are truly occupied, allowing
1967 // In either case, we set the occupied array as marked for the location of the views
1975 private void markCellsForRect(Rect r, boolean[][] occupied, boolean value) {
1976 markCellsForView(r.left, r.top, r.width(), r.height(), occupied, value);
1982 private boolean attemptPushInDirection(ArrayList<View> intersectingViews, Rect occupied,
1990 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
1998 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2010 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2018 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2030 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2037 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2052 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2060 if (pushViewsToTempLocation(intersectingViews, occupied, direction,
2147 private void copyOccupiedArray(boolean[][] occupied) {
2150 occupied[i][j] = mOccupied[i][j];
2159 // Copy the current occupied array into the temporary occupied array. This array will be
2238 boolean[][] occupied = DESTRUCTIVE_REORDER ? mOccupied : mTmpOccupied;
2241 occupied[i][j] = false;
2253 markCellsForView(c.x, c.y, c.spanX, c.spanY, occupied, true);
2258 solution.dragViewSpanY, occupied, true);
2743 * @param ignoreView Considers space occupied by this view as unoccupied
2763 * @param ignoreView Considers space occupied by this view as unoccupied
2782 * @param ignoreView Considers space occupied by this view as unoccupied
2814 * Like above, but ignores any cells occupied by the item "ignoreView"
2850 int intersectX, int intersectY, View ignoreView, boolean occupied[][]) {
2852 markCellsAsUnoccupiedForView(ignoreView, occupied);
2878 if (occupied[x + i][y + j]) {
2880 // an occupied cell
2905 // re-mark space taken by ignoreView as occupied
2906 markCellsAsOccupiedForView(ignoreView, occupied);
3058 int xCount, int yCount, boolean[][] occupied) {
3062 boolean available = !occupied[x][y];
3065 available = available && !occupied[i][j];
3097 public void markCellsAsOccupiedForView(View view, boolean[][] occupied) {
3100 markCellsForView(lp.cellX, lp.cellY, lp.cellHSpan, lp.cellVSpan, occupied, true);
3106 public void markCellsAsUnoccupiedForView(View view, boolean occupied[][]) {
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,
3117 occupied[x][y] = value;