Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java83 long delay, TimeUnit unit); in schedule() argument
98 long delay, TimeUnit unit); in schedule() argument
128 TimeUnit unit); in scheduleAtFixedRate() argument
155 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
476 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
527 E poll(long timeout, TimeUnit unit) in poll() argument
DExecutors.java607 public boolean awaitTermination(long timeout, TimeUnit unit)
609 return e.awaitTermination(timeout, unit);
625 long timeout, TimeUnit unit)
627 return e.invokeAll(tasks, timeout, unit);
634 long timeout, TimeUnit unit)
636 return e.invokeAny(tasks, timeout, unit);
666 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
667 return e.schedule(command, delay, unit);
669 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
670 return e.schedule(callable, delay, unit);
[all …]
DExecutorService.java184 boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
291 long timeout, TimeUnit unit) in invokeAll() argument
338 long timeout, TimeUnit unit) in invokeAny() argument
DScheduledThreadPoolExecutor.java208 public long getDelay(TimeUnit unit) { in getDelay() argument
209 return unit.convert(time - now(), TimeUnit.NANOSECONDS); in getDelay()
460 private long triggerTime(long delay, TimeUnit unit) { in triggerTime() argument
461 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); in triggerTime()
495 TimeUnit unit) { in schedule() argument
496 if (command == null || unit == null) in schedule()
500 triggerTime(delay, unit))); in schedule()
511 TimeUnit unit) { in schedule() argument
512 if (callable == null || unit == null) in schedule()
516 triggerTime(delay, unit))); in schedule()
[all …]
DBlockingQueue.java224 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
248 E poll(long timeout, TimeUnit unit) in poll() argument
DSemaphore.java379 public boolean tryAcquire(long timeout, TimeUnit unit) in tryAcquire() argument
381 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryAcquire()
552 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) in tryAcquire() argument
555 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout)); in tryAcquire()
DCountDownLatch.java251 public boolean await(long timeout, TimeUnit unit) in await() argument
253 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in await()
DThreadPoolExecutor.java1139 TimeUnit unit, in ThreadPoolExecutor() argument
1141 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1173 TimeUnit unit, in ThreadPoolExecutor() argument
1176 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1208 TimeUnit unit, in ThreadPoolExecutor() argument
1211 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1245 TimeUnit unit, in ThreadPoolExecutor() argument
1259 this.keepAliveTime = unit.toNanos(keepAliveTime); in ThreadPoolExecutor()
1400 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
1402 long nanos = unit.toNanos(timeout); in awaitTermination()
[all …]
DAbstractExecutorService.java200 long timeout, TimeUnit unit) in invokeAny() argument
202 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
236 long timeout, TimeUnit unit) in invokeAll() argument
238 if (tasks == null || unit == null) in invokeAll()
240 long nanos = unit.toNanos(timeout); in invokeAll()
DLinkedBlockingDeque.java372 public boolean offerFirst(E e, long timeout, TimeUnit unit) in offerFirst() argument
375 long nanos = unit.toNanos(timeout); in offerFirst()
394 public boolean offerLast(E e, long timeout, TimeUnit unit) in offerLast() argument
397 long nanos = unit.toNanos(timeout); in offerLast()
476 public E pollFirst(long timeout, TimeUnit unit) in pollFirst() argument
478 long nanos = unit.toNanos(timeout); in pollFirst()
494 public E pollLast(long timeout, TimeUnit unit) in pollLast() argument
496 long nanos = unit.toNanos(timeout); in pollLast()
621 public boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
623 return offerLast(e, timeout, unit); in offer()
[all …]
DDelayed.java30 long getDelay(TimeUnit unit); in getDelay() argument
DFuture.java140 V get(long timeout, TimeUnit unit) in get() argument
DExecutorCompletionService.java171 public Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() argument
172 return completionQueue.poll(timeout, unit); in poll()
DCompletionService.java96 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; in poll() argument
DCyclicBarrier.java396 public int await(long timeout, TimeUnit unit) in await() argument
400 return dowait(true, unit.toNanos(timeout)); in await()
DPriorityBlockingQueue.java208 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() argument
241 public E poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() argument
242 long nanos = unit.toNanos(timeout); in poll()
DFutureTask.java89 public V get(long timeout, TimeUnit unit) in get() argument
91 return sync.innerGet(unit.toNanos(timeout)); in get()
DDelayQueue.java148 public boolean offer(E e, long timeout, TimeUnit unit) { in offer() argument
223 public E poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() argument
224 long nanos = unit.toNanos(timeout); in poll()
DArrayBlockingQueue.java276 public boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
280 long nanos = unit.toNanos(timeout); in offer()
334 public E poll(long timeout, TimeUnit unit) throws InterruptedException { in poll() argument
335 long nanos = unit.toNanos(timeout); in poll()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLock.java291 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; in tryLock() argument
DCondition.java343 boolean await(long time, TimeUnit unit) throws InterruptedException; in await() argument
DReentrantLock.java414 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { in tryLock() argument
415 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