/libcore/jsr166-tests/src/test/java/jsr166/ |
D | CyclicBarrierTest.java | 121 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { in testAwait1_Interrupted_BrokenBarrier() local 132 t1.start(); in testAwait1_Interrupted_BrokenBarrier() 135 t1.interrupt(); in testAwait1_Interrupted_BrokenBarrier() 136 awaitTermination(t1); in testAwait1_Interrupted_BrokenBarrier() 147 Thread t1 = new ThreadShouldThrow(InterruptedException.class) { in testAwait2_Interrupted_BrokenBarrier() local 158 t1.start(); in testAwait2_Interrupted_BrokenBarrier() 161 t1.interrupt(); in testAwait2_Interrupted_BrokenBarrier() 162 awaitTermination(t1); in testAwait2_Interrupted_BrokenBarrier() 190 Thread t1 = newStartedThread(new CheckedRunnable() { in testAwait4_Timeout_BrokenBarrier() local 208 awaitTermination(t1); in testAwait4_Timeout_BrokenBarrier() [all …]
|
D | AbstractQueuedLongSynchronizerTest.java | 284 Thread t1 = newStartedThread(new InterruptedSyncRunnable(sync)); in testHasQueuedThreads() local 285 waitForQueuedThread(sync, t1); in testHasQueuedThreads() 290 t1.interrupt(); in testHasQueuedThreads() 291 awaitTermination(t1); in testHasQueuedThreads() 314 Thread t1 = new Thread(new InterruptedSyncRunnable(sync)); in testIsQueued() local 316 assertFalse(sync.isQueued(t1)); in testIsQueued() 319 t1.start(); in testIsQueued() 320 waitForQueuedThread(sync, t1); in testIsQueued() 321 assertTrue(sync.isQueued(t1)); in testIsQueued() 325 assertTrue(sync.isQueued(t1)); in testIsQueued() [all …]
|
D | AbstractQueuedSynchronizerTest.java | 287 Thread t1 = newStartedThread(new InterruptedSyncRunnable(sync)); in testHasQueuedThreads() local 288 waitForQueuedThread(sync, t1); in testHasQueuedThreads() 293 t1.interrupt(); in testHasQueuedThreads() 294 awaitTermination(t1); in testHasQueuedThreads() 317 Thread t1 = new Thread(new InterruptedSyncRunnable(sync)); in testIsQueued() local 319 assertFalse(sync.isQueued(t1)); in testIsQueued() 322 t1.start(); in testIsQueued() 323 waitForQueuedThread(sync, t1); in testIsQueued() 324 assertTrue(sync.isQueued(t1)); in testIsQueued() 328 assertTrue(sync.isQueued(t1)); in testIsQueued() [all …]
|
D | ReentrantLockTest.java | 228 Thread t1 = new Thread(new InterruptedLockRunnable(lock)); in testHasQueuedThreads() local 233 t1.start(); in testHasQueuedThreads() 234 waitForQueuedThread(lock, t1); in testHasQueuedThreads() 239 t1.interrupt(); in testHasQueuedThreads() 240 awaitTermination(t1); in testHasQueuedThreads() 254 Thread t1 = new Thread(new InterruptedLockRunnable(lock)); in testGetQueueLength() local 258 t1.start(); in testGetQueueLength() 259 waitForQueuedThread(lock, t1); in testGetQueueLength() 264 t1.interrupt(); in testGetQueueLength() 265 awaitTermination(t1); in testGetQueueLength() [all …]
|
D | ReentrantReadWriteLockTest.java | 480 Thread t1 = newStartedThread(new CheckedRunnable() { in testWriteAfterMultipleReadLocks() local 486 awaitTermination(t1); in testWriteAfterMultipleReadLocks() 515 Thread t1 = newStartedThread(new CheckedRunnable() { in testReaderWriterReaderFairFifo() local 523 waitForQueuedThread(lock, t1); in testReaderWriterReaderFairFifo() 534 assertTrue(t1.isAlive()); in testReaderWriterReaderFairFifo() 538 awaitTermination(t1); in testReaderWriterReaderFairFifo() 552 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadAfterWriteLock() local 563 waitForQueuedThread(lock, t1); in testReadAfterWriteLock() 566 awaitTermination(t1); in testReadAfterWriteLock() 594 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadTryLockBarging() local [all …]
|
D | ExchangerTest.java | 25 Thread t1 = newStartedThread(new CheckedRunnable() { in testExchange() local 36 awaitTermination(t1); in testExchange() 45 Thread t1 = newStartedThread(new CheckedRunnable() { in testTimedExchange() local 56 awaitTermination(t1); in testTimedExchange() 119 Thread t1 = newStartedThread(new CheckedInterruptedRunnable() { in testReplacementAfterExchange() local 139 t1.interrupt(); in testReplacementAfterExchange() 140 awaitTermination(t1); in testReplacementAfterExchange()
|
D | SemaphoreTest.java | 274 Thread t1 = newStartedThread(new CheckedRunnable() { in testUninterruptible() local 292 waitForQueuedThread(s, t1); in testUninterruptible() 296 assertThreadStaysAlive(t1); in testUninterruptible() 301 awaitTermination(t1); in testUninterruptible() 314 Thread t1 = newStartedThread(new InterruptedLockRunnable(lock)); in testHasQueuedThreads() local 315 waitForQueuedThread(lock, t1); in testHasQueuedThreads() 320 t1.interrupt(); in testHasQueuedThreads() 321 awaitTermination(t1); in testHasQueuedThreads() 337 Thread t1 = newStartedThread(new InterruptedLockRunnable(lock)); in testGetQueueLength() local 338 waitForQueuedThread(lock, t1); in testGetQueueLength() [all …]
|
D | FutureTaskTest.java | 537 Thread t1 = newStartedThread(new CheckedRunnable() { in testGetRun() local 551 assertTrue(t1.isAlive()); in testGetRun() 558 awaitTermination(t1); in testGetRun() 576 Thread t1 = newStartedThread(new CheckedRunnable() { in testGetSet() local 590 assertTrue(t1.isAlive()); in testGetSet() 598 awaitTermination(t1); in testGetSet() 630 Thread t1 = new ThreadShouldThrow(CancellationException.class) { in testTimedGet_Cancellation() local 640 t1.start(); in testTimedGet_Cancellation() 647 awaitTermination(t1); in testTimedGet_Cancellation()
|
D | AtomicLongArrayTest.java | 304 Thread t1 = new Thread(c1); in testCountingInMultipleThreads() local 306 t1.start(); in testCountingInMultipleThreads() 308 t1.join(); in testCountingInMultipleThreads()
|
D | AtomicIntegerArrayTest.java | 304 Thread t1 = new Thread(c1); in testCountingInMultipleThreads() local 306 t1.start(); in testCountingInMultipleThreads() 308 t1.join(); in testCountingInMultipleThreads()
|
D | PhaserTest.java | 453 Thread t1 = newStartedThread(new CheckedRunnable() { 489 assertThreadsStayAlive(t1, t2); 490 t1.interrupt(); 492 awaitTermination(t1);
|
D | SynchronousQueueTest.java | 567 Thread t1 = newStartedThread(new CheckedRunnable() { 585 awaitTermination(t1);
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | ThreadTest.java | 105 WakeupTestThread t1 = new WakeupTestThread(); in testThreadWakeup() local 108 t1.start(); in testThreadWakeup() 110 assertTrue("Threads already finished", !t1.done && !t2.done); in testThreadWakeup() 112 t1.interrupt(); in testThreadWakeup() 116 assertTrue("Threads did not finish", t1.done && t2.done); in testThreadWakeup() 132 Thread t1 = new Thread("t1") { in testGetStackTrace() local 145 t1.start(); in testGetStackTrace() 147 StackTraceElement[] traces = t1.getStackTrace(); in testGetStackTrace()
|
D | OldThreadGroupTest.java | 75 Thread t1 = new Thread(tg, new Runnable() { in test_activeGroupCount() local 82 t1.start(); in test_activeGroupCount() 250 Thread t1 = new Thread(tg, new Runnable() { in test_interrupt() local 260 t1.start(); in test_interrupt() 262 t1.interrupt(); in test_interrupt() 264 t1.join(); in test_interrupt()
|
/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/com/android/org/bouncycastle/crypto/digests/ |
D | DigestTest.java | 66 long t1 = System.currentTimeMillis(); in doTestMessageDigest() local 68 oldTime = oldTime + (t1 - t0); in doTestMessageDigest()
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
D | SSLSessionTest.java | 63 long t1 = System.currentTimeMillis() / 1000; in test_SSLSession_getCreationTime() local 69 assertTrue(sTime + " <= " + t1, sTime <= t1); in test_SSLSession_getCreationTime() 73 assertTrue(cTime + " <= " + t1, cTime <= t1); in test_SSLSession_getCreationTime()
|
/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 | 481 Thread t1 = new Thread() { in test_elements_subtest0() local 491 t1.start(); in test_elements_subtest0() 739 Thread t1 = new Thread() { in test_isEmpty_subtest0() local 746 t1.start(); in test_isEmpty_subtest0() 1209 Thread t1 = new Thread() { in test_size() local 1216 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()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectOutputStreamTest.java | 703 ExternalTest t1 = new ExternalTest(); in test_useProtocolVersionI() local 704 t1.setValue("hello1"); in test_useProtocolVersionI() 705 oos.writeObject(t1); in test_useProtocolVersionI() 712 + t2.getValue(), t1.getValue().equals(t2.getValue())); in test_useProtocolVersionI()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinTask.java | 716 public static void invokeAll(ForkJoinTask<?> t1, ForkJoinTask<?> t2) { in invokeAll() argument 719 if ((s1 = t1.doInvoke() & DONE_MASK) != NORMAL) in invokeAll() 720 t1.reportException(s1); in invokeAll()
|