/libcore/luni/src/test/java/tests/api/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 | 341 int s; Thread t; ForkJoinWorkerThread wt; ForkJoinPool.WorkQueue w; in doJoin() local 343 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doJoin() 344 (w = (wt = (ForkJoinWorkerThread)t).workQueue). in doJoin() 356 int s; Thread t; ForkJoinWorkerThread wt; in doInvoke() local 358 ((t = Thread.currentThread()) instanceof ForkJoinWorkerThread) ? in doInvoke() 359 (wt = (ForkJoinWorkerThread)t).pool.awaitJoin(wt.workQueue, this) : in doInvoke() 420 ExceptionNode[] t = exceptionTable; in recordExceptionalCompletion() local 421 int i = h & (t.length - 1); in recordExceptionalCompletion() 422 for (ExceptionNode e = t[i]; ; e = e.next) { in recordExceptionalCompletion() 424 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 | 365 for (Node<E> t = tail, p = t, q;;) { in linkLast() 370 p = (t != (t = tail)) ? t : q; in linkLast() 380 if (p != t) // hop two nodes at a time in linkLast() 381 casTail(t, newNode); // Failure is OK. in linkLast() 609 Node<E> t, p, q; in updateTail() local 611 while ((t = tail).item == null && (p = t.next) != null) { in updateTail() 617 if (casTail(t, p)) in updateTail() 622 else if (t != tail) in updateTail() 747 for (Node<E> t = tail, p = t, q;;) { in last() 752 p = (t != (t = tail)) ? t : q; in last() [all …]
|
D | ForkJoinPool.java | 739 int oldMask, t, b; in growArray() local 742 (t = top) - (b = base) > 0) { in growArray() 752 } while (++b != t); in growArray() 762 ForkJoinTask<?>[] a; ForkJoinTask<?> t; int m; in pop() local 766 if ((t = (ForkJoinTask<?>)U.getObject(a, j)) == null) in pop() 768 if (U.compareAndSwapObject(a, j, t, null)) { in pop() 770 return t; in pop() 783 ForkJoinTask<?> t; ForkJoinTask<?>[] a; in pollAt() local 786 if ((t = (ForkJoinTask<?>)U.getObjectVolatile(a, j)) != null && in pollAt() 788 U.compareAndSwapObject(a, j, t, null)) { in pollAt() [all …]
|
D | Exchanger.java | 352 Thread t = Thread.currentThread(); // wait in arenaExchange() local 364 h = SPINS | (int)t.getId(); in arenaExchange() 371 else if (!t.isInterrupted() && m == 0 && in arenaExchange() 374 U.putObject(t, BLOCKER, this); // emulate LockSupport in arenaExchange() 375 p.parked = t; // minimize window in arenaExchange() 379 U.putObject(t, BLOCKER, null); in arenaExchange() 429 Thread t = Thread.currentThread(); in slotExchange() local 430 if (t.isInterrupted()) // preserve interrupt status so caller can recheck in slotExchange() 467 h = SPINS | (int)t.getId(); in slotExchange() 473 else if (!t.isInterrupted() && arena == null && in slotExchange() [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/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()
|
D | BackingStoreException.java | 48 public BackingStoreException (Throwable t) { in BackingStoreException() argument 49 super(t); in BackingStoreException()
|
/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/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()
|
/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: "javasqlite doesn't honor query timeouts", 16 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 22 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 25 substring: "This implementation doesn't resolve entity references in getWholeText" 28 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 31 substring: "This implementation doesn't include children in entity references" 34 description: "Dalvik doesn't support XML Schemas, DTDs or validation", 37 substring: "This implementation doesn't expand entity references" 40 description: "Dalvik doesn't support XML Schemas, DTDs or validation", [all …]
|
D | brokentests.txt | 2 * This file contains expectations for tests that we'd like to eventually fix, but aren't urgent. 26 description: "Without no security manager, we don't care if checkPermission's argument is null", 40 is an error because the CharsetEncoder doesn't remember it's half-way through a 76 description: "The RI avoids blocking calls when '\\r' is the last character. We don't 84 description: "The RI avoids blocking calls when '\\r' is the last character. We don't 92 description: "The test is checking that the implementation doesn't read any characters 100 description: "These tests only pass if the root logger hasn't yet been initialized. They 102 resource bundle; this isn't the case.", 108 description: "These tests only pass if the root logger hasn't yet been initialized. They 110 resource bundle; this isn't the case.", [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Pattern2Test.java | 113 String t = matches[j]; in testCategory() local 114 boolean invert = t.startsWith("-"); in testCategory() 117 t = t.substring(1); in testCategory() 118 assertFalse("expected '"+t+"' to not be matched " + in testCategory() 119 "by pattern '"+pat, p.matcher(t).matches()); in testCategory() 120 assertTrue("expected '"+t+"' to " + in testCategory() 121 "be matched by pattern '"+npat, pn.matcher(t).matches()); in testCategory() 123 assertTrue("expected '"+t+"' to be matched " + in testCategory() 124 "by pattern '"+pat, p.matcher(t).matches()); in testCategory() 125 assertFalse("expected '"+t+"' to " + in testCategory() [all …]
|
/libcore/luni/src/test/java/tests/api/java/lang/ref/ |
D | SoftReferenceTest.java | 106 TestThread t = new TestThread(); in test_get_SoftReference() local 107 t.start(); in test_get_SoftReference() 108 t.join(); in test_get_SoftReference() 125 TestThread t = new TestThread(); in test_get_SoftReference() local 126 t.start(); in test_get_SoftReference() 127 t.join(); in test_get_SoftReference()
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacTest.java | 531 for(int t = 0; t < res1.length; t++) { in testMac14() 532 assertEquals("Results are not the same", res1[t], res2[t]); in testMac14() 541 for(int t = 0; t < res1.length; t++) { in testMac14() 542 assertEquals("Results are not the same", res1[t], res2[t]); in testMac14() 649 for (int t = 0; t < bb1.length; t++) { in testUpdateByteBuffer01() 650 assertEquals("Incorrect doFinal result", bb1[t], bb2[t]); in testUpdateByteBuffer01() 656 for (int t = 0; t < bb1.length; t++) { in testUpdateByteBuffer01() 657 assertEquals("Incorrect doFinal result", bb1[t], bb2[t]); in testUpdateByteBuffer01() 693 for (int t = 0; t < bb1.length; t++) { in testUpdateByteBuffer02() 694 assertEquals("Incorrect doFinal result", bb1[t], bb2[t]); in testUpdateByteBuffer02() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ServerSocketTest.java | 31 Thread t = new Thread(new Runnable() { in testTimeoutAfterAccept() local 41 t.start(); in testTimeoutAfterAccept() 43 t.join(); in testTimeoutAfterAccept()
|