Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 42) sorted by relevance

12

/libcore/luni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java82 long delay, TimeUnit unit); in schedule() argument
97 long delay, TimeUnit unit); in schedule() argument
127 TimeUnit unit); in scheduleAtFixedRate() argument
154 TimeUnit unit); in scheduleWithFixedDelay() argument
DBlockingDeque.java291 boolean offerFirst(E e, long timeout, TimeUnit unit) in offerFirst() argument
313 boolean offerLast(E e, long timeout, TimeUnit unit) in offerLast() argument
347 E pollFirst(long timeout, TimeUnit unit) in pollFirst() argument
363 E pollLast(long timeout, TimeUnit unit) in pollLast() argument
480 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
531 E poll(long timeout, TimeUnit unit) in poll() argument
DExecutors.java589 public boolean awaitTermination(long timeout, TimeUnit unit)
591 return e.awaitTermination(timeout, unit);
607 long timeout, TimeUnit unit)
609 return e.invokeAll(tasks, timeout, unit);
616 long timeout, TimeUnit unit)
618 return e.invokeAny(tasks, timeout, unit);
644 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
645 return e.schedule(command, delay, unit);
647 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
648 return e.schedule(callable, delay, unit);
[all …]
DScheduledThreadPoolExecutor.java211 public long getDelay(TimeUnit unit) { in getDelay() argument
212 return unit.convert(time - now(), NANOSECONDS); in getDelay()
486 private long triggerTime(long delay, TimeUnit unit) { in triggerTime() argument
487 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); in triggerTime()
521 TimeUnit unit) { in schedule() argument
522 if (command == null || unit == null) in schedule()
526 triggerTime(delay, unit))); in schedule()
537 TimeUnit unit) { in schedule() argument
538 if (callable == null || unit == null) in schedule()
542 triggerTime(delay, unit))); in schedule()
[all …]
DExecutorService.java171 boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
276 long timeout, TimeUnit unit) in invokeAll() argument
323 long timeout, TimeUnit unit) in invokeAny() argument
DSemaphore.java379 public boolean tryAcquire(long timeout, TimeUnit unit) in tryAcquire() argument
381 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryAcquire()
551 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) in tryAcquire() argument
554 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout)); in tryAcquire()
DBlockingQueue.java224 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
248 E poll(long timeout, TimeUnit unit) in poll() argument
DCountDownLatch.java247 public boolean await(long timeout, TimeUnit unit) in await() argument
249 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in await()
DThreadPoolExecutor.java1164 TimeUnit unit, in ThreadPoolExecutor() argument
1166 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1198 TimeUnit unit, in ThreadPoolExecutor() argument
1201 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1233 TimeUnit unit, in ThreadPoolExecutor() argument
1236 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1270 TimeUnit unit, in ThreadPoolExecutor() argument
1284 this.keepAliveTime = unit.toNanos(keepAliveTime); in ThreadPoolExecutor()
1423 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
1425 long nanos = unit.toNanos(timeout); in awaitTermination()
[all …]
DLinkedBlockingDeque.java374 public boolean offerFirst(E e, long timeout, TimeUnit unit) in offerFirst() argument
378 long nanos = unit.toNanos(timeout); in offerFirst()
397 public boolean offerLast(E e, long timeout, TimeUnit unit) in offerLast() argument
401 long nanos = unit.toNanos(timeout); in offerLast()
480 public E pollFirst(long timeout, TimeUnit unit) in pollFirst() argument
482 long nanos = unit.toNanos(timeout); in pollFirst()
498 public E pollLast(long timeout, TimeUnit unit) in pollLast() argument
500 long nanos = unit.toNanos(timeout); in pollLast()
625 public boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
627 return offerLast(e, timeout, unit); in offer()
[all …]
DDelayed.java30 long getDelay(TimeUnit unit); in getDelay() argument
DFuture.java138 V get(long timeout, TimeUnit unit) in get() argument
DTransferQueue.java105 boolean tryTransfer(E e, long timeout, TimeUnit unit) in tryTransfer() argument
DExecutorCompletionService.java171 public Future<V> poll(long timeout, TimeUnit unit) in poll() argument
173 return completionQueue.poll(timeout, unit); in poll()
DAbstractExecutorService.java193 long timeout, TimeUnit unit) in invokeAny() argument
195 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
230 long timeout, TimeUnit unit) in invokeAll() argument
234 long nanos = unit.toNanos(timeout); in invokeAll()
DCompletionService.java94 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; in poll() argument
DCyclicBarrier.java398 public int await(long timeout, TimeUnit unit) in await() argument
402 return dowait(true, unit.toNanos(timeout)); in await()
DDelayQueue.java144 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() argument
220 public E poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() argument
221 long nanos = unit.toNanos(timeout); in poll()
DFutureTask.java170 public V get(long timeout, TimeUnit unit) in get() argument
172 if (unit == null) in get()
176 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING) in get()
/libcore/luni/src/main/java/libcore/icu/
DRelativeDateTimeFormatter.java139 com.ibm.icu.text.RelativeDateTimeFormatter.RelativeUnit unit; in getRelativeTimeSpanString() local
144 unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelativeUnit.SECONDS; in getRelativeTimeSpanString()
147 unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelativeUnit.MINUTES; in getRelativeTimeSpanString()
153 unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelativeUnit.HOURS; in getRelativeTimeSpanString()
156 unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelativeUnit.DAYS; in getRelativeTimeSpanString()
197 unit = com.ibm.icu.text.RelativeDateTimeFormatter.RelativeUnit.WEEKS; in getRelativeTimeSpanString()
224 return formatter.format(count, direction, unit); in getRelativeTimeSpanString()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLock.java293 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; in tryLock() argument
DCondition.java345 boolean await(long time, TimeUnit unit) throws InterruptedException; in await() argument
DReentrantLock.java412 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() argument
414 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
/libcore/luni/src/test/resources/systemid/
Drecipt.dtd8 unit CDATA #IMPLIED> attribute
/libcore/luni/src/test/resources/
Drecipt.dtd8 unit CDATA #IMPLIED> attribute

12