Home
last modified time | relevance | path

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

/libcore/jsr166-tests/src/test/java/jsr166/
DTimeUnitTest.java25 TimeUnit.SECONDS.convert(t, in testConvert()
28 TimeUnit.SECONDS.convert(t, in testConvert()
31 TimeUnit.SECONDS.convert(t, in testConvert()
34 TimeUnit.SECONDS.convert(t, in testConvert()
35 TimeUnit.SECONDS)); in testConvert()
37 TimeUnit.SECONDS.convert(1000L*t, in testConvert()
40 TimeUnit.SECONDS.convert(1000000L*t, in testConvert()
43 TimeUnit.SECONDS.convert(1000000000L*t, in testConvert()
57 TimeUnit.SECONDS)); in testConvert()
79 TimeUnit.SECONDS)); in testConvert()
[all …]
DRecursiveTaskTest.java18 import static java.util.concurrent.TimeUnit.SECONDS;
68 a.get(5L, SECONDS); in checkNotDone()
75 a.get(0L, SECONDS); in checkNotDone()
95 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally()
140 a.get(5L, SECONDS); in checkCancelled()
171 a.get(5L, SECONDS); in checkCompletedAbnormally()
292 Integer r = f.get(5L, SECONDS); in testForkTimedGet()
416 Integer r = f.get(5L, SECONDS); in testAbnormalForkTimedGet()
513 Integer r = f.get(5L, SECONDS); in testCancelledForkTimedGet()
DRecursiveActionTest.java20 import static java.util.concurrent.TimeUnit.SECONDS;
70 a.get(5L, SECONDS); in checkNotDone()
77 a.get(0L, SECONDS); in checkNotDone()
97 assertNull(a.get(5L, SECONDS)); in checkCompletedNormally()
122 a.get(5L, SECONDS); in checkCancelled()
153 a.get(5L, SECONDS); in checkCompletedAbnormally()
451 assertNull(f.get(5L, SECONDS)); in testForkTimedGet()
584 f.get(5L, TimeUnit.SECONDS); in testAbnormalForkTimedGet()
676 f.get(5L, SECONDS); in testCancelledForkTimedGet()
DExecutorCompletionServiceTest.java168 1, 1, 30L, TimeUnit.SECONDS, in testNewTaskForCallable()
200 1, 1, 30L, TimeUnit.SECONDS, in testNewTaskForRunnable()
DFutureTaskTest.java21 import static java.util.concurrent.TimeUnit.SECONDS;
100 assertSame(expected, f.get(5L, SECONDS)); in checkCompletedNormally()
115 f.get(5L, SECONDS); in checkCancelled()
141 f.get(5L, SECONDS); in checkCompletedAbnormally()
DForkJoinTaskTest.java19 import static java.util.concurrent.TimeUnit.SECONDS;
74 a.get(0L, SECONDS); in checkNotDone()
114 assertSame(expected, a.get(5L, SECONDS)); in checkCompletedNormally()
149 a.get(5L, SECONDS);
188 a.get(5L, SECONDS);
DAbstractExecutorServiceTest.java177 = new ThreadPoolExecutor(1,1,60, TimeUnit.SECONDS, in testInterruptedSubmit()
208 60, TimeUnit.SECONDS, in testSubmitEE()
DCountedCompleterTest.java22 import static java.util.concurrent.TimeUnit.SECONDS;
77 a.get(0L, SECONDS); in checkNotDone()
113 assertNull(a.get(5L, SECONDS)); in checkCompletedNormally()
148 a.get(5L, SECONDS);
187 a.get(5L, SECONDS);
DThreadPoolExecutorTest.java194 assertEquals(1, p.getKeepAliveTime(TimeUnit.SECONDS)); in testGetKeepAliveTime()
997 60, TimeUnit.SECONDS, in testInterruptedSubmit()
1991 new ThreadPoolExecutor(1, 30, 60, TimeUnit.SECONDS,
DThreadPoolExecutorSubclassTest.java322 assertEquals(1, p.getKeepAliveTime(TimeUnit.SECONDS)); in testGetKeepAliveTime()
/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/main/java/java/util/concurrent/
DExecutors.java190 60L, TimeUnit.SECONDS, in newCachedThreadPool()
205 60L, TimeUnit.SECONDS, in newCachedThreadPool()
DTimeUnit.java76 SECONDS { enumConstant
/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java131 assertFalse(selectReturned.await(2, TimeUnit.SECONDS)); in testManyWakeupCallsTriggerOnlyOneWakeup()
/libcore/luni/src/test/java/libcore/javax/net/ssl/
DSSLSocketTest.java1554 byte[] clientHello = readFirstReceivedChunkFuture.get(10, TimeUnit.SECONDS); in test_SSLSocket_ClientHello_size()
1569 if (!executorService.awaitTermination(5, TimeUnit.SECONDS)) { in test_SSLSocket_ClientHello_size()
1772 c.get(5, TimeUnit.SECONDS); in test_SSLSocket_ClientGetsAlertDuringHandshake_HasGoodExceptionMessage()
1773 s.get(5, TimeUnit.SECONDS); in test_SSLSocket_ClientGetsAlertDuringHandshake_HasGoodExceptionMessage()
1867 c.get(5, TimeUnit.SECONDS); in test_SSLSocket_ServerGetsAlertDuringHandshake_HasGoodExceptionMessage()
1868 s.get(5, TimeUnit.SECONDS); in test_SSLSocket_ServerGetsAlertDuringHandshake_HasGoodExceptionMessage()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DJarFileTest.java704 foundCerts = future.get(10, TimeUnit.SECONDS); in checkSignedJar()