/libcore/jsr166-tests/src/test/java/jsr166/ |
D | TimeUnitTest.java | 23 for (long t = 0; t < 88888; ++t) { in testConvert() 24 assertEquals(t*60*60*24, in testConvert() 25 TimeUnit.SECONDS.convert(t, in testConvert() 27 assertEquals(t*60*60, in testConvert() 28 TimeUnit.SECONDS.convert(t, in testConvert() 30 assertEquals(t*60, in testConvert() 31 TimeUnit.SECONDS.convert(t, in testConvert() 33 assertEquals(t, in testConvert() 34 TimeUnit.SECONDS.convert(t, in testConvert() 36 assertEquals(t, in testConvert() [all …]
|
D | JSR166TestCase.java | 166 public void threadRecordFailure(Throwable t) { in threadRecordFailure() argument 167 threadFailure.compareAndSet(null, t); in threadRecordFailure() 184 Throwable t = threadFailure.getAndSet(null); in tearDown() local 185 if (t != null) { in tearDown() 186 if (t instanceof Error) in tearDown() 187 throw (Error) t; in tearDown() 188 else if (t instanceof RuntimeException) in tearDown() 189 throw (RuntimeException) t; in tearDown() 190 else if (t instanceof Exception) in tearDown() 191 throw (Exception) t; in tearDown() [all …]
|
D | LockSupportTest.java | 100 Thread t = newStartedThread(new CheckedRunnable() { in testParkBeforeUnpark() local 107 LockSupport.unpark(t); in testParkBeforeUnpark() 108 awaitTermination(t); in testParkBeforeUnpark() 135 Thread t = newStartedThread(new CheckedRunnable() { in testParkAfterUnpark() local 144 LockSupport.unpark(t); in testParkAfterUnpark() 146 awaitTermination(t); in testParkAfterUnpark() 172 Thread t = newStartedThread(new CheckedRunnable() { in testParkBeforeInterrupt() local 182 assertThreadStaysAlive(t); in testParkBeforeInterrupt() 183 t.interrupt(); in testParkBeforeInterrupt() 184 awaitTermination(t); in testParkBeforeInterrupt() [all …]
|
D | CountDownLatchTest.java | 57 Thread t = newStartedThread(new CheckedRunnable() { in testAwait() local 69 assertThreadStaysAlive(t); in testAwait() 72 awaitTermination(t); in testAwait() 82 Thread t = newStartedThread(new CheckedRunnable() { in testTimedAwait() local 94 assertThreadStaysAlive(t); in testTimedAwait() 97 awaitTermination(t); in testTimedAwait() 106 Thread t = newStartedThread(new CheckedRunnable() { in testAwait_Interruptible() local 126 assertThreadStaysAlive(t); in testAwait_Interruptible() 127 t.interrupt(); in testAwait_Interruptible() 128 awaitTermination(t); in testAwait_Interruptible() [all …]
|
D | LinkedBlockingDequeTest.java | 551 Thread t = newStartedThread(new CheckedRunnable() { in testBlockingPut() local 574 assertThreadStaysAlive(t); in testBlockingPut() 575 t.interrupt(); in testBlockingPut() 576 awaitTermination(t); in testBlockingPut() 589 Thread t = newStartedThread(new CheckedRunnable() { in testPutWithTake() local 609 assertThreadStaysAlive(t); in testPutWithTake() 610 t.interrupt(); in testPutWithTake() 611 awaitTermination(t); in testPutWithTake() 621 Thread t = newStartedThread(new CheckedRunnable() { in testTimedOffer() local 636 assertThreadStaysAlive(t); in testTimedOffer() [all …]
|
D | AbstractQueuedLongSynchronizerTest.java | 122 Thread t) { in waitForQueuedThread() argument 124 while (!sync.isQueued(t)) { in waitForQueuedThread() 129 assertTrue(t.isAlive()); in waitForQueuedThread() 490 Thread t = newStartedThread(new CheckedInterruptedRunnable() { in testTryAcquireNanos_Interruptible() local 495 waitForQueuedThread(sync, t); in testTryAcquireNanos_Interruptible() 496 t.interrupt(); in testTryAcquireNanos_Interruptible() 497 awaitTermination(t); in testTryAcquireNanos_Interruptible() 506 Thread t = newStartedThread(new CheckedRunnable() { in testTryAcquireWhenSynced() local 511 awaitTermination(t); in testTryAcquireWhenSynced() 521 Thread t = newStartedThread(new CheckedRunnable() { in testAcquireNanos_Timeout() local [all …]
|
D | AbstractQueuedSynchronizerTest.java | 125 void waitForQueuedThread(AbstractQueuedSynchronizer sync, Thread t) { in waitForQueuedThread() argument 127 while (!sync.isQueued(t)) { in waitForQueuedThread() 132 assertTrue(t.isAlive()); in waitForQueuedThread() 493 Thread t = newStartedThread(new CheckedInterruptedRunnable() { in testTryAcquireNanos_Interruptible() local 498 waitForQueuedThread(sync, t); in testTryAcquireNanos_Interruptible() 499 t.interrupt(); in testTryAcquireNanos_Interruptible() 500 awaitTermination(t); in testTryAcquireNanos_Interruptible() 509 Thread t = newStartedThread(new CheckedRunnable() { in testTryAcquireWhenSynced() local 514 awaitTermination(t); in testTryAcquireWhenSynced() 524 Thread t = newStartedThread(new CheckedRunnable() { in testAcquireNanos_Timeout() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TimerTest.java | 55 public TimerTestTask(Timer t) { in TimerTestTask() argument 56 timer = t; in TimerTestTask() 108 Timer t = null; in test_ConstructorZ() local 111 t = new Timer(true); in test_ConstructorZ() 113 t.schedule(testTask, 200); in test_ConstructorZ() 115 t.cancel(); in test_ConstructorZ() 117 if (t != null) in test_ConstructorZ() 118 t.cancel(); in test_ConstructorZ() 127 Timer t = null; in test_Constructor() local 130 t = new Timer(); in test_Constructor() [all …]
|
D | TimerTaskTest.java | 79 Timer t = null; in test_cancel() local 87 t = new Timer(); in test_cancel() 89 t.schedule(testTask, 500); in test_cancel() 91 t.cancel(); in test_cancel() 94 t = new Timer(); in test_cancel() 96 t.schedule(testTask, 50); in test_cancel() 109 t.cancel(); in test_cancel() 113 t = new Timer(); in test_cancel() 115 t.schedule(testTask, 500, 500); // should never run in test_cancel() 119 t.cancel(); in test_cancel() [all …]
|
/libcore/luni/src/test/java/libcore/icu/ |
D | TransliteratorTest.java | 23 Transliterator t = new Transliterator(id); in testAll() local 24 t.transliterate("hello"); in testAll() 30 Transliterator t = new Transliterator("Unknown"); in test_Unknown() local 38 Transliterator t = new Transliterator(null); in test_null_id() local 46 Transliterator t = new Transliterator("Any-Upper"); in test_null_string() local 47 t.transliterate(null); in test_null_string() 54 Transliterator t = new Transliterator("Any-Upper"); in test_Any_Upper() local 55 assertEquals("HELLO WORLD!", t.transliterate("HeLlO WoRlD!")); in test_Any_Upper() 56 assertEquals("STRASSE", t.transliterate("Straße")); in test_Any_Upper() 60 Transliterator t = new Transliterator("Any-Lower"); in test_Any_Lower() local [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | IntegerBenchmark.java | 24 int t = 0; in timeLongSignumBranch() local 26 t += signum1(-i); in timeLongSignumBranch() 27 t += signum1(0); in timeLongSignumBranch() 28 t += signum1(i); in timeLongSignumBranch() 30 return t; in timeLongSignumBranch() 34 int t = 0; in timeLongSignumBranchFree() local 36 t += signum2(-i); in timeLongSignumBranchFree() 37 t += signum2(0); in timeLongSignumBranchFree() 38 t += signum2(i); in timeLongSignumBranchFree() 40 return t; in timeLongSignumBranchFree() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1Impl.java | 91 for ( int t = 16; t < 80 ; t++ ) { in computeHash() 93 temp = arrW[t-3] ^ arrW[t-8] ^ arrW[t-14] ^ arrW[t-16]; in computeHash() 94 arrW[t] = ( temp<<1 ) | ( temp>>>31 ); in computeHash() 97 for ( int t = 0 ; t < 20 ; t++ ) { in computeHash() 101 ( e + arrW[t] + 0x5A827999 ) ; in computeHash() 108 for ( int t = 20 ; t < 40 ; t++ ) { in computeHash() 110 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash() 117 for ( int t = 40 ; t < 60 ; t++ ) { in computeHash() 120 (e + arrW[t] + 0x8F1BBCDC) ; in computeHash() 127 for ( int t = 60 ; t < 80 ; t++ ) { in computeHash() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | LockSupport.java | 105 private static void setBlocker(Thread t, Object arg) { in setBlocker() argument 107 unsafe.putObject(t, parkBlockerOffset, arg); in setBlocker() 155 Thread t = Thread.currentThread(); in park() local 156 setBlocker(t, blocker); in park() 158 setBlocker(t, null); in park() 195 Thread t = Thread.currentThread(); in parkNanos() local 196 setBlocker(t, blocker); in parkNanos() 198 setBlocker(t, null); in parkNanos() 236 Thread t = Thread.currentThread(); in parkUntil() local 237 setBlocker(t, blocker); in parkUntil() [all …]
|
D | AbstractQueuedSynchronizer.java | 564 Node t = tail; in enq() local 565 if (t == null) { // Must initialize in enq() 569 node.prev = t; in enq() 570 if (compareAndSetTail(t, node)) { in enq() 571 t.next = node; in enq() 572 return t; in enq() 636 for (Node t = tail; t != null && t != node; t = t.prev) in unparkSuccessor() 637 if (t.waitStatus <= 0) in unparkSuccessor() 638 s = t; in unparkSuccessor() 1399 Node t = tail; in fullGetFirstQueuedThread() [all …]
|
D | AbstractQueuedLongSynchronizer.java | 334 Node t = tail; in enq() local 335 if (t == null) { // Must initialize in enq() 339 node.prev = t; in enq() 340 if (compareAndSetTail(t, node)) { in enq() 341 t.next = node; in enq() 342 return t; in enq() 406 for (Node t = tail; t != null && t != node; t = t.prev) in unparkSuccessor() 407 if (t.waitStatus <= 0) in unparkSuccessor() 408 s = t; in unparkSuccessor() 1169 Node t = tail; in fullGetFirstQueuedThread() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ForkJoinTask.java | 352 int s; Thread t; ForkJoinWorkerThread wt; ForkJoinPool.WorkQueue w; in doJoin() local 354 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doJoin() 355 (w = (wt = (ForkJoinWorkerThread)t).workQueue). in doJoin() 367 int s; Thread t; ForkJoinWorkerThread wt; in doInvoke() local 369 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doInvoke() 370 (wt = (ForkJoinWorkerThread)t).pool.awaitJoin(wt.workQueue, this) : in doInvoke() 431 ExceptionNode[] t = exceptionTable; in recordExceptionalCompletion() local 432 int i = h & (t.length - 1); in recordExceptionalCompletion() 433 for (ExceptionNode e = t[i]; ; e = e.next) { in recordExceptionalCompletion() 435 t[i] = new ExceptionNode(this, ex, t[i]); in recordExceptionalCompletion() [all …]
|
D | ConcurrentLinkedQueue.java | 237 Node<E> h = null, t = null; in ConcurrentLinkedQueue() local 242 h = t = newNode; in ConcurrentLinkedQueue() 244 t.lazySetNext(newNode); in ConcurrentLinkedQueue() 245 t = newNode; in ConcurrentLinkedQueue() 249 h = t = new Node<E>(null); in ConcurrentLinkedQueue() 251 tail = t; in ConcurrentLinkedQueue() 298 for (Node<E> t = tail, p = t;;) { in offer() 306 if (p != t) // hop two nodes at a time in offer() 307 casTail(t, newNode); // Failure is OK. in offer() 317 p = (t != (t = tail)) ? t : head; in offer() [all …]
|
D | ConcurrentLinkedDeque.java | 363 for (Node<E> t = tail, p = t, q;;) { in linkLast() 368 p = (t != (t = tail)) ? t : q; in linkLast() 378 if (p != t) // hop two nodes at a time in linkLast() 379 casTail(t, newNode); // Failure is OK. in linkLast() 607 Node<E> t, p, q; in updateTail() local 609 while ((t = tail).item == null && (p = t.next) != null) { in updateTail() 615 if (casTail(t, p)) in updateTail() 620 else if (t != tail) in updateTail() 745 for (Node<E> t = tail, p = t, q;;) { in last() 750 p = (t != (t = tail)) ? t : q; in last() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | DualPivotQuicksort.java | 139 if (ae1 > ae2) { int t = ae1; ae1 = ae2; ae2 = t; } in dualPivotQuicksort() local 140 if (ae4 > ae5) { int t = ae4; ae4 = ae5; ae5 = t; } in dualPivotQuicksort() local 141 if (ae1 > ae3) { int t = ae1; ae1 = ae3; ae3 = t; } in dualPivotQuicksort() local 142 if (ae2 > ae3) { int t = ae2; ae2 = ae3; ae3 = t; } in dualPivotQuicksort() local 143 if (ae1 > ae4) { int t = ae1; ae1 = ae4; ae4 = t; } in dualPivotQuicksort() local 144 if (ae3 > ae4) { int t = ae3; ae3 = ae4; ae4 = t; } in dualPivotQuicksort() local 145 if (ae2 > ae5) { int t = ae2; ae2 = ae5; ae5 = t; } in dualPivotQuicksort() local 146 if (ae2 > ae3) { int t = ae2; ae2 = ae3; ae3 = t; } in dualPivotQuicksort() local 147 if (ae4 > ae5) { int t = ae4; ae4 = ae5; ae5 = t; } in dualPivotQuicksort() local 417 if (ae1 > ae2) { long t = ae1; ae1 = ae2; ae2 = t; } in dualPivotQuicksort() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/ |
D | InvalidPreferencesFormatExceptionTest.java | 43 Throwable t = new Throwable("root"); in testInvalidPreferencesFormatExceptionStringThrowable() local 45 "msg", t); in testInvalidPreferencesFormatExceptionStringThrowable() 46 assertSame(t, e.getCause()); in testInvalidPreferencesFormatExceptionStringThrowable() 48 assertTrue(e.getMessage().indexOf(t.getClass().getName()) < 0); in testInvalidPreferencesFormatExceptionStringThrowable() 56 Throwable t = new Throwable("root"); 58 t); 59 assertSame(t, e.getCause()); 61 assertTrue(e.getMessage().indexOf(t.getClass().getName()) >= 0);
|
/libcore/luni/src/main/java/org/apache/harmony/security/asn1/ |
D | ASN1Choice.java | 238 ASN1Type t = type[index]; in ASN1Choice() local 240 if (t instanceof ASN1Any) { in ASN1Choice() 244 } else if (t instanceof ASN1Choice) { in ASN1Choice() 247 int[][] choiceToAdd = ((ASN1Choice) t).identifiers; in ASN1Choice() 255 if (t.checkTag(t.id)) { in ASN1Choice() 256 addIdentifier(map, t.id, index); in ASN1Choice() 260 if (t.checkTag(t.constrId)) { in ASN1Choice() 261 addIdentifier(map, t.constrId, index); in ASN1Choice()
|
/libcore/luni/src/main/java/libcore/util/ |
D | SneakyThrow.java | 58 public static void sneakyThrow(Throwable t) { in sneakyThrow() argument 59 SneakyThrow.<Error>sneakyThrow2(t); in sneakyThrow() 67 private static <T extends Throwable> void sneakyThrow2(Throwable t) throws T { in sneakyThrow2() argument 68 throw (T) t; in sneakyThrow2()
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | InvalidPreferencesFormatException.java | 49 public InvalidPreferencesFormatException (String s, Throwable t) { in InvalidPreferencesFormatException() argument 50 super(s,t); in InvalidPreferencesFormatException() 60 public InvalidPreferencesFormatException (Throwable t) { in InvalidPreferencesFormatException() argument 61 super(t); in InvalidPreferencesFormatException()
|
/libcore/expectations/ |
D | icebox.txt | 2 * This file contains expectations for tests that we'd like to eventually fix, but aren't urgent. 6 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 12 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 15 substring: "This implementation doesn't resolve entity references in getWholeText" 18 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 21 substring: "This implementation doesn't include children in entity references" 24 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 27 substring: "This implementation doesn't expand entity references" 30 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 36 description: "Dalvik doesn't support XML Schemas, DTDs or validation", [all …]
|
/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamField.java | 246 Class<?> t = getTypeInternal(); in getTypeString() local 247 String typeName = t.getName().replace('.', '/'); in getTypeString() 248 String str = (t.isArray()) ? typeName : ("L" + typeName + ';'); in getTypeString() 261 Class<?> t = getTypeInternal(); in isPrimitive() local 262 return t != null && t.isPrimitive(); in isPrimitive() 266 Class<?> t = getTypeInternal(); in writeField() local 267 out.writeByte(typeCodeOf(t)); in writeField() 269 return (t != null && t.isPrimitive()); in writeField()
|