Home
last modified time | relevance | path

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

12

/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.java275 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject()
276 Map<String, Object[]> countToPattern = timeUnitToCountToPatterns.get(timeUnit); in parseObject()
311 resultTimeUnit = timeUnit; in parseObject()
397 TimeUnit timeUnit = null; in put() local
400 timeUnit = TimeUnit.YEAR; in put()
402 timeUnit = TimeUnit.MONTH; in put()
404 timeUnit = TimeUnit.DAY; in put()
406 timeUnit = TimeUnit.HOUR; in put()
408 timeUnit = TimeUnit.MINUTE; in put()
410 timeUnit = TimeUnit.SECOND; in put()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java273 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject()
274 Map<String, Object[]> countToPattern = timeUnitToCountToPatterns.get(timeUnit); in parseObject()
309 resultTimeUnit = timeUnit; in parseObject()
395 TimeUnit timeUnit = null; in put() local
398 timeUnit = TimeUnit.YEAR; in put()
400 timeUnit = TimeUnit.MONTH; in put()
402 timeUnit = TimeUnit.DAY; in put()
404 timeUnit = TimeUnit.HOUR; in put()
406 timeUnit = TimeUnit.MINUTE; in put()
408 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/libmojo/base/android/java/src/org/chromium/base/metrics/
DRecordHistogram.java176 public static void recordTimesHistogram(String name, long duration, TimeUnit timeUnit) { in recordTimesHistogram() argument
178 name, timeUnit.toMillis(duration), 1, TimeUnit.SECONDS.toMillis(10), 50); in recordTimesHistogram()
188 public static void recordMediumTimesHistogram(String name, long duration, TimeUnit timeUnit) { in recordMediumTimesHistogram() argument
190 name, timeUnit.toMillis(duration), 10, TimeUnit.MINUTES.toMillis(3), 50); in recordMediumTimesHistogram()
200 public static void recordLongTimesHistogram(String name, long duration, TimeUnit timeUnit) { in recordLongTimesHistogram() argument
202 name, timeUnit.toMillis(duration), 1, TimeUnit.HOURS.toMillis(1), 50); in recordLongTimesHistogram()
216 String name, long duration, long min, long max, TimeUnit timeUnit, int numBuckets) { in recordCustomTimesHistogram() argument
217 recordCustomTimesHistogramMilliseconds(name, timeUnit.toMillis(duration), in recordCustomTimesHistogram()
218 timeUnit.toMillis(min), timeUnit.toMillis(max), numBuckets); in recordCustomTimesHistogram()
/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 …]
DSmoothRateLimiter.java230 SmoothWarmingUp(SleepingStopwatch stopwatch, long warmupPeriod, TimeUnit timeUnit) { in SmoothWarmingUp() argument
232 this.warmupPeriodMicros = timeUnit.toMicros(warmupPeriod); in SmoothWarmingUp()
/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/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()
DConnectionPool.java117 public ConnectionPool(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit) { in ConnectionPool() argument
119 this.keepAliveDurationNs = timeUnit.toNanos(keepAliveDuration); in ConnectionPool()
/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/robolectric/v1/src/main/java/com/xtremelabs/robolectric/util/
DRobolectricBackgroundExecutorService.java37 public boolean awaitTermination(long l, TimeUnit timeUnit) throws InterruptedException { in awaitTermination() argument
73 …invokeAll(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) throws Interrupt… in invokeAll() argument
83 …public <T> T invokeAny(Collection<? extends Callable<T>> callables, long l, TimeUnit timeUnit) thr… in invokeAny() argument
/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/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/mockito/src/test/java/org/mockitousage/verification/
DDelayedExecution.java26 public void callAsync(long delay, TimeUnit timeUnit, Runnable r) { in callAsync() argument
27 long deadline = timeUnit.toMillis(delay) + currentTimeMillis(); in callAsync()
/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/glide/library/src/main/java/com/bumptech/glide/load/engine/executor/
DFifoPriorityThreadPoolExecutor.java30 …riorityThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAlive, TimeUnit timeUnit, in FifoPriorityThreadPoolExecutor() argument
32 …super(corePoolSize, maximumPoolSize, keepAlive, timeUnit, new PriorityBlockingQueue<Runnable>(), t… in FifoPriorityThreadPoolExecutor()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeUnitTest.java75 final TimeUnit timeUnit = values[j]; in TestBasic() local
78 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in TestBasic()
309 final TimeUnit timeUnit = values[j]; in formatParsing() local
312 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in formatParsing()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeUnitTest.java76 final TimeUnit timeUnit = values[j]; in TestBasic() local
79 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in TestBasic()
310 final TimeUnit timeUnit = values[j]; in formatParsing() local
313 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in formatParsing()
/external/glide/library/src/main/java/com/bumptech/glide/request/
DRequestFutureTarget.java120 …public R get(long time, TimeUnit timeUnit) throws InterruptedException, ExecutionException, Timeou… in get() argument
121 return doGet(timeUnit.toMillis(time)); in get()
/external/apache-http/src/org/apache/http/impl/conn/tsccm/
DThreadSafeClientConnManager.java203 …ublic void releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit timeUnit) {
253 connectionPool.freeEntry(entry, reusable, validDuration, timeUnit);
/external/apache-http/src/org/apache/http/conn/
DClientConnectionManager.java95 void releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit timeUnit) in releaseConnection() argument
/external/apache-http/src/org/apache/http/impl/conn/
DSingleClientConnManager.java278 …ublic void releaseConnection(ManagedClientConnection conn, long validDuration, TimeUnit timeUnit) {
334 connectionExpiresTime = timeUnit.toMillis(validDuration) + lastReleaseTime;
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java193 private static String formatDate(long delta, TimeUnit timeUnit) { in formatDate() argument
194 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()

12