/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | AbstractQueueTest.java | 53 * add returns true if offer succeeds 57 assertTrue(q.add(two)); 61 * add throws ISE true if offer fails 66 q.add(one); 72 * add throws NPE if offer does 77 q.add(null); 170 * addAll throws ISE if an add fails
|
H A D | Collection8Test.java | 54 Consumer<Object> spy = (o) -> { found.add(o); }; 58 assertTrue(c.add(x)); 63 assertTrue(c.add(y)); 92 assertTrue(c.add(elt));
|
H A D | ScheduledExecutorSubclassTest.java | 761 tasks.add(p.schedule(r, 9, SECONDS)); 762 tasks.add(p.scheduleAtFixedRate(r, 9, 9, SECONDS)); 763 tasks.add(p.scheduleWithFixedDelay(r, 9, 9, SECONDS)); 830 blockers.add(p.submit(task)); 833 periodics.add(p.scheduleAtFixedRate(countDowner(periodicLatch1), 835 periodics.add(p.scheduleWithFixedDelay(countDowner(periodicLatch2), 837 delayeds.add(p.schedule(task, 1, MILLISECONDS)); 950 l.add(latchAwaitingStringTask(latch)); 951 l.add(null); 967 l.add(ne [all...] |
H A D | ScheduledExecutorTest.java | 710 tasks.add(p.schedule(r, 9, SECONDS)); 711 tasks.add(p.scheduleAtFixedRate(r, 9, 9, SECONDS)); 712 tasks.add(p.scheduleWithFixedDelay(r, 9, 9, SECONDS)); 779 blockers.add(p.submit(task)); 782 periodics.add(p.scheduleAtFixedRate(countDowner(periodicLatch1), 784 periodics.add(p.scheduleWithFixedDelay(countDowner(periodicLatch2), 786 delayeds.add(p.schedule(task, 1, MILLISECONDS)); 899 l.add(latchAwaitingStringTask(latch)); 900 l.add(null); 916 l.add(ne [all...] |
H A D | ArrayBlockingQueueTest.java | 157 q.add(one); 159 q.add(two); 166 * remainingCapacity decreases on add, increases on remove 178 assertTrue(q.add(i)); 192 * add succeeds if not full; throws ISE if full 197 assertTrue(q.add(new Integer(i))); 201 q.add(new Integer(SIZE)); 545 q.add(one); 561 p.add(new Integer(i)); 620 q.add( [all...] |
H A D | ConcurrentSkipListSetTest.java | 50 assertTrue(q.add(new Integer(i))); 52 assertTrue(q.add(new Integer(i))); 64 q.add(one); 65 q.add(two); 66 q.add(three); 67 q.add(four); 68 q.add(five); 141 * isEmpty is true before add, false after 146 q.add(new Integer(1)); 148 q.add(ne [all...] |
H A D | TreeSetTest.java | 54 assertTrue(q.add(new Integer(i))); 56 assertTrue(q.add(new Integer(i))); 68 q.add(one); 69 q.add(two); 70 q.add(three); 71 q.add(four); 72 q.add(five); 145 * isEmpty is true before add, false after 150 q.add(new Integer(1)); 152 q.add(ne [all...] |
/libcore/luni/src/test/java/tests/security/cert/ |
H A D | X509CertSelectorTest.java | 357 selector.getExtendedKeyUsage().add("KRIBLEGRABLI"); 523 sans1.add(san0); 524 sans1.add(san1); 525 sans1.add(san2); 528 // sans1.add(san3); 529 sans1.add(san4); 530 sans1.add(san6); 531 sans1.add(san7); 532 sans1.add(san8); 534 sans2.add(san [all...] |
/libcore/support/src/test/java/libcore/tlswire/handshake/ |
H A D | ClientHello.java | 52 cipherSuites.add(CipherSuite.valueOf(cipherSuiteCodes[i])); 58 compressionMethods.add(CompressionMethod.valueOf(code)); 77 extensions.add(HelloExtension.read(extensionsDataIn));
|
H A D | ServerNameHelloExtension.java | 48 hostnames.add(hostname);
|
/libcore/support/src/test/java/tests/util/ |
H A D | ClassLoaderBuilder.java | 49 prefixesToLoad.add(classNamePrefix); 59 prefixesToNotInherit.add(classNamePrefix); 143 result.add(new File(pathElement).toURI().toURL());
|
/libcore/dom/src/test/java/org/w3c/domts/ |
H A D | DOMErrorMonitor.java | 44 errors.add(new DOMErrorImpl(error));
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
H A D | AccessibleObjectTest.java | 161 ignoreOrder.add(annotations[0].annotationType()); 162 ignoreOrder.add(annotations[1].annotationType()); 176 ignoreOrder.add(annotations[0].annotationType()); 177 ignoreOrder.add(annotations[1].annotationType());
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/math/ |
H A D | BigIntegerTest.java | 264 .equals(BigInteger.valueOf(139).add(BigInteger.valueOf(61)))); 268 * @tests java.math.BigInteger#add(java.math.BigInteger) 271 assertTrue("Incorrect sum--wanted a zillion", aZillion.add(aZillion) 272 .add(aZillion.negate()).equals(aZillion)); 273 assertTrue("0+0", zero.add(zero).equals(zero)); 274 assertTrue("0+1", zero.add(one).equals(one)); 275 assertTrue("1+0", one.add(zero).equals(one)); 276 assertTrue("1+1", one.add(one).equals(two)); 277 assertTrue("0+(-1)", zero.add(minusOne).equals(minusOne)); 278 assertTrue("(-1)+0", minusOne.add(zer [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Deque.java | 110 * <td>{@link java.util.Queue#add add(e)}</td> 200 * @param e the element to add 219 * <p>This method is equivalent to {@link #add}. 221 * @param e the element to add 239 * @param e the element to add 257 * @param e the element to add 393 * @param e the element to add 394 * @return {@code true} (as specified by {@link Collection#add}) 404 boolean add( method in interface:Deque [all...] |
H A D | List.java | 46 * <tt>iterator</tt>, <tt>add</tt>, <tt>remove</tt>, <tt>equals</tt>, and 79 * add an ineligible element throws an unchecked exception, typically 222 * lists will refuse to add null elements, and others will impose 228 * @return <tt>true</tt> (as specified by {@link Collection#add}) 229 * @throws UnsupportedOperationException if the <tt>add</tt> operation 238 boolean add(E e); method in interface:List 305 * @see #add(Object) 596 * @throws UnsupportedOperationException if the <tt>add</tt> operation 607 void add(int index, E element); method in interface:List
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/file/ |
H A D | FileURLConnection.java | 122 properties.add(CONTENT_TYPE, contentType); 124 properties.add(CONTENT_LENGTH, String.valueOf(length)); 136 properties.add(LAST_MODIFIED, fo.format(date)); 139 properties.add(CONTENT_TYPE, TEXT_PLAIN);
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
H A D | hc_nodeclonenodetrue.java | 87 expected.add(origChildName); 94 result.add(clonedChildName);
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
H A D | importNode01.java | 91 expectedResult.add("elem:attr1"); 92 expectedResult.add("importedText");
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | MembershipRegistry.java | 83 void add(MembershipKeyImpl key) { method in class:MembershipRegistry 96 keys.add(key);
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
H A D | Util.java | 100 set.add(e); 113 set.add(e);
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
H A D | ForEachOpTest.java | 93 s.forEachOrdered(l::add); 114 s.forEach(l::add); 141 s.forEachOrdered(l::add); 162 s.forEach(l::add); 189 s.forEachOrdered(e -> l.add((int) e)); 210 s.forEach(l::add); 237 s.forEachOrdered(e -> l.add((int) e)); 258 s.forEach(l::add);
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/cert/ |
H A D | MyCertificateFactorySpi.java | 58 list.add("aa"); 59 list.add("bb");
|
/libcore/luni/src/test/java/libcore/java/net/ |
H A D | NetworkInterfaceTest.java | 48 expected.add(Inet4Address.LOOPBACK); 49 expected.add(Inet6Address.getByAddress("localhost", new byte[] { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }, null)); 145 allNames.add(nif.getName()); 148 allIndexes.add(nif.getIndex()); 207 expectedNiNames.add(split[1]); 216 Collections.list(nifs).forEach(ni -> actualNiNames.add(ni.getName()));
|
/libcore/luni/src/test/java/libcore/java/util/ |
H A D | SimpleTimeZoneTest.java | 219 cal.add(Calendar.HOUR_OF_DAY, 1); 222 cal.add(Calendar.MILLISECOND, -1); 224 cal.add(Calendar.MILLISECOND, 1); 232 cal.add(Calendar.HOUR_OF_DAY, 1); 235 cal.add(Calendar.MILLISECOND, -1); 237 cal.add(Calendar.MILLISECOND, 1);
|