Lines Matching refs:cells
127 S2CellId parent, ArrayList<S2CellId> cells, Map<S2CellId, S2CellId> parentMap) { in expandCell() argument
128 cells.add(parent); in expandCell()
150 expandCell(child, cells, parentMap); in expandCell()
158 ArrayList<S2CellId> cells = new ArrayList<S2CellId>(); in testContainment() local
160 expandCell(S2CellId.fromFacePosLevel(face, 0, 0), cells, parentMap); in testContainment() local
162 for (int i = 0; i < cells.size(); ++i) { in testContainment()
163 for (int j = 0; j < cells.size(); ++j) { in testContainment()
165 for (S2CellId id = cells.get(j); id != cells.get(i); id = parentMap.get(id)) { in testContainment()
171 assertEquals(cells.get(i).contains(cells.get(j)), contained); in testContainment()
172 assertEquals(cells.get(j).greaterOrEquals(cells.get(i).rangeMin()) in testContainment()
173 && cells.get(j).lessOrEquals(cells.get(i).rangeMax()), contained); in testContainment()
174 assertEquals(cells.get(i).intersects(cells.get(j)), in testContainment()
175 cells.get(i).contains(cells.get(j)) || cells.get(j).contains(cells.get(i))); in testContainment()