Home
last modified time | relevance | path

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

12345678910>>...17

/external/grpc-grpc-java/context/src/test/java/io/grpc/
DDeadlineTest.java64 Deadline d = Deadline.after(0, TimeUnit.SECONDS); in defaultTickerIsSystemTicker()
66 Deadline reference = Deadline.after(0, TimeUnit.SECONDS, ticker); in defaultTickerIsSystemTicker()
68 assertAbout(deadline()).that(d).isWithin(1, TimeUnit.SECONDS).of(reference); in defaultTickerIsSystemTicker()
106 Deadline deadline = Deadline.after(0, TimeUnit.SECONDS, ticker); in immediateDeadlineIsExpired()
128 Deadline d = Deadline.after(-1, TimeUnit.SECONDS, ticker); in pastDeadlineIsExpired()
146 Deadline base = Deadline.after(0, TimeUnit.SECONDS, ticker); in beforeExpiredDeadlineIsExpired()
148 assertTrue(base.offset(-1, TimeUnit.SECONDS).isExpired()); in beforeExpiredDeadlineIsExpired()
153 Deadline base = Deadline.after(10, TimeUnit.SECONDS, ticker); in beforeNotExpiredDeadlineMayBeExpired()
155 assertFalse(base.offset(-1, TimeUnit.SECONDS).isExpired()); in beforeNotExpiredDeadlineMayBeExpired()
156 assertTrue(base.offset(-11, TimeUnit.SECONDS).isExpired()); in beforeNotExpiredDeadlineMayBeExpired()
[all …]
/external/guice/core/test/com/google/inject/internal/
DCycleDetectingLockTest.java53 signal3.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
72 signal2.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
73 signal3.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
90 signal1.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
106 signal1.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
107 signal2.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
115 firstThreadResult.get(DEADLOCK_TIMEOUT_SECONDS * 3, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
116 secondThreadResult.get(DEADLOCK_TIMEOUT_SECONDS * 3, TimeUnit.SECONDS); in testSingletonThreadsRuntimeCircularDependency()
147 eachThreadAcquiredFirstLock.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testCycleDetectingLockFactoriesDoNotDeadlock()
164 eachThreadAcquiredFirstLock.await(DEADLOCK_TIMEOUT_SECONDS, TimeUnit.SECONDS); in testCycleDetectingLockFactoriesDoNotDeadlock()
[all …]
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DFuturesGetCheckedTest.java32 import static java.util.concurrent.TimeUnit.SECONDS;
171 "foo", getChecked(immediateFuture("foo"), TwoArgConstructorException.class, 0, SECONDS)); in testGetCheckedTimed_success()
178 getChecked(future, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_interrupted()
192 getChecked(future, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_cancelled()
200 getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionChecked()
209 getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionUnchecked()
218 getChecked(FAILED_FUTURE_ERROR, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionError()
227 getChecked(FAILED_FUTURE_OTHER_THROWABLE, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionOtherThrowable()
236 getChecked(RUNTIME_EXCEPTION_FUTURE, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_RuntimeException()
245 getChecked(ERROR_FUTURE, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_Error()
[all …]
DMoreExecutorsTest.java40 import static java.util.concurrent.TimeUnit.SECONDS;
192 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
195 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
200 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
216 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
231 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
235 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
236 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
237 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
277 Uninterruptibles.joinUninterruptibly(waiter, 10, TimeUnit.SECONDS); in testDirectExecutorService_awaitTermination_missedSignal()
[all …]
DRateLimiterTest.java23 import static java.util.concurrent.TimeUnit.SECONDS;
74 RateLimiter limiter = RateLimiter.create(5.0, 5, SECONDS); in testSimpleRateUpdate()
114 limiter.tryAcquire(0, 1, SECONDS); in testAcquireParameterValidation()
119 limiter.tryAcquire(-1, 1, SECONDS); in testAcquireParameterValidation()
333 assertTrue(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
334 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
335 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
337 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
342 assertTrue(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_someWaitAllowed()
358 assertTrue(limiter.tryAcquire(5, 0, SECONDS)); in testTryAcquire_negative()
[all …]
DListenableFutureTaskTest.java103 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerDoesNotRunUntilTaskCompletes()
117 task.get(5, TimeUnit.SECONDS); in testListenerCalledOnException()
123 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerCalledOnException()
135 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromNotRunning()
154 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromRunning()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DFuturesGetCheckedTest.java32 import static java.util.concurrent.TimeUnit.SECONDS;
171 "foo", getChecked(immediateFuture("foo"), TwoArgConstructorException.class, 0, SECONDS)); in testGetCheckedTimed_success()
178 getChecked(future, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_interrupted()
192 getChecked(future, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_cancelled()
200 getChecked(FAILED_FUTURE_CHECKED_EXCEPTION, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionChecked()
209 getChecked(FAILED_FUTURE_UNCHECKED_EXCEPTION, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionUnchecked()
218 getChecked(FAILED_FUTURE_ERROR, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionError()
227 getChecked(FAILED_FUTURE_OTHER_THROWABLE, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_ExecutionExceptionOtherThrowable()
236 getChecked(RUNTIME_EXCEPTION_FUTURE, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_RuntimeException()
245 getChecked(ERROR_FUTURE, TwoArgConstructorException.class, 0, SECONDS); in testGetCheckedTimed_Error()
[all …]
DMoreExecutorsTest.java40 import static java.util.concurrent.TimeUnit.SECONDS;
192 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
195 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
200 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
216 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
231 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
235 barrier.await(1, TimeUnit.SECONDS); in testDirectExecutorServiceServiceTermination()
236 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
237 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); in testDirectExecutorServiceServiceTermination()
277 Uninterruptibles.joinUninterruptibly(waiter, 10, TimeUnit.SECONDS); in testDirectExecutorService_awaitTermination_missedSignal()
[all …]
DRateLimiterTest.java23 import static java.util.concurrent.TimeUnit.SECONDS;
74 RateLimiter limiter = RateLimiter.create(5.0, 5, SECONDS); in testSimpleRateUpdate()
114 limiter.tryAcquire(0, 1, SECONDS); in testAcquireParameterValidation()
119 limiter.tryAcquire(-1, 1, SECONDS); in testAcquireParameterValidation()
333 assertTrue(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
334 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
335 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
337 assertFalse(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_noWaitAllowed()
342 assertTrue(limiter.tryAcquire(0, SECONDS)); in testTryAcquire_someWaitAllowed()
358 assertTrue(limiter.tryAcquire(5, 0, SECONDS)); in testTryAcquire_negative()
[all …]
DListenableFutureTaskTest.java103 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerDoesNotRunUntilTaskCompletes()
117 task.get(5, TimeUnit.SECONDS); in testListenerCalledOnException()
123 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); in testListenerCalledOnException()
135 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromNotRunning()
154 listenerLatch.await(5, TimeUnit.SECONDS); in testListenerCalledOnCancelFromRunning()
/external/guava/android/guava-testlib/src/com/google/common/testing/
DGcFinalization.java19 import static java.util.concurrent.TimeUnit.SECONDS;
142 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
150 future.get(1L, SECONDS); in awaitDone()
174 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
202 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await()
210 if (latch.await(1L, SECONDS)) { in await()
/external/guava/guava-testlib/src/com/google/common/testing/
DGcFinalization.java19 import static java.util.concurrent.TimeUnit.SECONDS;
142 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
150 future.get(1L, SECONDS); in awaitDone()
174 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
202 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await()
210 if (latch.await(1L, SECONDS)) { in await()
/external/guice/extensions/service/test/com/google/inject/service/
DSingleServiceIntegrationTest.java43 assertTrue(startLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle()
48 future.get(1, TimeUnit.SECONDS); in testAsyncServiceLifecycle()
51 assertTrue(stopLatch.await(2, TimeUnit.SECONDS)); in testAsyncServiceLifecycle()
76 service.start().get(2, TimeUnit.SECONDS); in testAsyncServiceBlockingLifecycle()
77 service.stop().get(2, TimeUnit.SECONDS); in testAsyncServiceBlockingLifecycle()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DRelativeDateTimeFormatterTest.java39 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "in 0 seconds"}, in TestRelativeDateWithQuantity()
40 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "in 0.5 seconds"}, in TestRelativeDateWithQuantity()
41 {1.0, Direction.NEXT, RelativeUnit.SECONDS, "in 1 second"}, in TestRelativeDateWithQuantity()
42 {2.0, Direction.NEXT, RelativeUnit.SECONDS, "in 2 seconds"}, in TestRelativeDateWithQuantity()
68 {0.0, Direction.LAST, RelativeUnit.SECONDS, "0 seconds ago"}, in TestRelativeDateWithQuantity()
69 {0.5, Direction.LAST, RelativeUnit.SECONDS, "0.5 seconds ago"}, in TestRelativeDateWithQuantity()
70 {1.0, Direction.LAST, RelativeUnit.SECONDS, "1 second ago"}, in TestRelativeDateWithQuantity()
71 {2.0, Direction.LAST, RelativeUnit.SECONDS, "2 seconds ago"}, in TestRelativeDateWithQuantity()
108 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "In 0 seconds"}, in TestRelativeDateWithQuantityCaps()
109 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "In 0.5 seconds"}, in TestRelativeDateWithQuantityCaps()
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DRelativeDateTimeFormatterTest.java36 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "in 0 seconds"}, in TestRelativeDateWithQuantity()
37 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "in 0.5 seconds"}, in TestRelativeDateWithQuantity()
38 {1.0, Direction.NEXT, RelativeUnit.SECONDS, "in 1 second"}, in TestRelativeDateWithQuantity()
39 {2.0, Direction.NEXT, RelativeUnit.SECONDS, "in 2 seconds"}, in TestRelativeDateWithQuantity()
65 {0.0, Direction.LAST, RelativeUnit.SECONDS, "0 seconds ago"}, in TestRelativeDateWithQuantity()
66 {0.5, Direction.LAST, RelativeUnit.SECONDS, "0.5 seconds ago"}, in TestRelativeDateWithQuantity()
67 {1.0, Direction.LAST, RelativeUnit.SECONDS, "1 second ago"}, in TestRelativeDateWithQuantity()
68 {2.0, Direction.LAST, RelativeUnit.SECONDS, "2 seconds ago"}, in TestRelativeDateWithQuantity()
105 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "In 0 seconds"}, in TestRelativeDateWithQuantityCaps()
106 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "In 0.5 seconds"}, in TestRelativeDateWithQuantityCaps()
[all …]
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DCascadingTest.java113 chainReady.get(5, TimeUnit.SECONDS); in testCascadingCancellationViaOuterContextCancellation()
117 future.get(5, TimeUnit.SECONDS); in testCascadingCancellationViaOuterContextCancellation()
124 if (!observedCancellations.await(5, TimeUnit.SECONDS)) { in testCascadingCancellationViaOuterContextCancellation()
127 if (!receivedCancellations.await(5, TimeUnit.SECONDS)) { in testCascadingCancellationViaOuterContextCancellation()
142 chainReady.get(5, TimeUnit.SECONDS); in testCascadingCancellationViaRpcCancel()
146 if (!observedCancellations.await(5, TimeUnit.SECONDS)) { in testCascadingCancellationViaRpcCancel()
149 if (!receivedCancellations.await(5, TimeUnit.SECONDS)) { in testCascadingCancellationViaRpcCancel()
175 if (!observedCancellations.await(5, TimeUnit.SECONDS)) { in testCascadingCancellationViaLeafFailure()
178 if (!receivedCancellations.await(5, TimeUnit.SECONDS)) { in testCascadingCancellationViaLeafFailure()
220 .that(finalDeadline.get()).isWithin(1, TimeUnit.SECONDS).of(initialDeadline); in testDeadlinePropagation()
/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/
DConfigureTimeouts.java28 client.setConnectTimeout(10, TimeUnit.SECONDS); in ConfigureTimeouts()
29 client.setWriteTimeout(10, TimeUnit.SECONDS); in ConfigureTimeouts()
30 client.setReadTimeout(30, TimeUnit.SECONDS); in ConfigureTimeouts()
/external/conscrypt/openjdk/src/test/java/org/conscrypt/
DNativeCryptoTest.java1097 TestSSLHandshakeCallbacks clientCallback = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_normal()
1098 TestSSLHandshakeCallbacks serverCallback = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_normal()
1136 TestSSLHandshakeCallbacks clientCallback1 = client1.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1137 TestSSLHandshakeCallbacks serverCallback1 = server1.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1178 TestSSLHandshakeCallbacks clientCallback2 = client2.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1179 TestSSLHandshakeCallbacks serverCallback2 = server2.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1228 TestSSLHandshakeCallbacks clientCallback = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_optional_client_certificate()
1229 TestSSLHandshakeCallbacks serverCallback = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_optional_client_certificate()
1281 server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_missing_required_certificate()
1300 serverSocket = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS).getSocket(); in test_SSL_do_handshake_client_timeout()
[all …]
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/
DNativeCryptoTest.java1106 TestSSLHandshakeCallbacks clientCallback = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_normal()
1107 TestSSLHandshakeCallbacks serverCallback = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_normal()
1145 TestSSLHandshakeCallbacks clientCallback1 = client1.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1146 TestSSLHandshakeCallbacks serverCallback1 = server1.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1187 TestSSLHandshakeCallbacks clientCallback2 = client2.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1188 TestSSLHandshakeCallbacks serverCallback2 = server2.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_reusedSession()
1237 TestSSLHandshakeCallbacks clientCallback = client.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_optional_client_certificate()
1238 TestSSLHandshakeCallbacks serverCallback = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_optional_client_certificate()
1290 server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS); in test_SSL_do_handshake_missing_required_certificate()
1309 serverSocket = server.get(TIMEOUT_SECONDS, TimeUnit.SECONDS).getSocket(); in test_SSL_do_handshake_client_timeout()
[all …]
/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/
DSampledSpanStore.java276 MILLIx100_SECONDx1(TimeUnit.MILLISECONDS.toNanos(100), TimeUnit.SECONDS.toNanos(1)),
283 SECONDx1_SECONDx10(TimeUnit.SECONDS.toNanos(1), TimeUnit.SECONDS.toNanos(10)),
290 SECONDx10_SECONDx100(TimeUnit.SECONDS.toNanos(10), TimeUnit.SECONDS.toNanos(100)),
297 SECONDx100_MAX(TimeUnit.SECONDS.toNanos(100), Long.MAX_VALUE);
/external/downloader/src/example/java/com/google/android/downloader/example/
DDownloaderTestActivity.java18 import static java.util.concurrent.TimeUnit.SECONDS;
94 .connectTimeout(30, SECONDS) in onCreate()
95 .readTimeout(30, SECONDS) in onCreate()
96 .writeTimeout(30, SECONDS) in onCreate()
102 okHttp2Client.setConnectTimeout(30, SECONDS); in onCreate()
103 okHttp2Client.setReadTimeout(30, SECONDS); in onCreate()
104 okHttp2Client.setWriteTimeout(30, SECONDS); in onCreate()
/external/guava/guava-gwt/test-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/
DTestPlatform.java21 import static java.util.concurrent.TimeUnit.SECONDS;
42 future.get(0, SECONDS); in verifyTimedGetOnPendingFuture()
61 return future.get(0, SECONDS); in getDoneFromTimeoutOverload()
/external/guava/android/guava/src/com/google/common/base/
DStopwatch.java25 import static java.util.concurrent.TimeUnit.SECONDS;
229 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
230 return SECONDS; in chooseUnit()
249 case SECONDS: in abbreviate()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DCacheStrategy.java22 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/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DCacheStrategy.java23 import static java.util.concurrent.TimeUnit.SECONDS;
204 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); in getCandidate()
209 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); in getCandidate()
215 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); in getCandidate()
253 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); in computeFreshnessLifetime()
284 ? Math.max(apparentReceivedAge, SECONDS.toMillis(ageSeconds)) in cacheResponseAge()

12345678910>>...17