Searched refs:unit (Results 1 - 25 of 38) sorted by relevance

12

/dalvik/dx/tests/029-unit-Bits/
H A Drun17 dx --junit com.android.dx.util._tests._Bits > unit-out.txt
22 cat unit-out.txt
/dalvik/dx/tests/033-unit-IntList/
H A Drun17 dx --junit com.android.dx.util._tests._IntList > unit-out.txt
22 cat unit-out.txt
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DDelayed.java35 * given time unit.
37 * @param unit the time unit
41 long getDelay(TimeUnit unit); argument
H A DScheduledExecutorService.java76 * @param unit the time unit of the delay parameter
85 long delay, TimeUnit unit);
93 * @param unit the time unit of the delay parameter
100 long delay, TimeUnit unit);
118 * @param unit the time unit of the initialDelay and period parameters
130 TimeUnit unit);
145 * @param unit th
84 schedule(Runnable command, long delay, TimeUnit unit) argument
99 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
127 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
154 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DBlockingQueue.java45 * <td>{@link #offer offer(e, time, unit)}</td>
52 * <td>{@link #poll(long, TimeUnit) poll(time, unit)}</td>
212 * <tt>unit</tt>
213 * @param unit a <tt>TimeUnit</tt> determining how to interpret the
224 boolean offer(E e, long timeout, TimeUnit unit) argument
241 * <tt>unit</tt>
242 * @param unit a <tt>TimeUnit</tt> determining how to interpret the
248 E poll(long timeout, TimeUnit unit) argument
H A DCompletionService.java88 * <tt>unit</tt>
89 * @param unit a <tt>TimeUnit</tt> determining how to interpret the
96 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
H A DFuture.java131 * @param unit the time unit of the timeout argument
140 V get(long timeout, TimeUnit unit) argument
H A DCountDownLatch.java245 * @param unit the time unit of the {@code timeout} argument
251 public boolean await(long timeout, TimeUnit unit) argument
253 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
H A DExecutorService.java180 * @param unit the time unit of the timeout argument
185 boolean awaitTermination(long timeout, TimeUnit unit) argument
278 * @param unit the time unit of the timeout argument
287 * unit are <tt>null</tt>
292 long timeout, TimeUnit unit)
327 * @param unit the time unit of the timeout argument
331 * unit ar
291 invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
338 invokeAny(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
[all...]
H A DExecutors.java604 public boolean awaitTermination(long timeout, TimeUnit unit) argument
606 return e.awaitTermination(timeout, unit);
622 long timeout, TimeUnit unit)
624 return e.invokeAll(tasks, timeout, unit);
631 long timeout, TimeUnit unit)
633 return e.invokeAny(tasks, timeout, unit);
659 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
660 return e.schedule(command, delay, unit);
662 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
663 return e.schedule(callable, delay, unit);
621 invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
630 invokeAny(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
665 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
668 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DSemaphore.java375 * @param unit the time unit of the {@code timeout} argument
380 public boolean tryAcquire(long timeout, TimeUnit unit) argument
382 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
547 * @param unit the time unit of the {@code timeout} argument
553 public boolean tryAcquire(int permits, long timeout, TimeUnit unit) argument
556 return sync.tryAcquireSharedNanos(permits, unit.toNanos(timeout));
H A DScheduledThreadPoolExecutor.java169 public long getDelay(TimeUnit unit) { argument
171 return d<=0? 0 : unit.convert(d, TimeUnit.NANOSECONDS);
390 private static long nextTriggerTime(long delay, TimeUnit unit) { argument
395 else if ((triggerTime = now + unit.toNanos(delay)) < 0)
407 TimeUnit unit) {
408 if (command == null || unit == null)
410 long triggerTime = nextTriggerTime(delay, unit);
423 TimeUnit unit) {
424 if (callable == null || unit == null)
426 long triggerTime = nextTriggerTime(delay, unit);
405 schedule(Runnable command, long delay, TimeUnit unit) argument
421 schedule(Callable<V> callable, long delay, TimeUnit unit) argument
438 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
463 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
895 offer(Runnable e, long timeout, TimeUnit unit) argument
962 poll(long timeout, TimeUnit unit) argument
[all...]
H A DExecutorCompletionService.java165 public Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException { argument
166 return completionQueue.poll(timeout, unit);
H A DThreadPoolExecutor.java1105 * @param unit the time unit for the {@code keepAliveTime} argument
1119 TimeUnit unit,
1121 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
1136 * @param unit the time unit for the {@code keepAliveTime} argument
1153 TimeUnit unit,
1156 this(corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue,
1171 * @param unit the time unit fo
1116 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue) argument
1150 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory) argument
1185 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, RejectedExecutionHandler handler) argument
1222 ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime, TimeUnit unit, BlockingQueue<Runnable> workQueue, ThreadFactory threadFactory, RejectedExecutionHandler handler) argument
1380 awaitTermination(long timeout, TimeUnit unit) argument
1564 setKeepAliveTime(long time, TimeUnit unit) argument
1583 getKeepAliveTime(TimeUnit unit) argument
[all...]
H A DAbstractExecutorService.java148 long timeout, TimeUnit unit)
150 return doInvokeAny(tasks, true, unit.toNanos(timeout));
184 long timeout, TimeUnit unit)
186 if (tasks == null || unit == null)
188 long nanos = unit.toNanos(timeout);
147 invokeAny(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
183 invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
H A DCyclicBarrier.java381 * @param unit the time unit of the timeout parameter
394 public int await(long timeout, TimeUnit unit) argument
398 return dowait(true, unit.toNanos(timeout));
H A DFutureTask.java88 public V get(long timeout, TimeUnit unit) argument
90 return sync.innerGet(unit.toNanos(timeout));
H A DDelayQueue.java137 * @param unit This parameter is ignored as the method never blocks
141 public boolean offer(E e, long timeout, TimeUnit unit) { argument
216 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
217 long nanos = unit.toNanos(timeout);
H A DPriorityBlockingQueue.java193 * @param unit This parameter is ignored as the method never blocks
200 public boolean offer(E e, long timeout, TimeUnit unit) { argument
233 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
234 long nanos = unit.toNanos(timeout);
H A DArrayBlockingQueue.java270 public boolean offer(E e, long timeout, TimeUnit unit) argument
274 long nanos = unit.toNanos(timeout);
328 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
329 long nanos = unit.toNanos(timeout);
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/locks/
H A DCondition.java283 * synchronized boolean aMethod(long timeout, TimeUnit unit) {
284 * long nanosTimeout = unit.toNanos(timeout);
333 * awaitNanos(unit.toNanos(time)) &gt; 0
336 * @param unit the time unit of the {@code time} argument
342 boolean await(long time, TimeUnit unit) throws InterruptedException; argument
H A DLock.java283 * @param unit the time unit of the {@code time} argument
291 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; argument
H A DReentrantLock.java357 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
405 * @param unit the time unit of the timeout argument
411 * @throws NullPointerException if the time unit is null
414 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { argument
415 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
/dalvik/vm/mterp/x86-atom/
H A DOP_PACKED_SWITCH.S44 call $func # call code-unit branch offset
/dalvik/vm/mterp/armv5te/
H A DOP_PACKED_SWITCH.S19 bl $func @ r0<- code-unit branch offset

Completed in 290 milliseconds

12