Home
last modified time | relevance | path

Searched refs:MILLISECONDS (Results 1 – 25 of 70) sorted by relevance

123

/external/guava/guava-tests/test/com/google/common/cache/
DCacheExpirationTest.java20 import static java.util.concurrent.TimeUnit.MILLISECONDS;
54 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testExpiration_expireAfterWrite()
66 .expireAfterAccess(EXPIRING_TIME, MILLISECONDS) in testExpiration_expireAfterAccess()
103 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testExpiringGet_expireAfterWrite()
115 .expireAfterAccess(EXPIRING_TIME, MILLISECONDS) in testExpiringGet_expireAfterAccess()
136 ticker.advance(EXPIRING_TIME * 10, MILLISECONDS); in runExpirationTest()
197 .expireAfterWrite(10, MILLISECONDS) in testRemovalListener_expireAfterWrite()
204 ticker.advance(1, MILLISECONDS); in testRemovalListener_expireAfterWrite()
217 .expireAfterWrite(EXPIRING_TIME, MILLISECONDS) in testRemovalScheduler_expireAfterWrite()
229 .expireAfterAccess(EXPIRING_TIME, MILLISECONDS) in testRemovalScheduler_expireAfterAccess()
[all …]
DCacheRefreshTest.java18 import static java.util.concurrent.TimeUnit.MILLISECONDS;
35 .refreshAfterWrite(3, MILLISECONDS) in testAutoRefresh()
36 .expireAfterWrite(6, MILLISECONDS) in testAutoRefresh()
47 ticker.advance(1, MILLISECONDS); in testAutoRefresh()
57 ticker.advance(1, MILLISECONDS); in testAutoRefresh()
67 ticker.advance(1, MILLISECONDS); in testAutoRefresh()
75 ticker.advance(1, MILLISECONDS); in testAutoRefresh()
83 ticker.advance(1, MILLISECONDS); in testAutoRefresh()
91 ticker.advance(1, MILLISECONDS); in testAutoRefresh()
DCacheLoadingTest.java24 import static java.util.concurrent.TimeUnit.MILLISECONDS;
222 .refreshAfterWrite(1, MILLISECONDS) in testRefresh()
238 ticker.advance(1, MILLISECONDS); in testRefresh()
246 ticker.advance(1, MILLISECONDS); in testRefresh()
254 ticker.advance(1, MILLISECONDS); in testRefresh()
281 .refreshAfterWrite(1, MILLISECONDS) in testRefresh_getIfPresent()
297 ticker.advance(1, MILLISECONDS); in testRefresh_getIfPresent()
305 ticker.advance(1, MILLISECONDS); in testRefresh_getIfPresent()
313 ticker.advance(1, MILLISECONDS); in testRefresh_getIfPresent()
752 .refreshAfterWrite(1, MILLISECONDS) in testRefreshNull()
[all …]
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java43 TimeUnit.MILLISECONDS.sleep(DELAY_MS); in someGoodStaticMethod()
49 TimeUnit.MILLISECONDS.sleep(DELAY_MS); in someBadStaticMethod()
66 }, ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testGoodCallableWithEnoughTime()
80 }, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testGoodCallableWithNotEnoughTime()
96 }, ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testBadCallableWithEnoughTime()
112 }, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS, true); in testBadCallableWithNotEnoughTime()
122 target, Sample.class, ENOUGH_MS, TimeUnit.MILLISECONDS); in testGoodMethodWithEnoughTime()
132 target, Sample.class, NOT_ENOUGH_MS, TimeUnit.MILLISECONDS); in testGoodMethodWithNotEnoughTime()
143 TimeUnit.MILLISECONDS.sleep(ENOUGH_MS); in testGoodMethodWithNotEnoughTime()
150 target, Sample.class, ENOUGH_MS, TimeUnit.MILLISECONDS); in testBadMethodWithEnoughTime()
[all …]
DAbstractListeningExecutorServiceTest.java15 import static java.util.concurrent.TimeUnit.MILLISECONDS;
416 e.invokeAny(null, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAny1()
447 MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAny2()
467 e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAny3()
483 e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAny4()
501 String result = e.invokeAny(l, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAny5()
514 e.invokeAll(null, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAll1()
546 MILLISECONDS); in testTimedInvokeAll2()
562 e.invokeAll(l, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAll3()
579 e.invokeAll(l, MEDIUM_DELAY_MS, MILLISECONDS); in testTimedInvokeAll4()
[all …]
DInterruptionUtil.java19 import static java.util.concurrent.TimeUnit.MILLISECONDS;
100 joinUninterruptibly(interruptingThread, 2500, MILLISECONDS); in repeatedlyInterruptTestThread()
DJSR166TestCase.java30 import static java.util.concurrent.TimeUnit.MILLISECONDS;
508 exec.awaitTermination(2 * LONG_DELAY_MS, MILLISECONDS)); in joinPool()
573 future.get(timeoutMillis, MILLISECONDS); in assertFutureTimesOut()
929 assertTrue(latch.await(LONG_DELAY_MS, MILLISECONDS));
937 assertTrue(semaphore.tryAcquire(LONG_DELAY_MS, MILLISECONDS));
1172 return super.await(2 * LONG_DELAY_MS, MILLISECONDS);
1190 assertNull(q.poll(0, MILLISECONDS));
DFuturesTest.java27 import static java.util.concurrent.TimeUnit.MILLISECONDS;
99 assertSame(DATA1, future.get(0L, TimeUnit.MILLISECONDS)); in testImmediateFuture()
107 assertSame(DATA1, future1.get(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateFutures()
108 assertSame(DATA2, future2.get(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateFutures()
117 future.get(0L, TimeUnit.MILLISECONDS); in testImmediateFailedFuture()
132 assertSame(DATA1, future.get(0L, TimeUnit.MILLISECONDS)); in testImmediateCheckedFuture()
133 assertSame(DATA1, future.checkedGet(0L, TimeUnit.MILLISECONDS)); in testImmediateCheckedFuture()
143 assertSame(DATA1, future1.get(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateCheckedFutures()
144 assertSame(DATA1, future1.checkedGet(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateCheckedFutures()
145 assertSame(DATA2, future2.get(0L, TimeUnit.MILLISECONDS)); in testMultipleImmediateCheckedFutures()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DStopwatch.java22 import static java.util.concurrent.TimeUnit.MILLISECONDS;
165 return elapsedTime(MILLISECONDS); in elapsedMillis()
172 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
173 return MILLISECONDS; in chooseUnit()
187 case MILLISECONDS: in abbreviate()
DPlatform.java47 return TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()); in systemNanoTime()
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/
DAbstractListenableFutureTest.java115 future.get(20, TimeUnit.MILLISECONDS); in testTimeoutOnGetWorksCorrectly()
158 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testCanceledFutureThrowsCancellation()
194 assertTrue(successLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError()
195 assertTrue(listenerLatch.await(200, TimeUnit.MILLISECONDS)); in testListenersNotifiedOnError()
200 exec.awaitTermination(100, TimeUnit.MILLISECONDS); in testListenersNotifiedOnError()
241 listenerLatch.await(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully()
244 exec.awaitTermination(500, TimeUnit.MILLISECONDS); in testAllListenersCompleteSuccessfully()
DAbstractCheckedFutureTest.java124 assertTrue(startingGate.await(500, TimeUnit.MILLISECONDS)); in testCheckedGetThrowsApplicationExceptionOnInterruption()
127 assertTrue(successLatch.await(500, TimeUnit.MILLISECONDS)); in testCheckedGetThrowsApplicationExceptionOnInterruption()
/external/guava/guava/src/com/google/common/base/
DStopwatch.java22 import static java.util.concurrent.TimeUnit.MILLISECONDS;
166 return elapsedTime(MILLISECONDS); in elapsedMillis()
200 if (MILLISECONDS.convert(nanos, NANOSECONDS) > 0) { in chooseUnit()
201 return MILLISECONDS; in chooseUnit()
215 case MILLISECONDS: in abbreviate()
/external/guava/guava-tests/test/com/google/common/collect/
DQueuesTest.java109 assertEquals(0, Queues.drain(q, ImmutableList.of(), 1, 10, TimeUnit.MILLISECONDS)); in testDrainTimesOut()
117 int drained = drain(q, Lists.newArrayList(), 2, 10, TimeUnit.MILLISECONDS, interruptibly); in testDrainTimesOut()
120 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in testDrainTimesOut()
139 assertEquals(0, drain(q, ImmutableList.of(), 0, 10, TimeUnit.MILLISECONDS, interruptibly)); in testZeroElements()
234 assertEquals(0, Queues.drain(q, ImmutableList.of(), 0, 10, TimeUnit.MILLISECONDS)); in assertInterruptibleDrained()
253 Queues.drainUninterruptibly(q, ImmutableList.of(), 0, 10, TimeUnit.MILLISECONDS)); in assertUninterruptibleDrained()
260 q, Lists.newArrayList(), 1, 10, TimeUnit.MILLISECONDS); in assertUninterruptibleDrained()
261 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in assertUninterruptibleDrained()
285 Uninterruptibles.sleepUninterruptibly(Long.MAX_VALUE, TimeUnit.MILLISECONDS); in run()
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/
DAwTestBase.java118 TimeUnit.MILLISECONDS); in loadUrlSync()
129 TimeUnit.MILLISECONDS); in loadUrlSyncAndExpectError()
131 TimeUnit.MILLISECONDS); in loadUrlSyncAndExpectError()
164 TimeUnit.MILLISECONDS); in postUrlSync()
196 TimeUnit.MILLISECONDS); in loadDataSync()
213 TimeUnit.MILLISECONDS); in loadDataSyncWithCharset()
238 TimeUnit.MILLISECONDS); in loadDataWithBaseUrlSync()
266 TimeUnit.MILLISECONDS); in reloadSync()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DAsyncTaskTest.java39 …quals("Result should get stored in the AsyncTask", "c", asyncTask.get(100, TimeUnit.MILLISECONDS)); in testNormalFlow()
71 …quals("Result should get stored in the AsyncTask", "c", asyncTask.get(100, TimeUnit.MILLISECONDS)); in testCancelBeforePostExecute()
96 …ls("Result should get stored in the AsyncTask", "done", asyncTask.get(100, TimeUnit.MILLISECONDS)); in progressUpdatesAreQueuedUntilBackgroundThreadFinishes()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DThreadInterruptTest.java39 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptWritingRequestBody()
66 .throttleBody(64 * 1024, 125, TimeUnit.MILLISECONDS)); // 500 Kbps in interruptReadingResponseBody()
/external/guava/guava-tests/test/com/google/common/base/
DStopwatchTest.java20 import static java.util.concurrent.TimeUnit.MILLISECONDS;
155 assertEquals(0, stopwatch.elapsedTime(MILLISECONDS)); in testElapsedTime_millis()
157 assertEquals(1, stopwatch.elapsedTime(MILLISECONDS)); in testElapsedTime_millis()
/external/droiddriver/src/com/google/android/droiddriver/base/
DDroidDriverContext.java89 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in tryWaitForIdleSync()
118 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in tryRunOnMainSync()
/external/junit/src/org/junit/internal/runners/
DMethodRoadie.java70 TimeUnit.MILLISECONDS); in runWithTimeout()
73 …result.get(0, TimeUnit.MILLISECONDS); // throws the exception if one occurred during the invocation in runWithTimeout()
/external/smack/src/com/kenai/jbosh/
DAttrPause.java61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds()
DAttrPolling.java61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds()
DAttrMaxPause.java61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds()
/external/smack/src/org/jivesoftware/smackx/muc/
DConnectionDetachedPacketCollector.java100 return resultQueue.poll(timeout, TimeUnit.MILLISECONDS); in nextResult()
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/
DUiUtils.java41 TimeUnit.MILLISECONDS)); in runOnUiThread()

123