/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheExpirationTest.java | 20 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 …]
|
D | CacheRefreshTest.java | 18 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()
|
D | CacheLoadingTest.java | 24 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/ |
D | SimpleTimeLimiterTest.java | 43 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 …]
|
D | AbstractListeningExecutorServiceTest.java | 15 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 …]
|
D | InterruptionUtil.java | 19 import static java.util.concurrent.TimeUnit.MILLISECONDS; 100 joinUninterruptibly(interruptingThread, 2500, MILLISECONDS); in repeatedlyInterruptTestThread()
|
D | JSR166TestCase.java | 30 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));
|
D | FuturesTest.java | 27 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/ |
D | Stopwatch.java | 22 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()
|
D | Platform.java | 47 return TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()); in systemNanoTime()
|
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/ |
D | AbstractListenableFutureTest.java | 115 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()
|
D | AbstractCheckedFutureTest.java | 124 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/ |
D | Stopwatch.java | 22 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/ |
D | QueuesTest.java | 109 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/ |
D | AwTestBase.java | 118 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/ |
D | AsyncTaskTest.java | 39 …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/ |
D | ThreadInterruptTest.java | 39 .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/ |
D | StopwatchTest.java | 20 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/ |
D | DroidDriverContext.java | 89 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in tryWaitForIdleSync() 118 futureTask.get(timeoutMillis, TimeUnit.MILLISECONDS); in tryRunOnMainSync()
|
/external/junit/src/org/junit/internal/runners/ |
D | MethodRoadie.java | 70 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/ |
D | AttrPause.java | 61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds()
|
D | AttrPolling.java | 61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds()
|
D | AttrMaxPause.java | 61 return (int) TimeUnit.MILLISECONDS.convert( in getInMilliseconds()
|
/external/smack/src/org/jivesoftware/smackx/muc/ |
D | ConnectionDetachedPacketCollector.java | 100 return resultQueue.poll(timeout, TimeUnit.MILLISECONDS); in nextResult()
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
D | UiUtils.java | 41 TimeUnit.MILLISECONDS)); in runOnUiThread()
|