Home
last modified time | relevance | path

Searched refs:collection (Results 1 – 25 of 32) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/util/
DForEachRemainingTester.java42 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 …]
DSpliteratorsTest.java449 Collection<String> collection = Arrays.asList(array); in testSpliterator_Collection() local
451 Spliterator<String> sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
455 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
458 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
461 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
464 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
467 sp = Spliterators.spliterator(collection, 0); in testSpliterator_Collection()
471 sp = Spliterators.spliterator(collection, Spliterator.ORDERED); in testSpliterator_Collection()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestInnerClass.java61 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 …]
DDOMTestFramework.java60 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
DDOMTestCase.java244 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 …]
DJUnitTestCaseAdapter.java226 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/
DEnumMapTest.java1000 Collection collection = enumColorMap.values(); in test_values() local
1003 assertSame("Should be same", collection1, collection); in test_values()
1005 collection.add(Integer.valueOf(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 …]
DArrayListTest.java97 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 …]
DEnumSetTest.java340 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 …]
DCollections2Test.java498 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()
/libcore/ojluni/src/test/java/util/HashMap/
DToArray.java52 …<T extends Comparable<T>> void checkToArray(String message, T[] expected, Collection<T> collection, in checkToArray() argument
57 checkToObjectArray(message, expected, collection, ignoreOrder); in checkToArray()
58 checkToTypedArray(message, expected, Arrays.copyOf(expected, 0), collection, ignoreOrder); in checkToArray()
59 checkToTypedArray(message, expected, expected.clone(), collection, ignoreOrder); in checkToArray()
63 checkToTypedArray(message, expected, biggerArray, collection, ignoreOrder); in checkToArray()
68 … Collection<T> collection, boolean ignoreOrder) { in checkToTypedArray() argument
69 T[] res = collection.toArray(inputArray); in checkToTypedArray()
105 … Collection<T> collection, boolean ignoreOrder) { in checkToObjectArray() argument
106 Object[] objects = collection.toArray(); in checkToObjectArray()
DTreeBinAssert.java138 private void doTest(Object collection, int[] hashes, in doTest() argument
145 itr = mkItr.apply(collection); in doTest()
151 addKey.accept(collection, new Key(h)); in doTest()
/libcore/ojluni/src/main/java/java/security/cert/
DCollectionCertStoreParameters.java86 public CollectionCertStoreParameters(Collection<?> collection) { in CollectionCertStoreParameters() argument
87 if (collection == null) in CollectionCertStoreParameters()
89 coll = collection; in CollectionCertStoreParameters()
/libcore/ojluni/src/test/java/util/Collections/
DWrappedUnmodifiableCollections.java41 private static <T,E extends T> void testWrapping(T collection, Function<T,E> wrapper) { in testWrapping() argument
42 var collection1 = wrapper.apply(collection); in testWrapping()
44 assertNotSame(collection, collection2); in testWrapping()
/libcore/ojluni/src/test/java/util/Collection/testlibrary/
DCollectionSupplier.java75 public final C collection; field in CollectionSupplier.TestCase
83 public TestCase(String name, Function<Collection<Integer>, C> supplier, C collection) { in TestCase() argument
87 Arrays.asList(collection.toArray(new Integer[0]))); in TestCase()
88 this.collection = collection; in TestCase()
93 return name + " " + collection.getClass().toString(); in toString()
/libcore/tools/upstream/src/main/java/libcore/
DLines.java36 public Lines(Collection<String> collection) { in Lines() argument
37 this.delegate = new ArrayList<>(collection); in Lines()
/libcore/ojluni/src/main/java/java/util/
DSpliterators.java1738 private final Collection<? extends T> collection; // null OK field in Spliterators.IteratorSpliterator
1754 public IteratorSpliterator(Collection<? extends T> collection, int characteristics) { in IteratorSpliterator() argument
1755 this.collection = collection; in IteratorSpliterator()
1773 this.collection = null; in IteratorSpliterator()
1791 this.collection = null; in IteratorSpliterator()
1815 i = it = collection.iterator(); in trySplit()
1816 s = est = (long) collection.size(); in trySplit()
1842 i = it = collection.iterator(); in forEachRemaining()
1843 est = (long)collection.size(); in forEachRemaining()
1852 it = collection.iterator(); in tryAdvance()
[all …]
/libcore/tools/openjdk-analyzer/src/libcore/tools/analyzer/openjdk/
DMain.java402 var collection = result.getAggregated(); in run() local
403 printInsn(null, collection); in run()
437 private void printInsn(MethodNode method, SignaturesCollection collection) { in printInsn() argument
453 collection.getClassStream() in printInsn()
456 collection.getClassStream() in printInsn()
459 var methodStrs = collection.getMethodStream() in printInsn()
470 var fieldStrs = collection.getFieldStream() in printInsn()
644 SignaturesCollection collection = collector.getCollection(); in run() local
645 collection.getClassStream() in run()
648 collection.getMethodStream().map(SignaturesCollector.Method::toString), in run()
[all …]
DSignaturesCollector.java93 public SignaturesCollector add(SignaturesCollection collection) { in add() argument
94 collection.mClasses.stream() in add()
97 collection.mFields.stream() in add()
100 collection.mMethods.stream() in add()
DDependencyAnalyzer.java159 SignaturesCollection collection = collector.getCollection(); in analyze() local
160 result.addMethodDependency(classNode, method, collection); in analyze()
161 topCollector.add(collection); in analyze()
/libcore/luni/src/test/resources/
Drecipt.dtd1 <!ELEMENT collection (description,recipe+)> element
/libcore/luni/src/test/resources/systemid/
Drecipt.dtd1 <!ELEMENT collection (description,recipe+)> element
/libcore/ojluni/src/test/java/util/Collection/
DCollectionDefaults.java153 final Collection<Integer> set = test.collection; in testForEach()
186 final Collection<Integer> set = test.collection; in testRemoveIf()
/libcore/tools/docs/crypto/
DREADME40 a collection of HTML tables suitable for copying-and-pasting into the docs
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DTestData.java84 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()

12