/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 37 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testIteratorAndNonStructuralChanges() 54 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndNonStructuralChanges() 66 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndStructuralChanges() 78 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testSubListAndSizePreservingStructuralChanges() 81 list.addAll(Arrays.asList("A", "B", "C", "D", "E")); in testSubListAndSizePreservingStructuralChanges() 91 list.addAll(Arrays.asList("a", "b", "c", "d", "e")); in testRemoveAll() 93 list.removeAll(Arrays.asList()); in testRemoveAll() 94 assertEquals(Arrays.asList("a", "b", "c", "d", "e"), list); in testRemoveAll() 96 list.removeAll(Arrays.asList("e")); in testRemoveAll() 97 assertEquals(Arrays.asList("a", "b", "c", "d"), list); in testRemoveAll() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ProxySelectorTest.java | 66 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(ftpUri)); in testNoProxySystemProperty() 67 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpUri)); in testNoProxySystemProperty() 68 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpsUri)); in testNoProxySystemProperty() 69 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri)); in testNoProxySystemProperty() 70 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri)); in testNoProxySystemProperty() 79 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), in testProxyHostOnly() 81 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))), in testProxyHostOnly() 83 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("c", 443))), in testProxyHostOnly() 85 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri)); in testProxyHostOnly() 86 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri)); in testProxyHostOnly() [all …]
|
D | CookiesTest.java | 446 assertEquals(Arrays.asList(cookieA), cookieStore.getCookies()); in testCookieStoreNullUris() 451 assertEquals(Arrays.asList(cookieA, cookieB), cookieStore.getCookies()); in testCookieStoreNullUris() 461 assertEquals(Arrays.asList(cookieB), cookieStore.getCookies()); in testCookieStoreNullUris() 484 assertEquals(Arrays.asList(cookieA), cookieStore.getCookies()); in testCookieStoreAddAcceptsConflictingUri() 493 assertEquals(Arrays.asList(cookieA), cookieStore.getCookies()); in testCookieStoreRemoveRequiresUri() 499 assertEquals(Arrays.asList(new URI("http://a.com")), cookieStore.getURIs()); in testCookieStoreUriUsesHttpSchemeAlways() 505 assertEquals(Arrays.asList(new URI("http://a.com")), cookieStore.getURIs()); in testCookieStoreUriDropsUserInfo() 511 assertEquals(Arrays.asList(new URI("http://b.com")), cookieStore.getURIs()); in testCookieStoreUriKeepsHost() 517 assertEquals(Arrays.asList(new URI("http://a.com")), cookieStore.getURIs()); in testCookieStoreUriDropsPort() 523 assertEquals(Arrays.asList(new URI("http://a.com")), cookieStore.getURIs()); in testCookieStoreUriDropsPath() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | GenericExceptionsTest.java | 32 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfMethodsWithTypeParameters() 33 Arrays.asList(method.getGenericExceptionTypes())); in testGenericExceptionsOfMethodsWithTypeParameters() 38 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfMethodsWithGenericParameters() 39 Arrays.asList(method.getGenericExceptionTypes())); in testGenericExceptionsOfMethodsWithGenericParameters() 44 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfConstructorsWithTypeParameters() 45 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithTypeParameters() 50 assertEquals(Arrays.<Type>asList(IOException.class), in testGenericExceptionsOfConstructorsWithGenericParameters() 51 Arrays.asList(constructor.getGenericExceptionTypes())); in testGenericExceptionsOfConstructorsWithGenericParameters() 59 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); in testConstructorThrowingTypeVariable() 67 assertEquals(Arrays.<Type>asList(Throwable.class), Arrays.asList(typeVariable.getBounds())); in testMethodThrowingTypeVariable() [all …]
|
D | ClassLoaderReflectionTest.java | 177 assertEquals(Arrays.<Type>asList(args), in assertParameterizedType() 178 Arrays.asList(parameterizedType.getActualTypeArguments())); in assertParameterizedType() 183 assertEquals(Arrays.<Type>asList(bounds), Arrays.asList(actual.getBounds())); in assertTypeVariable()
|
D | MethodOverridesTest.java | 36 assertEquals(Arrays.<Class<?>>asList(char.class), in testParameterTypes() 37 Arrays.asList(method.getParameterTypes())); in testParameterTypes() 52 assertEquals(Collections.<Class<?>>emptyList(), Arrays.asList(method.getExceptionTypes())); in testThrownExceptions()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLParametersTest.java | 38 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cipherSuitesConstructor() 52 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_cpherSuitesProtocolsConstructor() 53 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); in test_SSLParameters_cpherSuitesProtocolsConstructor() 67 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(p.getCipherSuites())); in test_SSLParameters_CipherSuites() 82 assertEquals(Arrays.asList(protocols), Arrays.asList(p.getProtocols())); in test_SSLParameters_Protocols()
|
D | SSLServerSocketTest.java | 36 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(socket.getEnabledCipherSuites())); in testSetEnabledCipherSuitesAffectsGetter() 54 assertEquals(Arrays.asList(protocols), Arrays.asList(socket.getEnabledProtocols())); in testSetEnabledProtocolsAffectsGetter()
|
D | SSLEngineTest.java | 348 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); in test_SSLEngine_setEnabledCipherSuites() 667 assertEquals(Arrays.asList(cipherSuites), Arrays.asList(e.getEnabledCipherSuites())); 671 assertEquals(Arrays.asList(protocols), Arrays.asList(e.getEnabledProtocols())); 690 assertEquals(Arrays.asList(defaultCipherSuites), 691 Arrays.asList(e.getEnabledCipherSuites())); 692 assertEquals(Arrays.asList(defaultProtocols), 693 Arrays.asList(e.getEnabledProtocols())); 700 assertEquals(Arrays.asList(supportedCipherSuites), 701 Arrays.asList(e.getEnabledCipherSuites())); 702 assertEquals(Arrays.asList(supportedProtocols), [all …]
|
/libcore/luni/src/test/java/libcore/util/ |
D | CollectionUtilsTest.java | 39 assertEquals(Arrays.<String>asList("a", "b", "c", "d", "e"), toList(strings)); in testDereferenceIterable() 42 assertEquals(Arrays.<String>asList("a", "c", "d", "e"), toList(strings)); in testDereferenceIterable() 64 assertEquals(Arrays.<String>asList(), toList(strings)); in testDereferenceIterable() 82 List<String> list = Arrays.asList("A"); in testRemoveDuplicatesOnSingletonCollection() 97 assertEquals(Arrays.asList("A", "B", "C"), list); in testRemoveDuplicates()
|
/libcore/luni/src/test/java/libcore/java/util/beans/ |
D | PropertyChangeSupportTest.java | 42 assertEquals(Arrays.<PropertyChangeEvent>asList(nullToNull), listener.log); in testOldAndNewAreBothNull() 53 assertEquals(Arrays.<PropertyChangeEvent>asList(), listener.log); in testOldAndNewAreTheSame() 93 assertEquals(Arrays.asList(eventA, eventB, eventC), all.log); in testEventsFilteredByProxies() 94 assertEquals(Arrays.asList(eventA), proxiedA.log); in testEventsFilteredByProxies() 95 assertEquals(Arrays.asList(eventA), addA.log); in testEventsFilteredByProxies() 96 assertEquals(Arrays.<PropertyChangeEvent>asList(), addAProxiedB.log); in testEventsFilteredByProxies() 97 assertEquals(Arrays.<PropertyChangeEvent>asList(), proxiedAB.log); in testEventsFilteredByProxies() 98 assertEquals(Arrays.<PropertyChangeEvent>asList(eventA), proxiedAA.log); in testEventsFilteredByProxies() 99 assertEquals(Arrays.<PropertyChangeEvent>asList(), proxiedAAC.log); in testEventsFilteredByProxies() 177 assertEquals(Arrays.asList(eventA, eventA, eventA, eventA, eventB, eventB), log.log); in testAddingOneListenerTwice()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | StandardNames.java | 127 modes.addAll(Arrays.asList(newModes)); in provideCipherModes() 135 paddings.addAll(Arrays.asList(newPaddings)); in provideCipherPaddings() 539 public static final Set<String> SSL_CONTEXT_PROTOCOLS = new HashSet<String>(Arrays.asList( 550 public static final Set<String> KEY_TYPES = new HashSet<String>(Arrays.asList( 566 public static final Set<String> SSL_SOCKET_PROTOCOLS = new HashSet<String>(Arrays.asList( 573 new HashSet<String>(Arrays.asList( 579 new HashSet<String>(Arrays.asList( 600 public static final Set<String> CLIENT_AUTH_TYPES = new HashSet<String>(Arrays.asList( 611 public static final Set<String> SERVER_AUTH_TYPES = new HashSet<String>(Arrays.asList( 797 Arrays.asList( [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AbstractQueueTest.java | 138 q.addAll(Arrays.asList(ints)); in testAddAll2() 153 q.addAll(Arrays.asList(ints)); in testAddAll3() 167 q.addAll(Arrays.asList(ints)); in testAddAll4()
|
D | PriorityQueueTest.java | 77 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor4() 90 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor5() 102 PriorityQueue q = new PriorityQueue(Arrays.asList(ints)); in testConstructor6() 117 q.addAll(Arrays.asList(ints)); in testConstructor7() 224 q.addAll(Arrays.asList(ints)); in testAddAll2() 239 q.addAll(Arrays.asList(ints)); in testAddAll3() 253 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5() 254 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
|
D | ConcurrentLinkedQueueTest.java | 58 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor4() 71 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor5() 83 ConcurrentLinkedQueue q = new ConcurrentLinkedQueue(Arrays.asList(ints)); in testConstructor6() 188 q.addAll(Arrays.asList(ints)); in testAddAll2() 203 q.addAll(Arrays.asList(ints)); in testAddAll3() 217 assertFalse(q.addAll(Arrays.asList(empty))); in testAddAll5() 218 assertTrue(q.addAll(Arrays.asList(ints))); in testAddAll5()
|
D | CopyOnWriteArrayListTest.java | 73 CopyOnWriteArrayList a = new CopyOnWriteArrayList(Arrays.asList(ints)); in testConstructor3() 251 Collections.shuffle(Arrays.asList(elements)); in testIterator() 363 CopyOnWriteArrayList x = new CopyOnWriteArrayList(Arrays.asList(4, 5, 6)); in testRemove_Object() 365 assertEquals(x, Arrays.asList(4, 5)); in testRemove_Object() 367 assertEquals(x, Arrays.asList(5)); in testRemove_Object() 369 assertEquals(x, Arrays.asList()); in testRemove_Object() 416 Collections.shuffle(Arrays.asList(elements)); in testToArray() 444 Collections.shuffle(Arrays.asList(elements)); in testToArray2()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | WeakHashMapTest.java | 185 List keys = Arrays.asList(keyArray); in test_entrySet() 186 List values = Arrays.asList(valueArray); in test_entrySet() 300 List keys = Arrays.asList(keyArray); in test_keySet() 301 List values = Arrays.asList(valueArray); in test_keySet() 377 List keys = Arrays.asList(keyArray); in test_values() 378 List values = Arrays.asList(valueArray); in test_values()
|
D | AbstractCollectionTest.java | 57 final Collection<String> fixtures = Arrays.asList("0", "1", "2"); in test_addAllLjava_util_Collection() 86 final Collection<String> fixtures = Arrays.asList("0", "1", "2"); in test_containsAllLjava_util_Collection() 168 assertTrue(ac.removeAll(Arrays.asList("0", "1", "2"))); in test_removeAllLjava_util_Collection() 211 assertTrue(ac.retainAll(Arrays.asList("1", "2"))); in test_retainAllLjava_util_Collection()
|
D | Arrays2Test.java | 140 assertTrue("Assert 1: specials sort incorrectly" + Arrays.asList(print1), in test_sort$D() 148 assertTrue("Assert 2: specials sort incorrectly " + Arrays.asList(print2), in test_sort$D() 176 assertTrue("Assert 1: specials sort incorrectly" + Arrays.asList(print1), in test_sort$F() 184 assertTrue("Assert 2: specials sort incorrectly" + Arrays.asList(print2), in test_sort$F() 338 List<String> stringsList = Arrays.asList("0", "1"); in test_asListTvararg() 349 List<String> stooges = Arrays.asList("Larry", "Moe", "Curly"); in test_asListTvararg() 355 stringsList = Arrays.asList((String) null); in test_asListTvararg() 360 Arrays.asList((Object[]) null); in test_asListTvararg()
|
D | AbstractQueueTest.java | 173 List list = Arrays.asList("MYTESTSTRING", null, new Float(123.456)); in test_addAllLE_with_null() 186 List list = Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11); in test_addAllLE_full() 243 List list = Arrays.asList(123.456, "MYTESTSTRING", new Object(), 'c'); in test_clear()
|
D | CurrencyTest.java | 208 … Set<Locale> availableLocales = new HashSet<Locale>(Arrays.asList(Locale.getAvailableLocales())); in test_getSymbolLjava_util_Locale() 343 final Collection<Locale> locVal = Arrays.asList( in test_getCurrencyCode() 360 final Collection<String> locDat = Arrays.asList("CAD", "CAD", "CNY", "EUR", "EUR", "EUR", in test_getCurrencyCode() 378 final Collection<Locale> locVal = Arrays.asList( in test_toString() 395 final Collection<String> locDat = Arrays.asList("CAD", "CAD", "CNY", "EUR", "EUR", "EUR", in test_toString()
|
/libcore/luni/src/main/java/java/lang/ |
D | ProcessBuilder.java | 46 this(new ArrayList<String>(Arrays.asList(command))); in ProcessBuilder() 89 return command(new ArrayList<String>(Arrays.asList(command))); in command()
|
/libcore/luni/src/test/java/libcore/xml/ |
D | NamespacedAttributesLookupTest.java | 49 List<String> expected = Arrays.asList( in testNamespace() 73 List<String> expected = Arrays.asList( in testNamespacePrefixes()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldPriorityQueueTest.java | 57 List<Integer> list = Arrays.asList(array); in test_remove_Ljava_lang_Object_not_exists() 75 Arrays.asList(2, 45, 7, -12, 9, 23, 17, 1118, 10, 16, 39)); in test_Serialization()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldThreadGroupTest.java | 145 initialPlusNew.addAll(Arrays.asList(initialThreads)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 149 assertEquals(initialPlusNew, new HashSet<Thread>(Arrays.asList(afterStartThreads))); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 160 assertEquals(Arrays.asList(initialThreads), Arrays.asList(afterDeathThreads)); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ() 174 assertTrue(Arrays.asList(listOfGroups).contains(childGroup)); in test_enumerateLThreadGroupArray()
|