/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/helpers/ |
D | DefaultHandlerTest.java | 37 private DefaultHandler h = new DefaultHandler(); field in DefaultHandlerTest 41 h.resolveEntity("publicID", "systemID"); in testResolveEntity() 51 h.notationDecl("name", "publicID", "systemID"); in testNotationDecl() 59 h.unparsedEntityDecl("name", "publicID", "systemID", in testUnparsedEntityDecl() 67 h.setDocumentLocator(new LocatorImpl()); in testSetDocumentLocator() 72 h.startDocument(); in testStartDocument() 80 h.endDocument(); in testEndDocument() 88 h.startPrefixMapping("prefix", "uri"); in testStartPrefixMapping() 96 h.endPrefixMapping("prefix"); in testEndPrefixMapping() 104 h.startElement("uri", "name", "qname", new AttributesImpl()); in testStartElement() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ |
D | HandlerBaseTest.java | 36 private HandlerBase h = new HandlerBase(); field in HandlerBaseTest 40 h.resolveEntity("publicID", "systemID"); in testResolveEntity() 47 h.notationDecl("name", "publicID", "systemID"); in testNotationDecl() 51 h.unparsedEntityDecl("name", "publicID", "systemID", "notationName"); in testUnparsedEntityDecl() 55 h.setDocumentLocator(new LocatorImpl()); in testSetDocumentLocator() 60 h.startDocument(); in testStartDocument() 68 h.endDocument(); in testEndDocument() 76 h.startElement("name", new AttributeListImpl()); in testStartElement() 84 h.endElement("name"); in testEndElement() 92 h.characters("The quick brown fox".toCharArray(), 4, 11); in testCharacters() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/org/xml/sax/ext/ |
D | DefaultHandler2Test.java | 28 private DefaultHandler2 h = new DefaultHandler2(); field in DefaultHandler2Test 36 h.startCDATA(); in testStartCDATA() 44 h.endCDATA(); in testEndCDATA() 52 h.startDTD("name", "publicId", "systemId"); in testStartDTD() 60 h.endDTD(); in testEndDTD() 68 h.startEntity("name"); in testStartEntity() 76 h.endEntity("name"); in testEndEntity() 84 h.comment("<!-- Comment -->".toCharArray(), 0, 15); in testComment() 92 h.attributeDecl("eName", "aName", "type", "mode", "value"); in testAttributeDecl() 100 h.elementDecl("name", "model"); in testElementDecl() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/logging/ |
D | OldFormatterTest.java | 32 Handler h; field in OldFormatterTest 36 h = new StreamHandler(); in setUp() 47 assertEquals("head string is not empty", "", f.getHead(h)); in testGetHead() 48 h.publish(r); in testGetHead() 49 assertEquals("head string is not empty", "", f.getHead(h)); in testGetHead() 54 assertEquals("tail string is not empty", "", f.getTail(h)); in testGetTail() 55 h.publish(r); in testGetTail() 56 assertEquals("tail string is not empty", "", f.getTail(h)); in testGetTail()
|
D | OldFileHandlerTest.java | 141 FileHandler h = new FileHandler("%t/log/string"); in testFileHandler_1params() local 145 h.publish(r); in testFileHandler_1params() 149 h.close(); in testFileHandler_1params() 153 assertFileContent(TEMPPATH + SEP + "log", "string", h.getFormatter()); in testFileHandler_1params() 154 assertFileContent(TEMPPATH + SEP + "log", "string.1", h.getFormatter()); in testFileHandler_1params() 155 assertFileContent(TEMPPATH + SEP + "log", "string.2", h.getFormatter()); in testFileHandler_1params() 156 assertFileContent(TEMPPATH + SEP + "log", "string.3", h.getFormatter()); in testFileHandler_1params() 166 assertFileContent(TEMPPATH + SEP + "log", "string0.log", h in testFileHandler_1params() 181 assertFileContent(TEMPPATH + SEP + "log", "0string0.log", h in testFileHandler_1params() 183 assertFileContent(TEMPPATH + SEP + "log", "1string1.log", h in testFileHandler_1params() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | SynchronousQueue.java | 274 boolean casHead(SNode h, SNode nh) { in casHead() argument 275 return h == head && in casHead() 276 UNSAFE.compareAndSwapObject(this, headOffset, h, nh); in casHead() 323 SNode h = head; in transfer() local 324 if (h == null || h.mode == mode) { // empty or same-mode in transfer() 326 if (h != null && h.isCancelled()) in transfer() 327 casHead(h, h.next); // pop cancelled node in transfer() 330 } else if (casHead(h, s = snode(s, e, h, mode))) { in transfer() 336 if ((h = head) != null && h.next == s) in transfer() 337 casHead(h, s.next); // help s's fulfiller in transfer() [all …]
|
D | Exchanger.java | 353 for (int h = p.hash, spins = SPINS;;) { in arenaExchange() 358 p.hash = h; in arenaExchange() 362 h ^= h << 1; h ^= h >>> 3; h ^= h << 10; // xorshift in arenaExchange() 363 if (h == 0) // initialize hash in arenaExchange() 364 h = SPINS | (int)t.getId(); in arenaExchange() 365 else if (h < 0 && // approx 50% true in arenaExchange() 386 p.hash = h; in arenaExchange() 459 int h = p.hash; in slotExchange() local 465 h ^= h << 1; h ^= h >>> 3; h ^= h << 10; in slotExchange() 466 if (h == 0) in slotExchange() [all …]
|
D | ConcurrentLinkedQueue.java | 237 Node<E> h = null, t = null; in ConcurrentLinkedQueue() local 241 if (h == null) in ConcurrentLinkedQueue() 242 h = t = newNode; in ConcurrentLinkedQueue() 248 if (h == null) in ConcurrentLinkedQueue() 249 h = t = new Node<E>(null); in ConcurrentLinkedQueue() 250 head = h; in ConcurrentLinkedQueue() 272 final void updateHead(Node<E> h, Node<E> p) { in updateHead() argument 273 if (h != p && casHead(h, p)) in updateHead() 274 h.lazySetNext(h); in updateHead() 327 for (Node<E> h = head, p = h, q;;) { in poll() [all …]
|
D | ConcurrentLinkedDeque.java | 330 for (Node<E> h = head, p = h, q;;) { in linkFirst() 335 p = (h != (h = head)) ? h : q; in linkFirst() 345 if (p != h) // hop two nodes at a time in linkFirst() 346 casHead(h, newNode); // Failure is OK. in linkFirst() 577 Node<E> h, p, q; in updateHead() local 579 while ((h = head).item == null && (p = h.prev) != null) { in updateHead() 585 if (casHead(h, p)) in updateHead() 590 else if (h != head) in updateHead() 720 for (Node<E> h = head, p = h, q;;) { in first() 725 p = (h != (h = head)) ? h : q; in first() [all …]
|
D | LinkedBlockingQueue.java | 180 Node<E> h = head; in dequeue() local 181 Node<E> first = h.next; in dequeue() 182 h.next = h; // help GC in dequeue() 664 for (Node<E> p, h = head; (p = h.next) != null; h = p) { in clear() 665 h.next = h; in clear() 706 Node<E> h = head; in drainTo() local 710 Node<E> p = h.next; in drainTo() 713 h.next = h; in drainTo() 714 h = p; in drainTo() 722 head = h; in drainTo()
|
D | LinkedTransferQueue.java | 583 for (Node h = head, p = h; p != null;) { // find & match first node in xfer() 590 for (Node q = p; q != h;) { in xfer() 592 if (head == h && casHead(h, n == null ? q : n)) { in xfer() 593 h.forgetNext(); in xfer() 596 if ((h = head) == null || in xfer() 597 (q = h.next) == null || !q.isMatched()) in xfer() 605 p = (p != n) ? n : (h = head); // Use head if p offlist in xfer() 908 Node h = head; in unsplice() local 909 if (h == pred || h == s || h == null) in unsplice() 911 if (!h.isMatched()) in unsplice() [all …]
|
D | ConcurrentHashMap.java | 457 Node<K,V> find(int h, Object k) { in find() argument 462 if (e.hash == h && in find() 489 static final int spread(int h) { in spread() argument 490 return (h ^ (h >>> 16)) & HASH_BITS; in spread() 746 int h = spread(key.hashCode()); in get() local 748 (e = tabAt(tab, (n - 1) & h)) != null) { in get() 749 if ((eh = e.hash) == h) { in get() 754 return (p = e.find(h, key)) != null ? p.val : null; in get() 756 if (e.hash == h && in get() 1098 int h = 0; in hashCode() local [all …]
|
D | ConcurrentSkipListMap.java | 888 HeadIndex<K,V> h = head; in insertIndex() local 889 int max = h.level; in insertIndex() 895 addIndex(idx, h, level); in insertIndex() 941 private void addIndex(Index<K,V> idx, HeadIndex<K,V> h, int indexLevel) { in addIndex() argument 950 int j = h.level; in addIndex() 951 Index<K,V> q = h; in addIndex() 1080 HeadIndex<K,V> h = head; in tryReduceLevel() local 1083 if (h.level > 3 && in tryReduceLevel() 1084 (d = (HeadIndex<K,V>)h.down) != null && in tryReduceLevel() 1088 h.right == null && in tryReduceLevel() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | HashtableTest.java | 57 Hashtable h = new Hashtable(); in test_Constructor() local 59 assertEquals("Created incorrect hashtable", 0, h.size()); in test_Constructor() 67 Hashtable h = new Hashtable(9); in test_ConstructorI() local 69 assertEquals("Created incorrect hashtable", 0, h.size()); in test_ConstructorI() 82 Hashtable h = new java.util.Hashtable(10, 0.5f); in test_ConstructorIF() local 83 assertEquals("Created incorrect hashtable", 0, h.size()); in test_ConstructorIF() 140 Hashtable h = hashtableClone(htfull); in test_clear() local 141 h.clear(); in test_clear() 142 assertEquals("Hashtable was not cleared", 0, h.size()); in test_clear() 143 Enumeration el = h.elements(); in test_clear() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ObjectsTest.java | 73 Hello h = new Hello(); in test_hashCode() local 74 assertEquals(h.hashCode(), Objects.hashCode(h)); in test_hashCode() 79 Hello h = new Hello(); in test_requireNonNull_T() local 80 assertEquals(h, Objects.requireNonNull(h)); in test_requireNonNull_T() 90 Hello h = new Hello(); in test_requireNonNull_T_String() local 91 assertEquals(h, Objects.requireNonNull(h, "test")); in test_requireNonNull_T_String()
|
/libcore/luni/src/main/java/java/util/ |
D | ArrayDeque.java | 263 int h = head; in pollFirst() local 264 @SuppressWarnings("unchecked") E result = (E) elements[h]; in pollFirst() 268 elements[h] = null; // Must null out slot in pollFirst() 269 head = (h + 1) & (elements.length - 1); in pollFirst() 508 final int h = head; in delete() local 510 final int front = (i - h) & mask; in delete() 514 if (front >= ((t - h) & mask)) in delete() 519 if (h <= i) { in delete() 520 System.arraycopy(elements, h, elements, h + 1, front); in delete() 524 System.arraycopy(elements, h, elements, h + 1, mask - h); in delete() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | AbstractQueuedSynchronizer.java | 662 Node h = head; in doReleaseShared() local 663 if (h != null && h != tail) { in doReleaseShared() 664 int ws = h.waitStatus; in doReleaseShared() 666 if (!compareAndSetWaitStatus(h, Node.SIGNAL, 0)) in doReleaseShared() 668 unparkSuccessor(h); in doReleaseShared() 671 !compareAndSetWaitStatus(h, 0, Node.PROPAGATE)) in doReleaseShared() 674 if (h == head) // loop if head changed in doReleaseShared() 688 Node h = head; // Record old head for check below in setHeadAndPropagate() local 705 if (propagate > 0 || h == null || h.waitStatus < 0) { in setHeadAndPropagate() 1239 Node h = head; in release() local [all …]
|
D | AbstractQueuedLongSynchronizer.java | 432 Node h = head; in doReleaseShared() local 433 if (h != null && h != tail) { in doReleaseShared() 434 int ws = h.waitStatus; in doReleaseShared() 436 if (!compareAndSetWaitStatus(h, Node.SIGNAL, 0)) in doReleaseShared() 438 unparkSuccessor(h); in doReleaseShared() 441 !compareAndSetWaitStatus(h, 0, Node.PROPAGATE)) in doReleaseShared() 444 if (h == head) // loop if head changed in doReleaseShared() 458 Node h = head; // Record old head for check below in setHeadAndPropagate() local 475 if (propagate > 0 || h == null || h.waitStatus < 0) { in setHeadAndPropagate() 1009 Node h = head; in release() local [all …]
|
/libcore/libart/src/main/java/java/lang/reflect/ |
D | Proxy.java | 70 protected InvocationHandler h; field in Proxy 83 protected Proxy(InvocationHandler h) { in Proxy() argument 84 this.h = h; in Proxy() 279 return ((Proxy) proxy).h; in getInvocationHandler() 393 private static native void constructorPrototype(InvocationHandler h); in constructorPrototype() argument 396 InvocationHandler h = proxy.h; in invoke() local 397 return h.invoke(proxy, new Method(method), args); in invoke()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ForkJoinTaskTest.java | 808 AsyncFib h = new AsyncFib(7); in testInvokeAll3() 809 invokeAll(f, g, h); in testInvokeAll3() 812 assertEquals(13, h.number); in testInvokeAll3() 815 checkCompletedNormally(h); in testInvokeAll3() 828 AsyncFib h = new AsyncFib(7); in testInvokeAllCollection() 832 set.add(h); in testInvokeAllCollection() 836 assertEquals(13, h.number); in testInvokeAllCollection() 839 checkCompletedNormally(h); in testInvokeAllCollection() 852 AsyncFib h = null; in testInvokeAllNPE() 854 invokeAll(f, g, h); in testInvokeAllNPE() [all …]
|
D | CountedCompleterTest.java | 1026 CCF h = new LCCF(7); in testInvokeAll3() 1027 invokeAll(f, g, h); in testInvokeAll3() 1030 assertEquals(13, h.number); in testInvokeAll3() 1033 checkCompletedNormally(h); in testInvokeAll3() 1046 CCF h = new LCCF(7); in testInvokeAllCollection() 1050 set.add(h); in testInvokeAllCollection() 1054 assertEquals(13, h.number); in testInvokeAllCollection() 1057 checkCompletedNormally(h); in testInvokeAllCollection() 1070 CCF h = null; in testInvokeAllNPE() 1072 invokeAll(f, g, h); in testInvokeAllNPE() [all …]
|
D | RecursiveTaskTest.java | 721 FibTask h = new FibTask(7); in testInvokeAll3() 722 invokeAll(f, g, h); in testInvokeAll3() 725 assertTrue(h.isDone()); in testInvokeAll3() 728 checkCompletedNormally(h, 13); in testInvokeAll3() 742 FibTask h = new FibTask(7); in testInvokeAllCollection() 746 set.add(h); in testInvokeAllCollection() 750 assertTrue(h.isDone()); in testInvokeAllCollection() 753 checkCompletedNormally(h, 13); in testInvokeAllCollection() 767 FibTask h = null; in testInvokeAllNPE() 769 invokeAll(f, g, h); in testInvokeAllNPE() [all …]
|
D | RecursiveActionTest.java | 902 FibAction h = new FibAction(7); in testInvokeAll3() 903 invokeAll(f, g, h); in testInvokeAll3() 906 assertTrue(h.isDone()); in testInvokeAll3() 912 assertEquals(13, h.result); in testInvokeAll3() 925 FibAction h = new FibAction(7); in testInvokeAllCollection() 929 set.add(h); in testInvokeAllCollection() 933 assertTrue(h.isDone()); in testInvokeAllCollection() 939 assertEquals(13, h.result); in testInvokeAllCollection() 952 FibAction h = null; in testInvokeAllNPE() 954 invokeAll(f, g, h); in testInvokeAllNPE() [all …]
|
/libcore/luni/src/main/java/java/util/logging/ |
D | Formatter.java | 100 public String getHead(Handler h) { in getHead() argument 113 public String getTail(Handler h) { in getTail() argument
|
D | XMLFormatter.java | 151 public String getHead(Handler h) { in getHead() argument 153 if (h != null) { in getHead() 154 encoding = h.getEncoding(); in getHead() 177 public String getTail(Handler h) { in getTail() argument
|