Searched refs:set (Results 276 - 300 of 308) sorted by relevance

<<111213

/libcore/jsr166-tests/src/test/java/jsr166/
H A DCompletableFutureTest.java3352 f.whenComplete((v, e) -> {if (e != null) r.set(e); else x.set(v);});
3430 g.whenComplete((v, e) -> {if (e != null) r.set(e); else x.set(v);});
3446 g.whenComplete((v, e) -> {if (e != null) r.set(e); else x.set(v);});
3464 f.whenComplete((v, e) -> {if (e != null) r.set(e); else x.set(v);});
3848 plus.firstFailure.set(null);
3852 plus.firstFailure.set(nul
[all...]
H A DAbstractExecutorServiceTest.java72 done.set(true);
H A DForkJoinPoolTest.java207 * getParallelism returns size set in constructor
432 done.set(true);
H A DJSR166TestCase.java95 * MEDIUM. And so on. These constants are set to conservative values,
123 * (see the separate "jtreg" tests for a set intended to check these
160 * execution without being reported, when profileTests is set.
650 * Triggers test case failure if interrupt status is set in the main thread.
670 tearDownFail("interrupt status set in main thread");
902 return new Runnable() { public void run() { flag.set(true); }};
1104 * manager, a temporary one is set for the duration of the
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
H A DSerializationStressTest4.java543 ((java.util.BitSet) objToSave).set(3);
544 ((java.util.BitSet) objToSave).set(5);
545 ((java.util.BitSet) objToSave).set(61, 89);
1838 assertTrue("invalid entry set iterator order", loadedIterator
1841 assertTrue("invalid entry set iterator size", !iterator.hasNext());
/libcore/ojluni/src/main/java/java/io/
H A DObjectStreamClass.java249 * defines a set of classes all with the same name that have evolved from a
324 * is non-serializable and "all" is set to false.
367 * for future value to be set by a lookup() call further up the
368 * stack will result in deadlock, so calculate and set the
382 if (future.set(entry)) {
385 // nested lookup call already set future
406 * return the actual entry once it is ready for use and has been set(). To
416 * Attempts to set the value contained by this EntryFuture. If the
417 * EntryFuture's value has not been set already, then the value is
419 * true is returned. If the value has already been set, the
422 synchronized boolean set(Object entry) { method in class:ObjectStreamClass.EntryFuture
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
H A DServerSocketTest.java331 // Should not throw SocketException when set DatagramSocketImplFactory
354 field.set(null, null);
601 // set up server connect and then validate that we get the right
729 // set up server and connect
756 // now test case were we set it to true
784 // the value set
820 // now validate case where we try to set to 0
824 fail("No exception when receive buffer size set to 0");
829 // now validate case where we try to set to a negative value
833 fail("No exception when receive buffer size set t
[all...]
/libcore/json/src/test/java/libcore/org/json/
H A DJSONArrayTest.java443 contents.set(0, 10);
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DAsynchronousFileChannelTest.java650 serviceThread.set(new Thread(r));
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java551 cal.set(2100, 0, 1, 0, 0, 0); // Jan 1, 2100 UTC
/libcore/luni/src/test/java/libcore/java/util/
H A DLinkedHashMapTest.java250 removeEldestEntryReturnValue.set(true);
/libcore/ojluni/src/main/java/java/net/
H A DURLConnection.java86 * {@code UseCaches} parameters can be set using the methods
90 * Each of the above {@code set} methods has a corresponding
179 * This variable is set by the {@code setDoInput} method. Its
194 * This variable is set by the {@code setDoOutput} method. Its
216 * The value of this field can be set by the
236 * This field is set by the {@code setUseCaches} method. Its
256 * This variable is set by the {@code setIfModifiedSince}
324 * @param map the FileNameMap to be set
349 * error to try to set them. Operations that depend on being
373 * the specified timeout. To see the connect timeout set, pleas
[all...]
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DThreadPoolExecutor.java85 * according to the bounds set by
99 * sizes are set only upon construction, but they may also be changed
359 * reported as the current size of the workers set.
469 * Lock held on access to workers set and related bookkeeping.
470 * While we could use a concurrent set of some sort, it turns out
478 * ensuring workers set is stable while separately checking
557 * is set, in which case the minimum is zero.
576 * have permission to actually interrupt threads in the worker set
733 ctl.set(ctlOf(TERMINATED, 0));
1008 * only from worker threads. Unless completedAbruptly is set,
[all...]
H A DConcurrentSkipListMap.java143 * The base lists use a variant of the HM linked ordered set
329 * argument is set up outside of loops (thus sometimes passed as
377 /** Lazily initialized key set */
379 /** Lazily initialized entry set */
383 /** Lazily initialized descending key set */
1023 casHead(h, d) && // try to set
1368 preds.set(i, q);
1400 preds.set(i, idx);
1468 preds.set(i, q);
1501 preds.set(
[all...]
/libcore/ojluni/src/main/java/sun/invoke/util/
H A DWrapper.java593 java.lang.reflect.Array.set(a, i+apos, value);
/libcore/ojluni/src/main/java/sun/nio/fs/
H A DUnixPath.java126 encoder.set(new SoftReference<CharsetEncoder>(ce));
/libcore/luni/src/test/java/libcore/libcore/io/
H A DOsTest.java495 killerThreadException.set(expected);
499 killerThreadException.set(ex);
645 // may set errno to EACCESS instead. This behavior change is likely related to
662 // Linux listxattr does not set errno.
706 * Tests that TCP_USER_TIMEOUT can be set on a TCP socket, but doesn't test
785 // Address should be correctly set for empty packets. http://b/33481605
/libcore/ojluni/src/main/java/sun/net/ftp/impl/
H A DFtpClient.java162 * the original character set is. It is not correct to assume that
264 now.set(Calendar.HOUR, Integer.parseInt(time.substring(0, c)));
265 now.set(Calendar.MINUTE, Integer.parseInt(time.substring(c + 1)));
703 * Opens a data connection with the server according to the set mode
952 // connectTimeout & readTimeout (-1 means not set)
1201 * specified point. After a transfer the restart offset is set back to
1219 * If the restart offset was set, then a <code>REST</code> command will be
1312 * If <code>unique</code> is set to <code>true</code>, the resultant file
1798 * one. By default the parser is set to one that can handle most FTP
2032 * set sinc
[all...]
/libcore/ojluni/src/main/java/java/util/
H A DTreeMap.java784 * Fields initialized to contain an instance of the entry set view
795 * <p>The set's iterator returns the keys in ascending order.
796 * The set's spliterator is
806 * <p>The set is backed by the map, so changes to the map are
807 * reflected in the set, and vice-versa. If the map is modified
808 * while an iteration over the set is in progress (except through
810 * the iteration are undefined. The set supports element removal,
869 * <p>The set's iterator returns the entries in ascending key order. The
876 * <p>The set is backed by the map, so changes to the map are
877 * reflected in the set, an
2494 addAllForTreeSet(SortedSet<? extends K> set, V defaultVal) argument
[all...]
/libcore/ojluni/src/test/java/time/tck/java/time/
H A DTCKLocalTime.java149 EnumSet<ChronoUnit> set = EnumSet.range(DAYS, FOREVER);
150 INVALID_UNITS = set.toArray(new TemporalUnit[set.size()]);
/libcore/ojluni/src/main/java/java/time/format/
H A DDateTimeFormatterBuilder.java320 * Note that case sensitivity is set separately to this method.
428 * Adjacent value parsing applies to each set of fixed width not-negative values in the parser
568 * The exact behavior is as follows. Parse the full set of fields and
649 active.printerParsers.set(activeValueParser, basePP);
677 * If the field does not have a fixed set of valid values then an
687 * @throws IllegalArgumentException if the field has a variable set of valid values or
749 * year as "JNY", "FBY", "MCH" etc. These do not match the standard set of text
1136 * for the locale set in the {@link DateTimeFormatter}.
1151 * to specify a set of preferred {@link ZoneId} in this situation.
1172 * for the locale set i
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DFormatterTest.java1734 paris.set(2006, 4, 8, 12, 0, 0);
1735 paris.set(Calendar.MILLISECOND, 453);
1738 china.set(2006, 4, 8, 12, 0, 0);
1739 china.set(Calendar.MILLISECOND, 609);
H A DLinkedHashMapTest.java229 assertTrue("Returned set of incorrect size", hm.size() == s.size());
232 assertTrue("Returned incorrect entry set", hm.containsKey(m
258 assertTrue("Returned set of incorrect size()", s.size() == hm.size());
260 assertTrue("Returned set does not contain all keys", s
414 Map.Entry<String, String>[] set = new Map.Entry[3];
532 assertTrue("Returned set of incorrect size 1", lhm.size() == s1.size());
536 assertTrue("Returned incorrect entry set 1", jj.intValue() == i);
547 assertTrue("Returned set of incorrect size 2", lruhm.size() == s3
552 assertTrue("Returned incorrect entry set 2", jj.intValue() == i);
565 assertTrue("Returned set o
[all...]
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/net/
H A DURLConnectionTest.java529 assertTrue("Should be set to true by default", uc.getDoInput());
532 assertTrue("Should have been set to true", fileURLCon.getDoInput());
535 assertFalse("Should have been set to false", uc2.getDoInput());
553 assertFalse("Should be set to false by default", uc.getDoOutput());
556 assertTrue("Should have been set to true", uc.getDoOutput());
562 assertFalse("Should have been set to false", uc2.getDoOutput());
1053 // nothing happens if set null
1098 cal.set(2000, Calendar.MARCH, 5);
1102 assertEquals("Wrong date set", sinceTime, connection
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DDatagramChannelTest.java2233 // assert the position of ByteBuffer has been set
2543 killerThreadException.set(expected);
2547 killerThreadException.set(ex);

Completed in 8065 milliseconds

<<111213