/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/ |
H A D | Exchanger.java | 111 InterruptedException interrupted = null; 122 interrupted = ie; 136 if (interrupted != null) 142 if (interrupted != null) 143 throw interrupted; 159 * it is {@link Thread#interrupt interrupted}), 176 * <li>has its interrupted status set on entry to this method; or 177 * <li>is {@link Thread#interrupt interrupted} while waiting 181 * interrupted status is cleared. 185 * @throws InterruptedException if current thread was interrupted [all...] |
H A D | CyclicBarrier.java | 89 * they too were interrupted at about the same time). 154 if (Thread.interrupted()) { 263 * <li>has its interrupted status set on entry to this method; or 264 * <li>is {@link Thread#interrupt interrupted} while waiting 267 * interrupted status is cleared. 274 * <p>If any thread is {@link Thread#interrupt interrupted} while waiting, 291 * @throws InterruptedException if the current thread was interrupted 294 * interrupted while the current thread was waiting, or the barrier was 325 * <li>has its interrupted status set on entry to this method; or 326 * <li>is {@link Thread#interrupt interrupted} whil [all...] |
H A D | SynchronousQueue.java | 303 * @throws InterruptedException if interrupted while waiting. 313 if (Thread.interrupted()) throw new InterruptedException(); 345 * @throws InterruptedException if interrupted while waiting. 355 if (Thread.interrupted()) throw new InterruptedException(); 378 * @throws InterruptedException if interrupted while waiting. 387 if (Thread.interrupted()) throw new InterruptedException(); 420 * @throws InterruptedException if interrupted while waiting. 430 if (Thread.interrupted()) throw new InterruptedException();
|
H A D | ThreadPoolExecutor.java | 458 * @throws InterruptedException if interrupted while waiting for task 644 Thread.interrupted(); // clear interrupt status on entry
|
/dalvik/libcore/nio/src/main/java/java/nio/channels/spi/ |
H A D | AbstractInterruptibleChannel.java | 68 volatile boolean interrupted = false; field in class:AbstractInterruptibleChannel 136 interrupted = true; 174 if (interrupted) { 175 interrupted = false;
|
/dalvik/vm/native/ |
H A D | java_lang_VMThread.c | 118 * static boolean interrupted() 120 * Determine if the current thread has been interrupted. Clears the flag. 126 bool interrupted; local 130 interrupted = self->interrupted; 131 self->interrupted = false; 132 RETURN_BOOLEAN(interrupted); 138 * Determine if the specified thread has been interrupted. Does not clear 146 bool interrupted; local 151 interrupted [all...] |
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/locks/ |
H A D | AbstractQueuedSynchronizer.java | 676 * Convenience method to park and then check if interrupted 677 * @return true if interrupted 681 return Thread.interrupted(); 698 * @return true if interrupted while waiting 702 boolean interrupted = false; 708 return interrupted; 712 interrupted = true; 743 // Arrive here only if interrupted 772 if (Thread.interrupted()) 783 // Arrive here only if interrupted [all...] |
/dalvik/libcore/luni/src/main/java/java/lang/ |
H A D | VMThread.java | 34 static native boolean interrupted(); method in class:VMThread
|
/dalvik/libcore/concurrent/src/test/java/tests/api/java/util/concurrent/ |
H A D | LockSupportTest.java | 80 threadAssertTrue(Thread.interrupted()); 98 * park returns if interrupted before park
|
/dalvik/tests/050-sync-test/src/ |
H A D | Main.java | 155 // Expecting this; interrupted should be false. 157 " interrupted, flag=" + Thread.interrupted());
|
/dalvik/libcore/luni/src/test/java/tests/api/java/net/ |
H A D | ServerSocketTest.java | 52 boolean interrupted; field in class:ServerSocketTest 340 interrupted = false; 348 interrupted = true; 368 if (interrupted) { 369 fail("accept interrupted"); 376 interrupted = false; 383 interrupted = true; 385 assertTrue("accept not interrupted", interrupted);
|
H A D | DatagramSocketTest.java | 65 boolean interrupted; field in class:DatagramSocketTest 1107 interrupted = false; 1115 interrupted = true; 1135 if (interrupted) { 1143 interrupted = false; 1154 interrupted = true; 1174 if (interrupted) { 1175 fail("receive2 was interrupted"); 1182 interrupted = false; 1189 interrupted [all...] |
H A D | SocketTest.java | 60 boolean interrupted = false; field in class:SocketTest 511 interrupted = false; 525 interrupted = true; 555 if (interrupted) { 556 fail("read interrupted"); 2067 // now validate that we get a interrupted exception if we try to connect 2074 fail("No interrupted exception when connecting to address nobody listening on with short timeout 200: "); 2082 // now validate that we get a interrupted exception if we try to connect 2089 fail("No interrupted exception when connecting to address nobody listening on with short timeout 40: ");
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
H A D | ThreadTest.java | 736 boolean interrupted = false; 745 interrupted = true; 747 assertTrue("Failed to Interrupt thread1", interrupted); 749 interrupted = false; 760 interrupted = true; 762 assertTrue("Failed to Interrupt thread2", interrupted); 787 * @tests java.lang.Thread#interrupted() 792 method = "interrupted", 796 assertFalse("Interrupted returned true for non-interrupted thread", Thread 797 .interrupted()); [all...] |
H A D | ThreadGroupTest.java | 397 fail("Should not be interrupted"); 417 fail("Should not be interrupted"); 628 fail("Should not be interrupted"); 650 fail("Should not be interrupted"); 671 fail("Should not be interrupted"); 833 private static boolean interrupted = false; field in class:ThreadGroupTest 853 assertFalse("Incorrect state of thread", interrupted); 855 assertFalse("Incorrect state of thread", interrupted); 861 assertTrue("Incorrect state of thread", interrupted); 1449 fail("Should not have been interrupted"); [all...] |
/dalvik/vm/ |
H A D | Thread.h | 166 /* set when we confirm that the thread must be interrupted from a wait */ 168 /* thread "interrupted" status; stays raised until queried or thrown */ 169 bool interrupted; member in struct:Thread 379 * is interrupted.
|
H A D | Sync.c | 37 * will actually exit via the "interrupted" path. This can be detected as 44 * two others. Doesn't matter if the interrupted thread would have been 137 * threads may be getting interrupted or notified at any given time. 146 int interrupting; /* #of threads being interrupted */ 448 * Otherwise, we set the "interrupted" flag. 572 * Handle the case where the thread was interrupted before we called 575 if (self->interrupted) { 612 assert(self->interrupted); 615 LOGD("threadid=%d wakeup: interrupted\n", self->threadId); 632 * result of another thread being interrupted [all...] |
/dalvik/libcore/luni-kernel/src/main/java/java/lang/ |
H A D | Thread.java | 876 * @see Thread#interrupted 907 public static boolean interrupted() { method in class:Thread 908 return VMThread.interrupted(); 951 * @see Thread#interrupted
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
H A D | OpenSSLSocketImpl.java | 986 // Reassert interrupted status. 1015 * Clear interrupted status, so that the Logger call 1016 * immediately below won't get spuriously interrupted. 1018 Thread.interrupted();
|