Home
last modified time | relevance | path

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

12

/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java17 import static java.util.concurrent.TimeUnit.SECONDS;
44 SECONDS.convert(t, DAYS)); in testConvert()
46 SECONDS.convert(t, HOURS)); in testConvert()
48 SECONDS.convert(t, MINUTES)); in testConvert()
50 SECONDS.convert(t, SECONDS)); in testConvert()
52 SECONDS.convert(1000L*t, MILLISECONDS)); in testConvert()
54 SECONDS.convert(1000000L*t, MICROSECONDS)); in testConvert()
56 SECONDS.convert(1000000000L*t, NANOSECONDS)); in testConvert()
65 MILLISECONDS.convert(t, SECONDS)); in testConvert()
80 MICROSECONDS.convert(t, SECONDS)); in testConvert()
[all …]
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 …]
DThreadPoolExecutorSubclassTest.java12 import static java.util.concurrent.TimeUnit.SECONDS;
379 assertEquals(1, p.getKeepAliveTime(SECONDS)); in testGetKeepAliveTime()
807 new CustomTPE(-1, 1, 1L, SECONDS, in testConstructor1()
818 new CustomTPE(1, -1, 1L, SECONDS, in testConstructor2()
829 new CustomTPE(1, 0, 1L, SECONDS, in testConstructor3()
840 new CustomTPE(1, 2, -1L, SECONDS, in testConstructor4()
851 new CustomTPE(2, 1, 1L, SECONDS, in testConstructor5()
862 new CustomTPE(1, 2, 1L, SECONDS, null); in testConstructorNullPointerException()
872 new CustomTPE(-1, 1, 1L, SECONDS, in testConstructor6()
884 new CustomTPE(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()
DRecursiveActionTest.java9 import static java.util.concurrent.TimeUnit.SECONDS;
80 a.get(5L, SECONDS); in checkNotDone()
87 a.get(0L, SECONDS); in checkNotDone()
107 assertNull(a.get(5L, SECONDS)); in checkCompletedNormally()
132 a.get(5L, SECONDS); in checkCancelled()
163 a.get(5L, SECONDS); in checkCompletedAbnormally()
461 assertNull(f.get(5L, SECONDS)); in testForkTimedGet()
596 f.get(5L, SECONDS); in testAbnormalForkTimedGet()
688 f.get(5L, SECONDS); in testCancelledForkTimedGet()
DExecutorCompletionServiceTest.java169 30L, TimeUnit.SECONDS, in testNewTaskForCallable()
200 30L, TimeUnit.SECONDS, in testNewTaskForRunnable()
DForkJoinPool8Test.java10 import static java.util.concurrent.TimeUnit.SECONDS;
91 a.get(5L, SECONDS); in checkNotDone()
98 a.get(0L, SECONDS); in checkNotDone()
118 assertNull(a.get(5L, SECONDS)); in checkCompletedNormally()
143 a.get(5L, SECONDS); in checkCancelled()
174 a.get(5L, SECONDS); in checkCompletedAbnormally()
369 assertNull(f.get(5L, SECONDS)); in testForkTimedGet()
485 f.get(5L, SECONDS); in testAbnormalForkTimedGet()
577 f.get(5L, SECONDS); in testCancelledForkTimedGet()
DFutureTaskTest.java13 import static java.util.concurrent.TimeUnit.SECONDS;
118 assertSame(expected, f.get(5L, SECONDS)); in checkCompletedNormally()
133 f.get(5L, SECONDS); in checkCancelled()
159 f.get(5L, SECONDS); in checkCompletedAbnormally()
DForkJoinTask8Test.java10 import static java.util.concurrent.TimeUnit.SECONDS;
111 a.get(0L, SECONDS); in checkNotDone()
153 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally()
192 a.get(5L, SECONDS);
DForkJoinTaskTest.java10 import static java.util.concurrent.TimeUnit.SECONDS;
86 a.get(0L, SECONDS); in checkNotDone()
126 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally()
161 a.get(5L, SECONDS);
200 a.get(5L, SECONDS);
DScheduledExecutorTest.java13 import static java.util.concurrent.TimeUnit.SECONDS;
710 tasks.add(p.schedule(r, 9, SECONDS)); in testShutdownNow_delayedTasks()
711 tasks.add(p.scheduleAtFixedRate(r, 9, 9, SECONDS)); in testShutdownNow_delayedTasks()
712 tasks.add(p.scheduleWithFixedDelay(r, 9, 9, SECONDS)); in testShutdownNow_delayedTasks()
1257 p.scheduleWithFixedDelay(delayed, 0L, Long.MAX_VALUE, SECONDS);
DAbstractExecutorServiceTest.java206 = new ThreadPoolExecutor(1,1,60, TimeUnit.SECONDS, in testInterruptedSubmit()
229 60, TimeUnit.SECONDS, in testSubmitEE()
DCountedCompleterTest.java10 import static java.util.concurrent.TimeUnit.SECONDS;
84 a.get(0L, SECONDS); in checkNotDone()
120 assertNull(a.get(5L, SECONDS)); in checkCompletedNormally()
155 a.get(5L, SECONDS);
194 a.get(5L, SECONDS);
DScheduledExecutorSubclassTest.java11 import static java.util.concurrent.TimeUnit.SECONDS;
761 tasks.add(p.schedule(r, 9, SECONDS)); in testShutdownNow_delayedTasks()
762 tasks.add(p.scheduleAtFixedRate(r, 9, 9, SECONDS)); in testShutdownNow_delayedTasks()
763 tasks.add(p.scheduleWithFixedDelay(r, 9, 9, SECONDS)); in testShutdownNow_delayedTasks()
/libcore/support/src/test/java/tests/support/
DSupport_Exec.java95 out = outFuture.get(30, TimeUnit.SECONDS); in execAndGetOutput()
96 String err = errFuture.get(30, TimeUnit.SECONDS); in execAndGetOutput()
131 assertEquals(expectedOut, outFuture.get(10, TimeUnit.SECONDS)); in execAndCheckOutput()
132 assertEquals(expectedErr, errFuture.get(10, TimeUnit.SECONDS)); in execAndCheckOutput()
/libcore/support/src/test/java/libcore/javax/net/ssl/
DTestSSLSocketPair.java104 s.get(30, TimeUnit.SECONDS); in connect()
112 c.get(30, TimeUnit.SECONDS); in connect()
/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.java178 barrier.await(60, TimeUnit.SECONDS); in run()
272 barrier.await(60, TimeUnit.SECONDS); in run()
/libcore/luni/src/test/java/libcore/net/
DNetworkSecurityPolicyTest.java299 byte[] firstChunkFromClient = getFirstReceivedChunkFuture().get(2, TimeUnit.SECONDS); in assertDataTransmittedByClient()
309 firstChunkFromClient = getFirstReceivedChunkFuture().get(2, TimeUnit.SECONDS); in assertNoDataTransmittedByClient()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketConcurrentCloseTest.java97 boolean serverShutdownReached = shutdownLatch.await(hardLimitSeconds, TimeUnit.SECONDS); in checkConnectIterationAndCloseSocket()
/libcore/luni/src/main/java/java/util/concurrent/
DExecutors.java195 60L, TimeUnit.SECONDS, in newCachedThreadPool()
210 60L, TimeUnit.SECONDS, in newCachedThreadPool()
DTimeUnit.java97 SECONDS { enumConstant
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java112 assertFalse(selectReturned.await(2, TimeUnit.SECONDS)); in testManyWakeupCallsTriggerOnlyOneWakeup()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1841 return readFirstReceivedChunkFuture.get(10, TimeUnit.SECONDS); in captureTlsHandshakeFirstTransmittedChunkBytes()
1847 if (!executorService.awaitTermination(5, TimeUnit.SECONDS)) { in captureTlsHandshakeFirstTransmittedChunkBytes()
2093 c.get(5, TimeUnit.SECONDS); in test_SSLSocket_ClientGetsAlertDuringHandshake_HasGoodExceptionMessage()
2094 s.get(5, TimeUnit.SECONDS); in test_SSLSocket_ClientGetsAlertDuringHandshake_HasGoodExceptionMessage()
2188 c.get(5, TimeUnit.SECONDS); in test_SSLSocket_ServerGetsAlertDuringHandshake_HasGoodExceptionMessage()
2189 s.get(5, TimeUnit.SECONDS); in test_SSLSocket_ServerGetsAlertDuringHandshake_HasGoodExceptionMessage()

12