Home
last modified time | relevance | path

Searched refs:t1 (Results 1 – 25 of 57) sorted by relevance

123

/libcore/ojluni/src/test/java/lang/StrictMath/
DFdlibmTranslit.java165 double t1, t2, y1, y2, w; in compute() local
209 t1 = 0; in compute()
210 t1 = __HI(t1, 0x7fd00000); // t1=2^1022 in compute()
211 b *= t1; in compute()
212 a *= t1; in compute()
225 t1 = 0; in compute()
226 t1 = __HI(t1, ha); in compute()
227 t2 = a - t1; in compute()
228 w = Math.sqrt(t1 * t1 - (b * (-b) - t2 * (a + t1))); in compute()
234 t1 = 0; in compute()
[all …]
/libcore/jsr166-tests/src/test/java/jsr166/
DCyclicBarrierTest.java132 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 …]
DAbstractQueuedLongSynchronizerTest.java310 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 …]
DAbstractQueuedSynchronizerTest.java313 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 …]
DReentrantLockTest.java246 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 …]
DReentrantReadWriteLockTest.java499 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 …]
DExchangerTest.java37 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()
DSemaphoreTest.java287 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 …]
/libcore/ojluni/src/test/java/util/concurrent/tck/
DCyclicBarrierTest.java153 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 …]
DAbstractQueuedLongSynchronizerTest.java338 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 …]
DAbstractQueuedSynchronizerTest.java341 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 …]
DReentrantLockTest.java269 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 …]
DReentrantReadWriteLockTest.java522 Thread t1 = newStartedThread(new CheckedRunnable() { in testWriteAfterMultipleReadLocks() local
528 awaitTermination(t1); in testWriteAfterMultipleReadLocks()
557 Thread t1 = newStartedThread(new CheckedRunnable() { in testReaderWriterReaderFairFifo() local
565 waitForQueuedThread(lock, t1); in testReaderWriterReaderFairFifo()
576 assertTrue(t1.isAlive()); in testReaderWriterReaderFairFifo()
580 awaitTermination(t1); in testReaderWriterReaderFairFifo()
594 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadAfterWriteLock() local
605 waitForQueuedThread(lock, t1); in testReadAfterWriteLock()
608 awaitTermination(t1); in testReadAfterWriteLock()
636 Thread t1 = newStartedThread(new CheckedRunnable() { in testReadTryLockBarging() local
[all …]
DExchangerTest.java60 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()
DSemaphoreTest.java310 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 …]
/libcore/ojluni/src/test/java/lang/StackWalker/
DCallerFromMain.java69 Thread t1 = new Thread(new Runnable() { in main() local
77 t1.setDaemon(true); in main()
78 t1.start(); in main()
111 t1.join(); in main()
/libcore/luni/src/test/java/libcore/java/sql/
DTimestampTest.java32 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()
/libcore/luni/src/test/java/libcore/java/lang/
DEnumTest.java89 Thread t1 = new Thread() { in testDeadlock() local
95 t1.start(); in testDeadlock()
113 t1.join(); in testDeadlock()
DThreadTest.java142 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()
DOldThreadGroupTest.java78 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/util/TimeZone/
DSimpleTimeZoneCloneRaceTest.java62 Thread t1 = new Thread(sharedTZuser); in testSimpleTimeZone() local
64 t1.start(); in testSimpleTimeZone()
78 t1.join(); in testSimpleTimeZone()
/libcore/ojluni/src/test/java/time/test/java/time/
DTestInstant.java94 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/
DFileTimeTest.java278 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/ojluni/src/test/java/math/BigDecimal/
DStringConstructor.java132 String t1 = start + middle; in testLeadingExponentZeroTest() local
133 String t2 = t1 + end; in testLeadingExponentZeroTest()
135 testString(t1, onePointTwo); in testLeadingExponentZeroTest()
/libcore/ojluni/src/test/java/util/Date/
DDateTest.java90 Date t1 = cal.getTime(); in testDate480() local
95 double delta2 = (t2.getTime() - t1.getTime()) / 3600000; in testDate480()

123