Home
last modified time | relevance | path

Searched refs:toNanos (Results 1 – 22 of 22) sorted by relevance

/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DTimeUnit.java15 public long toNanos(long d) { return d; } in toNanos() method
22 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert()
26 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos() method
37 public long toNanos(long d) { return x(d, C2/C0, MAX/(C2/C0)); } in toNanos() method
48 public long toNanos(long d) { return x(d, C3/C0, MAX/(C3/C0)); } in toNanos() method
59 public long toNanos(long d) { return x(d, C4/C0, MAX/(C4/C0)); } in toNanos() method
70 public long toNanos(long d) { return x(d, C5/C0, MAX/(C5/C0)); } in toNanos() method
81 public long toNanos(long d) { return x(d, C6/C0, MAX/(C6/C0)); } in toNanos() method
115 public long toNanos(long duration) { in toNanos() method in TimeUnit
/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java77 long remainingNanos = unit.toNanos(timeout); in awaitUninterruptibly()
158 long remainingNanos = unit.toNanos(timeout); in getUninterruptibly()
187 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly()
256 long remainingNanos = unit.toNanos(sleepFor); in sleepUninterruptibly()
DMonitor.java315 long timeoutNanos = unit.toNanos(time); in enter()
411 remainingNanos = unit.toNanos(time); in enterWhen()
417 remainingNanos = unit.toNanos(time) - (System.nanoTime() - startNanos); in enterWhen()
446 remainingNanos = unit.toNanos(time); in enterWhenUninterruptibly()
449 long timeoutNanos = unit.toNanos(time); in enterWhenUninterruptibly()
646 return waitInterruptibly(guard, unit.toNanos(time), true); in waitFor()
662 return waitUninterruptibly(guard, unit.toNanos(time), true); in waitForUninterruptibly()
DAbstractListeningExecutorService.java144 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
186 long nanos = unit.toNanos(timeout); in invokeAll()
DAbstractFuture.java91 return sync.get(unit.toNanos(timeout)); in get()
DMoreExecutors.java299 long nanos = unit.toNanos(timeout); in awaitTermination()
/external/guava/guava-testlib/src/com/google/common/testing/
DGcFinalization.java120 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
155 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await()
208 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
DFakeTicker.java42 return advance(timeUnit.toNanos(time)); in advance()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DPlatform.java47 return TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()); in systemNanoTime()
/external/guava/guava/src/com/google/common/collect/
DQueues.java211 long deadline = System.nanoTime() + unit.toNanos(timeout); in drain()
245 long deadline = System.nanoTime() + unit.toNanos(timeout); in drainUninterruptibly()
DMapMaker.java467 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite()
516 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
/external/okhttp/okio/src/main/java/okio/
DDeadline.java43 deadlineNanos = System.nanoTime() + unit.toNanos(timeout); in start()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DBenchmark.java109 long reportPeriod = TimeUnit.SECONDS.toNanos(1); in run()
119 double requestsPerSecond = requestCount / reportDuration * TimeUnit.SECONDS.toNanos(1); in run()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java562 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite()
596 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
634 this.refreshNanos = unit.toNanos(duration); in refreshAfterWrite()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderFactory.java204 return unit.toNanos(duration) == that.unit.toNanos(that.duration);
DLocalCacheTest.java344 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite()
352 assertEquals(unit.toNanos(duration), map.expireAfterAccessNanos); in testSetExpireAfterAccess()
360 assertEquals(unit.toNanos(duration), map.refreshNanos); in testSetRefresh()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DInterruptionUtil.java121 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly()
/external/guava/guava-tests/test/com/google/common/collect/
DQueuesTest.java120 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in testDrainTimesOut()
261 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in assertUninterruptibleDrained()
DMapMakerInternalMapTest.java281 assertEquals(unit.toNanos(duration), map.expireAfterWriteNanos); in testSetExpireAfterWrite()
289 assertEquals(unit.toNanos(duration), map.expireAfterAccessNanos); in testSetExpireAfterAccess()
/external/guava/guava/src/com/google/common/base/
DSuppliers.java156 this.durationNanos = unit.toNanos(duration); in ExpiringMemoizingSupplier()
/external/guava/guava-tests/test/com/google/common/base/
DSuppliersTest.java269 final long timeout = TimeUnit.SECONDS.toNanos(60); in testSupplierThreadSafe()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
DSpdyConnectionTest.java242 assertTrue(ping.roundTripTime() < TimeUnit.SECONDS.toNanos(1)); in clientPingsServer()
264 assertTrue(ping.roundTripTime() < TimeUnit.SECONDS.toNanos(1));