Home
last modified time | relevance | path

Searched refs:unit (Results 1 – 25 of 41) 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.java288 boolean offerFirst(E e, long timeout, TimeUnit unit) in offerFirst() argument
310 boolean offerLast(E e, long timeout, TimeUnit unit) in offerLast() argument
344 E pollFirst(long timeout, TimeUnit unit) in pollFirst() argument
360 E pollLast(long timeout, TimeUnit unit) in pollLast() argument
477 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
528 E poll(long timeout, TimeUnit unit) in poll() argument
DExecutors.java588 public boolean awaitTermination(long timeout, TimeUnit unit)
590 return e.awaitTermination(timeout, unit);
606 long timeout, TimeUnit unit)
608 return e.invokeAll(tasks, timeout, unit);
615 long timeout, TimeUnit unit)
617 return e.invokeAny(tasks, timeout, unit);
643 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
644 return e.schedule(command, delay, unit);
646 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
647 return e.schedule(callable, delay, unit);
[all …]
DScheduledThreadPoolExecutor.java207 public long getDelay(TimeUnit unit) { in getDelay() argument
208 return unit.convert(time - now(), NANOSECONDS); in getDelay()
462 private long triggerTime(long delay, TimeUnit unit) { in triggerTime() argument
463 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); in triggerTime()
497 TimeUnit unit) { in schedule() argument
498 if (command == null || unit == null) in schedule()
502 triggerTime(delay, unit))); in schedule()
513 TimeUnit unit) { in schedule() argument
514 if (callable == null || unit == null) in schedule()
518 triggerTime(delay, unit))); in schedule()
[all …]
DExecutorService.java170 boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
275 long timeout, TimeUnit unit) in invokeAll() argument
322 long timeout, TimeUnit unit) in invokeAny() argument
DSemaphore.java378 public boolean tryAcquire(long timeout, TimeUnit unit) in tryAcquire() argument
380 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryAcquire()
550 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) in tryAcquire() argument
553 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout)); in tryAcquire()
DBlockingQueue.java223 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
247 E poll(long timeout, TimeUnit unit) in poll() argument
DCountDownLatch.java246 public boolean await(long timeout, TimeUnit unit) in await() argument
248 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in await()
DThreadPoolExecutor.java1163 TimeUnit unit, in ThreadPoolExecutor() argument
1165 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1197 TimeUnit unit, in ThreadPoolExecutor() argument
1200 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1232 TimeUnit unit, in ThreadPoolExecutor() argument
1235 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1269 TimeUnit unit, in ThreadPoolExecutor() argument
1283 this.keepAliveTime = unit.toNanos(keepAliveTime); in ThreadPoolExecutor()
1420 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
1422 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.java192 long timeout, TimeUnit unit) in invokeAny() argument
194 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
229 long timeout, TimeUnit unit) in invokeAll() argument
233 long nanos = unit.toNanos(timeout); in invokeAll()
DCompletionService.java94 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; in poll() argument
DCyclicBarrier.java397 public int await(long timeout, TimeUnit unit) in await() argument
401 return dowait(true, unit.toNanos(timeout)); in await()
DFutureTask.java169 public V get(long timeout, TimeUnit unit) in get() argument
171 if (unit == null) in get()
175 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING) in get()
DDelayQueue.java143 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() argument
219 public E poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() argument
220 long nanos = unit.toNanos(timeout); in poll()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLock.java292 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; in tryLock() argument
DCondition.java344 boolean await(long time, TimeUnit unit) throws InterruptedException; in await() argument
DReentrantLock.java411 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() argument
413 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
DReentrantReadWriteLock.java841 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() argument
843 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryLock()
1085 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() argument
1087 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