Home
last modified time | relevance | path

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

12

/libcore/luni/src/main/java/java/util/concurrent/
DScheduledExecutorService.java82 long delay, TimeUnit unit); in schedule() argument
98 long delay, TimeUnit unit); in schedule() argument
142 TimeUnit unit); in scheduleAtFixedRate() argument
182 TimeUnit unit); in scheduleWithFixedDelay() argument
DBlockingDeque.java295 boolean offerFirst(E e, long timeout, TimeUnit unit) in offerFirst() argument
317 boolean offerLast(E e, long timeout, TimeUnit unit) in offerLast() argument
351 E pollFirst(long timeout, TimeUnit unit) in pollFirst() argument
367 E pollLast(long timeout, TimeUnit unit) in pollLast() argument
484 boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
535 E poll(long timeout, TimeUnit unit) in poll() argument
DExecutors.java596 public boolean awaitTermination(long timeout, TimeUnit unit)
598 return e.awaitTermination(timeout, unit);
614 long timeout, TimeUnit unit)
616 return e.invokeAll(tasks, timeout, unit);
623 long timeout, TimeUnit unit)
625 return e.invokeAny(tasks, timeout, unit);
651 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) {
652 return e.schedule(command, delay, unit);
654 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
655 return e.schedule(callable, delay, unit);
[all …]
DScheduledThreadPoolExecutor.java211 public long getDelay(TimeUnit unit) { in getDelay() argument
212 return unit.convert(time - System.nanoTime(), NANOSECONDS); in getDelay()
491 private long triggerTime(long delay, TimeUnit unit) { in triggerTime() argument
492 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); in triggerTime()
526 TimeUnit unit) { in schedule() argument
527 if (command == null || unit == null) in schedule()
531 triggerTime(delay, unit), in schedule()
543 TimeUnit unit) { in schedule() argument
544 if (callable == null || unit == null) in schedule()
548 triggerTime(delay, unit), in schedule()
[all …]
DExecutorService.java171 boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
280 long timeout, TimeUnit unit) in invokeAll() argument
329 long timeout, TimeUnit unit) in invokeAny() argument
DSemaphore.java384 public boolean tryAcquire(long timeout, TimeUnit unit) in tryAcquire() argument
386 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryAcquire()
560 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) in tryAcquire() argument
563 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.java1184 TimeUnit unit, in ThreadPoolExecutor() argument
1186 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1218 TimeUnit unit, in ThreadPoolExecutor() argument
1221 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1253 TimeUnit unit, in ThreadPoolExecutor() argument
1256 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue, in ThreadPoolExecutor()
1290 TimeUnit unit, in ThreadPoolExecutor() argument
1304 this.keepAliveTime = unit.toNanos(keepAliveTime); in ThreadPoolExecutor()
1443 public boolean awaitTermination(long timeout, TimeUnit unit) in awaitTermination() argument
1445 long nanos = unit.toNanos(timeout); in awaitTermination()
[all …]
DLinkedBlockingDeque.java377 public boolean offerFirst(E e, long timeout, TimeUnit unit) in offerFirst() argument
381 long nanos = unit.toNanos(timeout); in offerFirst()
400 public boolean offerLast(E e, long timeout, TimeUnit unit) in offerLast() argument
404 long nanos = unit.toNanos(timeout); in offerLast()
483 public E pollFirst(long timeout, TimeUnit unit) in pollFirst() argument
485 long nanos = unit.toNanos(timeout); in pollFirst()
501 public E pollLast(long timeout, TimeUnit unit) in pollLast() argument
503 long nanos = unit.toNanos(timeout); in pollLast()
627 public boolean offer(E e, long timeout, TimeUnit unit) in offer() argument
629 return offerLast(e, timeout, unit); in offer()
[all …]
DDelayed.java30 long getDelay(TimeUnit unit); in getDelay() argument
DAbstractExecutorService.java199 long timeout, TimeUnit unit) in invokeAny() argument
201 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
231 long timeout, TimeUnit unit) in invokeAll() argument
235 final long nanos = unit.toNanos(timeout); in invokeAll()
DFuture.java139 V get(long timeout, TimeUnit unit) in get() argument
DTransferQueue.java105 boolean tryTransfer(E e, long timeout, TimeUnit unit) in tryTransfer() argument
DExecutorCompletionService.java173 public Future<V> poll(long timeout, TimeUnit unit) in poll() argument
175 return completionQueue.poll(timeout, unit); in poll()
DCyclicBarrier.java403 public int await(long timeout, TimeUnit unit) in await() argument
407 return dowait(true, unit.toNanos(timeout)); in await()
DCompletionService.java94 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; in poll() argument
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 android.icu.text.RelativeDateTimeFormatter.RelativeUnit unit; in getRelativeTimeSpanString() local
144 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.SECONDS; in getRelativeTimeSpanString()
147 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.MINUTES; in getRelativeTimeSpanString()
153 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.HOURS; in getRelativeTimeSpanString()
156 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.DAYS; in getRelativeTimeSpanString()
197 unit = android.icu.text.RelativeDateTimeFormatter.RelativeUnit.WEEKS; in getRelativeTimeSpanString()
224 return formatter.format(count, direction, unit); in getRelativeTimeSpanString()
/libcore/ojluni/src/main/java/sun/nio/ch/
DCompletedFuture.java74 public V get(long timeout, TimeUnit unit) throws ExecutionException { in get() argument
75 if (unit == null) in get()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLock.java294 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.java417 public boolean tryLock(long timeout, TimeUnit unit) in tryLock() argument
419 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
/libcore/luni/src/test/resources/
Drecipt.dtd8 unit CDATA #IMPLIED> attribute
/libcore/luni/src/test/resources/systemid/
Drecipt.dtd8 unit CDATA #IMPLIED> attribute

12