| /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 | CollectionsTest.java | 33 import java.util.ArrayList; 100 ArrayList normalCountingList; 102 ArrayList offsetCountingList; 129 normalCountingList = new ArrayList(colSize); in SynchCollectionChecker() 130 offsetCountingList = new ArrayList(colSize); in SynchCollectionChecker() 302 class Mock_ArrayList extends ArrayList { 328 ArrayList al = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() 343 ArrayList ar1 = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() 344 ArrayList ar2 = new ArrayList(); in test_copyLjava_util_ListLjava_util_List() 380 ArrayList a1 = new ArrayList(); in test_copy_check_index() [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 …]
|
| /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 …]
|
| D | OldAndroidArrayListTest.java | 21 import java.util.ArrayList; 30 ArrayList array = new ArrayList(); in testArrayList() 79 ArrayList al = new ArrayList(); in testArrayList()
|
| /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/ojluni/src/main/java/java/util/ |
| D | ArrayList.java | 119 public class ArrayList<E> extends AbstractList<E> class 164 public ArrayList(int initialCapacity) { in ArrayList() method in ArrayList 178 public ArrayList() { in ArrayList() method in ArrayList 190 public ArrayList(Collection<? extends E> c) { in ArrayList() method in ArrayList 365 ArrayList<?> v = (ArrayList<?>) super.clone(); in clone() 847 protected int limit = ArrayList.this.size; 864 Object[] elementData = ArrayList.this.elementData; in next() 878 ArrayList.this.remove(lastRet); in remove() 892 final int size = ArrayList.this.size; in forEachRemaining() 897 final Object[] elementData = ArrayList.this.elementData; in forEachRemaining() [all …]
|
| /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/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/ojluni/src/main/java/sun/util/locale/ |
| D | LocaleMatcher.java | 28 import java.util.ArrayList; 52 return new ArrayList<>(); // need to return a empty mutable List in filter() 56 List<String> tags = new ArrayList<>(); in filter() 65 List<Locale> filteredLocales = new ArrayList<>(filteredTags.size()); in filter() 77 return new ArrayList<>(); // need to return a empty mutable List in filterTags() 80 ArrayList<LanguageRange> list; in filterTags() 84 list = new ArrayList<>(); in filterTags() 114 List<String> list = new ArrayList<>(); in filterBasic() 118 return new ArrayList<String>(tags); in filterBasic() 138 List<String> list = new ArrayList<>(); in filterExtended() [all …]
|
| /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() 79 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 …]
|
| D | SpinedBufferTest.java | 62 List<Object[]> params = new ArrayList<>(); in createSpinedBuffer() 105 List<Integer> contentOfLastSplit = new ArrayList<>(); in testLastSplit() 119 List<Integer> list1 = new ArrayList<>(); in testSpinedBuffer() 120 List<Integer> list2 = new ArrayList<>(); in testSpinedBuffer() 149 List<Object[]> params = new ArrayList<>(); in createIntSpinedBuffer() 180 List<Integer> contentOfLastSplit = new ArrayList<>(); in testIntLastSplit() 194 List<Integer> list1 = new ArrayList<>(); in testIntSpinedBuffer() 195 List<Integer> list2 = new ArrayList<>(); in testIntSpinedBuffer() 224 List<Object[]> params = new ArrayList<>(); in createLongSpinedBuffer() 255 List<Long> contentOfLastSplit = new ArrayList<>(); in testLongLastSplit() [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/main/java/java/util/concurrent/ |
| D | AbstractExecutorService.java | 40 import java.util.ArrayList; 155 ArrayList<Future<T>> futures = new ArrayList<>(ntasks); in doInvokeAny() 237 ArrayList<Future<T>> futures = new ArrayList<>(tasks.size()); in invokeAll() 265 ArrayList<Future<T>> futures = new ArrayList<>(tasks.size()); in invokeAll() 301 private static <T> void cancelAll(ArrayList<Future<T>> futures) { in cancelAll() 306 private static <T> void cancelAll(ArrayList<Future<T>> futures, int j) { in cancelAll()
|