Home
last modified time | relevance | path

Searched refs:timeUnit (Results 1 – 25 of 52) sorted by relevance

123

/external/junit/src/main/java/org/junit/rules/
DTimeout.java42 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/
DTimeUnitFormat.java261 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/
DTimeUnitFormat.java259 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/
DTestTimedOutException.java15 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/
DNettyServerBuilder.java298 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/
DGrpcCleanupRule.java66 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/
DShadowUsageStatsManager.java58 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/
DSetupCompatServiceProvider.java53 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/
DFakeTicker.java47 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/
DMoreExecutors.java85 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/
DCacheControl.java301 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/
DCacheControl.java304 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/
DFailOnTimeout.java15 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/
DFakeTickerTest.java75 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/
DForwardingChannelBuilder.java161 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/
DTestStreamTracer.java42 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()
DTestServerStreamTracer.java38 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/
DCacheBuilderSpec.java420 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/
DRoboExecutorService.java79 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/
DFakeTickerTest.java86 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/
DUtil.java141 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/
DUtil.java145 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/
DUtil.java139 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/
DRescheduler.java55 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/
DDeadlineSubject.java53 public TolerantDeadlineComparison isWithin(final long delta, final TimeUnit timeUnit) { in isWithin() argument
63 BigInteger deltaNanos = BigInteger.valueOf(timeUnit.toNanos(delta)); in isWithin()

123