/external/libchrome/base/android/java/src/org/chromium/base/metrics/ |
D | RecordHistogram.java | 186 public static void recordTimesHistogram(String name, long duration, TimeUnit timeUnit) { in recordTimesHistogram() argument 187 assertTimesHistogramSupportsUnit(timeUnit); in recordTimesHistogram() 189 name, timeUnit.toMillis(duration), 1, TimeUnit.SECONDS.toMillis(10), 50); in recordTimesHistogram() 200 public static void recordMediumTimesHistogram(String name, long duration, TimeUnit timeUnit) { in recordMediumTimesHistogram() argument 201 assertTimesHistogramSupportsUnit(timeUnit); in recordMediumTimesHistogram() 203 name, timeUnit.toMillis(duration), 10, TimeUnit.MINUTES.toMillis(3), 50); in recordMediumTimesHistogram() 214 public static void recordLongTimesHistogram(String name, long duration, TimeUnit timeUnit) { in recordLongTimesHistogram() argument 215 assertTimesHistogramSupportsUnit(timeUnit); in recordLongTimesHistogram() 217 name, timeUnit.toMillis(duration), 1, TimeUnit.HOURS.toMillis(1), 50); in recordLongTimesHistogram() 228 public static void recordLongTimesHistogram100(String name, long duration, TimeUnit timeUnit) { in recordLongTimesHistogram100() argument [all …]
|
/external/junit/src/main/java/org/junit/rules/ |
D | Timeout.java | 42 private final TimeUnit timeUnit; field in Timeout 79 public Timeout(long timeout, TimeUnit timeUnit) { in Timeout() argument 81 this.timeUnit = timeUnit; in Timeout() 92 timeUnit = builder.getTimeUnit(); in Timeout() 121 return unit.convert(timeout, timeUnit); in getTimeout() 135 .withTimeout(timeout, timeUnit) in createFailOnTimeoutStatement() 159 private TimeUnit timeUnit = TimeUnit.SECONDS; field in Timeout.Builder 181 this.timeUnit = unit; in withTimeout() 190 return timeUnit; in getTimeUnit()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | TimeUnitFormat.java | 259 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject() 260 Map<String, Object[]> countToPattern = timeUnitToCountToPatterns.get(timeUnit); in parseObject() 295 resultTimeUnit = timeUnit; in parseObject() 381 TimeUnit timeUnit = null; in put() local 384 timeUnit = TimeUnit.YEAR; in put() 386 timeUnit = TimeUnit.MONTH; in put() 388 timeUnit = TimeUnit.DAY; in put() 390 timeUnit = TimeUnit.HOUR; in put() 392 timeUnit = TimeUnit.MINUTE; in put() 394 timeUnit = TimeUnit.SECOND; in put() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
D | TimeUnitFormat.java | 261 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject() 262 Map<String, Object[]> countToPattern = timeUnitToCountToPatterns.get(timeUnit); in parseObject() 297 resultTimeUnit = timeUnit; in parseObject() 383 TimeUnit timeUnit = null; in put() local 386 timeUnit = TimeUnit.YEAR; in put() 388 timeUnit = TimeUnit.MONTH; in put() 390 timeUnit = TimeUnit.DAY; in put() 392 timeUnit = TimeUnit.HOUR; in put() 394 timeUnit = TimeUnit.MINUTE; in put() 396 timeUnit = TimeUnit.SECOND; in put() [all …]
|
/external/jimfs/jimfs/src/main/java/com/google/common/jimfs/ |
D | WatchServiceConfiguration.java | 43 public static WatchServiceConfiguration polling(long interval, TimeUnit timeUnit) { in polling() argument 44 return new PollingConfig(interval, timeUnit); in polling() 58 private final TimeUnit timeUnit; field in WatchServiceConfiguration.PollingConfig 60 private PollingConfig(long interval, TimeUnit timeUnit) { in PollingConfig() argument 63 this.timeUnit = checkNotNull(timeUnit); in PollingConfig() 68 return new PollingWatchService(view, pathService, view.state(), interval, timeUnit); in newWatchService() 73 return "WatchServiceConfiguration.polling(" + interval + ", " + timeUnit + ")"; in toString()
|
D | PollingWatchService.java | 72 @VisibleForTesting final TimeUnit timeUnit; field in PollingWatchService 81 TimeUnit timeUnit) { in PollingWatchService() argument 88 this.timeUnit = checkNotNull(timeUnit); in PollingWatchService() 158 pollingFuture = pollingService.scheduleAtFixedRate(pollingTask, interval, interval, timeUnit); in startPolling()
|
/external/junit/src/main/java/org/junit/runners/model/ |
D | TestTimedOutException.java | 15 private final TimeUnit timeUnit; field in TestTimedOutException 24 public TestTimedOutException(long timeout, TimeUnit timeUnit) { in TestTimedOutException() argument 26 timeout, timeUnit.name().toLowerCase())); in TestTimedOutException() 27 this.timeUnit = timeUnit; in TestTimedOutException() 42 return timeUnit; in getTimeUnit()
|
/external/grpc-grpc-java/netty/src/main/java/io/grpc/netty/ |
D | NettyServerBuilder.java | 298 public NettyServerBuilder keepAliveTime(long keepAliveTime, TimeUnit timeUnit) { in keepAliveTime() argument 300 keepAliveTimeInNanos = timeUnit.toNanos(keepAliveTime); in keepAliveTime() 319 public NettyServerBuilder keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit) { in keepAliveTimeout() argument 321 keepAliveTimeoutInNanos = timeUnit.toNanos(keepAliveTimeout); in keepAliveTimeout() 340 public NettyServerBuilder maxConnectionIdle(long maxConnectionIdle, TimeUnit timeUnit) { in maxConnectionIdle() argument 342 maxConnectionIdleInNanos = timeUnit.toNanos(maxConnectionIdle); in maxConnectionIdle() 360 public NettyServerBuilder maxConnectionAge(long maxConnectionAge, TimeUnit timeUnit) { in maxConnectionAge() argument 362 maxConnectionAgeInNanos = timeUnit.toNanos(maxConnectionAge); in maxConnectionAge() 381 public NettyServerBuilder maxConnectionAgeGrace(long maxConnectionAgeGrace, TimeUnit timeUnit) { in maxConnectionAgeGrace() argument 383 maxConnectionAgeGraceInNanos = timeUnit.toNanos(maxConnectionAgeGrace); in maxConnectionAgeGrace() [all …]
|
/external/grpc-grpc-java/testing/src/main/java/io/grpc/testing/ |
D | GrpcCleanupRule.java | 66 public GrpcCleanupRule setTimeout(long timeout, TimeUnit timeUnit) { in setTimeout() argument 68 timeoutNanos = timeUnit.toNanos(timeout); in setTimeout() 196 boolean awaitReleased(long duration, TimeUnit timeUnit) throws InterruptedException; 217 public boolean awaitReleased(long duration, TimeUnit timeUnit) throws InterruptedException { 218 return channel.awaitTermination(duration, timeUnit); 245 public boolean awaitReleased(long duration, TimeUnit timeUnit) throws InterruptedException { 246 return server.awaitTermination(duration, timeUnit);
|
/external/guava/android/guava-testlib/src/com/google/common/testing/ |
D | FakeTicker.java | 47 public FakeTicker advance(long time, TimeUnit timeUnit) { in advance() argument 48 return advance(timeUnit.toNanos(time)); in advance() 65 public FakeTicker setAutoIncrementStep(long autoIncrementStep, TimeUnit timeUnit) { in setAutoIncrementStep() argument 67 this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep); in setAutoIncrementStep()
|
/external/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | SetupCompatServiceProvider.java | 55 public static ISetupCompatService get(Context context, long waitTime, @NonNull TimeUnit timeUnit) in get() argument 57 return getInstance(context).getService(waitTime, timeUnit); in get() 61 public ISetupCompatService getService(long timeout, TimeUnit timeUnit) in getService() argument 78 return waitForConnection(timeout, timeUnit); in getService() 82 return waitForConnection(timeout, timeUnit); in getService() 91 private ISetupCompatService waitForConnection(long timeout, TimeUnit timeUnit) in waitForConnection() argument 100 boolean stateChanged = connectedStateLatch.await(timeout, timeUnit); in waitForConnection() 106 String.format("Failed to acquire connection after [%s %s]", timeout, timeUnit)); in waitForConnection()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowUsageStatsManager.java | 58 private final TimeUnit timeUnit; field in ShadowUsageStatsManager.AppUsageObserver 65 @NonNull TimeUnit timeUnit, in AppUsageObserver() argument 70 this.timeUnit = timeUnit; in AppUsageObserver() 89 return timeUnit; in getTimeUnit() 109 && timeUnit == that.timeUnit in equals() 118 result = 31 * result + timeUnit.hashCode(); in hashCode() 273 TimeUnit timeUnit, in registerAppUsageObserver() argument 278 observerId, ImmutableList.copyOf(packages), timeLimit, timeUnit, callbackIntent)); in registerAppUsageObserver() 299 long timeLimitInMillis = observer.timeUnit.toMillis(observer.timeLimit); in triggerRegisteredAppUsageObserver()
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
D | FakeTicker.java | 48 public FakeTicker advance(long time, TimeUnit timeUnit) { in advance() argument 49 return advance(timeUnit.toNanos(time)); in advance() 76 public FakeTicker setAutoIncrementStep(long autoIncrementStep, TimeUnit timeUnit) { in setAutoIncrementStep() argument 78 this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep); in setAutoIncrementStep()
|
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/jsontype/deftyping/ |
D | TestDefaultForEnums.java | 26 public TimeUnit timeUnit; field in TestDefaultForEnums.TimeUnitBean 38 bean.timeUnit = TimeUnit.SECONDS; in testSimpleEnumBean() 44 assertEquals(TimeUnit.SECONDS, result.timeUnit); in testSimpleEnumBean() 53 assertEquals(TimeUnit.SECONDS, result.timeUnit); in testSimpleEnumBean()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | MoreExecutors.java | 106 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() argument 107 return new Application().getExitingExecutorService(executor, terminationTimeout, timeUnit); in getExitingExecutorService() 167 ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingScheduledExecutorService() argument 169 .getExitingScheduledExecutorService(executor, terminationTimeout, timeUnit); in getExitingScheduledExecutorService() 224 ExecutorService service, long terminationTimeout, TimeUnit timeUnit) { in addDelayedShutdownHook() argument 225 new Application().addDelayedShutdownHook(service, terminationTimeout, timeUnit); in addDelayedShutdownHook() 234 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() argument 237 addDelayedShutdownHook(executor, terminationTimeout, timeUnit); in getExitingExecutorService() 246 ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingScheduledExecutorService() argument 249 addDelayedShutdownHook(executor, terminationTimeout, timeUnit); in getExitingScheduledExecutorService() [all …]
|
/external/guava/android/guava/src/com/google/common/util/concurrent/ |
D | MoreExecutors.java | 83 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() argument 84 return new Application().getExitingExecutorService(executor, terminationTimeout, timeUnit); in getExitingExecutorService() 123 ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingScheduledExecutorService() argument 125 .getExitingScheduledExecutorService(executor, terminationTimeout, timeUnit); in getExitingScheduledExecutorService() 163 ExecutorService service, long terminationTimeout, TimeUnit timeUnit) { in addDelayedShutdownHook() argument 164 new Application().addDelayedShutdownHook(service, terminationTimeout, timeUnit); in addDelayedShutdownHook() 173 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() argument 176 addDelayedShutdownHook(executor, terminationTimeout, timeUnit); in getExitingExecutorService() 185 ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingScheduledExecutorService() argument 188 addDelayedShutdownHook(executor, terminationTimeout, timeUnit); in getExitingScheduledExecutorService() [all …]
|
/external/toolchain-utils/compiler_wrapper/ |
D | rusage_flag.go | 73 timeUnit := float64(time.Second) 75 …float64(elapsedRealTime)/timeUnit, float64(elapsedUserTime)/timeUnit, float64(elapsedSysTime)/time…
|
/external/junit/src/main/java/org/junit/internal/runners/statements/ |
D | FailOnTimeout.java | 15 private final TimeUnit timeUnit; field in FailOnTimeout 42 timeUnit = builder.unit; in FailOnTimeout() 118 return task.get(timeout, timeUnit); in getResult() 134 Exception currThreadException = new TestTimedOutException(timeout, timeUnit); in createTimeoutException()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | CacheControl.java | 304 public Builder maxAge(int maxAge, TimeUnit timeUnit) { in maxAge() argument 306 long maxAgeSecondsLong = timeUnit.toSeconds(maxAge); in maxAge() 322 public Builder maxStale(int maxStale, TimeUnit timeUnit) { in maxStale() argument 324 long maxStaleSecondsLong = timeUnit.toSeconds(maxStale); in maxStale() 341 public Builder minFresh(int minFresh, TimeUnit timeUnit) { in minFresh() argument 343 long minFreshSecondsLong = timeUnit.toSeconds(minFresh); in minFresh()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | CacheControl.java | 301 public Builder maxAge(int maxAge, TimeUnit timeUnit) { in maxAge() argument 303 long maxAgeSecondsLong = timeUnit.toSeconds(maxAge); in maxAge() 319 public Builder maxStale(int maxStale, TimeUnit timeUnit) { in maxStale() argument 321 long maxStaleSecondsLong = timeUnit.toSeconds(maxStale); in maxStale() 338 public Builder minFresh(int minFresh, TimeUnit timeUnit) { in minFresh() argument 340 long minFreshSecondsLong = timeUnit.toSeconds(minFresh); in minFresh()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/ |
D | ForwardingChannelBuilder.java | 161 public T keepAliveTime(long keepAliveTime, TimeUnit timeUnit) { in keepAliveTime() argument 162 delegate().keepAliveTime(keepAliveTime, timeUnit); in keepAliveTime() 167 public T keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit) { in keepAliveTimeout() argument 168 delegate().keepAliveTimeout(keepAliveTimeout, timeUnit); in keepAliveTimeout()
|
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/ |
D | TestStreamTracer.java | 42 boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException; in await() argument 106 public boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException { in await() argument 107 return streamClosed.await(timeout, timeUnit); in await()
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/flow/ |
D | SafeFlowBenchmark.kt | 14 @Warmup(iterations = 7, time = 1, timeUnit = TimeUnit.SECONDS) 15 @Measurement(iterations = 7, time = 1, timeUnit = TimeUnit.SECONDS)
|
D | CombineFlowsBenchmark.kt | 12 @Warmup(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS) in <lambda>() 13 @Measurement(iterations = 5, time = 1, timeUnit = TimeUnit.SECONDS) in <lambda>()
|
/external/kotlinx.coroutines/benchmarks/src/jmh/kotlin/benchmarks/scheduler/ |
D | LaunchBenchmark.kt | 17 @Warmup(iterations = 10, time = 1, timeUnit = TimeUnit.SECONDS) 18 @Measurement(iterations = 10, time = 1, timeUnit = TimeUnit.SECONDS)
|