/libcore/luni/src/test/java/tests/support/ |
D | ThreadPool.java | 24 private boolean isAlive; field in ThreadPool 36 isAlive = true; in ThreadPool() 45 if (!isAlive) { in runTask() 56 if (!isAlive) { in getTask() 66 if (isAlive) { in close() 67 isAlive = false; in close() 75 isAlive = false; in join()
|
/libcore/luni/src/main/java/java/io/ |
D | PipedReader.java | 248 if (!first && lastWriter != null && !lastWriter.isAlive()) { in read() 340 if (lastReader != null && !lastReader.isAlive()) { in receive() 353 if (lastReader != null && !lastReader.isAlive()) { in receive() 388 if (lastReader != null && !lastReader.isAlive()) { in receive() 402 if (lastReader != null && !lastReader.isAlive()) { in receive()
|
D | PipedInputStream.java | 231 if ((attempts-- <= 0) && lastWriter != null && !lastWriter.isAlive()) { in read() 309 if ((attempts-- <= 0) && lastWriter != null && !lastWriter.isAlive()) { in read() 390 if (lastReader != null && !lastReader.isAlive()) { 406 if (lastReader != null && !lastReader.isAlive()) {
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadTest.java | 442 while (t.isAlive()) in test_getThreadGroup() 527 assertFalse("A thread that wasn't started is alive.", st.isAlive()); in test_isAlive() 535 assertTrue("Started thread returned false", st.isAlive()); in test_isAlive() 541 assertTrue("Stopped thread returned true", !st.isAlive()); in test_isAlive() 599 assertTrue("Thread is alive", !st.isAlive()); in test_join() 608 assertTrue("Joined thread is still alive", !st.isAlive()); in test_join() 630 assertTrue("Thread is alive", !st.isAlive()); in test_joinJ() 639 assertTrue("Join failed to timeout", st.isAlive()); in test_joinJ() 653 assertTrue("Joined thread is still alive", !st.isAlive()); in test_joinJ() 693 assertTrue("Thread is alive", !st.isAlive()); in test_joinJI() [all …]
|
/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 686 public final boolean isAlive() { in isAlive() method in Thread 723 while (isAlive()) { in join() 776 if (!isAlive()) { in join() 787 if (!isAlive()) { in join() 917 if (isAlive()) { in setName() 951 if (isAlive()) { in setPriority()
|
D | ThreadGroup.java | 126 if (thread.isAlive()) { in activeCount() 343 if (thread != null && thread.isAlive()) { in enumerateGeneric()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PipedWriterTest.java | 363 while (readThread.isAlive()) { in test_write_I_MultiThread() 368 while (writeThread.isAlive()) { in test_write_I_MultiThread() 427 while (readThread.isAlive()) { in test_write_$CII_MultiThread() 432 while (writeThread.isAlive()) { in test_write_$CII_MultiThread()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicMarkableReferenceTest.java | 113 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads() 133 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads2()
|
D | AtomicStampedReferenceTest.java | 113 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads() 133 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads2()
|
D | AtomicBooleanTest.java | 96 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | SemaphoreTest.java | 84 assertTrue(t.isAlive()); in waitForQueuedThread() 309 assertTrue(t2.isAlive()); in testUninterruptible() 574 assertTrue(t.isAlive()); in testReleaseAcquireDifferentThreads() 620 assertTrue(t2.isAlive());
|
D | AtomicReferenceFieldUpdaterTest.java | 141 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | AtomicReferenceTest.java | 96 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | JSR166TestCase.java | 236 if (!thread.isAlive()) continue; in checkForkJoinPoolThreadLeaks() 437 assertTrue(thread.isAlive()); in assertThreadStaysAlive() 459 assertTrue(thread.isAlive()); in assertThreadsStayAlive() 636 threadAssertTrue(thread.isAlive()); in waitForThreadToEnterWaitState()
|
D | AtomicLongFieldUpdaterTest.java | 130 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | AtomicIntegerFieldUpdaterTest.java | 129 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | FutureTaskTest.java | 569 assertTrue(t1.isAlive()); in testGetRun() 570 assertTrue(t2.isAlive()); in testGetRun() 608 assertTrue(t1.isAlive()); in testGetSet() 609 assertTrue(t2.isAlive()); in testGetSet()
|
D | AtomicLongTest.java | 102 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | AtomicIntegerTest.java | 100 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | ReentrantReadWriteLockTest.java | 98 assertTrue(t.isAlive()); in waitForQueuedThread() 551 assertTrue(t1.isAlive()); in testReaderWriterReaderFairFifo() 636 assertTrue(t1.isAlive()); in testReadTryLockBarging() 637 if (fair) assertTrue(t2.isAlive()); in testReadTryLockBarging() 1007 assertTrue(t.isAlive()); in testAwait() 1049 assertTrue(t2.isAlive()); in testAwaitUninterruptibly()
|
D | AtomicReferenceArrayTest.java | 167 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
D | AtomicIntegerArrayTest.java | 159 assertFalse(t.isAlive()); in testCompareAndSetInMultipleThreads()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | FileInputStreamTest.java | 79 assertFalse(feeder.isAlive()); in testSkipInPipes()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLEngineTest.java | 1187 while (clientThread.isAlive() && serverThread.isAlive() && i < 20) { in doHandshake() 1192 if (clientThread.isAlive()) { in doHandshake() 1196 if (serverThread.isAlive()) { in doHandshake()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ServerSocketTest.java | 204 } while (!thread.isAlive()); in test_accept() 220 } while (thread.isAlive()); in test_accept()
|