/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
D | RelativeDateTimeFormatterTest.java | 28 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "in 0 seconds"}, in TestRelativeDateWithQuantity() 29 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "in 0.5 seconds"}, in TestRelativeDateWithQuantity() 30 {1.0, Direction.NEXT, RelativeUnit.SECONDS, "in 1 second"}, in TestRelativeDateWithQuantity() 31 {2.0, Direction.NEXT, RelativeUnit.SECONDS, "in 2 seconds"}, in TestRelativeDateWithQuantity() 57 {0.0, Direction.LAST, RelativeUnit.SECONDS, "0 seconds ago"}, in TestRelativeDateWithQuantity() 58 {0.5, Direction.LAST, RelativeUnit.SECONDS, "0.5 seconds ago"}, in TestRelativeDateWithQuantity() 59 {1.0, Direction.LAST, RelativeUnit.SECONDS, "1 second ago"}, in TestRelativeDateWithQuantity() 60 {2.0, Direction.LAST, RelativeUnit.SECONDS, "2 seconds ago"}, in TestRelativeDateWithQuantity() 96 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "In 0 seconds"}, in TestRelativeDateWithQuantityCaps() 97 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "In 0.5 seconds"}, in TestRelativeDateWithQuantityCaps() [all …]
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/ |
D | RelativeDateTimeFormatterTest.java | 32 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "in 0 seconds"}, in TestRelativeDateWithQuantity() 33 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "in 0.5 seconds"}, in TestRelativeDateWithQuantity() 34 {1.0, Direction.NEXT, RelativeUnit.SECONDS, "in 1 second"}, in TestRelativeDateWithQuantity() 35 {2.0, Direction.NEXT, RelativeUnit.SECONDS, "in 2 seconds"}, in TestRelativeDateWithQuantity() 61 {0.0, Direction.LAST, RelativeUnit.SECONDS, "0 seconds ago"}, in TestRelativeDateWithQuantity() 62 {0.5, Direction.LAST, RelativeUnit.SECONDS, "0.5 seconds ago"}, in TestRelativeDateWithQuantity() 63 {1.0, Direction.LAST, RelativeUnit.SECONDS, "1 second ago"}, in TestRelativeDateWithQuantity() 64 {2.0, Direction.LAST, RelativeUnit.SECONDS, "2 seconds ago"}, in TestRelativeDateWithQuantity() 100 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "In 0 seconds"}, in TestRelativeDateWithQuantityCaps() 101 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "In 0.5 seconds"}, in TestRelativeDateWithQuantityCaps() [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | ForwardingBlockingDequeTest.java | 62 forward.offerFirst("asf", 2L, TimeUnit.SECONDS); in testOfferFirst_T() 67 forward.offerLast("asf", 2L, TimeUnit.SECONDS); in testOfferLast_T() 82 forward.pollFirst(2L, TimeUnit.SECONDS); in testPollFirst() 87 forward.pollLast(2L, TimeUnit.SECONDS); in testPollLast() 97 forward.offer("asf", 2L, TimeUnit.SECONDS); in testOffer_T() 107 forward.poll(2L, TimeUnit.SECONDS); in testPoll()
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
D | RateLimiterTest.java | 23 import static java.util.concurrent.TimeUnit.SECONDS; 68 RateLimiter limiter = RateLimiter.create(5.0, 5, SECONDS); in testSimpleRateUpdate() 106 limiter.tryAcquire(0, 1, SECONDS); in testAcquireParameterValidation() 111 limiter.tryAcquire(-1, 1, SECONDS); in testAcquireParameterValidation() 250 assertTrue(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed() 251 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed() 252 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed() 254 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed() 259 assertTrue(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_someWaitAllowed() 275 assertTrue(limiter.tryAcquire(5, 0, SECONDS)); in testTryAcquire_negative() [all …]
|
D | MoreExecutorsTest.java | 40 import static java.util.concurrent.TimeUnit.SECONDS; 184 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination() 187 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination() 192 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination() 207 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination() 222 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination() 226 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination() 227 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination() 228 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination() 280 results = service.invokeAll(callables, 1, SECONDS); in testListeningDecorator() [all …]
|
D | ListenableFutureTaskTest.java | 101 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerDoesNotRunUntilTaskCompletes() 115 task.get(5, TimeUnit.SECONDS); in testListenerCalledOnException() 121 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerCalledOnException() 133 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromNotRunning() 152 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromRunning()
|
D | JdkFutureAdaptersTest.java | 24 import static java.util.concurrent.TimeUnit.SECONDS; 112 0, Integer.MAX_VALUE, 60L, TimeUnit.SECONDS, in testListenInPoolThreadCustomExecutorInterrupted() 183 allowGetToComplete.await(1, SECONDS); in get() 242 assertTrue(earlyListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException() 247 assertTrue(lateListener.wasRun.await(1, SECONDS)); in testListenInPoolThreadRunsListenerAfterRuntimeException()
|
D | ListenableFutureTester.java | 72 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testCompletedFuture() 84 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testCancelledFuture() 99 assertTrue(latch.await(5, TimeUnit.SECONDS)); in testFailedFuture()
|
D | WrappingScheduledExecutorServiceTest.java | 51 testExecutor.schedule(Executors.callable(DO_NOTHING), 5, TimeUnit.SECONDS); in testSchedule() 52 mock.assertLastMethodCalled("scheduleCallable", 5, TimeUnit.SECONDS); in testSchedule() 61 testExecutor.scheduleAtFixedRate(DO_NOTHING, 3, 7, TimeUnit.SECONDS); in testSchedule_repeating() 62 mock.assertLastMethodCalled("scheduleAtFixedRate", 3, 7, TimeUnit.SECONDS); in testSchedule_repeating()
|
/external/guice/core/test/com/google/inject/internal/ |
D | CycleDetectingLockTest.java | 45 signal3.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency() 61 signal2.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency() 62 signal3.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency() 76 signal1.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency() 89 signal1.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency() 90 signal2.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | GcFinalization.java | 19 import static java.util.concurrent.TimeUnit.SECONDS; 135 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone() 143 future.get(1L, SECONDS); in awaitDone() 170 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await() 178 if (latch.await(1L, SECONDS)) { in await() 223 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
|
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
D | CacheBuilderTest.java | 24 import static java.util.concurrent.TimeUnit.SECONDS; 113 builder.expireAfterWrite(-1, SECONDS); in testTimeToLive_negative() 127 new CacheBuilder<Object, Object>().expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice() 130 builder.expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice() 138 builder.expireAfterAccess(-1, SECONDS); in testTimeToIdle_negative() 152 new CacheBuilder<Object, Object>().expireAfterAccess(3600, SECONDS); in testTimeToIdle_setTwice() 155 builder.expireAfterAccess(3600, SECONDS); in testTimeToIdle_setTwice()
|
/external/guice/extensions/service/test/com/google/inject/service/ |
D | SingleServiceIntegrationTest.java | 44 assertTrue(startLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle() 49 future.get(1, TimeUnit.SECONDS); in testAsyncServiceLifecycle() 52 assertTrue(stopLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle() 74 service.start().get(2, TimeUnit.SECONDS); in testAsyncServiceBlockingLifecycle() 75 service.stop().get(2, TimeUnit.SECONDS); in testAsyncServiceBlockingLifecycle()
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | NativeCryptoTest.java | 1023 TestSSLHandshakeCallbacks clientCallback = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_normal() 1024 TestSSLHandshakeCallbacks serverCallback = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_normal() 1063 TestSSLHandshakeCallbacks clientCallback = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_optional_client_certificate() 1064 TestSSLHandshakeCallbacks serverCallback = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_optional_client_certificate() 1112 server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_missing_required_certificate() 1176 client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_clientCertificateRequested_throws_after_renegotiate() 1182 server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_clientCertificateRequested_throws_after_renegotiate() 1196 serverSocket = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS).getSocket(); in test_SSL_do_handshake_client_timeout() 1197 client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_client_timeout() 1219 clientSocket = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS).getSocket(); in test_SSL_do_handshake_server_timeout() [all …]
|
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
D | ConfigureTimeouts.java | 28 client.setConnectTimeout(10, TimeUnit.SECONDS); in ConfigureTimeouts() 29 client.setWriteTimeout(10, TimeUnit.SECONDS); in ConfigureTimeouts() 30 client.setReadTimeout(30, TimeUnit.SECONDS); in ConfigureTimeouts()
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
D | Stopwatch.java | 27 import static java.util.concurrent.TimeUnit.SECONDS; 220 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 221 return SECONDS; in chooseUnit() 240 case SECONDS: in abbreviate()
|
/external/jetty/src/java/org/eclipse/jetty/util/thread/ |
D | ExecutorThreadPool.java | 62 … this(new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>())); in ExecutorThreadPool() 74 …this(queueSize < 0 ? new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueu… in ExecutorThreadPool() 75 …queueSize == 0 ? new ThreadPoolExecutor(32, 256, 60, TimeUnit.SECONDS, new SynchronousQueue<Runnab… in ExecutorThreadPool() 76 …new ThreadPoolExecutor(32, 256, 60, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(queueSize))… in ExecutorThreadPool()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
D | CacheStrategy.java | 22 import static java.util.concurrent.TimeUnit.SECONDS; 199 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate() 204 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); in getCandidate() 210 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); in getCandidate() 248 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime() 279 ? Math.max(apparentReceivedAge, SECONDS.toMillis(ageSeconds)) in cacheResponseAge()
|
/external/guava/guava/src/com/google/common/base/ |
D | Stopwatch.java | 27 import static java.util.concurrent.TimeUnit.SECONDS; 235 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit() 236 return SECONDS; in chooseUnit() 255 case SECONDS: in abbreviate()
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheBuilderTest.java | 26 import static java.util.concurrent.TimeUnit.SECONDS; 269 builder.expireAfterWrite(-1, SECONDS); in testTimeToLive_negative() 283 new CacheBuilder<Object, Object>().expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice() 286 builder.expireAfterWrite(3600, SECONDS); in testTimeToLive_setTwice() 294 builder.expireAfterAccess(-1, SECONDS); in testTimeToIdle_negative() 308 new CacheBuilder<Object, Object>().expireAfterAccess(3600, SECONDS); in testTimeToIdle_setTwice() 311 builder.expireAfterAccess(3600, SECONDS); in testTimeToIdle_setTwice() 328 builder.refreshAfterWrite(0, SECONDS); in testRefresh_zero() 336 new CacheBuilder<Object, Object>().refreshAfterWrite(3600, SECONDS); in testRefresh_setTwice() 339 builder.refreshAfterWrite(3600, SECONDS); in testRefresh_setTwice() [all …]
|
D | CacheBuilderSpecTest.java | 290 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); in testParse_writeExpirationSeconds() 293 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); in testParse_writeExpirationSeconds() 340 assertEquals(TimeUnit.SECONDS, spec.accessExpirationTimeUnit); in testParse_accessExpirationSeconds() 343 CacheBuilder.newBuilder().expireAfterAccess(10L, TimeUnit.SECONDS), in testParse_accessExpirationSeconds() 385 assertEquals(TimeUnit.SECONDS, spec.accessExpirationTimeUnit); in testParse_accessExpirationAndWriteExpiration() 389 .expireAfterAccess(10L, TimeUnit.SECONDS) in testParse_accessExpirationAndWriteExpiration() 427 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); in testParse_whitespaceAllowed() 435 .expireAfterWrite(15L, TimeUnit.SECONDS); in testParse_whitespaceAllowed()
|
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/ |
D | MockFutureListener.java | 62 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertSuccess() 78 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertException() 91 Assert.assertFalse(countDownLatch.await(1L, TimeUnit.SECONDS)); in assertTimeout()
|
/external/blktrace/btt/ |
D | trace_complete.c | 30 (int)SECONDS(tm), (unsigned long)NANO_SECONDS(tm), in __out() 95 (int)SECONDS(q_iop->t.time), in handle_complete() 109 (int)SECONDS(d_time), in handle_complete() 111 (int)SECONDS(c_iop->t.time), in handle_complete()
|
/external/autotest/client/tests/aio_dio_bugs/src/ |
D | aio-dio-invalidate-failure.c | 36 #define SECONDS 200 macro 134 alarm(SECONDS); in main() 141 printf("ran for %d seconds without error, passing\n", SECONDS); in main()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | SmoothRateLimiter.java | 20 import static java.util.concurrent.TimeUnit.SECONDS; 339 double stableIntervalMicros = SECONDS.toMicros(1L) / permitsPerSecond; in doSetRate() 348 return SECONDS.toMicros(1L) / stableIntervalMicros; in doGetRate()
|