• Home
  • Raw
  • Download

Lines Matching refs:S2CellId

33     ArrayList<S2CellId> ids = Lists.newArrayList();  in testBasic()
37 S2CellId face1Id = S2CellId.fromFacePosLevel(1, 0, 0); in testBasic()
44 S2CellId face2Id = S2CellId.fromFacePosLevel(2, 0, 0); in testBasic()
61 Set<S2CellId> randomCells = new HashSet<S2CellId>(); in testContainsCellUnion()
63 randomCells.add(getRandomCellId(S2CellId.MAX_LEVEL)); in testContainsCellUnion()
70 while (!randomCells.add(getRandomCellId(S2CellId.MAX_LEVEL))) { in testContainsCellUnion()
80 Set<S2CellId> parents = new HashSet<S2CellId>(); in testContainsCellUnion()
81 for (S2CellId cellId : union) { in testContainsCellUnion()
92 private void addCells(S2CellId id, boolean selected, List<S2CellId> input, in addCells()
93 ArrayList<S2CellId> expected) { in addCells()
101 if (id.equals(S2CellId.none())) { in addCells()
104 addCells(S2CellId.fromFacePosLevel(face, 0, 0), false, input, expected); in addCells()
118 if (!selected && random(S2CellId.MAX_LEVEL - id.level()) != 0) { in addCells()
139 S2CellId child = id.childBegin(); in addCells()
172 ArrayList<S2CellId> input = Lists.newArrayList(); in testNormalize()
173 ArrayList<S2CellId> expected = Lists.newArrayList(); in testNormalize()
174 addCells(S2CellId.none(), false, input, expected); in testNormalize()
204 assertTrue(cellunion.contains(input.get(j).childBegin(S2CellId.MAX_LEVEL))); in testNormalize()
205 assertTrue(cellunion.intersects(input.get(j).childBegin(S2CellId.MAX_LEVEL))); in testNormalize()
216 ArrayList<S2CellId> x = Lists.newArrayList(); in testNormalize()
217 ArrayList<S2CellId> y = Lists.newArrayList(); in testNormalize()
218 ArrayList<S2CellId> xOrY = Lists.newArrayList(); in testNormalize()
219 ArrayList<S2CellId> xAndY = Lists.newArrayList(); in testNormalize()
249 S2CellId yId = yCells.cellId(j); in testNormalize()
253 S2CellId xId = xCells.cellId(k); in testNormalize()
276 ArrayList<S2CellId> test = Lists.newArrayList(); in testNormalize()
277 ArrayList<S2CellId> dummy = Lists.newArrayList(); in testNormalize()
279 addCells(S2CellId.none(), false, test, dummy); in testNormalize()
318 S2Cap cap = getRandomCap(S2Cell.averageArea(S2CellId.MAX_LEVEL), 4 * S2.M_PI); in testExpand()
332 checkCovering(cap, covering, true, new S2CellId()); in testExpand()
335 int minLevel = S2CellId.MAX_LEVEL; in testExpand()
340 checkCovering(expandedCap, covering, false, new S2CellId()); in testExpand()
361 ArrayList<S2CellId> ids = Lists.newArrayList(); in testLeafCellsCovered()
362 ids.add(S2CellId.fromFacePosLevel( in testLeafCellsCovered()
363 0, (1L << ((S2CellId.MAX_LEVEL << 1) - 1)), S2CellId.MAX_LEVEL)); in testLeafCellsCovered()
370 ids.add(S2CellId.fromFacePosLevel(0, 0, 0)); in testLeafCellsCovered()
383 ids.add(S2CellId.fromFacePosLevel(1, 0, 1)); in testLeafCellsCovered()
384 ids.add(S2CellId.fromFacePosLevel(2, 0, 2)); in testLeafCellsCovered()
385 ids.add(S2CellId.fromFacePosLevel(2, (1L << 60), 2)); in testLeafCellsCovered()
386 ids.add(S2CellId.fromFacePosLevel(3, 0, 14)); in testLeafCellsCovered()
387 ids.add(S2CellId.fromFacePosLevel(4, (1L << 60), 15)); in testLeafCellsCovered()
388 ids.add(S2CellId.fromFacePosLevel(4, 0, 27)); in testLeafCellsCovered()
389 ids.add(S2CellId.fromFacePosLevel(5, 0, 30)); in testLeafCellsCovered()
402 ArrayList<S2CellId> ids = Lists.newArrayList(); in testAverageBasedArea()
403 ids.add(S2CellId.fromFacePosLevel(1, 0, 1)); in testAverageBasedArea()
404 ids.add(S2CellId.fromFacePosLevel(5, 0, 30)); in testAverageBasedArea()
407 double expected = S2Cell.averageArea(S2CellId.MAX_LEVEL) * (1L + (1L << 58)); in testAverageBasedArea()
417 ArrayList<S2CellId> ids = Lists.newArrayList(); in testApproxArea()
418 ids.add(S2CellId.fromFacePosLevel(1, 0, 1)); in testApproxArea()
419 ids.add(S2CellId.fromFacePosLevel(5, 0, 30)); in testApproxArea()
432 ArrayList<S2CellId> ids = Lists.newArrayList(); in testExactArea()
433 ids.add(S2CellId.fromFacePosLevel(1, 0, 1)); in testExactArea()
434 ids.add(S2CellId.fromFacePosLevel(5, 0, 30)); in testExactArea()