Lines Matching refs:covering
34 S2CellUnion covering = new S2CellUnion(); in testRandomCells() local
35 coverer.getCovering(new S2Cell(id), covering.cellIds()); in testRandomCells()
36 assertEquals(covering.size(), 1); in testRandomCells()
37 assertEquals(covering.cellId(0), id); in testRandomCells()
42 S2RegionCoverer coverer, S2Region region, ArrayList<S2CellId> covering, boolean interior) { in checkCovering() argument
46 for (int i = 0; i < covering.size(); ++i) { in checkCovering()
47 int level = covering.get(i).level(); in checkCovering()
51 S2CellId key = covering.get(i).parent(coverer.minLevel()); in checkCovering()
58 if (covering.size() > coverer.maxCells()) { in checkCovering()
67 for (int i = 0; i < covering.size(); ++i) { in checkCovering()
68 assertTrue(region.contains(new S2Cell(covering.get(i)))); in checkCovering()
72 cellUnion.initFromCellIds(covering); in checkCovering()
92 ArrayList<S2CellId> covering = new ArrayList<S2CellId>(); in testRandomCaps() local
95 coverer.getCovering(cap, covering); in testRandomCaps()
96 checkCovering(coverer, cap, covering, false); in testRandomCaps()
105 assertTrue(covering.equals(covering2)); in testRandomCaps()
112 cells.initFromCellIds(covering); in testRandomCaps()
131 ArrayList<S2CellId> covering = new ArrayList<S2CellId>(); in testSimpleCoverings() local
132 S2RegionCoverer.getSimpleCovering(cap, cap.axis(), level, covering); in testSimpleCoverings()
133 checkCovering(coverer, cap, covering, false); in testSimpleCoverings()