Home
last modified time | relevance | path

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

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DTimeUnitFormat.java270 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject()
271 Map<String, Object[]> countToPattern = timeUnitToCountToPatterns.get(timeUnit); in parseObject()
306 resultTimeUnit = timeUnit; in parseObject()
374 TimeUnit timeUnit = null; in setup() local
376 timeUnit = TimeUnit.YEAR; in setup()
378 timeUnit = TimeUnit.MONTH; in setup()
380 timeUnit = TimeUnit.DAY; in setup()
382 timeUnit = TimeUnit.HOUR; in setup()
384 timeUnit = TimeUnit.MINUTE; in setup()
386 timeUnit = TimeUnit.SECOND; in setup()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DTimeUnitFormat.java272 for (TimeUnit timeUnit : timeUnitToCountToPatterns.keySet()) { in parseObject()
273 Map<String, Object[]> countToPattern = timeUnitToCountToPatterns.get(timeUnit); in parseObject()
308 resultTimeUnit = timeUnit; in parseObject()
376 TimeUnit timeUnit = null; in setup() local
378 timeUnit = TimeUnit.YEAR; in setup()
380 timeUnit = TimeUnit.MONTH; in setup()
382 timeUnit = TimeUnit.DAY; in setup()
384 timeUnit = TimeUnit.HOUR; in setup()
386 timeUnit = TimeUnit.MINUTE; in setup()
388 timeUnit = TimeUnit.SECOND; in setup()
[all …]
/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/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/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/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/android_icu4j/src/main/tests/android/icu/dev/test/format/
DTimeUnitTest.java75 final TimeUnit timeUnit = values[j]; in TestBasic() local
78 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in TestBasic()
299 final TimeUnit timeUnit = values[j]; in formatParsing() local
302 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in formatParsing()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DTimeUnitTest.java71 final TimeUnit timeUnit = values[j]; in TestBasic() local
74 TimeUnitAmount source = new TimeUnitAmount(tests[i], timeUnit); in TestBasic()
295 final TimeUnit timeUnit = values[j]; in formatParsing() local
298 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);
DConnPoolByRoute.java375 …lic void freeEntry(BasicPoolEntry entry, boolean reusable, long validDuration, TimeUnit timeUnit) {
400 idleConnHandler.add(entry.getConnection(), validDuration, timeUnit);
DAbstractConnPool.java193 …tract void freeEntry(BasicPoolEntry entry, boolean reusable, long validDuration, TimeUnit timeUnit) in freeEntry() argument
/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.java182 private static String formatDate(long delta, TimeUnit timeUnit) { in formatDate() argument
183 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()
DUrlConnectionCacheTest.java1662 private String formatDate(long delta, TimeUnit timeUnit) { in formatDate() argument
1663 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java1689 private String formatDate(long delta, TimeUnit timeUnit) { in formatDate() argument
1690 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DCacheTest.java2165 private String formatDate(long delta, TimeUnit timeUnit) { in formatDate() argument
2166 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()