/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/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/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/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/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/setupcompat/main/java/com/google/android/setupcompat/internal/ |
D | SetupCompatServiceProvider.java | 53 public static ISetupCompatService get(Context context, long waitTime, @NonNull TimeUnit timeUnit) in get() argument 55 return getInstance(context).getService(waitTime, timeUnit); in get() 59 public ISetupCompatService getService(long timeout, TimeUnit timeUnit) in getService() argument 76 return waitForConnection(timeout, timeUnit); in getService() 80 return waitForConnection(timeout, timeUnit); in getService() 89 private ISetupCompatService waitForConnection(long timeout, TimeUnit timeUnit) in waitForConnection() argument 98 boolean stateChanged = connectedStateLatch.await(timeout, timeUnit); in waitForConnection() 104 String.format("Failed to acquire connection after [%s %s]", timeout, timeUnit)); in waitForConnection()
|
/external/guava/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() 63 public FakeTicker setAutoIncrementStep(long autoIncrementStep, TimeUnit timeUnit) { in setAutoIncrementStep() argument 65 this.autoIncrementStepNanos = timeUnit.toNanos(autoIncrementStep); in setAutoIncrementStep()
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
D | MoreExecutors.java | 85 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() argument 87 .getExitingExecutorService(executor, terminationTimeout, timeUnit); in getExitingExecutorService() 108 ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingScheduledExecutorService() argument 110 .getExitingScheduledExecutorService(executor, terminationTimeout, timeUnit); in getExitingScheduledExecutorService() 126 ExecutorService service, long terminationTimeout, TimeUnit timeUnit) { in addDelayedShutdownHook() argument 128 .addDelayedShutdownHook(service, terminationTimeout, timeUnit); in addDelayedShutdownHook() 176 ThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingExecutorService() argument 179 addDelayedShutdownHook(service, terminationTimeout, timeUnit); in getExitingExecutorService() 184 ScheduledThreadPoolExecutor executor, long terminationTimeout, TimeUnit timeUnit) { in getExitingScheduledExecutorService() argument 187 addDelayedShutdownHook(service, terminationTimeout, timeUnit); in getExitingScheduledExecutorService() [all …]
|
/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/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/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/guava/guava-gwt/test-super/com/google/common/testing/super/com/google/common/testing/ |
D | FakeTickerTest.java | 75 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero() 76 ticker.setAutoIncrementStep(0, timeUnit); in testAutoIncrementStep_resetToZero() 78 "Expected no auto-increment when setting autoIncrementStep to 0 " + timeUnit, in testAutoIncrementStep_resetToZero()
|
/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()
|
D | TestServerStreamTracer.java | 38 public boolean await(long timeout, TimeUnit timeUnit) throws InterruptedException { in await() argument 39 return delegate.await(timeout, timeUnit); in await()
|
/external/guava/guava/src/com/google/common/cache/ |
D | CacheBuilderSpec.java | 420 TimeUnit timeUnit; in parse() local 423 timeUnit = TimeUnit.DAYS; in parse() 426 timeUnit = TimeUnit.HOURS; in parse() 429 timeUnit = TimeUnit.MINUTES; in parse() 432 timeUnit = TimeUnit.SECONDS; in parse() 441 parseDuration(spec, duration, timeUnit); in parse()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/android/util/concurrent/ |
D | RoboExecutorService.java | 79 public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { in awaitTermination() argument 119 …invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws Interrupt… in invokeAll() argument 129 …public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) thr… in invokeAny() argument
|
/external/guava/guava-testlib/test/com/google/common/testing/ |
D | FakeTickerTest.java | 86 for (TimeUnit timeUnit : EnumSet.allOf(TimeUnit.class)) { in testAutoIncrementStep_resetToZero() 87 ticker.setAutoIncrementStep(0, timeUnit); in testAutoIncrementStep_resetToZero() 89 "Expected no auto-increment when setting autoIncrementStep to 0 " + timeUnit, in testAutoIncrementStep_resetToZero()
|
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/ |
D | Util.java | 141 public static boolean discard(Source source, int timeout, TimeUnit timeUnit) { in discard() argument 143 return skipAll(source, timeout, timeUnit); in discard() 153 public static boolean skipAll(Source source, int duration, TimeUnit timeUnit) throws IOException { in skipAll() argument 158 source.timeout().deadlineNanoTime(now + Math.min(originalDuration, timeUnit.toNanos(duration))); in skipAll()
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/ |
D | Util.java | 145 public static boolean discard(Source source, int timeout, TimeUnit timeUnit) { in discard() argument 147 return skipAll(source, timeout, timeUnit); in discard() 157 public static boolean skipAll(Source source, int duration, TimeUnit timeUnit) throws IOException { in skipAll() argument 162 source.timeout().deadlineNanoTime(now + Math.min(originalDuration, timeUnit.toNanos(duration))); in skipAll()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/ |
D | Util.java | 139 public static boolean discard(Source source, int timeout, TimeUnit timeUnit) { in discard() argument 141 return skipAll(source, timeout, timeUnit); in discard() 151 public static boolean skipAll(Source source, int duration, TimeUnit timeUnit) throws IOException { in skipAll() argument 156 source.timeout().deadlineNanoTime(now + Math.min(originalDuration, timeUnit.toNanos(duration))); in skipAll()
|
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/ |
D | Rescheduler.java | 55 void reschedule(long delay, TimeUnit timeUnit) { in reschedule() argument 56 long delayNanos = timeUnit.toNanos(delay); in reschedule()
|
/external/grpc-grpc-java/context/src/test/java/io/grpc/testing/ |
D | DeadlineSubject.java | 53 public TolerantDeadlineComparison isWithin(final long delta, final TimeUnit timeUnit) { in isWithin() argument 63 BigInteger deltaNanos = BigInteger.valueOf(timeUnit.toNanos(delta)); in isWithin()
|