Home
last modified time | relevance | path

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

123456

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DThreadTest.java85 parent.interrupt(); in run()
343 firstOne.interrupt(); in test_enumerate$Ljava_lang_Thread()
346 secondOne.interrupt(); in test_enumerate$Ljava_lang_Thread()
472 parent.interrupt(); in test_interrupt()
517 Thread.currentThread().interrupt(); in test_interrupted()
586 spinner.interrupt(); in test_isInterrupted()
591 spinner.interrupt(); in test_isInterrupted()
648 st.interrupt(); in test_joinJ()
674 main.interrupt(); in test_joinJ()
688 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.java555 Thread.currentThread().interrupt(); in write()
586 Thread.currentThread().interrupt(); in write()
616 Thread.currentThread().interrupt(); in write()
637 Thread.currentThread().interrupt(); in write()
658 Thread.currentThread().interrupt(); in newLine()
1084 Thread.currentThread().interrupt(); in format()
1141 Thread.currentThread().interrupt(); in format()
DPrintWriter.java485 Thread.currentThread().interrupt(); in write()
511 Thread.currentThread().interrupt(); in write()
546 Thread.currentThread().interrupt(); in write()
572 Thread.currentThread().interrupt(); in newLine()
997 Thread.currentThread().interrupt(); in format()
1056 Thread.currentThread().interrupt(); in format()
/libcore/jsr166-tests/src/test/java/jsr166/
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 …]
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()
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 …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DLinkedBlockingDequeTest.java619 Thread.currentThread().interrupt(); in testBlockingPut()
636 t.interrupt(); in testBlockingPut()
671 t.interrupt(); in testPutWithTake()
698 t.interrupt(); in testTimedOffer()
724 Thread.currentThread().interrupt(); in testBlockingTake()
741 t.interrupt(); in testBlockingTake()
807 t.interrupt(); in testInterruptedTimedPoll()
849 Thread.currentThread().interrupt(); in testBlockingPutFirst()
866 t.interrupt(); in testBlockingPutFirst()
901 t.interrupt(); in testPutFirstWithTake()
[all …]
DCountDownLatchTest.java142 Thread.currentThread().interrupt(); in testAwait_Interruptible()
161 t.interrupt(); in testAwait_Interruptible()
173 Thread.currentThread().interrupt(); in testTimedAwait_Interruptible()
192 t.interrupt(); in testTimedAwait_Interruptible()
DBlockingQueueTest.java253 Thread.currentThread().interrupt(); in testTimedPollWithOffer()
277 t.interrupt(); in testTimedPollWithOffer()
299 t.interrupt();
311 Thread.currentThread().interrupt();
340 t.interrupt();
352 Thread.currentThread().interrupt();
DPhaserTest.java490 Thread.currentThread().interrupt();
507 Thread.currentThread().interrupt();
525 t1.interrupt();
526 t2.interrupt();
544 Thread.currentThread().interrupt();
558 Thread.currentThread().interrupt();
583 t.interrupt();
587 Thread.currentThread().interrupt();
602 Thread.currentThread().interrupt();
612 Thread.currentThread().interrupt();
[all …]
DExchangerTest.java108 t.interrupt(); in testExchange_InterruptedException()
125 t.interrupt(); in testTimedExchange_InterruptedException()
174 t1.interrupt(); in testReplacementAfterExchange()
DSemaphoreTest.java262 Thread.currentThread().interrupt(); in testInterruptible()
275 Thread.currentThread().interrupt(); in testInterruptible()
291 t.interrupt(); in testInterruptible()
294 t.interrupt(); in testInterruptible()
314 Thread.currentThread().interrupt(); in testUninterruptible()
330 t2.interrupt(); in testUninterruptible()
356 t1.interrupt(); in testHasQueuedThreads()
379 t1.interrupt(); in testGetQueueLength()
404 t1.interrupt(); in testGetQueuedThreads()
DRecursiveActionTest.java95 Thread.currentThread().interrupt(); in checkNotDone()
102 Thread.currentThread().interrupt(); in checkNotDone()
293 currentThread.interrupt(); in testJoinIgnoresInterrupts()
302 currentThread.interrupt(); in testJoinIgnoresInterrupts()
314 currentThread.interrupt(); in testJoinIgnoresInterrupts()
326 currentThread.interrupt(); in testJoinIgnoresInterrupts()
335 currentThread.interrupt(); in testJoinIgnoresInterrupts()
343 currentThread.interrupt(); in testJoinIgnoresInterrupts()
389 currentThread.interrupt(); in testJoinIgnoresInterruptsOutsideForkJoinPool()
396 currentThread.interrupt(); in testJoinIgnoresInterruptsOutsideForkJoinPool()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DThreadGroupTest.java52 group.interrupt(); in interrupt_shouldInterruptAllThreadsInAGroup()
68 parentGroup.interrupt(); in interrupt_shouldInterruptThreadsInSubgroups()
84 childGroup.interrupt(); in interrupt_shouldNotInterruptThreadsInParentGroup()
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()
/libcore/libart/src/main/java/java/lang/
DDaemons.java160 public synchronized void interrupt() { in interrupt() method in Daemons.Daemon
161 interrupt(thread); in interrupt()
164 public synchronized void interrupt(Thread thread) { in interrupt() method in Daemons.Daemon
168 thread.interrupt(); in interrupt()
185 interrupt(threadToStop); in stop()
594 public synchronized void interrupt(Thread thread) { in interrupt() method in Daemons.HeapTaskDaemon
/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()

123456