Home
last modified time | relevance | path

Searched refs:interrupt (Results 1 – 25 of 94) sorted by relevance

1234

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java85 parent.interrupt(); in run()
342 firstOne.interrupt(); in test_enumerate$Ljava_lang_Thread()
345 secondOne.interrupt(); in test_enumerate$Ljava_lang_Thread()
471 parent.interrupt(); in test_interrupt()
516 Thread.currentThread().interrupt(); in test_interrupted()
585 spinner.interrupt(); in test_isInterrupted()
590 spinner.interrupt(); in test_isInterrupted()
647 st.interrupt(); in test_joinJ()
673 main.interrupt(); in test_joinJ()
687 killer.interrupt(); in test_joinJ()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DPollArrayWrapper.java119 public void interrupt() { in interrupt() method in PollArrayWrapper
120 interrupt(interruptFD); in interrupt()
125 private static native void interrupt(int fd); in interrupt() method in PollArrayWrapper
DInterruptible.java34 public void interrupt(Thread t); in interrupt() method
/libcore/ojluni/src/main/java/java/io/
DPrintStream.java478 Thread.currentThread().interrupt(); in write()
509 Thread.currentThread().interrupt(); in write()
539 Thread.currentThread().interrupt(); in write()
560 Thread.currentThread().interrupt(); in write()
581 Thread.currentThread().interrupt(); in newLine()
1002 Thread.currentThread().interrupt(); in format()
1059 Thread.currentThread().interrupt(); in format()
DPrintWriter.java409 Thread.currentThread().interrupt(); in write()
430 Thread.currentThread().interrupt(); in write()
460 Thread.currentThread().interrupt(); in write()
486 Thread.currentThread().interrupt(); in newLine()
910 Thread.currentThread().interrupt(); in format()
969 Thread.currentThread().interrupt(); in format()
/libcore/libart/src/main/java/java/lang/
DDaemons.java153 public synchronized void interrupt() { in interrupt() method in Daemons.Daemon
154 interrupt(thread); in interrupt()
157 public synchronized void interrupt(Thread thread) { in interrupt() method in Daemons.Daemon
161 thread.interrupt(); in interrupt()
178 interrupt(threadToStop); in stop()
516 public synchronized void interrupt(Thread thread) { in interrupt() method in Daemons.HeapTaskDaemon
/libcore/jsr166-tests/src/test/java/jsr166/
DCountDownLatchTest.java119 Thread.currentThread().interrupt(); in testAwait_Interruptible()
138 t.interrupt(); in testAwait_Interruptible()
150 Thread.currentThread().interrupt(); in testTimedAwait_Interruptible()
169 t.interrupt(); in testTimedAwait_Interruptible()
DLinkedBlockingDequeTest.java585 Thread.currentThread().interrupt(); in testBlockingPut()
602 t.interrupt(); in testBlockingPut()
637 t.interrupt(); in testPutWithTake()
664 t.interrupt(); in testTimedOffer()
690 Thread.currentThread().interrupt(); in testBlockingTake()
707 t.interrupt(); in testBlockingTake()
773 t.interrupt(); in testInterruptedTimedPoll()
815 Thread.currentThread().interrupt(); in testBlockingPutFirst()
832 t.interrupt(); in testBlockingPutFirst()
867 t.interrupt(); in testPutFirstWithTake()
[all …]
DBlockingQueueTest.java229 Thread.currentThread().interrupt(); in testTimedPollWithOffer()
253 t.interrupt(); in testTimedPollWithOffer()
275 t.interrupt();
287 Thread.currentThread().interrupt();
316 t.interrupt();
328 Thread.currentThread().interrupt();
DPhaserTest.java466 Thread.currentThread().interrupt();
483 Thread.currentThread().interrupt();
501 t1.interrupt();
502 t2.interrupt();
520 Thread.currentThread().interrupt();
534 Thread.currentThread().interrupt();
559 t.interrupt();
563 Thread.currentThread().interrupt();
578 Thread.currentThread().interrupt();
588 Thread.currentThread().interrupt();
[all …]
DTimeUnitTest.java343 Thread.currentThread().interrupt(); in testTimedWait_Interruptible()
364 t.interrupt(); in testTimedWait_Interruptible()
380 Thread.currentThread().interrupt(); in testTimedJoin_Interruptible()
397 t.interrupt(); in testTimedJoin_Interruptible()
399 s.interrupt(); in testTimedJoin_Interruptible()
411 Thread.currentThread().interrupt(); in testTimedSleep_Interruptible()
428 t.interrupt(); in testTimedSleep_Interruptible()
DExchangerTest.java85 t.interrupt(); in testExchange_InterruptedException()
102 t.interrupt(); in testTimedExchange_InterruptedException()
151 t1.interrupt(); in testReplacementAfterExchange()
DSemaphoreTest.java239 Thread.currentThread().interrupt(); in testInterruptible()
252 Thread.currentThread().interrupt(); in testInterruptible()
268 t.interrupt(); in testInterruptible()
271 t.interrupt(); in testInterruptible()
291 Thread.currentThread().interrupt(); in testUninterruptible()
307 t2.interrupt(); in testUninterruptible()
333 t1.interrupt(); in testHasQueuedThreads()
356 t1.interrupt(); in testGetQueueLength()
381 t1.interrupt(); in testGetQueuedThreads()
DRecursiveActionTest.java71 Thread.currentThread().interrupt(); in checkNotDone()
78 Thread.currentThread().interrupt(); in checkNotDone()
269 myself.interrupt(); in testJoinIgnoresInterrupts()
279 myself.interrupt(); in testJoinIgnoresInterrupts()
292 myself.interrupt(); in testJoinIgnoresInterrupts()
305 myself.interrupt(); in testJoinIgnoresInterrupts()
315 myself.interrupt(); in testJoinIgnoresInterrupts()
324 myself.interrupt(); in testJoinIgnoresInterrupts()
371 myself.interrupt(); in testJoinIgnoresInterruptsOutsideForkJoinPool()
379 myself.interrupt(); in testJoinIgnoresInterruptsOutsideForkJoinPool()
[all …]
DCyclicBarrierTest.java146 t1.interrupt(); in testAwait1_Interrupted_BrokenBarrier()
172 t1.interrupt(); in testAwait2_Interrupted_BrokenBarrier()
323 t.interrupt(); in testReset_Leakage()
326 t.interrupt(); in testReset_Leakage()
383 t1.interrupt(); in testResetAfterInterrupt()
DAbstractQueuedSynchronizerTest.java319 t1.interrupt(); in testHasQueuedThreads()
356 t1.interrupt(); in testIsQueued()
379 t1.interrupt(); in testGetFirstQueuedThread()
401 t1.interrupt(); in testHasContended()
429 t1.interrupt(); in testGetQueuedThreads()
457 t1.interrupt(); in testGetExclusiveQueuedThreads()
479 t1.interrupt(); in testGetSharedQueuedThreads_Exclusive()
505 t1.interrupt(); in testGetSharedQueuedThreads_Shared()
525 t.interrupt(); in testTryAcquireNanos_Interruptible()
604 t.interrupt(); in testAcquireInterruptibly()
[all …]
DAbstractQueuedLongSynchronizerTest.java316 t1.interrupt(); in testHasQueuedThreads()
353 t1.interrupt(); in testIsQueued()
376 t1.interrupt(); in testGetFirstQueuedThread()
398 t1.interrupt(); in testHasContended()
426 t1.interrupt(); in testGetQueuedThreads()
454 t1.interrupt(); in testGetExclusiveQueuedThreads()
476 t1.interrupt(); in testGetSharedQueuedThreads_Exclusive()
502 t1.interrupt(); in testGetSharedQueuedThreads_Shared()
522 t.interrupt(); in testTryAcquireNanos_Interruptible()
601 t.interrupt(); in testAcquireInterruptibly()
[all …]
DSynchronousQueueTest.java132 Thread.currentThread().interrupt(); in testBlockingPut()
149 t.interrupt(); in testBlockingPut()
183 t.interrupt(); in testPutWithTake()
210 t.interrupt(); in testTimedOffer()
268 Thread.currentThread().interrupt(); in testTimedPollWithOffer()
293 t.interrupt(); in testTimedPollWithOffer()
DLockSupportTest.java201 t.interrupt(); in testParkBeforeInterrupt()
240 t.interrupt(); in testParkAfterInterrupt()
316 t.interrupt(); in testGetBlocker()
/libcore/luni/src/test/java/libcore/java/lang/
DOldThreadTest.java212 st.interrupt(); in test_sleepJ()
259 st.interrupt(); in test_sleepJI()
368 th.interrupt(); in test_getState()
466 st.interrupt(); in tearDown()
471 spinner.interrupt(); in tearDown()
476 ct.interrupt(); in tearDown()
DOldThreadGroupTest.java144 thread.interrupt(); in test_enumerateLThreadArrayLZtest_enumerateLThreadArrayLZ()
220 thr.interrupt(); in test_enumerateLThreadGroupArrayLZ()
257 t1.interrupt(); in test_interrupt()
338 thread.interrupt(); in tearDown()
DThreadTest.java93 Thread.currentThread().interrupt(); in testThreadInterrupted()
131 t1.interrupt(); in testThreadWakeup()
132 t2.interrupt(); in testThreadWakeup()
423 watchdog.interrupt(); in testParkUntilWithUnderflowValue()
/libcore/ojluni/src/main/java/java/nio/channels/spi/
DAbstractInterruptibleChannel.java159 public void interrupt(Thread target) { in begin()
174 interruptor.interrupt(me); in begin()
DAbstractSelector.java212 public void interrupt(Thread ignore) { in begin()
219 interruptor.interrupt(me); in begin()
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyFactory2Test.java119 keepalive.interrupt(); in test_generatePrivateLjava_security_spec_KeySpec()
149 keepalive.interrupt(); in test_generatePublicLjava_security_spec_KeySpec()
241 keepalive.interrupt(); in test_getKeySpecLjava_security_KeyLjava_lang_Class()
298 keepalive.interrupt(); in test_translateKeyLjava_security_Key()

1234