Home
last modified time | relevance | path

Searched refs:List (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java27 import java.util.List;
43 List<Integer> sizes = Arrays.asList(0, 1, 4, 16, 256,
50 List<List<Integer>> ls = new ArrayList<>(); in createNodeBuilders()
55 List<Function<Integer, Node.Builder<Integer>>> ms = Arrays.asList( in createNodeBuilders()
62 for (List<Integer> l : ls) { in createNodeBuilders()
72 public void testIteration(List<Integer> l, Function<Integer, Node.Builder<Integer>> m) { in testIteration()
84 List<Integer> _l = new ArrayList<>(); in testIteration()
95 List<List<Integer>> ls = new ArrayList<>(); in createIntNodeBuilders()
100 List<Function<Integer, Node.Builder<Integer>>> ms = Arrays.asList( in createIntNodeBuilders()
107 for (List<Integer> l : ls) { in createIntNodeBuilders()
[all …]
DSpinedBufferTest.java40 static List<Integer> sizes;
62 List<Object[]> params = new ArrayList<>(); in createSpinedBuffer()
105 List<Integer> contentOfLastSplit = new ArrayList<>(); in testLastSplit()
110 List<Integer> end = Arrays.stream(array) 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()
185 List<Integer> end = Arrays.stream(array) in testIntLastSplit()
194 List<Integer> list1 = new ArrayList<>(); in testIntSpinedBuffer()
[all …]
/libcore/support/src/test/java/tests/http/
DRecordedRequest.java19 import java.util.List;
26 private final List<String> headers;
27 private final List<Integer> chunkSizes;
32 RecordedRequest(String requestLine, List<String> headers, List<Integer> chunkSizes, in RecordedRequest()
46 public List<String> getHeaders() { in getHeaders()
54 public List<Integer> getChunkSizes() { in getChunkSizes()
/libcore/ojluni/src/main/java/java/net/
DInMemoryCookieStore.java31 import java.util.List;
48 private Map<URI, List<HttpCookie>> uriIndex = null;
97 public List<HttpCookie> get(URI uri) { in get()
103 List<HttpCookie> cookies = new ArrayList<HttpCookie>(); in get()
120 public List<HttpCookie> getCookies() { in getCookies()
121 List<HttpCookie> rt = new ArrayList<HttpCookie>(); in getCookies()
125 for (List<HttpCookie> list : uriIndex.values()) { in getCookies()
148 public List<URI> getURIs() { in getURIs()
149 List<URI> uris = new ArrayList<URI>(); in getURIs()
153 List<URI> result = new ArrayList<URI>(uriIndex.keySet()); in getURIs()
[all …]
DCookieStore.java28 import java.util.List;
85 public List<HttpCookie> get(URI uri); in get()
94 public List<HttpCookie> getCookies(); in getCookies()
104 public List<URI> getURIs(); in getURIs()
DCookieHandler.java29 import java.util.List;
130 public abstract Map<String, List<String>>
131 get(URI uri, Map<String, List<String>> requestHeaders) in get()
148 put(URI uri, Map<String, List<String>> responseHeaders) in put()
/libcore/luni/src/test/java/libcore/java/nio/file/
DLinuxFileSystemTestData.java22 import java.util.List;
30 static List<TestData> getPathInputOutputTestData() { in getPathInputOutputTestData()
31 List<TestData> inputOutputTestCases = new ArrayList<>(); in getPathInputOutputTestData()
45 static List<TestData> getPathExceptionTestData() { in getPathExceptionTestData()
46 List<TestData> exceptionTestCases = new ArrayList<>(); in getPathExceptionTestData()
52 static List<TestData> getPath_URI_InputOutputTestData() { in getPath_URI_InputOutputTestData()
55 List<TestData> inputOutputTestCases = new ArrayList<>(); in getPath_URI_InputOutputTestData()
62 static List<TestData> getPath_URI_ExceptionTestData() { in getPath_URI_ExceptionTestData()
63 List<TestData> exceptionTestCases = new ArrayList<>(); in getPath_URI_ExceptionTestData()
/libcore/luni/src/test/java/libcore/java/util/
DLocaleLanguageRangeTest.java25 import java.util.List;
158 List<LanguageRange> noRange = Collections.emptyList(); in testMapEquivalents_emptyList()
165 List<LanguageRange> inputRanges = Collections.unmodifiableList(Arrays.asList( in testMapEquivalents_emptyMap_createsModifiableCopy()
168 List<LanguageRange> outputRanges = in testMapEquivalents_emptyMap_createsModifiableCopy()
181 Map<String, List<String>> map = new HashMap<>(); in testMapEquivalents_exampleFromDocumentation()
186 List<LanguageRange> inputPriorityList = Arrays.asList( in testMapEquivalents_exampleFromDocumentation()
193 List<LanguageRange> expectedOutput = Arrays.asList( in testMapEquivalents_exampleFromDocumentation()
202 List<LanguageRange> outputProrityList = LanguageRange in testMapEquivalents_exampleFromDocumentation()
221 List<LanguageRange> priorityList = Collections.unmodifiableList(Arrays.asList( in testMapEquivalents_nullMap()
230 List<LanguageRange> expected = Arrays.asList( in testMapEquivalents()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DForEachOpTest.java38 import java.util.List;
75 private <U> ResultAsserter<List<U>> resultAsserter() { in resultAsserter()
88 List<Integer> input = countTo(10000);
91 Function<Stream<Integer>, List<Integer>> terminalFunc = s -> {
92 List<Integer> l = new ArrayList<>();
112 Function<Stream<Integer>, List<Integer>> terminalFunc = s -> {
113 List<Integer> l = Collections.synchronizedList(new ArrayList<>());
135 List<Integer> input = countTo(10000);
139 Function<IntStream, List<Integer>> terminalFunc = s -> {
140 List<Integer> l = new ArrayList<>();
[all …]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DAdjacencyList.java30 import java.util.List;
91 private List<List<Vertex>> mOrigList;
100 public AdjacencyList(List<List<Vertex>> list) { in AdjacencyList()
123 private boolean buildList(List<List<Vertex>> theList, int index, in buildList()
129 List<Vertex> l = theList.get(index); in buildList()
170 List<Vertex> possibles = new ArrayList<>(); in buildList()
247 for (List<Vertex> l : mOrigList) { in toString()
DOCSPRequest.java31 import java.util.List;
83 private final List<CertId> certIds;
84 private final List<Extension> extensions;
95 OCSPRequest(List<CertId> certIds) { in OCSPRequest()
100 OCSPRequest(List<CertId> certIds, List<Extension> extensions) { in OCSPRequest()
149 List<CertId> getCertIds() { in getCertIds()
DPKIX.java79 private List<PKIXCertPathChecker> checkers;
80 private List<CertStore> stores;
87 private List<X509Certificate> certs;
122 List<X509Certificate> certificates() { in certificates()
130 List<X509Certificate> xc = new ArrayList<> in certificates()
131 ((List<X509Certificate>)certPath.getCertificates()); in certificates()
138 List<PKIXCertPathChecker> certPathCheckers() { in certPathCheckers()
143 List<CertStore> certStores() { in certStores()
196 private List<CertStore> stores;
218 @Override List<CertStore> certStores() { in certStores()
[all …]
DSunCertPathBuilder.java38 import java.util.List;
130 List<List<Vertex>> adjList = new ArrayList<>(); in build()
150 List<List<Vertex>> adjList) in buildCertPath()
206 private void buildForward(List<List<Vertex>> adjacencyList, in buildForward()
250 List<List<Vertex>> adjList, in depthFirstSearchForward()
265 List<Vertex> vertices = addVertices(certs, adjList); in depthFirstSearchForward()
317 List<X509Certificate> appendedCerts = new ArrayList<>(cpList); in depthFirstSearchForward()
335 List<PKIXCertPathChecker> checkers = new ArrayList<>(); in depthFirstSearchForward()
373 List<PKIXCertPathChecker> ckrs = buildParams.certPathCheckers(); in depthFirstSearchForward()
555 private static List<Vertex> addVertices(Collection<X509Certificate> certs, in addVertices()
[all …]
/libcore/ojluni/src/main/java/java/security/
DUnresolvedPermissionCollection.java57 private transient Map<String, List<UnresolvedPermission>> perms;
64 perms = new HashMap<String, List<UnresolvedPermission>>(11); in UnresolvedPermissionCollection()
81 List<UnresolvedPermission> v; in add()
98 List<UnresolvedPermission> getUnresolvedPermissions(Permission p) { in getUnresolvedPermissions()
121 List<Permission> results = in elements()
126 for (List<UnresolvedPermission> l : perms.values()) { in elements()
168 Set<Map.Entry<String, List<UnresolvedPermission>>> set = perms.entrySet(); in writeObject()
169 for (Map.Entry<String, List<UnresolvedPermission>> e : set) { in writeObject()
171 List<UnresolvedPermission> list = e.getValue(); in writeObject()
206 perms = new HashMap<String, List<UnresolvedPermission>>(permissions.size()*2); in readObject()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DCollectionsBenchmark.java23 import java.util.List;
42 List<Integer> input = buildList(arrayListLength, ArrayList.class); in timeSort_arrayList()
49 List<Integer> input = buildList(arrayListLength, ArrayList.class); in timeSortWithComparator_arrayList()
56 List<Integer> input = buildList(arrayListLength, Vector.class); in timeSort_vector()
63 List<Integer> input = buildList(arrayListLength, Vector.class); in timeSortWithComparator_vector()
69 private static <T extends List<Integer>> List<Integer> buildList( in buildList()
73 List<Integer> list = listClass.newInstance(); in buildList()
/libcore/luni/src/test/java/libcore/java/net/
DCookiesMCompatibilityTest.java26 import java.util.List;
38 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithoutLeadingPeriod()
44 Map<String, List<String>> cookies = cm.get( in testCookiesWithoutLeadingPeriod()
54 List<String> list = new ArrayList<>(); in testCookiesWithLeadingPeriod()
55 Map<String, List<String>> responseHeaders = Collections.singletonMap("Set-Cookie", in testCookiesWithLeadingPeriod()
58 Map<String, List<String>> cookies = cm.get( in testCookiesWithLeadingPeriod()
62 List<String> cookieList = cookies.values().iterator().next(); in testCookiesWithLeadingPeriod()
DAbstractCookiesTest.java57 import java.util.List;
67 private static final Map<String, List<String>> EMPTY_COOKIES_MAP = Collections.emptyMap();
104 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testNetscapeResponse()
134 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2109Response()
167 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testRfc2965Response()
202 List<HttpCookie> cookies = cookieManager.getCookieStore().getCookies(); in testQuotedAttributeValues()
222 List<HttpCookie> cookies = sortedCopy(cookieStore.cookies); in testResponseWithMultipleCookieHeaderLines()
285 Map<String, List<String>> cookieHeaders = cookieManager.get( in testNoCookieHeaderSentIfNoCookiesMatch()
353 List<String> receivedHeaders = request.getHeaders(); in testSendingCookiesFromStore()
402 final Map<String, List<String>> cookieHandlerHeaders = new HashMap<String, List<String>>(); in testHeadersSentToCookieHandler()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DFileLockTable.java68 public abstract List<FileLock> removeAll(); in removeAll()
106 private static ConcurrentHashMap<FileKey, List<FileLockReference>> lockMap =
107 new ConcurrentHashMap<FileKey, List<FileLockReference>>();
125 List<FileLockReference> list = lockMap.get(fileKey); in add()
132 List<FileLockReference> prev; in add()
150 List<FileLockReference> current = lockMap.get(fileKey); in add()
165 private void removeKeyIfEmpty(FileKey fk, List<FileLockReference> list) { in removeKeyIfEmpty()
178 List<FileLockReference> list = lockMap.get(fileKey); in remove()
198 public List<FileLock> removeAll() { in removeAll()
199 List<FileLock> result = new ArrayList<FileLock>(); in removeAll()
[all …]
/libcore/ojluni/src/main/java/sun/util/locale/
DLocaleMatcher.java34 import java.util.List;
48 public static List<Locale> filter(List<LanguageRange> priorityList, in filter()
56 List<String> tags = new ArrayList<>(); in filter()
62 List<String> filteredTags = filterTags(priorityList, tags, mode); in filter()
65 List<Locale> filteredLocales = new ArrayList<>(filteredTags.size()); in filter()
73 public static List<String> filterTags(List<LanguageRange> priorityList, in filterTags()
112 private static List<String> filterBasic(List<LanguageRange> priorityList, in filterBasic()
114 List<String> list = new ArrayList<>(); in filterBasic()
136 private static List<String> filterExtended(List<LanguageRange> priorityList, in filterExtended()
138 List<String> list = new ArrayList<>(); in filterExtended()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCopyOnWriteArrayListTest.java17 import java.util.List;
498 List b = a.subList(j,i); in testSubList()
505 List s = a.subList(2, 5); in testSubList()
534 List[] lists = { c, c.subList(1, c.size() - 1) }; in testGet1_IndexOutOfBoundsException()
535 for (List list : lists) { in testGet1_IndexOutOfBoundsException()
548 List[] lists = { c, c.subList(1, c.size() - 1) }; in testGet2_IndexOutOfBoundsException()
549 for (List list : lists) { in testGet2_IndexOutOfBoundsException()
562 List[] lists = { c, c.subList(1, c.size() - 1) }; in testSet1_IndexOutOfBoundsException()
563 for (List list : lists) { in testSet1_IndexOutOfBoundsException()
576 List[] lists = { c, c.subList(1, c.size() - 1) }; in testSet2()
[all …]
/libcore/luni/src/test/java/libcore/java/util/concurrent/
DCopyOnWriteArrayListTest.java23 import java.util.List;
56 List<String> bcd = list.subList(1, 4); in testSubListAndNonStructuralChanges()
68 List<String> bcd = list.subList(1, 4); in testSubListAndStructuralChanges()
80 List<String> bcd = list.subList(1, 4); in testSubListAndSizePreservingStructuralChanges()
107 List<String> bcd = list.subList(1, 4); in testSubListClear()
132 List<String> bcd = list.subList(1, 4); in testSubListRemoveByValue()
141 List<String> bcd = list.subList(1, 4); in testSubListRemoveByIndex()
150 List<String> def = list.subList(3, 6); in testSubListRetainAll()
159 List<String> def = list.subList(3, 6); in testSubListRemoveAll()
177 private void testAddAllIsAtomic(final List<Object> list) throws Exception { in testAddAllIsAtomic()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DKeyStoreBuilderParametersTest.java22 import java.util.List;
54 KeyStoreBuilderParameters ksp = new KeyStoreBuilderParameters((List) null); in test_Constructor02()
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()
84 List res_list = ksp.getParameters(); in test_getParameters()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java74 List<Integer> l = new ArrayList<>();
119 List<Character> l = new ArrayList<>();
143 public static List<Integer> empty() { in empty()
149 public static List<Integer> countTo(int n) { in countTo()
153 public static List<Integer> range(int l, int u) { in range()
161 public static List<Integer> repeat(int value, int n) { in repeat()
169 public static List<Double> asDoubles(List<Integer> integers) { in asDoubles()
177 public static List<Long> asLongs(List<Integer> integers) { in asLongs()
334 private static<T> List<T> toBoxedList(Iterator<T> it) {
335 List<T> l = new ArrayList<>();
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java73 List<Integer> l = new ArrayList<>();
118 List<Character> l = new ArrayList<>();
142 public static List<Integer> empty() { in empty()
148 public static List<Integer> countTo(int n) { in countTo()
152 public static List<Integer> range(int l, int u) { in range()
160 public static List<Integer> repeat(int value, int n) { in repeat()
168 public static List<Double> asDoubles(List<Integer> integers) { in asDoubles()
176 public static List<Long> asLongs(List<Integer> integers) { in asLongs()
333 private static<T> List<T> toBoxedList(Iterator<T> it) {
334 List<T> l = new ArrayList<>();
[all …]
/libcore/luni/src/test/java/libcore/util/
DCollectionUtilsTest.java25 import java.util.List;
31 List<Reference<String>> refs = new ArrayList<Reference<String>>(); in testDereferenceIterable()
67 private <T> List<T> toList(Iterable<T> iterable) { in toList()
68 List<T> result = new ArrayList<T>(); in toList()
76 List<String> list = new ArrayList<String>(); in testRemoveDuplicatesOnEmptyCollection()
82 List<String> list = Arrays.asList("A"); in testRemoveDuplicatesOnSingletonCollection()
88 List<String> list = new ArrayList<String>(); in testRemoveDuplicates()

12345678910>>...22