/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ArrayListTest.java | 19 import java.util.ArrayList; 51 ArrayList subList = new ArrayList(); in test_Constructor() 62 ArrayList al = new ArrayList(5); in test_ConstructorI() 65 al = new ArrayList(0); in test_ConstructorI() 69 new ArrayList(-1); in test_ConstructorI() 80 ArrayList al = new ArrayList(Arrays.asList(objArray)); in test_ConstructorLjava_util_Collection() 88 new ArrayList(null); in test_ConstructorLjava_util_Collection() 98 ArrayList<String> list = new ArrayList<String>(collection); in testConstructorWithConcurrentCollection() 213 ArrayList listWithNulls = new ArrayList(); in test_addAllILjava_util_Collection() 238 ArrayList obj = new ArrayList(); in test_addAllILjava_util_Collection_2() [all …]
|
D | AbstractListTest.java | 21 import java.util.ArrayList; 34 ArrayList arrayList; 37 this.arrayList = new ArrayList(); in SimpleList() 61 List list = new ArrayList(); in test_hashCode() 95 List list = new ArrayList(); in test_listIterator() 159 List al = new ArrayList(); in test_subListII() 182 List al = new ArrayList(); in test_subList_empty() 214 ArrayList<E> list = new ArrayList<E>(); 282 List mainList = new ArrayList(); in test_subList_addAll() 307 AbstractList al = new ArrayList(); in test_indexOfLjava_lang_Object() [all …]
|
D | CollectionsTest.java | 33 import java.util.ArrayList; 101 ArrayList normalCountingList; 103 ArrayList offsetCountingList; 130 normalCountingList = new ArrayList(colSize); in SynchCollectionChecker() 131 offsetCountingList = new ArrayList(colSize); in SynchCollectionChecker() 303 class Mock_ArrayList extends ArrayList { 329 ArrayList al = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() 344 ArrayList ar1 = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() 345 ArrayList ar2 = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() 381 ArrayList a1 = new ArrayList(); in test_copy_check_index() [all …]
|
/libcore/ojluni/src/test/java/util/ArrayList/ |
D | ArrayManagement.java | 32 package test.java.util.ArrayList; 36 import java.util.ArrayList; 52 ELEMENT_DATA = ArrayList.class.getDeclaredField("elementData"); 61 static Object[] elementData(ArrayList<?> list) { in elementData() 69 static int modCount(ArrayList<?> list) { in modCount() 77 static int capacity(ArrayList<?> list) { in capacity() 85 static void ensureCapacity(ArrayList<Object> list, int capacity) { in ensureCapacity() 101 static void addOneElement(ArrayList<Object> list) { in addOneElement() 116 ArrayList<Object> list = new ArrayList<>(); in defaultCapacity() 117 assertEquals(capacity(new ArrayList<Object>()), 0); in defaultCapacity() [all …]
|
D | EnsureCapacity.java | 31 package test.java.util.ArrayList; 33 import java.util.ArrayList; 51 ArrayList<String> al = new ArrayList<String>(); in testArrayList()
|
D | AddAll.java | 31 package test.java.util.ArrayList; 33 import java.util.ArrayList; 47 new ArrayList().addAll(m.keySet()); in main() 68 List list = new ArrayList(); in main() 86 List list = new ArrayList(); in main()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | PrimitiveIteratorTest.java | 21 import java.util.ArrayList; 94 final ArrayList<Integer> recorder = new ArrayList<>(); in testIntIterator_forEachRemaining_Consumer() 111 final ArrayList<Integer> recorder = new ArrayList<>(); in testIntIterator_forEachRemaining_boxedConsumer() 119 final ArrayList<Integer> recorder2 = new ArrayList<>(); in testIntIterator_forEachRemaining_boxedConsumer() 141 final ArrayList<Long> recorder = new ArrayList<>(); in testLongIterator_forEachRemaining_Consumer() 158 final ArrayList<Long> recorder = new ArrayList<>(); in testLongIterator_forEachRemaining_boxedConsumer() 166 final ArrayList<Long> recorder2 = new ArrayList<>(); in testLongIterator_forEachRemaining_boxedConsumer() 188 final ArrayList<Double> recorder = new ArrayList<>(); in testDoubleIterator_forEachRemaining_Consumer() 205 final ArrayList<Double> recorder = new ArrayList<>(); in testDoubleIterator_forEachRemaining_boxedConsumer() 213 final ArrayList<Double> recorder2 = new ArrayList<>(); in testDoubleIterator_forEachRemaining_boxedConsumer()
|
D | ArrayListTest.java | 19 import java.util.ArrayList; 25 ListDefaultMethodTester.test_replaceAll(new ArrayList<>()); in test_replaceAll() 29 ListDefaultMethodTester.test_sort(new ArrayList<>()); in test_sort() 33 ArrayList<String> list = new ArrayList<>(Arrays.asList("zero", "one", "two")); in test_sublist_throws() 67 List<String> list = new ArrayList<>(Arrays.asList("zero", "one", "two")); in test_sublist_set()
|
D | SpliteratorTester.java | 20 import java.util.ArrayList; 45 List<T> recorder = new ArrayList<T>(expectedElements.size()); in runBasicIterationTests() 63 ArrayList<T> recorder = new ArrayList<T>(expectedElements.size()); in runBasicIterationTests_unordered() 86 Spliterator<T> spliterator, ArrayList<T> recorder) { in recordAndAssertBasicIteration() 120 ArrayList<T> recorder = new ArrayList<>(); in runBasicSplitTests() 179 List<T> result = new ArrayList<>(); in toList() 187 List<T> result = new ArrayList<>(); in toList() 274 ArrayList<T> allElements = new ArrayList<>(); in runDistinctTests() 310 ArrayList<T> elements = new ArrayList<>(); in runSortedTests() 313 ArrayList<T> sortedElements = new ArrayList<>(elements); in runSortedTests() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ProgressMonitor.java | 28 import java.util.ArrayList; 66 public ArrayList<ProgressSource> getProgressSources() { in getProgressSources() 67 ArrayList<ProgressSource> snapshot = new ArrayList<ProgressSource>(); in getProgressSources() 117 ArrayList<ProgressListener> listeners = new ArrayList<ProgressListener>(); in registerSource() 154 ArrayList<ProgressListener> listeners = new ArrayList<ProgressListener>(); in unregisterSource() 186 ArrayList<ProgressListener> listeners = new ArrayList<ProgressListener>(); in updateProgress() 229 private ArrayList<ProgressSource> progressSourceList = new ArrayList<ProgressSource>(); 232 private ArrayList<ProgressListener> progressListenerList = new ArrayList<ProgressListener>();
|
/libcore/xml/src/main/java/org/xmlpull/v1/ |
D | XmlPullParserFactory.java | 6 import java.util.ArrayList; 22 protected ArrayList parserClasses; 23 protected ArrayList serializerClasses; 36 parserClasses = new ArrayList<String>(); in XmlPullParserFactory() 37 serializerClasses = new ArrayList<String>(); in XmlPullParserFactory() 140 ArrayList<Exception> exceptions = null; in getParserInstance() 143 exceptions = new ArrayList<Exception>(); in getParserInstance() 164 ArrayList<Exception> exceptions = null; in getSerializerInstance() 167 exceptions = new ArrayList<Exception>(); in getSerializerInstance() 188 ArrayList<Exception> exceptions) { in newInstantiationException()
|
/libcore/ojluni/src/test/java/util/SequencedCollection/ |
D | Basic.java | 94 var r = new ArrayList<T>(list); in copyReversed() 101 var result = new ArrayList<Object[]>(); in all() 111 new Object[] { "ArrayList", new ArrayList<>(ORIGINAL), ORIGINAL }, in populated() 122 new Object[] { "UnmodColl", ucoll(new ArrayList<>(ORIGINAL)), ORIGINAL }, in populated() 131 new Object[] { "ArrayList", new ArrayList<>(), List.of() }, in empties() 145 new Object[] { "UnmodColl", ucoll(new ArrayList<>()), List.of() }, in empties() 154 new Object[] { "ArrayList", new ArrayList<>(ORIGINAL), ORIGINAL }, in adds() 175 new Object[] { "ArrayList", new ArrayList<>(ORIGINAL), ORIGINAL }, in removes() 191 new Object[] { "ArrayList", new ArrayList<>(), List.of() }, in emptyRemoves() 207 new Object[] { "ArrayList", new ArrayList<>(ORIGINAL), ORIGINAL }, in serializable() [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | Collection8Test.java | 39 import java.util.ArrayList; 307 ? new ArrayList(c) 313 ArrayList survivors = new ArrayList(); 314 ArrayList accepts = new ArrayList(); 315 ArrayList rejects = new ArrayList(); 393 ArrayList copy = new ArrayList(); 399 ArrayList iterated = new ArrayList(); 400 ArrayList spliterated = new ArrayList(); 432 ArrayList copy = new ArrayList(); 438 ArrayList iterated = new ArrayList(); [all …]
|
D | AbstractExecutorServiceTest.java | 41 import java.util.ArrayList; 286 e.invokeAny(new ArrayList<Callable<String>>()); in testInvokeAny2() 298 List<Callable<Long>> l = new ArrayList<>(); in testInvokeAny3() 315 List<Callable<String>> l = new ArrayList<>(); in testInvokeAny4() 332 List<Callable<String>> l = new ArrayList<>(); in testInvokeAny5() 359 List<Future<String>> r = e.invokeAll(new ArrayList<Callable<String>>()); in testInvokeAll2() 370 List<Callable<String>> l = new ArrayList<>(); in testInvokeAll3() 386 List<Callable<String>> l = new ArrayList<>(); in testInvokeAll4() 405 List<Callable<String>> l = new ArrayList<>(); in testInvokeAll5() 434 List<Callable<String>> l = new ArrayList<>(); in testTimedInvokeAnyNullTimeUnit() [all …]
|
/libcore/luni/src/main/java/org/xml/sax/helpers/ |
D | AttributeListImpl.java | 8 import java.util.ArrayList; 286 private ArrayList<String> names = new ArrayList<String>(); 287 private ArrayList<String> types = new ArrayList<String>(); 288 private ArrayList<String> values = new ArrayList<String>();
|
/libcore/ojluni/src/main/java/java/security/cert/ |
D | PKIXParameters.java | 31 import java.util.ArrayList; 123 this.certPathCheckers = new ArrayList<>(); in PKIXParameters() 124 this.certStores = new ArrayList<>(); in PKIXParameters() 159 this.certPathCheckers = new ArrayList<>(); in PKIXParameters() 160 this.certStores = new ArrayList<>(); in PKIXParameters() 283 this.certStores = new ArrayList<>(); in setCertStores() 291 this.certStores = new ArrayList<>(stores); in setCertStores() 319 (new ArrayList<>(this.certStores)); in getCertStores() 547 List<PKIXCertPathChecker> tmpList = new ArrayList<>(); in setCertPathCheckers() 553 this.certPathCheckers = new ArrayList<>(); in setCertPathCheckers() [all …]
|
/libcore/ojluni/src/test/java/util/LinkedHashMap/ |
D | Basic.java | 35 import java.util.ArrayList; 133 List<Integer> l = new ArrayList(mapSize); in testBasic() 139 Assert.assertTrue(new ArrayList(m.keySet()).equals(l)); in testBasic() 144 Assert.assertTrue(new ArrayList(m.keySet()).equals(l)); in testBasic() 150 Assert.assertTrue(new ArrayList(m.keySet()).equals(l)); in testBasic() 155 List<Integer> l2 = new ArrayList(l); in testBasic() 161 Assert.assertTrue(new ArrayList(m2.keySet()).equals(l)); in testBasic() 169 Assert.assertTrue(new ArrayList(m.keySet()).equals(l)); in testBasic() 175 Assert.assertTrue(new ArrayList(m.keySet()).equals(l2)); in testBasic() 181 Assert.assertTrue(new ArrayList(m.keySet()).equals(l2)); in testBasic() [all …]
|
/libcore/benchmarks/src/benchmarks/ |
D | ArrayListIterationBenchmark.java | 19 import java.util.ArrayList; 25 ArrayList<Foo> mList = new ArrayList<Foo>(); 32 ArrayList<Foo> list = mList; in timeArrayListIterationIndexed()
|
/libcore/libart/src/main/java/java/lang/ |
D | VMClassLoader.java | 24 import java.util.ArrayList; 41 ArrayList<URLStreamHandler> urlStreamHandlers = in createBootClassPathUrlHandlers() 42 new ArrayList<URLStreamHandler>(bootClassPathEntries.length); in createBootClassPathUrlHandlers() 77 ArrayList<URL> list = new ArrayList<URL>(); in getResources()
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxFileSystemTestData.java | 21 import java.util.ArrayList; 31 List<TestData> inputOutputTestCases = new ArrayList<>(); in getPathInputOutputTestData() 46 List<TestData> exceptionTestCases = new ArrayList<>(); in getPathExceptionTestData() 55 List<TestData> inputOutputTestCases = new ArrayList<>(); in getPath_URI_InputOutputTestData() 63 List<TestData> exceptionTestCases = new ArrayList<>(); in getPath_URI_ExceptionTestData()
|
/libcore/luni/src/test/java/libcore/libcore/util/ |
D | BasicLruCacheTest.java | 19 import java.util.ArrayList; 75 List<String> expectedEvictionLog = new ArrayList<String>(); in testEntryEvictedWhenFull() 76 final List<String> evictionLog = new ArrayList<String>(); in testEntryEvictedWhenFull() 98 final List<String> evictionLog = new ArrayList<String>(); in testPutDoesNotCauseEviction() 99 List<String> expectedEvictionLog = new ArrayList<String>(); in testPutDoesNotCauseEviction() 115 final List<String> evictionLog = new ArrayList<String>(); in testEvictAll() 139 List<T> actualKeysAndValues = new ArrayList<T>();
|
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/ |
D | NodeBuilderTest.java | 25 import java.util.ArrayList; 50 List<List<Integer>> ls = new ArrayList<>(); in createNodeBuilders() 84 List<Integer> _l = new ArrayList<>(); in testIteration() 95 List<List<Integer>> ls = new ArrayList<>(); in createIntNodeBuilders() 129 List<Integer> _l = new ArrayList<>(); in testIntIteration() 141 List<List<Long>> ls = new ArrayList<>(); in createLongNodeBuilders() 143 List<Long> l = new ArrayList<>(); in createLongNodeBuilders() 179 List<Long> _l = new ArrayList<>(); in testLongIteration() 191 List<List<Double>> ls = new ArrayList<>(); in createDoubleNodeBuilders() 193 List<Double> l = new ArrayList<>(); in createDoubleNodeBuilders() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractExecutorServiceTest.java | 15 import java.util.ArrayList; 263 e.invokeAny(new ArrayList<Callable<String>>()); in testInvokeAny2() 275 List<Callable<Long>> l = new ArrayList<Callable<Long>>(); in testInvokeAny3() 292 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4() 309 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5() 336 List<Future<String>> r = e.invokeAll(new ArrayList<Callable<String>>()); in testInvokeAll2() 347 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAll3() 363 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAll4() 382 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAll5() 411 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testTimedInvokeAnyNullTimeUnit() [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | ListOfVariables.java | 20 import java.util.ArrayList; 23 final ArrayList<TypeVariable<?>> array = new ArrayList<TypeVariable<?>>();
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | NullComparator.java | 32 import java.util.ArrayList; 39 List list = new ArrayList(100); in main() 42 List sorted = new ArrayList(list); in main() 56 List tmp = new ArrayList(list); in main()
|