/libcore/luni/src/test/java/libcore/java/util/ |
D | ForEachRemainingTester.java | 42 Collection<T> collection = collectionSupplier.get(); in runTests() local 43 if (collection instanceof List) { in runTests() 44 List<T> asList = (List<T>) collection; in runTests() 51 public static <T> void test_forEachRemaining_list(List<T> collection, T[] initialData) in test_forEachRemaining_list() argument 53 test_forEachRemaining(collection, initialData); in test_forEachRemaining_list() 56 ListIterator<T> lit = collection.listIterator(1); in test_forEachRemaining_list() 67 public static <T> void test_forEachRemaining(Collection<T> collection, T[] initialData) in test_forEachRemaining() argument 69 collection.addAll(Arrays.asList(initialData)); in test_forEachRemaining() 72 collection.iterator().forEachRemaining((T i) -> recorder.add(i)); in test_forEachRemaining() 74 assertEquals(new ArrayList<T>(collection), recorder); in test_forEachRemaining() [all …]
|
D | SpliteratorsTest.java | 445 Collection<String> collection = Arrays.asList(array); in testSpliterator_Collection() local 447 Spliterator<String> sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection() 451 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection() 454 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection() 457 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection() 460 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection() 463 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection() 467 sp = Spliterators.spliterator(collection, Spliterator.ORDERED); in testSpliterator_Collection()
|
D | CollectionsTest.java | 1190 Collection<V> collection, List<V> elementsInOrder) { in check_orderedCollection() argument 1191 Spliterator<V> spliterator = collection.spliterator(); in check_orderedCollection() 1194 SpliteratorTester.runSizedTests(collection, elementsInOrder.size()); in check_orderedCollection() 1197 SpliteratorTester.runSubSizedTests(collection, elementsInOrder.size()); in check_orderedCollection() 1199 SpliteratorTester.runOrderedTests(collection); in check_orderedCollection()
|
D | OldCollectionsTest.java | 703 private void assertSerialized(Collection<?> collection, String s, final boolean definesEquals) { in assertSerialized() argument 704 new SerializationTester<Collection<?>>(collection, s) { in assertSerialized() argument
|
/libcore/dom/src/test/java/org/w3c/domts/ |
D | DOMTestInnerClass.java | 61 public void assertSize(String assertID, int expectedSize, NodeList collection) { in assertSize() argument 62 test.assertSize(assertID, expectedSize, collection); in assertSize() 66 NamedNodeMap collection) { in assertSize() argument 67 test.assertSize(assertID, expectedSize, collection); in assertSize() 71 Collection collection) { in assertSize() argument 72 test.assertSize(assertID, expectedSize, collection); in assertSize() 177 public int size(Collection collection) { in size() argument 178 return test.size(collection); in size() 181 public int size(NamedNodeMap collection) { in size() argument 182 return test.size(collection); in size() [all …]
|
D | DOMTestFramework.java | 60 NodeList collection); in assertSize() argument 66 NamedNodeMap collection); in assertSize() argument 72 Collection collection); in assertSize() argument 172 int size(Collection collection); in size() argument 174 int size(NamedNodeMap collection); in size() argument 176 int size(NodeList collection); in size() argument
|
D | DOMTestCase.java | 244 NodeList collection) { in assertSize() argument 245 framework.assertSize(this, assertID, expectedSize, collection); in assertSize() 261 NamedNodeMap collection) { in assertSize() argument 262 framework.assertSize(this, assertID, expectedSize, collection); in assertSize() 278 Collection collection) { in assertSize() argument 279 framework.assertSize(this, assertID, expectedSize, collection); in assertSize() 957 public int size(Collection collection) { in size() argument 958 return framework.size(collection); in size() 968 public int size(NamedNodeMap collection) { in size() argument 969 return framework.size(collection); in size() [all …]
|
D | JUnitTestCaseAdapter.java | 226 public void assertSize(DOMTestCase test, String assertID, int expectedSize, NodeList collection) { in assertSize() argument 227 assertEquals(assertID,expectedSize, collection.getLength()); in assertSize() 230 …lic void assertSize(DOMTestCase test, String assertID, int expectedSize, NamedNodeMap collection) { in assertSize() argument 231 assertEquals(assertID, expectedSize, collection.getLength()); in assertSize() 234 …public void assertSize(DOMTestCase test, String assertID, int expectedSize, Collection collection)… in assertSize() argument 235 assertEquals(assertID, expectedSize, collection.size()); in assertSize() 478 public int size(Collection collection) { in size() argument 479 return collection.size(); in size() 482 public int size(NamedNodeMap collection) { in size() argument 483 return collection.getLength(); in size() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | EnumMapTest.java | 1000 Collection collection = enumColorMap.values(); in test_values() local 1003 assertSame("Should be same", collection1, collection); in test_values() 1005 collection.add(new Integer(1)); in test_values() 1011 assertTrue("Returned false for contained object", collection in test_values() 1013 assertTrue("Returned false for contained object", collection in test_values() 1015 assertFalse("Returned true for uncontained object", collection in test_values() 1018 assertTrue("Returned false when the object can be removed", collection in test_values() 1020 assertFalse("Returned true for uncontained object", collection in test_values() 1023 collection.remove(null)); in test_values() 1028 assertTrue("Returned false for contained object", collection in test_values() [all …]
|
D | ArrayListTest.java | 97 Collection<String> collection = shrinksOnSize("A", "B", "C", "D"); in testConstructorWithConcurrentCollection() local 98 ArrayList<String> list = new ArrayList<String>(collection); in testConstructorWithConcurrentCollection() 918 ArrayList collection = new ArrayList(); in test_addAll() local 919 collection.add("1"); in test_addAll() 920 collection.add("2"); in test_addAll() 921 collection.add("3"); in test_addAll() 922 assertEquals(3, collection.size()); in test_addAll() 924 list.addAll(0, collection); in test_addAll() 931 collection.add("4"); in test_addAll() 932 collection.add("5"); in test_addAll() [all …]
|
D | EnumSetTest.java | 340 Collection<EnumFoo> collection = new ArrayList<EnumFoo>(); in test_addAll_LCollection() local 341 collection.add(EnumFoo.a); in test_addAll_LCollection() 342 collection.add(EnumFoo.b); in test_addAll_LCollection() 343 result = set.addAll(collection); in test_addAll_LCollection() 817 Collection<EnumFoo> collection = new ArrayList<EnumFoo>(); in test_containsAll_LCollection() local 818 collection.add(EnumFoo.a); in test_containsAll_LCollection() 819 result = set.containsAll(collection); in test_containsAll_LCollection() 935 Collection collection = new ArrayList(); in test_CopyOf_LCollection() local 937 EnumSet.copyOf(collection); in test_CopyOf_LCollection() 943 collection.add(new Object()); in test_CopyOf_LCollection() [all …]
|
D | Collections2Test.java | 498 void testCollectionForEach(Collection<Integer> collection) { in testCollectionForEach() argument 500 collection.forEach(k -> output.add(k)); in testCollectionForEach() 502 assertEquals(new ArrayList<>(collection), output); in testCollectionForEach()
|
D | TreeMapTest.java | 1276 Collection collection = new LinkedList(); in test_navigableKeySet() local 1277 set.addAll(collection); in test_navigableKeySet() 1279 collection.add(new Object()); in test_navigableKeySet() 1280 set.addAll(collection); in test_navigableKeySet() 1292 collection.add(new Integer(200).toString()); in test_navigableKeySet() 1293 set.retainAll(collection); in test_navigableKeySet() 1295 set.removeAll(collection); in test_navigableKeySet()
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | CollectionCertStoreParameters.java | 86 public CollectionCertStoreParameters(Collection<?> collection) { in CollectionCertStoreParameters() argument 87 if (collection == null) in CollectionCertStoreParameters() 89 coll = collection; in CollectionCertStoreParameters()
|
/libcore/tools/upstream/src/main/java/libcore/ |
D | Lines.java | 36 public Lines(Collection<String> collection) { in Lines() argument 37 this.delegate = new ArrayList<>(collection); in Lines()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Spliterators.java | 1694 private final Collection<? extends T> collection; // null OK field in Spliterators.IteratorSpliterator 1710 public IteratorSpliterator(Collection<? extends T> collection, int characteristics) { in IteratorSpliterator() argument 1711 this.collection = collection; in IteratorSpliterator() 1729 this.collection = null; in IteratorSpliterator() 1747 this.collection = null; in IteratorSpliterator() 1771 i = it = collection.iterator(); in trySplit() 1772 s = est = (long) collection.size(); in trySplit() 1798 i = it = collection.iterator(); in forEachRemaining() 1799 est = (long)collection.size(); in forEachRemaining() 1808 it = collection.iterator(); in tryAdvance() [all …]
|
/libcore/luni/src/test/resources/ |
D | recipt.dtd | 1 <!ELEMENT collection (description,recipe+)> element
|
/libcore/luni/src/test/resources/systemid/ |
D | recipt.dtd | 1 <!ELEMENT collection (description,recipe+)> element
|
/libcore/tools/docs/crypto/ |
D | README | 40 a collection of HTML tables suitable for copying-and-pasting into the docs
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | TestData.java | 83 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { in ofCollection() argument 84 …return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parall… in ofCollection()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | TestData.java | 84 public static <T> OfRef<T> ofCollection(String name, Collection<T> collection) { in ofCollection() argument 85 …return new AbstractTestData.RefTestData<>(name, collection, Collection::stream, Collection::parall… in ofCollection()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | X509CertSelectorTest.java | 1622 protected Collection<List<?>> collection = null; field in X509CertSelectorTest.TestCert 1632 public TestCert(Collection<List<?>> collection) { in TestCert() argument 1633 setCollection(collection); in TestCert() 1685 public void setCollection(Collection<List<?>> collection) { in setCollection() argument 1686 this.collection = collection; in setCollection()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | AbstractCookiesTest.java | 734 private void assertContains(Collection<String> collection, String element) { in assertContains() argument 735 for (String c : collection) { in assertContains() 740 fail("No " + element + " in " + collection); in assertContains() 743 private void assertContainsAll(Collection<String> collection, String... toFind) { in assertContainsAll() argument 745 assertContains(collection, s); in assertContainsAll()
|