/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 | AbstractQueuedLongSynchronizerTest.java | 310 Thread t1 = newStartedThread(new InterruptedSyncRunnable(sync)); in testHasQueuedThreads() local 311 waitForQueuedThread(sync, t1); in testHasQueuedThreads() 316 t1.interrupt(); in testHasQueuedThreads() 317 awaitTermination(t1); in testHasQueuedThreads() 340 Thread t1 = new Thread(new InterruptedSyncRunnable(sync)); in testIsQueued() local 342 assertFalse(sync.isQueued(t1)); in testIsQueued() 345 t1.start(); in testIsQueued() 346 waitForQueuedThread(sync, t1); in testIsQueued() 347 assertTrue(sync.isQueued(t1)); in testIsQueued() 351 assertTrue(sync.isQueued(t1)); in testIsQueued() [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 | SemaphoreTest.java | 287 Thread t1 = newStartedThread(new CheckedRunnable() { in testUninterruptible() local 305 waitForQueuedThread(s, t1); in testUninterruptible() 309 assertThreadStaysAlive(t1); in testUninterruptible() 314 awaitTermination(t1); in testUninterruptible() 327 Thread t1 = newStartedThread(new InterruptedLockRunnable(lock)); in testHasQueuedThreads() local 328 waitForQueuedThread(lock, t1); in testHasQueuedThreads() 333 t1.interrupt(); in testHasQueuedThreads() 334 awaitTermination(t1); in testHasQueuedThreads() 350 Thread t1 = newStartedThread(new InterruptedLockRunnable(lock)); in testGetQueueLength() local 351 waitForQueuedThread(lock, t1); in testGetQueueLength() [all …]
|
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 | AtomicLongArrayTest.java | 314 Thread t1 = new Thread(c1); in testCountingInMultipleThreads() local 316 t1.start(); in testCountingInMultipleThreads() 318 t1.join(); in testCountingInMultipleThreads()
|
D | AtomicIntegerArrayTest.java | 315 Thread t1 = new Thread(c1); in testCountingInMultipleThreads() local 317 t1.start(); in testCountingInMultipleThreads() 319 t1.join(); in testCountingInMultipleThreads()
|
D | PhaserTest.java | 464 Thread t1 = newStartedThread(new CheckedRunnable() { 500 assertThreadsStayAlive(t1, t2); 501 t1.interrupt(); 503 awaitTermination(t1);
|
D | StampedLockTest.java | 457 Thread t1 = newStartedThread(new CheckedRunnable() { in testWriteAfterMultipleReadLocks() local 463 awaitTermination(t1); in testWriteAfterMultipleReadLocks() 483 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadAfterWriteLock() local 495 awaitTermination(t1); in testReadAfterWriteLock()
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | TimestampTest.java | 32 Timestamp t1 = new Timestamp(Long.MIN_VALUE); in testToString() local 33 assertEquals("292278994-08-17 07:12:55.192", t1.toString()); in testToString() 54 Timestamp t1 = Timestamp.valueOf("2001-12-31 21:45:57.123456789"); in testValueOf() local 55 assertEquals(1009835157000L + 123456789 / 1000000, t1.getTime()); in testValueOf() 56 assertEquals(123456789, t1.getNanos()); in testValueOf()
|
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/libcore/java/lang/ |
D | ThreadTest.java | 117 WakeupTestThread t1 = new WakeupTestThread(); in testThreadWakeup() local 120 t1.start(); in testThreadWakeup() 122 assertTrue("Threads already finished", !t1.done && !t2.done); in testThreadWakeup() 124 t1.interrupt(); in testThreadWakeup() 128 assertTrue("Threads did not finish", t1.done && t2.done); in testThreadWakeup() 184 Thread t1 = new Thread("t1") { in testGetStackTrace() local 195 t1.start(); in testGetStackTrace() 197 StackTraceElement[] traces = t1.getStackTrace(); in testGetStackTrace() 203 t1.join(); in testGetStackTrace()
|
D | EnumTest.java | 89 Thread t1 = new Thread() { in testDeadlock() local 95 t1.start(); in testDeadlock() 113 t1.join(); in testDeadlock()
|
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/ojluni/src/test/java/nio/file/attribute/ |
D | FileTimeTest.java | 278 FileTime t1 = FileTime.from(v1, u1); in eq() local 280 if (!t1.equals(t2)) in eq() 282 if (t1.hashCode() != t2.hashCode()) in eq() 287 FileTime t1 = FileTime.from(ins); in eq() local 289 if (!t1.equals(t2)) in eq() 291 if (t1.hashCode() != t2.hashCode()) in eq() 309 FileTime t1 = FileTime.from(v1, u1); in neq() local 311 if (t1.equals(t2)) in neq() 316 FileTime t1 = FileTime.from(ins); in neq() local 318 if (t1.equals(t2)) in neq()
|
/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/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipStressTest.java | 52 long t1 = System.currentTimeMillis(); in checkJarCertificates() local 53 System.out.println("loadCertificates() took " + (t1 - t0) + " ms"); in checkJarCertificates()
|
/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()
|
D | VectorTest.java | 491 Thread t1 = new Thread() { in test_elements_subtest0() local 501 t1.start(); in test_elements_subtest0() 749 Thread t1 = new Thread() { in test_isEmpty_subtest0() local 756 t1.start(); in test_isEmpty_subtest0() 1228 Thread t1 = new Thread() { in test_size() local 1235 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()
|