/external/guava/guava-testlib/src/com/google/common/testing/ |
GcFinalization.java | 19 import static java.util.concurrent.TimeUnit.SECONDS; 91 * 10 seconds ought to be long enough for any object to be GC'ed and finalized. Unless we have a 120 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); 128 future.get(1L, SECONDS); 155 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); 163 if (latch.await(1L, SECONDS)) { 208 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Stopwatch.java | 24 import static java.util.concurrent.TimeUnit.SECONDS; 169 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { 170 return SECONDS; 189 case SECONDS:
|
/external/guava/guava-testlib/src/com/google/common/util/concurrent/testing/ |
MockFutureListener.java | 61 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); 77 Assert.assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); 90 Assert.assertFalse(countDownLatch.await(1L, TimeUnit.SECONDS));
|
/external/guava/guava-tests/test/com/google/common/util/concurrent/ |
ListenableFutureTaskTest.java | 99 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); 113 task.get(5, TimeUnit.SECONDS); 119 assertTrue(listenerLatch.await(5, TimeUnit.SECONDS)); 131 listenerLatch.await(5, TimeUnit.SECONDS); 150 listenerLatch.await(5, TimeUnit.SECONDS);
|
MoreExecutorsTest.java | 22 import static java.util.concurrent.TimeUnit.SECONDS; 143 barrier.await(1, TimeUnit.SECONDS); 146 barrier.await(1, TimeUnit.SECONDS); 151 barrier.await(1, TimeUnit.SECONDS); 166 barrier.await(1, TimeUnit.SECONDS); 181 barrier.await(1, TimeUnit.SECONDS); 185 barrier.await(1, TimeUnit.SECONDS); 186 assertTrue(executor.awaitTermination(1, TimeUnit.SECONDS)); 187 assertTrue(executor.awaitTermination(0, TimeUnit.SECONDS)); 216 results = service.invokeAll(callables, 1, SECONDS); [all...] |
ListenableFutureTester.java | 69 assertTrue(latch.await(5, TimeUnit.SECONDS)); 81 assertTrue(latch.await(5, TimeUnit.SECONDS)); 96 assertTrue(latch.await(5, TimeUnit.SECONDS));
|
ExecutionListTest.java | 52 assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS)); 62 assertTrue(countDownLatch.await(1L, TimeUnit.SECONDS));
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/ |
BatchingTestActivity.java | 120 int maxBatchReportLatencyUs = (int) TimeUnit.SECONDS.toMicros(maxBatchReportLatencySec); 129 TestSensorOperation.createOperation(environment, testDurationSec,TimeUnit.SECONDS); 138 int maxBatchReportLatencyUs = (int) TimeUnit.SECONDS.toMicros(maxBatchReportLatencySec); 147 .createFlushOperation(environment, flushDurationSec, TimeUnit.SECONDS);
|
/external/guava/guava/src/com/google/common/base/ |
Stopwatch.java | 24 import static java.util.concurrent.TimeUnit.SECONDS; 197 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { 198 return SECONDS; 217 case SECONDS:
|
/external/chromium_org/content/public/test/android/javatests/src/org/chromium/content/browser/test/util/ |
CallbackHelper.java | 192 WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS); 222 waitUntilCriteria(criteria, WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
TestActivity.java | 40 return mActivityStartedSemaphore.tryAcquire(5, TimeUnit.SECONDS);
|
/cts/tests/acceleration/src/android/acceleration/cts/ |
AcceleratedView.java | 56 if (mDrawLatch.await(1, TimeUnit.SECONDS)) {
|
/cts/tests/app/src/android/app/cts/ |
ActivityManagerMemoryClassLaunchActivity.java | 68 mLatch.await(5, TimeUnit.SECONDS);
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCtsHelperTest.java | 110 assertEquals(1.0, SensorCtsHelper.getFrequency(1, TimeUnit.SECONDS), 0.001); 111 assertEquals(10.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.SECONDS), 0.001); 126 assertEquals(1.0, SensorCtsHelper.getPeriod(1, TimeUnit.SECONDS), 0.001); 127 assertEquals(0.1, SensorCtsHelper.getPeriod(10, TimeUnit.SECONDS), 0.001);
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
AnimationTestCtsActivity.java | 28 final static long VISIBLE_TIMEOUT = TimeUnit.SECONDS.toNanos(3);
|
/external/blktrace/btt/ |
trace_complete.c | 30 (int)SECONDS(tm), (unsigned long)NANO_SECONDS(tm), 95 (int)SECONDS(q_iop->t.time), 109 (int)SECONDS(d_time), 111 (int)SECONDS(c_iop->t.time),
|
/external/mksh/src/ |
var_spec.h | 35 FN(SECONDS)
|
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/ |
SynchronousHttpClient.java | 33 1, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>());
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
IntentSenderActivity.java | 61 mResult.offer(new Result(resultCode, data), 5, TimeUnit.SECONDS); 70 final Result result = mResult.poll(30, TimeUnit.SECONDS);
|
/external/chromium_org/android_webview/javatests/src/org/chromium/android_webview/test/ |
FullScreenVideoTestAwContentsClient.java | 73 mOnShowCustomViewCallbackHelper.waitForCallback(0, 1, WAITING_SECONDS, TimeUnit.SECONDS); 77 mOnHideCustomViewCallbackHelper.waitForCallback(0, 1, WAITING_SECONDS, TimeUnit.SECONDS);
|
WebViewFindApisTestBase.java | 87 return future.get(10, TimeUnit.SECONDS); 115 return future.get(10, TimeUnit.SECONDS);
|
/external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/ |
ContentDetectionTestBase.java | 74 TimeUnit.SECONDS); 95 TimeUnit.SECONDS);
|
GestureDetectorResetTest.java | 118 WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS); 134 WAIT_TIMEOUT_SECONDS, TimeUnit.SECONDS);
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
CacheStrategy.java | 14 import static java.util.concurrent.TimeUnit.SECONDS; 213 freshMillis = Math.min(freshMillis, SECONDS.toMillis(requestCaching.maxAgeSeconds())); 218 minFreshMillis = SECONDS.toMillis(requestCaching.minFreshSeconds()); 224 maxStaleMillis = SECONDS.toMillis(requestCaching.maxStaleSeconds()); 265 return SECONDS.toMillis(responseCaching.maxAgeSeconds()); 296 ? Math.max(apparentReceivedAge, SECONDS.toMillis(ageSeconds))
|
/external/guava/guava-tests/test/com/google/common/cache/ |
NullCacheTest.java | 21 import static java.util.concurrent.TimeUnit.SECONDS; 62 .expireAfterWrite(0, SECONDS) 79 .expireAfterAccess(0, SECONDS)
|