/libcore/luni/src/test/java/tests/api/java/util/ |
D | TimerTest.java | 54 public TimerTestTask(Timer t) { in TimerTestTask() argument 55 timer = t; in TimerTestTask() 98 Timer t = null; in test_ConstructorZ() local 101 t = new Timer(true); in test_ConstructorZ() 103 t.schedule(testTask, 200); in test_ConstructorZ() 112 t.cancel(); in test_ConstructorZ() 114 if (t != null) in test_ConstructorZ() 115 t.cancel(); in test_ConstructorZ() 124 Timer t = null; in test_Constructor() local 127 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/main/java/org/apache/harmony/security/provider/crypto/ |
D | SHA1Impl.java | 92 for ( int t = 16; t < 80 ; t++ ) { in computeHash() 94 temp = arrW[t-3] ^ arrW[t-8] ^ arrW[t-14] ^ arrW[t-16]; in computeHash() 95 arrW[t] = ( temp<<1 ) | ( temp>>>31 ); in computeHash() 98 for ( int t = 0 ; t < 20 ; t++ ) { in computeHash() 102 ( e + arrW[t] + 0x5A827999 ) ; in computeHash() 109 for ( int t = 20 ; t < 40 ; t++ ) { in computeHash() 111 temp = ((( a<<5 ) | ( a>>>27 ))) + (b ^ c ^ d) + (e + arrW[t] + 0x6ED9EBA1) ; in computeHash() 118 for ( int t = 40 ; t < 60 ; t++ ) { in computeHash() 121 (e + arrW[t] + 0x8F1BBCDC) ; in computeHash() 128 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() 1400 Node t = tail; in fullGetFirstQueuedThread() [all …]
|
D | AbstractQueuedLongSynchronizer.java | 333 Node t = tail; in enq() local 334 if (t == null) { // Must initialize in enq() 338 node.prev = t; in enq() 339 if (compareAndSetTail(t, node)) { in enq() 340 t.next = node; in enq() 341 return t; in enq() 405 for (Node t = tail; t != null && t != node; t = t.prev) in unparkSuccessor() 406 if (t.waitStatus <= 0) in unparkSuccessor() 407 s = t; in unparkSuccessor() 1169 Node t = tail; in fullGetFirstQueuedThread() [all …]
|
D | AbstractOwnableSynchronizer.java | 43 protected final void setExclusiveOwnerThread(Thread t) { in setExclusiveOwnerThread() argument 44 exclusiveOwnerThread = t; in setExclusiveOwnerThread()
|
/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/java/util/concurrent/ |
D | ConcurrentLinkedQueue.java | 222 Node<E> h = null, t = null; in ConcurrentLinkedQueue() local 227 h = t = newNode; in ConcurrentLinkedQueue() 229 t.lazySetNext(newNode); in ConcurrentLinkedQueue() 230 t = newNode; in ConcurrentLinkedQueue() 234 h = t = new Node<E>(null); in ConcurrentLinkedQueue() 236 tail = t; in ConcurrentLinkedQueue() 283 for (Node<E> t = tail, p = t;;) { in offer() 291 if (p != t) // hop two nodes at a time in offer() 292 casTail(t, newNode); // Failure is OK. in offer() 302 p = (t != (t = tail)) ? t : head; in offer() [all …]
|
D | ConcurrentLinkedDeque.java | 352 for (Node<E> t = tail, p = t, q;;) { in linkLast() 357 p = (t != (t = tail)) ? t : q; in linkLast() 367 if (p != t) // hop two nodes at a time in linkLast() 368 casTail(t, newNode); // Failure is OK. in linkLast() 596 Node<E> t, p, q; in updateTail() local 598 while ((t = tail).item == null && (p = t.next) != null) { in updateTail() 604 if (casTail(t, p)) in updateTail() 609 else if (t != tail) in updateTail() 734 for (Node<E> t = tail, p = t, q;;) { in last() 739 p = (t != (t = tail)) ? t : q; in last() [all …]
|
D | ScheduledThreadPoolExecutor.java | 345 RunnableScheduledFuture<?> t = in onShutdown() local 347 if ((t.isPeriodic() ? !keepPeriodic : !keepDelayed) || in onShutdown() 348 t.isCancelled()) { // also remove if already cancelled in onShutdown() 349 if (q.remove(t)) in onShutdown() 350 t.cancel(false); in onShutdown() 499 RunnableScheduledFuture<?> t = decorateTask(command, in schedule() local 502 delayedExecute(t); in schedule() 503 return t; in schedule() 515 RunnableScheduledFuture<V> t = decorateTask(callable, in schedule() local 518 delayedExecute(t); in schedule() [all …]
|
D | SynchronousQueue.java | 569 void advanceTail(QNode t, QNode nt) { in advanceTail() argument 570 if (tail == t) in advanceTail() 571 UNSAFE.compareAndSwapObject(this, tailOffset, t, nt); in advanceTail() 615 QNode t = tail; in transfer() local 617 if (t == null || h == null) // saw uninitialized value in transfer() 620 if (h == t || t.isData == isData) { // empty or same-mode in transfer() 621 QNode tn = t.next; in transfer() 622 if (t != tail) // inconsistent read in transfer() 625 advanceTail(t, tn); in transfer() 632 if (!t.casNext(null, s)) // failed to link in in transfer() [all …]
|
/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/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
D | MacTest.java | 449 for(int t = 0; t < res1.length; t++) { in testMac12() 450 assertEquals("Results are not the same", res1[t], res2[t]); in testMac12() 456 for(int t = 0; t < res1.length; t++) { in testMac12() 457 assertEquals("Results are not the same", res1[t], res2[t]); in testMac12() 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() [all …]
|
/libcore/luni/src/main/java/java/io/ |
D | ObjectStreamField.java | 242 Class<?> t = getTypeInternal(); in getTypeString() local 243 String typeName = t.getName().replace('.', '/'); in getTypeString() 244 String str = (t.isArray()) ? typeName : ("L" + typeName + ';'); in getTypeString() 257 Class<?> t = getTypeInternal(); in isPrimitive() local 258 return t != null && t.isPrimitive(); in isPrimitive() 262 Class<?> t = getTypeInternal(); in writeField() local 263 out.writeByte(typeCodeOf(t)); in writeField() 265 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/tests/api/java/lang/ref/ |
D | SoftReferenceTest.java | 105 TestThread t = new TestThread(); in test_get_SoftReference() local 106 t.start(); in test_get_SoftReference() 107 t.join(); in test_get_SoftReference() 124 TestThread t = new TestThread(); in test_get_SoftReference() local 125 t.start(); in test_get_SoftReference() 126 t.join(); in test_get_SoftReference()
|
/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()
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | VMStack.java | 69 native public static StackTraceElement[] getThreadStackTrace(Thread t); in getThreadStackTrace() argument 82 native public static int fillStackTraceElements(Thread t, in fillStackTraceElements() argument
|
/libcore/luni/src/main/java/java/lang/ |
D | VMThread.java | 23 VMThread(Thread t) { in VMThread() argument 24 thread = t; in VMThread() 27 native static void create(Thread t, long stackSize); in create() argument
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | OldGenericTypesTest.java | 33 T methodGenericType(T t){ return t;} in methodGenericType() argument 35 <T> T hidingMethodGenericType(T t){ return t;} in hidingMethodGenericType() argument 36 static <T> T staticMethodGenericType(T t){ return t;} in staticMethodGenericType() argument 40 void multipleBoundedGenericTypesTS(T t, S s){} in multipleBoundedGenericTypesTS() argument 46 ConstructorGenericType(T t){} in ConstructorGenericType() argument 51 InnerClass(T t) {} in InnerClass() argument 52 void innerMethod(T t){} in innerMethod() argument 103 void multipleGenericTypesT(T t){} in multipleGenericTypesT() argument 105 void multipleGenericTypesTS(T t, S s){} in multipleGenericTypesTS() argument
|