Home
last modified time | relevance | path

Searched defs:t2 (Results 1 – 25 of 34) sorted by relevance

12

/libcore/jsr166-tests/src/test/java/jsr166/
DCyclicBarrierTest.java137 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testAwait1_Interrupted_BrokenBarrier() local
163 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testAwait2_Interrupted_BrokenBarrier() local
208 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwait4_Timeout_BrokenBarrier() local
236 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwait5_Timeout_BrokenBarrier() local
263 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testReset_BrokenBarrier() local
291 Thread t2 = newStartedThread(new CheckedRunnable() { in testReset_NoBrokenBarrier() local
343 Thread t2 = newStartedThread(new CheckedRunnable() { in testResetWithoutBreakage() local
374 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testResetAfterInterrupt() local
408 Thread t2 = newStartedThread(new CheckedRunnable() { in testResetAfterTimeout() local
446 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testResetAfterCommandException() local
DExchangerTest.java42 Thread t2 = newStartedThread(new CheckedRunnable() { in testExchange() local
62 Thread t2 = newStartedThread(new CheckedRunnable() { in testTimedExchange() local
137 Thread t2 = newStartedThread(new CheckedRunnable() { in testReplacementAfterExchange() local
DAbstractQueuedLongSynchronizerTest.java313 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasQueuedThreads() local
341 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testIsQueued() local
373 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetFirstQueuedThread() local
395 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasContended() local
412 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetQueuedThreads() local
440 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetExclusiveQueuedThreads() local
473 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetSharedQueuedThreads_Exclusive() local
496 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetSharedQueuedThreads_Shared() local
DAbstractQueuedSynchronizerTest.java316 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasQueuedThreads() local
344 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testIsQueued() local
376 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetFirstQueuedThread() local
398 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasContended() local
415 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetQueuedThreads() local
443 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetExclusiveQueuedThreads() local
476 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetSharedQueuedThreads_Exclusive() local
499 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetSharedQueuedThreads_Shared() local
DReentrantReadWriteLockTest.java507 Thread t2 = newStartedThread(new CheckedRunnable() { in testWriteAfterMultipleReadLocks() local
544 Thread t2 = newStartedThread(new CheckedRunnable() { in testReaderWriterReaderFairFifo() local
576 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadAfterWriteLock() local
621 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadTryLockBarging() local
663 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadHoldingWriteLock2() local
697 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadHoldingWriteLock3() local
732 Thread t2 = newStartedThread(new CheckedRunnable() { in testWriteHoldingWriteLock4() local
1035 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwaitUninterruptibly() local
1127 Thread t2 = newStartedThread(new Awaiter()); in testSignalAll() local
1161 Thread t2 = newStartedThread(new CheckedRunnable() { in testSignalWakesFifo() local
[all …]
DReentrantLockTest.java247 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testHasQueuedThreads() local
273 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testGetQueueLength() local
311 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testHasQueuedThread() local
341 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testGetQueuedThreads() local
788 Thread t2 = new Thread(new CheckedRunnable() { in testGetWaitQueueLength() local
845 Thread t2 = new Thread(new CheckedRunnable() { in testGetWaitingThreads() local
907 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwaitUninterruptibly() local
997 Thread t2 = newStartedThread(new Awaiter()); in testSignalAll() local
1030 Thread t2 = newStartedThread(new CheckedRunnable() { in testSignalWakesFifo() local
1077 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwaitLockCount() local
DFutureTaskTest.java561 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetRun() local
600 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetSet() local
653 Thread t2 = new ThreadShouldThrow(CancellationException.class) { in testTimedGet_Cancellation() local
DSemaphoreTest.java296 Thread t2 = newStartedThread(new CheckedRunnable() { in testUninterruptible() local
330 Thread t2 = newStartedThread(new InterruptibleLockRunnable(lock)); in testHasQueuedThreads() local
353 Thread t2 = newStartedThread(new InterruptibleLockRunnable(lock)); in testGetQueueLength() local
377 Thread t2 = newStartedThread(new InterruptibleLockRunnable(lock)); in testGetQueuedThreads() local
DAtomicIntegerArrayTest.java316 Thread t2 = new Thread(c2); in testCountingInMultipleThreads() local
DAtomicLongArrayTest.java315 Thread t2 = new Thread(c2); in testCountingInMultipleThreads() local
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCyclicBarrierTest.java158 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testAwait1_Interrupted_BrokenBarrier() local
184 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testAwait2_Interrupted_BrokenBarrier() local
229 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwait4_Timeout_BrokenBarrier() local
257 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwait5_Timeout_BrokenBarrier() local
284 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testReset_BrokenBarrier() local
312 Thread t2 = newStartedThread(new CheckedRunnable() { in testReset_NoBrokenBarrier() local
364 Thread t2 = newStartedThread(new CheckedRunnable() { in testResetWithoutBreakage() local
395 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testResetAfterInterrupt() local
429 Thread t2 = newStartedThread(new CheckedRunnable() { in testResetAfterTimeout() local
467 Thread t2 = new ThreadShouldThrow(BrokenBarrierException.class) { in testResetAfterCommandException() local
DExchangerTest.java65 Thread t2 = newStartedThread(new CheckedRunnable() { in testExchange() local
85 Thread t2 = newStartedThread(new CheckedRunnable() { in testTimedExchange() local
160 Thread t2 = newStartedThread(new CheckedRunnable() { in testReplacementAfterExchange() local
DAbstractQueuedLongSynchronizerTest.java341 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasQueuedThreads() local
369 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testIsQueued() local
401 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetFirstQueuedThread() local
423 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasContended() local
440 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetQueuedThreads() local
468 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetExclusiveQueuedThreads() local
501 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetSharedQueuedThreads_Exclusive() local
524 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetSharedQueuedThreads_Shared() local
DAbstractQueuedSynchronizerTest.java344 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasQueuedThreads() local
372 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testIsQueued() local
404 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetFirstQueuedThread() local
426 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testHasContended() local
443 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetQueuedThreads() local
471 Thread t2 = new Thread(new InterruptibleSyncRunnable(sync)); in testGetExclusiveQueuedThreads() local
504 Thread t2 = newStartedThread(new InterruptibleSyncRunnable(sync)); in testGetSharedQueuedThreads_Exclusive() local
527 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetSharedQueuedThreads_Shared() local
DReentrantReadWriteLockTest.java530 Thread t2 = newStartedThread(new CheckedRunnable() { in testWriteAfterMultipleReadLocks() local
567 Thread t2 = newStartedThread(new CheckedRunnable() { in testReaderWriterReaderFairFifo() local
599 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadAfterWriteLock() local
644 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadTryLockBarging() local
686 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadHoldingWriteLock2() local
720 Thread t2 = newStartedThread(new CheckedRunnable() { in testReadHoldingWriteLock3() local
755 Thread t2 = newStartedThread(new CheckedRunnable() { in testWriteHoldingWriteLock4() local
1055 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwaitUninterruptibly() local
1147 Thread t2 = newStartedThread(new Awaiter()); in testSignalAll() local
1181 Thread t2 = newStartedThread(new CheckedRunnable() { in testSignalWakesFifo() local
[all …]
DReentrantLockTest.java270 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testHasQueuedThreads() local
296 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testGetQueueLength() local
334 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testHasQueuedThread() local
364 Thread t2 = new Thread(new InterruptibleLockRunnable(lock)); in testGetQueuedThreads() local
811 Thread t2 = new Thread(new CheckedRunnable() { in testGetWaitQueueLength() local
868 Thread t2 = new Thread(new CheckedRunnable() { in testGetWaitingThreads() local
930 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwaitUninterruptibly() local
1020 Thread t2 = newStartedThread(new Awaiter()); in testSignalAll() local
1053 Thread t2 = newStartedThread(new CheckedRunnable() { in testSignalWakesFifo() local
1100 Thread t2 = newStartedThread(new CheckedRunnable() { in testAwaitLockCount() local
DFutureTaskTest.java584 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetRun() local
623 Thread t2 = newStartedThread(new CheckedRunnable() { in testGetSet() local
676 Thread t2 = new ThreadShouldThrow(CancellationException.class) { in testTimedGet_Cancellation() local
DSemaphoreTest.java319 Thread t2 = newStartedThread(new CheckedRunnable() { in testUninterruptible() local
353 Thread t2 = newStartedThread(new InterruptibleLockRunnable(lock)); in testHasQueuedThreads() local
376 Thread t2 = newStartedThread(new InterruptibleLockRunnable(lock)); in testGetQueueLength() local
400 Thread t2 = newStartedThread(new InterruptibleLockRunnable(lock)); in testGetQueuedThreads() local
DAtomicIntegerArrayTest.java339 Thread t2 = newStartedThread(c2); in testCountingInMultipleThreads() local
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java35 Timestamp t2 = new Timestamp(Long.MIN_VALUE + 1); in testToString() local
58 Timestamp t2 = Timestamp.valueOf("2001-01-02 01:05:07.123"); in testValueOf() local
DOldResultSetGetterTests.java948 Time t2 = new java.sql.Time(millis2); in testGetTimeInt() local
1005 Time t2 = new java.sql.Time(millis2); in testGetTimeIntCalendar() local
1078 Time t2 = new java.sql.Time(millis2); in testGetTimeString() local
1130 Time t2 = new java.sql.Time(millis2); in testGetTimeStringCalendar() local
1177 Timestamp t2 = new Timestamp(millis); in testGetTimestampInt() local
1234 Timestamp t2 = new Timestamp(millis); in testGetTimestampIntCalendar() local
1297 Timestamp t2 = new Timestamp(millis); in testGetTimestampString() local
1357 Timestamp t2 = new Timestamp(millis); in testGetTimestampStringCalendar() local
/libcore/ojluni/src/test/java/nio/file/attribute/
DFileTimeTest.java279 FileTime t2 = FileTime.from(v2, u2); in eq() local
288 FileTime t2 = FileTime.from(v2, u2); in eq() local
310 FileTime t2 = FileTime.from(v2, u2); in neq() local
317 FileTime t2 = FileTime.from(v2, u2); in neq() local
/libcore/luni/src/test/java/libcore/java/lang/
DEnumTest.java97 Thread t2 = new Thread() { in testDeadlock() local
DThreadTest.java143 WakeupTestThread t2 = new WakeupTestThread(); in threadWakeup() local
403 Thread t2 = new Thread(group, "t2") { in getAllStackTracesIncludesAllGroups() local
/libcore/luni/src/test/java/tests/com/android/org/bouncycastle/crypto/digests/
DDigestTest.java81 long t2 = System.nanoTime(); in doTestMessageDigest() local

12