/external/okhttp/samples/guide/src/main/java/com/squareup/okhttp/recipes/ |
ConfigureTimeouts.java | 28 client.setConnectTimeout(10, TimeUnit.SECONDS); 29 client.setWriteTimeout(10, TimeUnit.SECONDS); 30 client.setReadTimeout(30, TimeUnit.SECONDS);
|
/cts/tests/tests/hardware/src/android/hardware/cts/helpers/ |
SensorCtsHelperTest.java | 36 assertEquals(1.0, SensorCtsHelper.getFrequency(1, TimeUnit.SECONDS), 0.001); 37 assertEquals(10.0, SensorCtsHelper.getFrequency(0.1, TimeUnit.SECONDS), 0.001); 52 assertEquals(1.0, SensorCtsHelper.getPeriod(1, TimeUnit.SECONDS), 0.001); 53 assertEquals(0.1, SensorCtsHelper.getPeriod(10, TimeUnit.SECONDS), 0.001);
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
GcFinalization.java | 19 import static java.util.concurrent.TimeUnit.SECONDS; 106 * 10 seconds ought to be long enough for any object to be GC'ed and finalized. Unless we have a 135 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); 143 future.get(1L, SECONDS); 170 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); 178 if (latch.await(1L, SECONDS)) { 223 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
TimeUnitTest.java | 17 import static java.util.concurrent.TimeUnit.SECONDS; 44 SECONDS.convert(t, DAYS)); 46 SECONDS.convert(t, HOURS)); 48 SECONDS.convert(t, MINUTES)); 50 SECONDS.convert(t, SECONDS)); 52 SECONDS.convert(1000L*t, MILLISECONDS)); 54 SECONDS.convert(1000000L*t, MICROSECONDS)); 56 SECONDS.convert(1000000000L*t, NANOSECONDS)); 65 MILLISECONDS.convert(t, SECONDS)); [all...] |
/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);
|
WrappingScheduledExecutorServiceTest.java | 48 testExecutor.schedule(DO_NOTHING, 10, TimeUnit.SECONDS); 49 mock.assertLastMethodCalled("scheduleRunnable", 10, TimeUnit.SECONDS); 51 testExecutor.schedule(Executors.callable(DO_NOTHING), 5, TimeUnit.SECONDS); 52 mock.assertLastMethodCalled("scheduleCallable", 5, TimeUnit.SECONDS); 58 testExecutor.scheduleWithFixedDelay(DO_NOTHING, 100, 10, TimeUnit.SECONDS); 59 mock.assertLastMethodCalled("scheduleWithFixedDelay", 100, 10, TimeUnit.SECONDS); 61 testExecutor.scheduleAtFixedRate(DO_NOTHING, 3, 7, TimeUnit.SECONDS); 62 mock.assertLastMethodCalled("scheduleAtFixedRate", 3, 7, TimeUnit.SECONDS);
|
ListenableFutureTester.java | 72 assertTrue(latch.await(5, TimeUnit.SECONDS)); 84 assertTrue(latch.await(5, TimeUnit.SECONDS)); 99 assertTrue(latch.await(5, TimeUnit.SECONDS));
|
RateLimiterTest.java | 40 * R0.6 means a delay of 0.6 seconds caused by the (R)ateLimiter 60 RateLimiter limiter = RateLimiter.create(5.0, 5, TimeUnit.SECONDS); 120 ticker.sleepMillis(2000); // #6: didn't get cold! It would take another 2 seconds to go cold 167 RateLimiter limiter = RateLimiter.createWithCapacity(ticker, 1.0, 10, TimeUnit.SECONDS); 199 ticker.instant = Long.MAX_VALUE - TimeUnit.SECONDS.toNanos(1); // 1 second before max value 212 assertTrue(limiter.tryAcquire(0, TimeUnit.SECONDS)); 213 assertFalse(limiter.tryAcquire(0, TimeUnit.SECONDS)); 214 assertFalse(limiter.tryAcquire(0, TimeUnit.SECONDS)); 216 assertFalse(limiter.tryAcquire(0, TimeUnit.SECONDS)); 253 ticker, Double.POSITIVE_INFINITY, 10, TimeUnit.SECONDS); [all...] |
/external/guava/guava-gwt/test-super/com/google/common/cache/super/com/google/common/cache/ |
CacheBuilderTest.java | 24 import static java.util.concurrent.TimeUnit.SECONDS; 113 builder.expireAfterWrite(-1, SECONDS); 127 new CacheBuilder<Object, Object>().expireAfterWrite(3600, SECONDS); 130 builder.expireAfterWrite(3600, SECONDS); 138 builder.expireAfterAccess(-1, SECONDS); 152 new CacheBuilder<Object, Object>().expireAfterAccess(3600, SECONDS); 155 builder.expireAfterAccess(3600, SECONDS);
|
/external/guava/guava-tests/test/com/google/common/cache/ |
CacheBuilderSpecTest.java | 265 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); 269 CacheBuilder.newBuilder().expireAfterWrite(24 * 60 * 60 * 10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); 274 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); 277 CacheBuilder.newBuilder().expireAfterWrite(60 * 60 * 150L, TimeUnit.SECONDS), CacheBuilder.from(spec)); 282 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); 285 CacheBuilder.newBuilder().expireAfterWrite(60 * 10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); 290 assertEquals(TimeUnit.SECONDS, spec.writeExpirationTimeUnit); 293 CacheBuilder.newBuilder().expireAfterWrite(10L, TimeUnit.SECONDS), CacheBuilder.from(spec)); 315 assertEquals(TimeUnit.SECONDS, spec.accessExpirationTimeUnit); 318 CacheBuilder.newBuilder().expireAfterAccess(24 * 60 * 60 * 10L, TimeUnit.SECONDS), CacheBuilder.from(spec)) [all...] |
/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; 225 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { 226 return SECONDS; 245 case SECONDS:
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
Stopwatch.java | 27 import static java.util.concurrent.TimeUnit.SECONDS; 222 if (SECONDS.convert(nanos, NANOSECONDS) > 0) { 223 return SECONDS; 242 case SECONDS:
|
/external/jetty/src/java/org/eclipse/jetty/util/thread/ |
ExecutorThreadPool.java | 55 * Max pool size is 256, pool thread timeout after 60 seconds and 62 this(new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>())); 68 * Max pool size is 256, pool thread timeout after 60 seconds, and core pool size is 32 when queueSize >= 0. 74 this(queueSize < 0 ? new ThreadPoolExecutor(256, 256, 60, TimeUnit.SECONDS, new LinkedBlockingQueue<Runnable>()) : 75 queueSize == 0 ? new ThreadPoolExecutor(32, 256, 60, TimeUnit.SECONDS, new SynchronousQueue<Runnable>()) : 76 new ThreadPoolExecutor(32, 256, 60, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(queueSize)));
|
/frameworks/data-binding/integration-tests/TestApp/app/src/androidTestApi7/java/android/databinding/testapp/ |
InvalidateAllTest.java | 34 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS)); 40 assertTrue(semaphore.tryAcquire(2, TimeUnit.SECONDS));
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/ |
RelativeDateTimeFormatterTest.java | 28 {0.0, Direction.NEXT, RelativeUnit.SECONDS, "in 0 seconds"}, 29 {0.5, Direction.NEXT, RelativeUnit.SECONDS, "in 0.5 seconds"}, 30 {1.0, Direction.NEXT, RelativeUnit.SECONDS, "in 1 second"}, 31 {2.0, Direction.NEXT, RelativeUnit.SECONDS, "in 2 seconds"}, 57 {0.0, Direction.LAST, RelativeUnit.SECONDS, "0 seconds ago"}, 58 {0.5, Direction.LAST, RelativeUnit.SECONDS, "0.5 seconds ago"} [all...] |
/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/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>());
|
/libcore/support/src/test/java/tests/support/ |
Support_Exec.java | 81 * seconds. If it does not, an AssertionFailedError will be thrown. 95 out = outFuture.get(30, TimeUnit.SECONDS); 96 String err = errFuture.get(30, TimeUnit.SECONDS); 131 assertEquals(expectedOut, outFuture.get(10, TimeUnit.SECONDS)); 132 assertEquals(expectedErr, errFuture.get(10, TimeUnit.SECONDS));
|