Home
last modified time | relevance | path

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

12

/external/guava/guava-gwt/src-super/java/util/super/java/util/concurrent/
DTimeUnit.java19 public long toNanos(long d) { return d; } in toNanos() method
26 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert()
30 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos() method
41 public long toNanos(long d) { return x(d, C2/C0, MAX/(C2/C0)); } in toNanos() method
52 public long toNanos(long d) { return x(d, C3/C0, MAX/(C3/C0)); } in toNanos() method
63 public long toNanos(long d) { return x(d, C4/C0, MAX/(C4/C0)); } in toNanos() method
74 public long toNanos(long d) { return x(d, C5/C0, MAX/(C5/C0)); } in toNanos() method
85 public long toNanos(long d) { return x(d, C6/C0, MAX/(C6/C0)); } in toNanos() method
119 public long toNanos(long duration) { in toNanos() method in TimeUnit
/external/guava/guava/src/com/google/common/util/concurrent/
DUninterruptibles.java79 long remainingNanos = unit.toNanos(timeout); in awaitUninterruptibly()
167 long remainingNanos = unit.toNanos(timeout); in getUninterruptibly()
196 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly()
270 long remainingNanos = unit.toNanos(sleepFor); in sleepUninterruptibly()
310 long remainingNanos = unit.toNanos(timeout); in tryAcquireUninterruptibly()
DMonitor.java373 long timeoutNanos = unit.toNanos(time); in enter()
472 long timeoutNanos = unit.toNanos(time); in enterWhen()
513 long timeoutNanos = unit.toNanos(time); in enterWhenUninterruptibly()
717 long timeoutNanos = unit.toNanos(time); in waitFor()
731 long timeoutNanos = unit.toNanos(time); in waitForUninterruptibly()
DAbstractFuture.java96 return sync.get(unit.toNanos(timeout)); in get()
/external/guava/guava-testlib/src/com/google/common/testing/
DGcFinalization.java135 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
170 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in await()
223 final long deadline = System.nanoTime() + SECONDS.toNanos(timeoutSeconds); in awaitDone()
DFakeTicker.java48 return advance(timeUnit.toNanos(time)); in advance()
65 this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep); in setAutoIncrementStep()
/external/okhttp/okio/okio/src/main/java/okio/
DTimeout.java83 this.timeoutNanos = unit.toNanos(timeout); in timeout()
123 return deadlineNanoTime(System.nanoTime() + unit.toNanos(duration)); in deadline()
/external/mockito/src/test/java/org/mockitoutil/
DStopwatch.java46 long expectedNanos = unit.toNanos(expected); in assertElapsedTimeIsMoreThan()
54 long expectedNanos = unit.toNanos(expected); in assertElapsedTimeIsLessThan()
/external/caliper/caliper/src/test/java/com/google/caliper/worker/
DRuntimeWorkerTest.java51 calculateTargetReps(INITIAL_REPS, HOURS.toNanos(1), TIMING_INTERVAL.to(NANOSECONDS), 0.0); in testCalculateTargetReps_hugeBenchmark()
56 long targetReps = calculateTargetReps(INITIAL_REPS, MILLISECONDS.toNanos(100), in testCalculateTargetReps_applyRandomness()
/external/protobuf/java/util/src/test/java/com/google/protobuf/util/
DTimeUtilTest.java372 assertEquals(1111111111, TimeUtil.toNanos(timestamp)); in testTimestampConversion()
383 assertEquals(-888888889, TimeUtil.toNanos(timestamp)); in testTimestampConversion()
396 assertEquals(1111111111, TimeUtil.toNanos(duration)); in testDurationConversion()
407 assertEquals(-1111111111, TimeUtil.toNanos(duration)); in testDurationConversion()
/external/okhttp/benchmarks/src/main/java/com/squareup/okhttp/benchmarks/
DBenchmark.java108 long reportPeriod = TimeUnit.SECONDS.toNanos(1); in run()
118 double requestsPerSecond = requestCount / reportDuration * TimeUnit.SECONDS.toNanos(1); in run()
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
DPlatform.java36 return TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()); in systemNanoTime()
/external/guava/guava/src/com/google/common/collect/
DQueues.java268 long deadline = System.nanoTime() + unit.toNanos(timeout); in drain()
303 long deadline = System.nanoTime() + unit.toNanos(timeout); in drainUninterruptibly()
DMapMaker.java381 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite()
432 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
/external/guava/guava-bootstrap/src/java/util/concurrent/
DAbstractExecutorService.java117 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
155 long nanos = unit.toNanos(timeout); in invokeAll()
/external/guava/guava/src/com/google/common/cache/
DCacheBuilder.java609 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite()
643 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
683 this.refreshNanos = unit.toNanos(duration); in refreshAfterWrite()
/external/guava/guava-tests/test/com/google/common/cache/
DCacheBuilderFactory.java205 return unit.toNanos(duration) == that.unit.toNanos(that.duration);
/external/vogar/src/vogar/commands/
DCommand.java200 timeoutNanoTime = System.nanoTime() + TimeUnit.SECONDS.toNanos(timeoutSeconds); in scheduleTimeout()
209 timeoutNanoTime = System.nanoTime() + TimeUnit.SECONDS.toNanos(2); in scheduleTimeout()
/external/guava/guava-tests/test/com/google/common/collect/
DQueuesTest.java120 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in testDrainTimesOut()
272 assertTrue((System.nanoTime() - startTime) >= TimeUnit.MILLISECONDS.toNanos(10)); in assertUninterruptibleDrained()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DInterruptionUtil.java123 long remainingNanos = unit.toNanos(timeout); in joinUninterruptibly()
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DCacheBuilder.java399 this.expireAfterWriteNanos = unit.toNanos(duration); in expireAfterWrite()
433 this.expireAfterAccessNanos = unit.toNanos(duration); in expireAfterAccess()
/external/protobuf/java/util/src/main/java/com/google/protobuf/util/
DTimeUtil.java354 public static long toNanos(Timestamp timestamp) { in toNanos() method in TimeUtil
361 public static long toNanos(Duration duration) { in toNanos() method in TimeUtil
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DTrialRunLoop.java122 long cleanupTimeNanos = MILLISECONDS.toNanos(WORKER_CLEANUP_DURATION.getMillis()); in call()
/external/guava/guava/src/com/google/common/base/
DSuppliers.java176 this.durationNanos = unit.toNanos(duration); in ExpiringMemoizingSupplier()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionPool.java119 this.keepAliveDurationNs = timeUnit.toNanos(keepAliveDuration); in ConnectionPool()

12