/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | CyclicBarrierTest.java | 153 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { in testAwait1_Interrupted_BrokenBarrier() local 164 t1.start(); in testAwait1_Interrupted_BrokenBarrier() 167 t1.interrupt(); in testAwait1_Interrupted_BrokenBarrier() 168 awaitTermination(t1); in testAwait1_Interrupted_BrokenBarrier() 179 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { in testAwait2_Interrupted_BrokenBarrier() local 190 t1.start(); in testAwait2_Interrupted_BrokenBarrier() 193 t1.interrupt(); in testAwait2_Interrupted_BrokenBarrier() 194 awaitTermination(t1); in testAwait2_Interrupted_BrokenBarrier() 222 Thread t1 = newStartedThread(new CheckedRunnable() { in testAwait4_Timeout_BrokenBarrier() local 240 awaitTermination(t1); in testAwait4_Timeout_BrokenBarrier() [all …]
|
D | AbstractQueuedLongSynchronizerTest.java | 338 Thread t1 = newStartedThread(new InterruptedSyncRunnable(sync)); in testHasQueuedThreads() local 339 waitForQueuedThread(sync, t1); in testHasQueuedThreads() 344 t1.interrupt(); in testHasQueuedThreads() 345 awaitTermination(t1); in testHasQueuedThreads() 368 Thread t1 = new Thread(new InterruptedSyncRunnable(sync)); in testIsQueued() local 370 assertFalse(sync.isQueued(t1)); in testIsQueued() 373 t1.start(); in testIsQueued() 374 waitForQueuedThread(sync, t1); in testIsQueued() 375 assertTrue(sync.isQueued(t1)); in testIsQueued() 379 assertTrue(sync.isQueued(t1)); in testIsQueued() [all …]
|
D | AbstractQueuedSynchronizerTest.java | 341 Thread t1 = newStartedThread(new InterruptedSyncRunnable(sync)); in testHasQueuedThreads() local 342 waitForQueuedThread(sync, t1); in testHasQueuedThreads() 347 t1.interrupt(); in testHasQueuedThreads() 348 awaitTermination(t1); in testHasQueuedThreads() 371 Thread t1 = new Thread(new InterruptedSyncRunnable(sync)); in testIsQueued() local 373 assertFalse(sync.isQueued(t1)); in testIsQueued() 376 t1.start(); in testIsQueued() 377 waitForQueuedThread(sync, t1); in testIsQueued() 378 assertTrue(sync.isQueued(t1)); in testIsQueued() 382 assertTrue(sync.isQueued(t1)); in testIsQueued() [all …]
|
D | ReentrantLockTest.java | 269 Thread t1 = new Thread(new InterruptedLockRunnable(lock)); in testHasQueuedThreads() local 274 t1.start(); in testHasQueuedThreads() 275 waitForQueuedThread(lock, t1); in testHasQueuedThreads() 280 t1.interrupt(); in testHasQueuedThreads() 281 awaitTermination(t1); in testHasQueuedThreads() 295 Thread t1 = new Thread(new InterruptedLockRunnable(lock)); in testGetQueueLength() local 299 t1.start(); in testGetQueueLength() 300 waitForQueuedThread(lock, t1); in testGetQueueLength() 305 t1.interrupt(); in testGetQueueLength() 306 awaitTermination(t1); in testGetQueueLength() [all …]
|
D | ExchangerTest.java | 60 Thread t1 = newStartedThread(new CheckedRunnable() { in testExchange() local 71 awaitTermination(t1); in testExchange() 80 Thread t1 = newStartedThread(new CheckedRunnable() { in testTimedExchange() local 91 awaitTermination(t1); in testTimedExchange() 154 Thread t1 = newStartedThread(new CheckedInterruptedRunnable() { in testReplacementAfterExchange() local 174 t1.interrupt(); in testReplacementAfterExchange() 175 awaitTermination(t1); in testReplacementAfterExchange()
|
D | SemaphoreTest.java | 310 Thread t1 = newStartedThread(new CheckedRunnable() { in testUninterruptible() local 328 waitForQueuedThread(s, t1); in testUninterruptible() 332 assertThreadStaysAlive(t1); in testUninterruptible() 337 awaitTermination(t1); in testUninterruptible() 350 Thread t1 = newStartedThread(new InterruptedLockRunnable(lock)); in testHasQueuedThreads() local 351 waitForQueuedThread(lock, t1); in testHasQueuedThreads() 356 t1.interrupt(); in testHasQueuedThreads() 357 awaitTermination(t1); in testHasQueuedThreads() 373 Thread t1 = newStartedThread(new InterruptedLockRunnable(lock)); in testGetQueueLength() local 374 waitForQueuedThread(lock, t1); in testGetQueueLength() [all …]
|
D | PhaserTest.java | 488 Thread t1 = newStartedThread(new CheckedRunnable() { 524 assertThreadsStayAlive(t1, t2); 525 t1.interrupt(); 527 awaitTermination(t1);
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CyclicBarrierTest.java | 132 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { in testAwait1_Interrupted_BrokenBarrier() local 143 t1.start(); in testAwait1_Interrupted_BrokenBarrier() 146 t1.interrupt(); in testAwait1_Interrupted_BrokenBarrier() 147 awaitTermination(t1); in testAwait1_Interrupted_BrokenBarrier() 158 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { in testAwait2_Interrupted_BrokenBarrier() local 169 t1.start(); in testAwait2_Interrupted_BrokenBarrier() 172 t1.interrupt(); in testAwait2_Interrupted_BrokenBarrier() 173 awaitTermination(t1); in testAwait2_Interrupted_BrokenBarrier() 201 Thread t1 = newStartedThread(new CheckedRunnable() { in testAwait4_Timeout_BrokenBarrier() local 219 awaitTermination(t1); in testAwait4_Timeout_BrokenBarrier() [all …]
|
D | AbstractQueuedSynchronizerTest.java | 313 Thread t1 = newStartedThread(new InterruptedSyncRunnable(sync)); in testHasQueuedThreads() local 314 waitForQueuedThread(sync, t1); in testHasQueuedThreads() 319 t1.interrupt(); in testHasQueuedThreads() 320 awaitTermination(t1); in testHasQueuedThreads() 343 Thread t1 = new Thread(new InterruptedSyncRunnable(sync)); in testIsQueued() local 345 assertFalse(sync.isQueued(t1)); in testIsQueued() 348 t1.start(); in testIsQueued() 349 waitForQueuedThread(sync, t1); in testIsQueued() 350 assertTrue(sync.isQueued(t1)); in testIsQueued() 354 assertTrue(sync.isQueued(t1)); in testIsQueued() [all …]
|
D | ReentrantLockTest.java | 246 Thread t1 = new Thread(new InterruptedLockRunnable(lock)); in testHasQueuedThreads() local 251 t1.start(); in testHasQueuedThreads() 252 waitForQueuedThread(lock, t1); in testHasQueuedThreads() 257 t1.interrupt(); in testHasQueuedThreads() 258 awaitTermination(t1); in testHasQueuedThreads() 272 Thread t1 = new Thread(new InterruptedLockRunnable(lock)); in testGetQueueLength() local 276 t1.start(); in testGetQueueLength() 277 waitForQueuedThread(lock, t1); in testGetQueueLength() 282 t1.interrupt(); in testGetQueueLength() 283 awaitTermination(t1); in testGetQueueLength() [all …]
|
D | ReentrantReadWriteLockTest.java | 499 Thread t1 = newStartedThread(new CheckedRunnable() { in testWriteAfterMultipleReadLocks() local 505 awaitTermination(t1); in testWriteAfterMultipleReadLocks() 534 Thread t1 = newStartedThread(new CheckedRunnable() { in testReaderWriterReaderFairFifo() local 542 waitForQueuedThread(lock, t1); in testReaderWriterReaderFairFifo() 553 assertTrue(t1.isAlive()); in testReaderWriterReaderFairFifo() 557 awaitTermination(t1); in testReaderWriterReaderFairFifo() 571 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadAfterWriteLock() local 582 waitForQueuedThread(lock, t1); in testReadAfterWriteLock() 585 awaitTermination(t1); in testReadAfterWriteLock() 613 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadTryLockBarging() local [all …]
|
D | ExchangerTest.java | 37 Thread t1 = newStartedThread(new CheckedRunnable() { in testExchange() local 48 awaitTermination(t1); in testExchange() 57 Thread t1 = newStartedThread(new CheckedRunnable() { in testTimedExchange() local 68 awaitTermination(t1); in testTimedExchange() 131 Thread t1 = newStartedThread(new CheckedInterruptedRunnable() { in testReplacementAfterExchange() local 151 t1.interrupt(); in testReplacementAfterExchange() 152 awaitTermination(t1); in testReplacementAfterExchange()
|
D | FutureTaskTest.java | 555 Thread t1 = newStartedThread(new CheckedRunnable() { in testGetRun() local 569 assertTrue(t1.isAlive()); in testGetRun() 576 awaitTermination(t1); in testGetRun() 594 Thread t1 = newStartedThread(new CheckedRunnable() { in testGetSet() local 608 assertTrue(t1.isAlive()); in testGetSet() 616 awaitTermination(t1); in testGetSet() 648 Thread t1 = new ThreadShouldThrow(CancellationException.class) { in testTimedGet_Cancellation() local 658 t1.start(); in testTimedGet_Cancellation() 665 awaitTermination(t1); in testTimedGet_Cancellation()
|
D | AtomicIntegerArrayTest.java | 315 Thread t1 = new Thread(c1); in testCountingInMultipleThreads() local 317 t1.start(); in testCountingInMultipleThreads() 319 t1.join(); in testCountingInMultipleThreads()
|
D | AtomicLongArrayTest.java | 314 Thread t1 = new Thread(c1); in testCountingInMultipleThreads() local 316 t1.start(); in testCountingInMultipleThreads() 318 t1.join(); in testCountingInMultipleThreads()
|
D | PhaserTest.java | 464 Thread t1 = newStartedThread(new CheckedRunnable() { 500 assertThreadsStayAlive(t1, t2); 501 t1.interrupt(); 503 awaitTermination(t1);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | EnumTest.java | 89 Thread t1 = new Thread() { in testDeadlock() local 95 t1.start(); in testDeadlock() 113 t1.join(); in testDeadlock()
|
D | ThreadTest.java | 142 WakeupTestThread t1 = new WakeupTestThread(); in threadWakeup() local 145 t1.start(); in threadWakeup() 147 assertTrue("Threads already finished", !t1.done && !t2.done); in threadWakeup() 149 t1.interrupt(); in threadWakeup() 153 assertTrue("Threads did not finish", t1.done && t2.done); in threadWakeup() 297 Thread t1 = new Thread("t1") { in getStackTrace() local 308 t1.start(); in getStackTrace() 310 StackTraceElement[] traces = t1.getStackTrace(); in getStackTrace() 316 t1.join(); in getStackTrace()
|
D | OldThreadGroupTest.java | 78 Thread t1 = new Thread(tg, new Runnable() { in test_activeGroupCount() local 85 t1.start(); in test_activeGroupCount() 245 Thread t1 = new Thread(tg, new Runnable() { in test_interrupt() local 255 t1.start(); in test_interrupt() 257 t1.interrupt(); in test_interrupt() 259 t1.join(); in test_interrupt()
|
/libcore/ojluni/src/test/java/time/test/java/time/ |
D | TestInstant.java | 94 Instant t1 = Instant.ofEpochMilli(millis); in test_epochMillis() local 95 long m = t1.toEpochMilli(); in test_epochMillis()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetGetterTests.java | 934 Time t1 = new java.sql.Time(millis); in testGetTimeInt() local 935 assertNotNull("t1", t1); in testGetTimeInt() 954 assertEquals(t1.toString(), resTime.toString()); in testGetTimeInt() 955 assertEquals(t1.getTime(), resTime.getTime()); in testGetTimeInt() 956 assertEquals(t1, resTime); in testGetTimeInt() 993 Time t1 = new java.sql.Time(millis); in testGetTimeIntCalendar() local 1013 assertEquals(t1.toString(), timeRes.toString()); in testGetTimeIntCalendar() 1014 assertEquals(t1.getTime(), timeRes.getTime()); in testGetTimeIntCalendar() 1015 assertEquals(t1, timeRes); in testGetTimeIntCalendar() 1058 Time t1 = new java.sql.Time(millis); in testGetTimeString() local [all …]
|
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/crypto/digests/ |
D | DigestTest.java | 75 long t1 = System.nanoTime(); in doTestMessageDigest() local 78 oldTime.add(t1 - t0); in doTestMessageDigest()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | HashtableTest.java | 391 Thread t1 = new Thread() { in test_isEmpty() local 398 t1.start(); in test_isEmpty() 524 Thread t1 = new Thread() { in test_keySet_subtest0() local 532 t1.start(); in test_keySet_subtest0() 702 Thread t1 = new Thread() { in test_size() local 709 t1.start(); in test_size()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldAndroidRegexTest.java | 262 long t1 = System.currentTimeMillis(); in testMonsterRegexPerformance() local 263 System.out.println("RegEx performance test finished, took " + (t1 - t0) + " ms."); in testMonsterRegexPerformance()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ThreadGroupTest.java | 103 Thread t1 = new Thread(tg, new Runnable() { in test_activeCount() local 113 t1.start(); in test_activeCount() 116 t1.interrupt(); in test_activeCount() 118 t1.join(); in test_activeCount()
|