Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 15 of 15) sorted by relevance

/libcore/ojluni/src/main/java/java/util/
DArrayDeque.java113 transient int tail; field in ArrayDeque
152 assert head == tail; in doubleCapacity() local
164 tail = n; in doubleCapacity()
214 if (head == tail) in addFirst()
229 elements[tail] = e; in addLast()
230 if ( (tail = (tail + 1) & (elements.length - 1)) == head) in addLast()
293 final int t = (tail - 1) & (elements.length - 1); in pollLast()
298 tail = t; in pollLast()
319 E result = (E) elements[(tail - 1) & (elements.length - 1)]; in getLast()
333 return (E) elements[(tail - 1) & (elements.length - 1)]; in peekLast()
[all …]
DLinkedHashMap.java233 transient LinkedHashMapEntry<K,V> tail; field in LinkedHashMap
247 LinkedHashMapEntry<K,V> last = tail; in linkNodeLast()
248 tail = p; in linkNodeLast()
267 tail = dst; in transferLinks()
276 head = tail = null; in reinitialize()
316 tail = b; in afterNodeRemoval()
331 if (accessOrder && (last = tail) != e) { in afterNodeAccess()
349 tail = p; in afterNodeAccess()
488 head = tail = null; in clear()
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
DTestUtils.java52 String tail = Integer.toHexString(0x000000ff & data[i]); in printAsHex() local
53 if (tail.length() == 1) { in printAsHex()
54 tail = "0" + tail; in printAsHex()
56 System.out.print(prefix + "0x" + tail + delimiter); in printAsHex()
/libcore/ojluni/src/main/java/java/lang/ref/
DReferenceQueue.java47 private Reference<? extends T> tail = null; field in ReferenceQueue
83 if (tail == null) { in enqueueLocked()
86 tail.queueNext = r; in enqueueLocked()
88 tail = r; in enqueueLocked()
89 tail.queueNext = r; in enqueueLocked()
124 if (head == tail) { in reallyPollLocked()
125 tail = null; in reallyPollLocked()
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DAbstractQueuedLongSynchronizer.java92 private transient volatile Node tail; field in AbstractQueuedLongSynchronizer
150 Node oldTail = tail; in enq()
173 Node oldTail = tail; in addWaiter()
223 for (Node p = tail; p != node && p != null; p = p.prev) in unparkSuccessor()
250 if (h != null && h != tail) { in doReleaseShared()
331 if (node == tail && compareAndSetTail(node, pred)) { in cancelAcquire()
920 return head != tail; in hasQueuedThreads()
949 return (head == tail) ? null : fullGetFirstQueuedThread(); in getFirstQueuedThread()
981 for (Node p = tail; p != null && p != head; p = p.prev) { in fullGetFirstQueuedThread()
1002 for (Node p = tail; p != null; p = p.prev) in isQueued()
[all …]
DAbstractQueuedSynchronizer.java560 private transient volatile Node tail; field in AbstractQueuedSynchronizer
616 Node oldTail = tail; in enq()
639 Node oldTail = tail; in addWaiter()
689 for (Node p = tail; p != node && p != null; p = p.prev) in unparkSuccessor()
716 if (h != null && h != tail) { in doReleaseShared()
797 if (node == tail && compareAndSetTail(node, pred)) { in cancelAcquire()
1386 return head != tail; in hasQueuedThreads()
1415 return (head == tail) ? null : fullGetFirstQueuedThread(); in getFirstQueuedThread()
1447 for (Node p = tail; p != null && p != head; p = p.prev) { in fullGetFirstQueuedThread()
1468 for (Node p = tail; p != null; p = p.prev) in isQueued()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentLinkedQueue.java234 private transient volatile Node<E> tail; field in ConcurrentLinkedQueue
240 head = tail = newNode(null); in ConcurrentLinkedQueue()
266 tail = t; in ConcurrentLinkedQueue()
313 for (Node<E> t = tail, p = t;;) { in offer()
332 p = (t != (t = tail)) ? t : head; in offer()
335 p = (p != t && t != (t = tail)) ? t : q; in offer()
531 for (Node<E> t = tail, p = t;;) { in addAll()
541 t = tail; in addAll()
554 p = (t != (t = tail)) ? t : head; in addAll()
557 p = (p != t && t != (t = tail)) ? t : q; in addAll()
[all …]
DSynchronousQueue.java597 transient volatile QNode tail; field in SynchronousQueue.TransferQueue
608 tail = h; in TransferQueue()
625 if (tail == t) in advanceTail()
671 QNode t = tail; in transfer()
678 if (t != tail) // inconsistent read in transfer()
708 if (t != tail || m == null || h != head) in transfer()
786 QNode t = tail; // Ensure consistent read for tail in clean()
790 if (t != tail) in clean()
DConcurrentLinkedDeque.java277 private transient volatile Node<E> tail; field in ConcurrentLinkedDeque
388 for (Node<E> t = tail, p = t, q;;) { in linkLast()
393 p = (t != (t = tail)) ? t : q; in linkLast()
634 while ((t = tail).item == null && (p = t.next) != null) { in updateTail()
645 else if (t != tail) in updateTail()
770 for (Node<E> t = tail, p = t, q;;) { in last()
775 p = (t != (t = tail)) ? t : q; in last()
805 head = tail = new Node<E>(null); in ConcurrentLinkedDeque()
849 tail = t; in initHeadTail()
1177 for (Node<E> t = tail, p = t, q;;) { in addAll()
[all …]
DLinkedTransferQueue.java563 private transient volatile Node tail; field in LinkedTransferQueue
656 for (Node t = tail, p = t;;) { // move p to last node and append in tryAppend()
665 p = p != t && t != (u = tail) ? (t = u) : // stale tail in tryAppend()
671 while ((tail != t || !casTail(t, s)) && in tryAppend()
672 (t = tail) != null && in tryAppend()
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeMapTest.java454 Map tail = tm.tailMap(objArray[900].toString()); in test_tailMapLjava_lang_Object() local
455 assertTrue("Returned map of incorrect size : " + tail.size(), tail in test_tailMapLjava_lang_Object()
458 assertTrue("Map contains incorrect entries", tail in test_tailMapLjava_lang_Object()
486 assertTrue(tail instanceof Serializable); in test_tailMapLjava_lang_Object()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodType.java571 int tail = len - end; in dropParameterTypes() local
572 nptypes = Arrays.copyOfRange(ptypes, 0, start + tail); in dropParameterTypes()
573 System.arraycopy(ptypes, end, nptypes, start, tail); in dropParameterTypes()
/libcore/support/src/test/java/tests/resources/x509/
Dcreate.sh31 SIG_OFFSET=$(openssl asn1parse -in "$DIR/cert-rsa.der" -inform d | tail -1 | cut -f1 -d:)
103 SIG_OFFSET=$(openssl asn1parse -in "$DIR/crl-rsa.der" -inform d | tail -1 | cut -f1 -d:)
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DControlTest.java378 String tail = src.getFile().split("hyts_resource")[1]; in copyFile() local
383 String copyName = tmpdir + File.separator + "hyts_resource_copy" + tail; in copyFile()
DTreeMapTest.java618 Map tail = tm.tailMap(objArray[900].toString()); in test_tailMapLjava_lang_Object() local
619 assertTrue("Returned map of incorrect size : " + tail.size(), tail in test_tailMapLjava_lang_Object()
622 assertTrue("Map contains incorrect entries", tail in test_tailMapLjava_lang_Object()
627 assertTrue(tail instanceof Serializable); in test_tailMapLjava_lang_Object()