Searched defs:timeout (Results 1 - 25 of 53) sorted by relevance

123

/dalvik/libcore/luni/src/main/java/java/lang/ref/
H A DReferenceQueue.java85 * process. Waits for a reference to become available or the given timeout
88 * @param timeout
93 * becomes available within the timeout period
99 public synchronized Reference<? extends T> remove(long timeout) throws IllegalArgumentException, argument
101 if (timeout < 0) {
105 if (timeout == 0L) {
111 long wakeupTime = now + timeout + 1L;
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DAbstractExecutorService.java148 long timeout, TimeUnit unit)
150 return doInvokeAny(tasks, true, unit.toNanos(timeout));
184 long timeout, TimeUnit unit)
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 DCompletionService.java87 * @param timeout how long to wait before giving up, in units of
90 * <tt>timeout</tt> parameter
96 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
H A DFuture.java130 * @param timeout the maximum time to wait
131 * @param unit the time unit of the timeout argument
140 V get(long timeout, TimeUnit unit) argument
H A DBlockingQueue.java211 * @param timeout how long to wait before giving up, in units of
214 * <tt>timeout</tt> parameter
224 boolean offer(E e, long timeout, TimeUnit unit) argument
240 * @param timeout how long to wait before giving up, in units of
243 * <tt>timeout</tt> parameter
248 E poll(long timeout, TimeUnit unit) argument
H A DCountDownLatch.java244 * @param timeout the maximum time to wait
245 * @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 DExecutorCompletionService.java165 public Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException { argument
166 return completionQueue.poll(timeout, unit);
H A DExecutorService.java176 * request, or the timeout occurs, or the current thread is
179 * @param timeout the maximum time to wait
180 * @param unit the time unit of the timeout argument
182 * <tt>false</tt> if the timeout elapsed before termination
185 boolean awaitTermination(long timeout, TimeUnit unit) argument
267 * when all complete or the timeout expires, whichever happens first.
277 * @param timeout the maximum time to wait
278 * @param unit the time unit of the timeout argument
292 long timeout, TimeUnit unit)
319 * an exception), if any do before the given timeout elapse
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 DCyclicBarrier.java85 * point prematurely because of interruption, failure, or timeout, all
341 * <li>The specified timeout elapses; or
380 * @param timeout the time to wait for the barrier
381 * @param unit the time unit of the timeout parameter
387 * @throws TimeoutException if the specified timeout elapses
394 public int await(long timeout, TimeUnit unit) argument
398 return dowait(true, unit.toNanos(timeout));
405 * barrier due to interruption or timeout since
H A DDelayQueue.java136 * @param timeout 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.java192 * @param timeout 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 DSemaphore.java374 * @param timeout the maximum time to wait for a permit
375 * @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));
546 * @param timeout the maximum time to wait for the permits
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 DTimeUnit.java23 * the following code will timeout in 50 milliseconds if the {@link
29 * while this code will timeout in 50 seconds:
35 * Note however, that there is no guarantee that a particular timeout
234 * This is a convenience method that converts timeout arguments
241 * <pre> public synchronized Object poll(long timeout, TimeUnit unit) throws InterruptedException {
243 * unit.timedWait(this, timeout);
249 * @param timeout the maximum time to wait. If less than
254 public void timedWait(Object obj, long timeout) argument
256 if (timeout > 0) {
257 long ms = toMillis(timeout);
273 timedJoin(Thread thread, long timeout) argument
291 sleep(long timeout) argument
[all...]
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);
H A DExchanger.java233 * interruption, timeout, or elapsed spin-waits. This value is
518 * only upon return from timeout while waiting in slot 0. When a
634 * @param timeout the maximum time to wait
635 * @param unit the time unit of the <tt>timeout</tt> argument
642 public V exchange(V x, long timeout, TimeUnit unit) argument
646 true, unit.toNanos(timeout));
H A DExecutors.java143 * properties but different details (for example, timeout parameters)
604 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);
621 invokeAll(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
630 invokeAny(Collection<Callable<T>> tasks, long timeout, TimeUnit unit) argument
H A DFutureTask.java88 public V get(long timeout, TimeUnit unit) argument
90 return sync.innerGet(unit.toNanos(timeout));
H A DLinkedBlockingQueue.java280 public boolean offer(E e, long timeout, TimeUnit unit) argument
284 long nanos = unit.toNanos(timeout);
377 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
380 long nanos = unit.toNanos(timeout);
/dalvik/libcore/nio/src/main/java/java/nio/channels/
H A DSelector.java115 * the calling thread is interrupted or the specified {@code timeout}
118 * @param timeout
119 * the non-negative timeout in millisecond; 0 will block forever
125 * if the given timeout argument is less than zero.
129 public abstract int select(long timeout) throws IOException; argument
/dalvik/libcore/luni/src/test/java/com/google/coretests/
H A DCoreTestResult.java41 * The timeout the user specified for this test run.
82 * Creates a new CoreTestResult with the given flags and timeout.
84 public CoreTestResult(int flags, int timeout) { argument
88 fTimeout = timeout;
143 CoreTestTimeout timeout = new CoreTestTimeout("Test timed out");
144 timeout.setStackTrace(trace);
145 addError(test, timeout);
/dalvik/libcore/luni/src/test/java/tests/api/java/net/
H A DSocketImplTest.java236 protected void connect(SocketAddress remoteAddr, int timeout) throws IOException { argument
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/
H A DAbstractSessionContext.java35 volatile int timeout; field in class:AbstractSessionContext
47 * @param timeout for cache entries
50 int timeout) {
53 this.timeout = timeout;
78 return timeout;
49 AbstractSessionContext(SSLParameters parameters, int maximumSize, int timeout) argument
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/locks/
H A DReentrantLock.java357 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
404 * @param timeout the time to wait for the lock
405 * @param unit the time unit of the timeout argument
414 public boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException { argument
415 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/
H A DAbstractExecutorServiceTest.java35 public boolean awaitTermination(long timeout, TimeUnit unit) { return isShutdown(); } argument
781 * timed invokeAll cancels tasks not completed by timeout
/dalvik/libcore/dalvik/src/main/native/
H A Ddalvik_system_TouchDex.cpp160 int cc, count, dexCount, timeout; local
165 * Adjust the timeout based on how many DEX files we have to
173 * sort of spoils the timeout calculation. We establish a minimum
174 * timeout for single apps.
176 * The timeout calculation doesn't work at all right when a
178 * this point it's probably safe to just remove the timeout.
180 * The timeout is in 1/10ths of a second.
188 timeout = timeoutMult * dexCount;
189 if (timeout < kMinTimeout)
190 timeout
[all...]

Completed in 2040 milliseconds

123