Home
last modified time | relevance | path

Searched refs:ArrayList (Results 1 – 25 of 671) sorted by relevance

12345678910>>...27

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayListTest.java19 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 …]
DCollectionsTest.java33 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 …]
DAbstractListTest.java21 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/ojluni/src/test/java/util/ArrayList/
DArrayManagement.java32 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 …]
DEnsureCapacity.java31 package test.java.util.ArrayList;
33 import java.util.ArrayList;
51 ArrayList<String> al = new ArrayList<String>(); in testArrayList()
/libcore/luni/src/test/java/libcore/java/util/
DPrimitiveIteratorTest.java21 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()
DArrayListTest.java19 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()
DSpliteratorTester.java20 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/
DProgressMonitor.java28 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/test/java/util/SequencedCollection/
DBasic.java94 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/
DCollection8Test.java47 import java.util.ArrayList;
316 ? new ArrayList(c)
322 ArrayList survivors = new ArrayList();
323 ArrayList accepts = new ArrayList();
324 ArrayList rejects = new ArrayList();
402 ArrayList copy = new ArrayList();
408 ArrayList iterated = new ArrayList();
409 ArrayList spliterated = new ArrayList();
441 ArrayList copy = new ArrayList();
447 ArrayList iterated = new ArrayList();
[all …]
DAbstractExecutorServiceTest.java49 import java.util.ArrayList;
316 e.invokeAny(new ArrayList<Callable<String>>()); in testInvokeAny2()
329 List<Callable<Long>> l = new ArrayList<>(); in testInvokeAny3()
347 List<Callable<String>> l = new ArrayList<>(); in testInvokeAny4()
365 List<Callable<String>> l = new ArrayList<>(); in testInvokeAny5()
394 List<Future<String>> r = e.invokeAll(new ArrayList<Callable<String>>()); in testInvokeAll2()
406 List<Callable<String>> l = new ArrayList<>(); in testInvokeAll3()
423 List<Callable<String>> l = new ArrayList<>(); in testInvokeAll4()
443 List<Callable<String>> l = new ArrayList<>(); in testInvokeAll5()
474 List<Callable<String>> l = new ArrayList<>(); in testTimedInvokeAnyNullTimeUnit()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java6 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/luni/src/main/java/org/xml/sax/helpers/
DAttributeListImpl.java8 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/
DPKIXParameters.java31 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/
DBasic.java35 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/
DArrayListIterationBenchmark.java19 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/
DVMClassLoader.java24 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/jsr166-tests/src/test/java/jsr166/
DAbstractExecutorServiceTest.java15 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/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java25 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 …]
DSpinedBufferTest.java62 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/luni/src/test/java/libcore/libcore/util/
DBasicLruCacheTest.java19 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/main/java/sun/util/locale/
DLocaleMatcher.java28 import java.util.ArrayList;
50 return new ArrayList<>(); // need to return a empty mutable List in filter()
54 List<String> tags = new ArrayList<>(); in filter()
63 List<Locale> filteredLocales = new ArrayList<>(filteredTags.size()); in filter()
75 return new ArrayList<>(); // need to return a empty mutable List in filterTags()
78 ArrayList<LanguageRange> list; in filterTags()
82 list = new ArrayList<>(); in filterTags()
123 List<String> list = new ArrayList<>(); in filterBasic()
128 return new ArrayList<String>(tags); in filterBasic()
165 List<String> matchingTags = new ArrayList<>(); in removeTagsMatchingBasicZeroRange()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxFileSystemTestData.java21 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/ojluni/src/main/java/java/util/concurrent/
DAbstractExecutorService.java40 import java.util.ArrayList;
160 ArrayList<Future<T>> futures = new ArrayList<>(ntasks); in doInvokeAny()
242 ArrayList<Future<T>> futures = new ArrayList<>(tasks.size()); in invokeAll()
270 ArrayList<Future<T>> futures = new ArrayList<>(tasks.size()); in invokeAll()
306 private static <T> void cancelAll(ArrayList<Future<T>> futures) { in cancelAll()
311 private static <T> void cancelAll(ArrayList<Future<T>> futures, int j) { in cancelAll()

12345678910>>...27