Home
last modified time | relevance | path

Searched refs:SECONDS (Results 1 – 25 of 72) sorted by relevance

123

/libcore/ojluni/src/test/java/util/concurrent/tck/
DTimeUnitTest.java43 import static java.util.concurrent.TimeUnit.SECONDS;
68 SECONDS.convert(t, DAYS)); in testConvert()
70 SECONDS.convert(t, HOURS)); in testConvert()
72 SECONDS.convert(t, MINUTES)); in testConvert()
74 SECONDS.convert(t, SECONDS)); in testConvert()
76 SECONDS.convert(1000L*t, MILLISECONDS)); in testConvert()
78 SECONDS.convert(1000000L*t, MICROSECONDS)); in testConvert()
80 SECONDS.convert(1000000000L*t, NANOSECONDS)); in testConvert()
89 MILLISECONDS.convert(t, SECONDS)); in testConvert()
104 MICROSECONDS.convert(t, SECONDS)); in testConvert()
[all …]
DRecursiveTaskTest.java35 import static java.util.concurrent.TimeUnit.SECONDS;
100 a.get(5L, SECONDS); in checkNotDone()
107 a.get(0L, SECONDS); in checkNotDone()
127 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally()
172 a.get(5L, SECONDS); in checkCancelled()
203 a.get(5L, SECONDS); in checkCompletedAbnormally()
324 Integer r = f.get(5L, SECONDS); in testForkTimedGet()
450 Integer r = f.get(5L, SECONDS); in testAbnormalForkTimedGet()
547 Integer r = f.get(5L, SECONDS); in testCancelledForkTimedGet()
DRecursiveActionTest.java35 import static java.util.concurrent.TimeUnit.SECONDS;
104 a.get(5L, SECONDS); in checkNotDone()
111 a.get(0L, SECONDS); in checkNotDone()
131 assertNull(a.get(5L, SECONDS)); in checkCompletedNormally()
156 a.get(5L, SECONDS); in checkCancelled()
187 a.get(5L, SECONDS); in checkCompletedAbnormally()
473 assertNull(f.get(5L, SECONDS)); in testForkTimedGet()
608 f.get(5L, SECONDS); in testAbnormalForkTimedGet()
700 f.get(5L, SECONDS); in testCancelledForkTimedGet()
/libcore/ojluni/src/main/java/java/time/temporal/
DChronoField.java80 import static java.time.temporal.ChronoUnit.SECONDS;
122 NANO_OF_SECOND("NanoOfSecond", NANOS, SECONDS, ValueRange.of(0, 999_999_999)),
158 MICRO_OF_SECOND("MicroOfSecond", MICROS, SECONDS, ValueRange.of(0, 999_999)),
197 MILLI_OF_SECOND("MilliOfSecond", MILLIS, SECONDS, ValueRange.of(0, 999)),
226 SECOND_OF_MINUTE("SecondOfMinute", SECONDS, MINUTES, ValueRange.of(0, 59), "second"),
238 SECOND_OF_DAY("SecondOfDay", SECONDS, DAYS, ValueRange.of(0, 86400L - 1)),
576 …INSTANT_SECONDS("InstantSeconds", SECONDS, FOREVER, ValueRange.of(Long.MIN_VALUE, Long.MAX_VALUE)),
590 OFFSET_SECONDS("OffsetSeconds", SECONDS, FOREVER, ValueRange.of(-18 * 3600, 18 * 3600));
/libcore/ojluni/src/test/java/time/tck/java/time/
DTCKInstant.java73 import static java.time.temporal.ChronoUnit.SECONDS;
634 …{Instant.ofEpochSecond(86400 + 3600 + 60 + 1, 123_456_789), SECONDS, Instant.ofEpochSecond(86400 +…
678 {SECONDS, MockSimplePeriod.of(5, SECONDS), 6, 0},
683 {SECONDS, MockSimplePeriod.of(13, SECONDS), 14, 0},
685 {SECONDS, Duration.ofSeconds(20, 40), 21, 40},
936 …Instant i = Instant.ofEpochSecond(seconds, nanos).plus(otherSeconds, SECONDS).plus(otherNanos, NAN…
951 i.plus(-1, SECONDS);
1436 …Instant i = Instant.ofEpochSecond(seconds, nanos).minus(otherSeconds, SECONDS).minus(otherNanos, N…
1451 i.minus(-1, SECONDS);
1720 {5, 650, -1, 650, SECONDS, -6},
[all …]
/libcore/luni/src/test/java/libcore/java/nio/channels/
DAsynchronousChannelGroupTest.java106 assertFalse(acg.awaitTermination(2, TimeUnit.SECONDS)); in test_shutdown()
150 assertTrue(acg.awaitTermination(TIMEOUT, TimeUnit.SECONDS)); in test_isTerminated()
163 assertFalse(acg.awaitTermination(TIMEOUT, TimeUnit.SECONDS)); in test_awaitTermination()
167 assertTrue(acg.awaitTermination(TIMEOUT, TimeUnit.SECONDS)); in test_awaitTermination()
/libcore/luni/src/test/java/libcore/java/lang/
DThreadGroupTest.java54 assertTrue("Some thread was not interrupted", mLatch.await(5, TimeUnit.SECONDS)); in interrupt_shouldInterruptAllThreadsInAGroup()
70 assertTrue("Some thread was not interrupted", mLatch.await(5, TimeUnit.SECONDS)); in interrupt_shouldInterruptThreadsInSubgroups()
86 assertFalse("Both threads were interrupted", mLatch.await(5, TimeUnit.SECONDS)); in interrupt_shouldNotInterruptThreadsInParentGroup()
/libcore/jsr166-tests/src/test/java/jsr166/
DThreadPoolExecutorTest.java13 import static java.util.concurrent.TimeUnit.SECONDS;
232 assertEquals(1, p.getKeepAliveTime(SECONDS)); in testGetKeepAliveTime()
692 new ThreadPoolExecutor(-1, 1, 1L, SECONDS, in testConstructor1()
703 new ThreadPoolExecutor(1, -1, 1L, SECONDS, in testConstructor2()
714 new ThreadPoolExecutor(1, 0, 1L, SECONDS, in testConstructor3()
725 new ThreadPoolExecutor(1, 2, -1L, SECONDS, in testConstructor4()
736 new ThreadPoolExecutor(2, 1, 1L, SECONDS, in testConstructor5()
747 new ThreadPoolExecutor(1, 2, 1L, SECONDS, in testConstructorNullPointerException()
758 new ThreadPoolExecutor(-1, 1, 1L, SECONDS, in testConstructor6()
770 new ThreadPoolExecutor(1, -1, 1L, SECONDS, in testConstructor7()
[all …]
DRecursiveTaskTest.java9 import static java.util.concurrent.TimeUnit.SECONDS;
77 a.get(5L, SECONDS); in checkNotDone()
84 a.get(0L, SECONDS); in checkNotDone()
104 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally()
149 a.get(5L, SECONDS); in checkCancelled()
180 a.get(5L, SECONDS); in checkCompletedAbnormally()
301 Integer r = f.get(5L, SECONDS); in testForkTimedGet()
427 Integer r = f.get(5L, SECONDS); in testAbnormalForkTimedGet()
524 Integer r = f.get(5L, SECONDS); in testCancelledForkTimedGet()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/
DTCKChronoField.java95 import static java.time.temporal.ChronoUnit.SECONDS;
133 {SECOND_OF_DAY, SECONDS, DAYS}, in data_fieldUnit()
134 {SECOND_OF_MINUTE, SECONDS, MINUTES}, in data_fieldUnit()
136 {MILLI_OF_SECOND, MILLIS, SECONDS}, in data_fieldUnit()
137 {MICRO_OF_SECOND, MICROS, SECONDS}, in data_fieldUnit()
139 {NANO_OF_SECOND, NANOS, SECONDS}, in data_fieldUnit()
DTCKChronoUnit.java72 import static java.time.temporal.ChronoUnit.SECONDS;
114 {SECONDS, false, true, false}, in data_chronoUnit()
145 {SECONDS, LocalTime.of(1, 2, 3, 400), true, 1, LocalTime.of(1, 2, 4, 400)}, in data_unitAndTemporal()
160 {SECONDS, LocalDate.of(2000, 2, 29), false, 1, null}, in data_unitAndTemporal()
/libcore/luni/src/test/java/libcore/java/time/
DOffsetDateTimeTest.java50 ODT.plus(60, ChronoUnit.SECONDS)); in test_plus()
66 ODT.minus(60, ChronoUnit.SECONDS)); in test_minus_utc_offset()
86 odt.minus(60, ChronoUnit.SECONDS)); in test_minus_non_utc_offset()
DOffsetTimeTest.java52 NOON_UTC.plus(60, ChronoUnit.SECONDS)); in test_plus()
65 assertPlusIsNoop(24 * 60 * 60, ChronoUnit.SECONDS); in test_plus_noop()
DInstantTest.java39 assertEquals(true, Instant.EPOCH.isSupported(ChronoUnit.SECONDS)); in test_isSupported_TemporalUnit()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java82 boolean completed = threadFinishedLatch.await(5, TimeUnit.SECONDS); in testImplAccept_detectsClosedState()
149 assertTrue("Slow server startup", serverRunnable.awaitStart(1, TimeUnit.SECONDS)); in checkConnectIterationAndCloseSocket()
150 assertTrue("Slow client startup", clientRunnable.awaitStart(1, TimeUnit.SECONDS)); in checkConnectIterationAndCloseSocket()
163 … boolean serverShutdownReached = serverRunnable.awaitShutdown(hardLimitSeconds, TimeUnit.SECONDS); in checkConnectIterationAndCloseSocket()
/libcore/ojluni/src/main/java/java/util/zip/
DZipUtils.java56 return FileTime.from(utime, TimeUnit.SECONDS); in unixTimeToFileTime()
63 return ftime.to(TimeUnit.SECONDS); in fileTimeToUnixTime()
/libcore/ojluni/src/test/java/time/tck/java/time/temporal/serial/
DTCKChronoUnitSerialization.java72 import static java.time.temporal.ChronoUnit.SECONDS;
109 {SECONDS}, in data_chronoUnit()
/libcore/ojluni/src/main/java/java/nio/file/attribute/
DFileTime.java146 long secs = unit.convert(instant.getEpochSecond(), TimeUnit.SECONDS); in to()
247 case SECONDS: in toInstant()
312 return TimeUnit.SECONDS.toDays(toInstant().getEpochSecond()); in toDays()
320 return TimeUnit.SECONDS.toNanos(toInstant().getEpochSecond() in toExcessNanos()
415 if (instant == null && unit.compareTo(TimeUnit.SECONDS) >= 0) { in toString()
/libcore/ojluni/src/test/java/time/test/java/time/
DMockSimplePeriod.java64 import static java.time.temporal.ChronoUnit.SECONDS;
86 public static final MockSimplePeriod ZERO_SECONDS = new MockSimplePeriod(0, SECONDS);
/libcore/ojluni/src/main/java/java/time/
DDuration.java73 import static java.time.temporal.ChronoUnit.SECONDS;
471 long secs = startInclusive.until(endExclusive, SECONDS); in between()
528 if (unit == SECONDS) { in get()
561 Collections.unmodifiableList(Arrays.<TemporalUnit>asList(SECONDS, NANOS));
707 case SECONDS: return plusSeconds(amountToAdd); in plus()
1084 temporal = temporal.plus(seconds, SECONDS); in addTo()
1119 temporal = temporal.minus(seconds, SECONDS); in subtractFrom()
1345 if (unit == ChronoUnit.SECONDS && (seconds >= 0 || nanos == 0)) { in truncatedTo()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java103 s.get(30, TimeUnit.SECONDS); in connect()
111 c.get(30, TimeUnit.SECONDS); in connect()
/libcore/ojluni/src/test/java/nio/file/attribute/
DBasicFileAttributeViewTest.java61 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS), in checkAttributesOfDirectory()
77 check(f.lastModified()/1000 == attrs.lastModifiedTime().to(TimeUnit.SECONDS), in checkAttributesOfFile()
/libcore/luni/src/main/java/javax/xml/datatype/
DDuration.java163 boolean secondSet = isSet(DatatypeConstants.SECONDS); in getXMLSchemaType()
299 return getFieldValueAsInt(DatatypeConstants.SECONDS); in getSeconds()
909 BigDecimal seconds = (BigDecimal) getField(DatatypeConstants.SECONDS); in toString()
DDatatypeConstants.java154 public static final Field SECONDS = new Field("SECONDS", 5); field in DatatypeConstants
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/apache/harmony/kernel/dalvik/
DThreadsTest.java192 barrier.await(60, TimeUnit.SECONDS); in run()
293 barrier.await(60, TimeUnit.SECONDS); in run()

123