Home
last modified time | relevance | path

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

12345678910>>...13

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrayListTest.java19 import java.util.ArrayList;
44 ArrayList subList = new ArrayList(); in test_Constructor()
55 ArrayList al = new ArrayList(5); in test_ConstructorI()
58 al = new ArrayList(0); in test_ConstructorI()
62 new ArrayList(-1); in test_ConstructorI()
73 ArrayList al = new ArrayList(Arrays.asList(objArray)); in test_ConstructorLjava_util_Collection()
81 new ArrayList(null); in test_ConstructorLjava_util_Collection()
91 ArrayList<String> list = new ArrayList<String>(collection); in testConstructorWithConcurrentCollection()
206 ArrayList listWithNulls = new ArrayList(); in test_addAllILjava_util_Collection()
231 ArrayList obj = new ArrayList(); in test_addAllILjava_util_Collection_2()
[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 …]
DCollectionsTest.java32 import java.util.ArrayList;
99 ArrayList normalCountingList;
101 ArrayList offsetCountingList;
128 normalCountingList = new ArrayList(colSize); in SynchCollectionChecker()
129 offsetCountingList = new ArrayList(colSize); in SynchCollectionChecker()
301 class Mock_ArrayList extends ArrayList {
327 ArrayList al = new ArrayList(); in test_copyLjava_util_ListLjava_util_List()
342 ArrayList ar1 = new ArrayList(); in test_copyLjava_util_ListLjava_util_List()
343 ArrayList ar2 = new ArrayList(); in test_copyLjava_util_ListLjava_util_List()
379 ArrayList a1 = new ArrayList(); in test_copy_check_index()
[all …]
/libcore/xml/src/main/java/org/xmlpull/v1/
DXmlPullParserFactory.java9 import java.util.ArrayList;
25 protected ArrayList parserClasses;
26 protected ArrayList serializerClasses;
39 parserClasses = new ArrayList<String>(); in XmlPullParserFactory()
40 serializerClasses = new ArrayList<String>(); in XmlPullParserFactory()
143 ArrayList<Exception> exceptions = null; in getParserInstance()
146 exceptions = new ArrayList<Exception>(); in getParserInstance()
167 ArrayList<Exception> exceptions = null; in getSerializerInstance()
170 exceptions = new ArrayList<Exception>(); in getSerializerInstance()
191 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/luni/src/main/java/org/apache/harmony/security/fortress/
DServices.java22 import java.util.ArrayList;
39 private static final HashMap<String, ArrayList<Provider.Service>> services
40 = new HashMap<String, ArrayList<Provider.Service>>(600);
63 private static final ArrayList<Provider> providers = new ArrayList<Provider>(20);
93 public static synchronized ArrayList<Provider> getProviders() { in getProviders()
152 ArrayList<Provider.Service> serviceList = services.get(key); in appendServiceLocked()
154 serviceList = new ArrayList<Provider.Service>(1); in appendServiceLocked()
177 public static synchronized ArrayList<Provider.Service> getServices(String key) { in getServices()
DEngine.java27 import java.util.ArrayList;
98 private final ArrayList<Provider.Service> services;
102 ArrayList<Provider.Service> services) { in ServiceCacheEntry()
137 ArrayList<Provider.Service> services = getServices(algorithm); in getInstance()
157 public ArrayList<Provider.Service> getServices(String algorithm) { in getServices()
167 ArrayList<Provider.Service> services = Services.getServices(name); in getServices()
/libcore/dalvik/src/main/java/dalvik/system/
DDexPathList.java25 import java.util.ArrayList;
108 ArrayList<IOException> suppressedExceptions = new ArrayList<IOException>(); in DexPathList()
138 private static ArrayList<File> splitDexPath(String path) { in splitDexPath()
157 ArrayList<File> result = splitPaths(path, System.getProperty("java.library.path"), true); in splitLibraryPath()
170 private static ArrayList<File> splitPaths(String path1, String path2, in splitPaths()
172 ArrayList<File> result = new ArrayList<File>(); in splitPaths()
184 ArrayList<File> resultList) { in splitAndAdd()
203 private static Element[] makeDexElements(ArrayList<File> files, File optimizedDirectory, in makeDexElements()
204 ArrayList<IOException> suppressedExceptions) { in makeDexElements()
205 ArrayList<Element> elements = new ArrayList<Element>(); in makeDexElements()
[all …]
/libcore/benchmarks/src/benchmarks/
DArrayListIterationBenchmark.java23 import java.util.ArrayList;
29 ArrayList<Foo> mList = new ArrayList<Foo>();
36 ArrayList<Foo> list = mList; in timeArrayListIterationIndexed()
/libcore/luni/src/main/java/libcore/reflect/
DListOfVariables.java20 import java.util.ArrayList;
23 final ArrayList<TypeVariable<?>> array = new ArrayList<TypeVariable<?>>();
DListOfTypes.java20 import java.util.ArrayList;
27 private final ArrayList<Type> types;
31 types = new ArrayList<Type>(capacity); in ListOfTypes()
35 this.types = new ArrayList<Type>(types.length); in ListOfTypes()
/libcore/luni/src/main/java/java/security/cert/
DPKIXParameters.java23 import java.util.ArrayList;
189 certPathCheckers = new ArrayList<PKIXCertPathChecker>(); in getCertPathCheckers()
198 ArrayList<PKIXCertPathChecker> modifiableList = new ArrayList<PKIXCertPathChecker>(); in getCertPathCheckers()
225 this.certPathCheckers = new ArrayList<PKIXCertPathChecker>(); in setCertPathCheckers()
246 certPathCheckers = new ArrayList<PKIXCertPathChecker>(); in addCertPathChecker()
261 certStores = new ArrayList<CertStore>(); in getCertStores()
270 ArrayList<CertStore> modifiableList in getCertStores()
271 = new ArrayList<CertStore>(certStores); in getCertStores()
291 this.certStores = new ArrayList<CertStore>(certStores); in setCertStores()
308 certStores = new ArrayList<CertStore>(); in addCertStore()
[all …]
DX509CRLSelector.java23 import java.util.ArrayList;
43 private ArrayList<String> issuerNames;
46 private ArrayList<X500Principal> issuerPrincipals;
77 issuerNames = new ArrayList<String>(issuers.size()); in setIssuers()
78 issuerPrincipals = new ArrayList<X500Principal>(issuers); in setIssuers()
112 issuerNames = new ArrayList<String>(names.size()); in setIssuerNames()
142 issuerNames = new ArrayList<String>(); in addIssuer()
149 issuerPrincipals = new ArrayList<X500Principal>(issuerNames.size()); in addIssuer()
174 issuerNames = new ArrayList<String>(); in addIssuerName()
203 issuerNames = new ArrayList<String>(); in addIssuerName()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/
DUserDataMonitor.java14 import java.util.ArrayList;
26 private final List notifications = new ArrayList();
66 return new ArrayList(notifications); in getAllNotifications()
DDOMErrorMonitor.java15 import java.util.ArrayList;
29 private final List errors = new ArrayList();
54 return new ArrayList(errors); in getAllErrors()
/libcore/luni/src/test/java/libcore/util/
DBasicLruCacheTest.java19 import java.util.ArrayList;
73 List<String> expectedEvictionLog = new ArrayList<String>(); in testEntryEvictedWhenFull()
74 final List<String> evictionLog = new ArrayList<String>(); in testEntryEvictedWhenFull()
96 final List<String> evictionLog = new ArrayList<String>(); in testPutDoesNotCauseEviction()
97 List<String> expectedEvictionLog = new ArrayList<String>(); in testPutDoesNotCauseEviction()
113 final List<String> evictionLog = new ArrayList<String>(); in testEvictAll()
137 List<T> actualKeysAndValues = new ArrayList<T>();
DCollectionUtilsTest.java21 import java.util.ArrayList;
31 List<Reference<String>> refs = new ArrayList<Reference<String>>(); in testDereferenceIterable()
68 List<T> result = new ArrayList<T>(); in toList()
76 List<String> list = new ArrayList<String>(); in testRemoveDuplicatesOnEmptyCollection()
88 List<String> list = new ArrayList<String>(); in testRemoveDuplicates()
/libcore/luni/src/main/java/java/util/prefs/
DNodeSet.java3 import java.util.ArrayList;
10 ArrayList<Node> list = new ArrayList<Node>();
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DGeneralNames.java25 import java.util.ArrayList;
56 generalNames = new ArrayList<GeneralName>(); in GeneralNames()
75 return new ArrayList<GeneralName>(generalNames); in getNames()
82 Collection<List<?>> result = new ArrayList<List<?>>(); in getPairsList()
106 generalNames = new ArrayList<GeneralName>(); in addName()
DNameConstraints.java27 import java.util.ArrayList;
64 private ArrayList<GeneralName>[] permitted_names;
65 private ArrayList<GeneralName>[] excluded_names;
110 permitted_names = new ArrayList[9]; in prepareNames()
116 permitted_names[tag] = new ArrayList<GeneralName>(); in prepareNames()
122 excluded_names = new ArrayList[9]; in prepareNames()
128 excluded_names[tag] = new ArrayList<GeneralName>(); in prepareNames()
174 ? new ArrayList<GeneralName>(1) // will check the subject field only in isAcceptable()
/libcore/luni/src/main/java/libcore/io/
DDeleteOnExit.java22 import java.util.ArrayList;
51 private final ArrayList<String> files = new ArrayList<String>();
/libcore/jsr166-tests/src/test/java/jsr166/
DAbstractExecutorServiceTest.java243 e.invokeAny(new ArrayList<Callable<String>>()); in testInvokeAny2()
256 List<Callable<Long>> l = new ArrayList<Callable<Long>>(); in testInvokeAny3()
274 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny4()
292 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAny5()
322 List<Future<String>> r = e.invokeAll(new ArrayList<Callable<String>>()); in testInvokeAll2()
334 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAll3()
352 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAll4()
373 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testInvokeAll5()
404 List<Callable<String>> l = new ArrayList<Callable<String>>(); in testTimedInvokeAnyNullTimeUnit()
421 e.invokeAny(new ArrayList<Callable<String>>(), MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAny2()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldAndroidArrayListTest.java21 import java.util.ArrayList;
30 ArrayList array = new ArrayList(); in testArrayList()
79 ArrayList al = new ArrayList(); in testArrayList()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/support/
DMethodLogger.java19 import java.util.ArrayList;
31 private List<String> methods = new ArrayList<String>();
36 private List<Object[]> argLists = new ArrayList<Object[]>();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DKeyStoreBuilderParametersTest.java21 import java.util.ArrayList;
60 List lsEmpty = new ArrayList<String>(); in test_Constructor02()
68 List lsFiled = new ArrayList<String>(); in test_Constructor02()
79 List ls = new ArrayList<String>(); in test_getParameters()

12345678910>>...13