Home
last modified time | relevance | path

Searched refs:toNanos (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/
DTimeUnit.java44 public long toNanos(long d) { return d; } in toNanos() method
51 public long convert(long d, TimeUnit u) { return u.toNanos(d); } in convert()
55 public long toNanos(long d) { return x(d, C1/C0, MAX/(C1/C0)); } in toNanos() method
66 public long toNanos(long d) { return x(d, C2/C0, MAX/(C2/C0)); } in toNanos() method
77 public long toNanos(long d) { return x(d, C3/C0, MAX/(C3/C0)); } in toNanos() method
88 public long toNanos(long d) { return x(d, C4/C0, MAX/(C4/C0)); } in toNanos() method
99 public long toNanos(long d) { return x(d, C5/C0, MAX/(C5/C0)); } in toNanos() method
110 public long toNanos(long d) { return x(d, C6/C0, MAX/(C6/C0)); } in toNanos() method
178 public long toNanos(long duration) { in toNanos() method in TimeUnit
DSemaphore.java385 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryAcquire()
559 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout)); in tryAcquire()
DCountDownLatch.java253 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in await()
DAbstractExecutorService.java196 return doInvokeAny(tasks, true, unit.toNanos(timeout)); in invokeAny()
234 long nanos = unit.toNanos(timeout); in invokeAll()
DCyclicBarrier.java398 return dowait(true, unit.toNanos(timeout)); in await()
DScheduledThreadPoolExecutor.java462 return triggerTime(unit.toNanos((delay < 0) ? 0 : delay)); in triggerTime()
539 unit.toNanos(period)); in scheduleAtFixedRate()
563 unit.toNanos(-delay)); in scheduleWithFixedDelay()
1079 long nanos = unit.toNanos(timeout); in poll()
DLinkedBlockingDeque.java378 long nanos = unit.toNanos(timeout); in offerFirst()
401 long nanos = unit.toNanos(timeout); in offerLast()
482 long nanos = unit.toNanos(timeout); in pollFirst()
500 long nanos = unit.toNanos(timeout); in pollLast()
DFutureTask.java90 return sync.innerGet(unit.toNanos(timeout)); in get()
DThreadPoolExecutor.java1247 this.keepAliveTime = unit.toNanos(keepAliveTime); in ThreadPoolExecutor()
1390 long nanos = unit.toNanos(timeout); in awaitTermination()
1621 long keepAliveTime = unit.toNanos(time); in setKeepAliveTime()
DArrayBlockingQueue.java314 long nanos = unit.toNanos(timeout); in offer()
353 long nanos = unit.toNanos(timeout); in poll()
DLinkedBlockingQueue.java346 long nanos = unit.toNanos(timeout); in offer()
430 long nanos = unit.toNanos(timeout); in poll()
DDelayQueue.java217 long nanos = unit.toNanos(timeout); in poll()
DExchanger.java648 true, unit.toNanos(timeout)); in exchange()
DSynchronousQueue.java829 if (transferer.transfer(o, true, unit.toNanos(timeout)) != null) in offer()
875 Object e = transferer.transfer(null, true, unit.toNanos(timeout)); in poll()
DPriorityBlockingQueue.java515 long nanos = unit.toNanos(timeout); in poll()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DReentrantLock.java416 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
DReentrantReadWriteLock.java844 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout)); in tryLock()
1086 return sync.tryAcquireNanos(1, unit.toNanos(timeout)); in tryLock()
DAbstractQueuedSynchronizer.java2141 long nanosTimeout = unit.toNanos(time); in await()
DAbstractQueuedLongSynchronizer.java1911 long nanosTimeout = unit.toNanos(time); in await()