Home
last modified time | relevance | path

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

1234

/external/opencensus-java/api/src/main/java/io/opencensus/trace/export/
DSampledSpanStore.java241 ZERO_MICROSx10(0, TimeUnit.MICROSECONDS.toNanos(10)),
248 MICROSx10_MICROSx100(TimeUnit.MICROSECONDS.toNanos(10), TimeUnit.MICROSECONDS.toNanos(100)),
255 MICROSx100_MILLIx1(TimeUnit.MICROSECONDS.toNanos(100), TimeUnit.MILLISECONDS.toNanos(1)),
262 MILLIx1_MILLIx10(TimeUnit.MILLISECONDS.toNanos(1), TimeUnit.MILLISECONDS.toNanos(10)),
269 MILLIx10_MILLIx100(TimeUnit.MILLISECONDS.toNanos(10), TimeUnit.MILLISECONDS.toNanos(100)),
276 MILLIx100_SECONDx1(TimeUnit.MILLISECONDS.toNanos(100), TimeUnit.SECONDS.toNanos(1)),
283 SECONDx1_SECONDx10(TimeUnit.SECONDS.toNanos(1), TimeUnit.SECONDS.toNanos(10)),
290 SECONDx10_SECONDx100(TimeUnit.SECONDS.toNanos(10), TimeUnit.SECONDS.toNanos(100)),
297 SECONDx100_MAX(TimeUnit.SECONDS.toNanos(100), Long.MAX_VALUE);
/external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/trace/export/
DInProcessSampledSpanStoreImplTest.java56 private static final long NUM_NANOS_PER_SECOND = TimeUnit.SECONDS.toNanos(1);
273 testClock.advanceTime(Duration.create(0, (int) TimeUnit.MICROSECONDS.toNanos(20))); in getLatencySampledSpans()
279 TimeUnit.MICROSECONDS.toNanos(15), in getLatencySampledSpans()
280 TimeUnit.MICROSECONDS.toNanos(25), in getLatencySampledSpans()
289 testClock.advanceTime(Duration.create(0, (int) TimeUnit.MICROSECONDS.toNanos(20))); in getLatencySampledSpans_ExclusiveUpperBound()
295 TimeUnit.MICROSECONDS.toNanos(15), in getLatencySampledSpans_ExclusiveUpperBound()
296 TimeUnit.MICROSECONDS.toNanos(20), in getLatencySampledSpans_ExclusiveUpperBound()
304 testClock.advanceTime(Duration.create(0, (int) TimeUnit.MICROSECONDS.toNanos(20))); in getLatencySampledSpans_InclusiveLowerBound()
310 TimeUnit.MICROSECONDS.toNanos(20), in getLatencySampledSpans_InclusiveLowerBound()
311 TimeUnit.MICROSECONDS.toNanos(25), in getLatencySampledSpans_InclusiveLowerBound()
[all …]
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/
DNettyServerBuilder.java64 private static final long MIN_KEEPALIVE_TIME_NANO = TimeUnit.MILLISECONDS.toNanos(1L);
65 private static final long MIN_KEEPALIVE_TIMEOUT_NANO = TimeUnit.MICROSECONDS.toNanos(499L);
66 private static final long MIN_MAX_CONNECTION_IDLE_NANO = TimeUnit.SECONDS.toNanos(1L);
67 private static final long MIN_MAX_CONNECTION_AGE_NANO = TimeUnit.SECONDS.toNanos(1L);
68 private static final long AS_LARGE_AS_INFINITE = TimeUnit.DAYS.toNanos(1000L);
90 private long permitKeepAliveTimeInNanos = TimeUnit.MINUTES.toNanos(5);
300 keepAliveTimeInNanos = timeUnit.toNanos(keepAliveTime); in keepAliveTime()
321 keepAliveTimeoutInNanos = timeUnit.toNanos(keepAliveTimeout); in keepAliveTimeout()
342 maxConnectionIdleInNanos = timeUnit.toNanos(maxConnectionIdle); in maxConnectionIdle()
362 maxConnectionAgeInNanos = timeUnit.toNanos(maxConnectionAge); in maxConnectionAge()
[all …]
DKeepAliveEnforcer.java29 static final long IMPLICIT_PERMIT_TIME_NANOS = TimeUnit.HOURS.toNanos(2);
49 this.minTimeNanos = Math.min(unit.toNanos(minTime), IMPLICIT_PERMIT_TIME_NANOS); in KeepAliveEnforcer()
/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/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DRetryPolicyTest.java87 TimeUnit.MILLISECONDS.toNanos(2100), in getRetryPolicies()
88 TimeUnit.MILLISECONDS.toNanos(2200), in getRetryPolicies()
97 TimeUnit.MILLISECONDS.toNanos(100), in getRetryPolicies()
98 TimeUnit.MILLISECONDS.toNanos(1000), in getRetryPolicies()
112 TimeUnit.MILLISECONDS.toNanos(100), in getRetryPolicies()
113 TimeUnit.MILLISECONDS.toNanos(1000), in getRetryPolicies()
DHedgingPolicyTest.java84 TimeUnit.MILLISECONDS.toNanos(2100), in getHedgingPolicies()
92 TimeUnit.MILLISECONDS.toNanos(100), in getHedgingPolicies()
105 TimeUnit.MILLISECONDS.toNanos(100), in getHedgingPolicies()
/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()
/external/grpc-grpc-java/netty/src/test/java/io/grpc/netty/
DNettyServerHandlerTest.java572 keepAliveTimeInNanos = TimeUnit.MILLISECONDS.toNanos(10L); in keepAliveManager_pingSent()
573 keepAliveTimeoutInNanos = TimeUnit.MINUTES.toNanos(30L); in keepAliveManager_pingSent()
608 permitKeepAliveTimeInNanos = TimeUnit.HOURS.toNanos(1); in keepAliveEnforcer_enforcesPings()
622 permitKeepAliveTimeInNanos = TimeUnit.HOURS.toNanos(1); in keepAliveEnforcer_sendingDataResetsCounters()
687 maxConnectionIdleInNanos = TimeUnit.MINUTES.toNanos(30L); in noGoAwaySentBeforeMaxConnectionIdleReached()
701 maxConnectionIdleInNanos = TimeUnit.MILLISECONDS.toNanos(10L); in maxConnectionIdle_goAwaySent_pingAck()
736 maxConnectionIdleInNanos = TimeUnit.MILLISECONDS.toNanos(10L); in maxConnectionIdle_goAwaySent_pingTimeout()
766 maxConnectionIdleInNanos = TimeUnit.MILLISECONDS.toNanos(10L); in maxConnectionIdle_activeThenRst_pingAck()
806 maxConnectionIdleInNanos = TimeUnit.MILLISECONDS.toNanos(10L); in maxConnectionIdle_activeThenRst_pingTimeoutk()
846 maxConnectionAgeInNanos = TimeUnit.MINUTES.toNanos(30L); in noGoAwaySentBeforeMaxConnectionAgeReached()
[all …]
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DGrpcUtil.java208 public static final long DEFAULT_KEEPALIVE_TIME_NANOS = TimeUnit.MINUTES.toNanos(1);
213 public static final long DEFAULT_KEEPALIVE_TIMEOUT_NANOS = TimeUnit.SECONDS.toNanos(20L);
223 public static final long DEFAULT_SERVER_KEEPALIVE_TIME_NANOS = TimeUnit.HOURS.toNanos(2L);
228 public static final long DEFAULT_SERVER_KEEPALIVE_TIMEOUT_NANOS = TimeUnit.SECONDS.toNanos(20L);
646 return TimeUnit.MICROSECONDS.toNanos(value); in parseAsciiString()
648 return TimeUnit.MILLISECONDS.toNanos(value); in parseAsciiString()
650 return TimeUnit.SECONDS.toNanos(value); in parseAsciiString()
652 return TimeUnit.MINUTES.toNanos(value); in parseAsciiString()
654 return TimeUnit.HOURS.toNanos(value); in parseAsciiString()
DExponentialBackoffPolicy.java40 private long initialBackoffNanos = TimeUnit.SECONDS.toNanos(1);
41 private long maxBackoffNanos = TimeUnit.MINUTES.toNanos(2);
DKeepAliveManager.java34 private static final long MIN_KEEPALIVE_TIME_NANOS = TimeUnit.SECONDS.toNanos(10);
35 private static final long MIN_KEEPALIVE_TIMEOUT_NANOS = TimeUnit.MILLISECONDS.toNanos(10L);
DTimeProvider.java31 TimeUnit.MILLISECONDS.toNanos(System.currentTimeMillis()) - System.nanoTime();
/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/grpc-grpc-java/context/src/main/java/io/grpc/
DDeadline.java37 private static final long MAX_OFFSET = TimeUnit.DAYS.toNanos(100 * 365);
53 return new Deadline(ticker, units.toNanos(duration), true); in after()
114 return new Deadline(ticker, deadlineNanos, units.toNanos(offset), isExpired()); in offset()
/external/grpc-grpc-java/interop-testing/src/test/java/io/grpc/testing/integration/
DProxyTest.java66 int latency = (int) TimeUnit.MILLISECONDS.toNanos(50); in smallLatency()
97 int latency = (int) TimeUnit.MILLISECONDS.toNanos(250); in bigLatency()
142 long bandUsed = ((5 * bandwidth) / ((stop - start) / TimeUnit.SECONDS.toNanos(1))); in smallBandwidth()
166 long bandUsed = ((5 * bandwidth) / ((stop - start) / TimeUnit.SECONDS.toNanos(1))); in largeBandwidth()
/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.java47 long expectedNanos = unit.toNanos(expected); in assertElapsedTimeIsMoreThan()
55 long expectedNanos = unit.toNanos(expected); in assertElapsedTimeIsLessThan()
/external/okhttp/repackaged/okio/okio/src/main/java/com/android/okhttp/okio/
DTimeout.java85 this.timeoutNanos = unit.toNanos(timeout); in timeout()
125 return deadlineNanoTime(System.nanoTime() + unit.toNanos(duration)); in deadline()
/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/grpc-grpc-java/testing/src/main/java/io/grpc/testing/
DGrpcCleanupRule.java51 private long timeoutNanos = TimeUnit.SECONDS.toNanos(10L);
68 timeoutNanos = timeUnit.toNanos(timeout); in setTimeout()
/external/grpc-grpc-java/services/src/test/java/io/grpc/services/
DBinlogHelperTest.java881 assertThat(TimeUnit.SECONDS.toNanos(1) - Durations.toNanos(timeout)) in clientDeadlineLogged_deadlineSetViaCallOption()
882 .isAtMost(TimeUnit.MILLISECONDS.toNanos(250)); in clientDeadlineLogged_deadlineSetViaCallOption()
935 assertThat(TimeUnit.SECONDS.toNanos(1) - Durations.toNanos(timeout)) in clientDeadlineLogged_deadlineSetViaContext()
936 .isAtMost(TimeUnit.MILLISECONDS.toNanos(250)); in clientDeadlineLogged_deadlineSetViaContext()
1008 assertThat(TimeUnit.SECONDS.toNanos(1) - Durations.toNanos(timeout)) in clientInterceptor()
1009 .isAtMost(TimeUnit.MILLISECONDS.toNanos(250)); in clientInterceptor()
1092 clientInitial.put(GrpcUtil.TIMEOUT_KEY, TimeUnit.MILLISECONDS.toNanos(1234)); in serverInterceptor()
/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()

1234