Home
last modified time | relevance | path

Searched refs:tail (Results 1 – 17 of 17) 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
170 tail = n; in doubleCapacity()
220 if (head == tail) in addFirst()
235 elements[tail] = e; in addLast()
236 if ( (tail = (tail + 1) & (elements.length - 1)) == head) in addLast()
299 final int t = (tail - 1) & (elements.length - 1); in pollLast()
304 tail = t; in pollLast()
325 E result = (E) elements[(tail - 1) & (elements.length - 1)]; in getLast()
339 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/ojluni/src/main/java/java/lang/ref/
DReferenceQueue.java49 private Reference<? extends T> tail = null; field in ReferenceQueue
85 if (tail == null) { in enqueueLocked()
88 tail.queueNext = r; in enqueueLocked()
90 tail = r; in enqueueLocked()
91 tail.queueNext = r; in enqueueLocked()
126 if (head == tail) { in reallyPollLocked()
127 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 …]
/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/tools/testmapping/
Dsave_logs.py81 (head, tail) = os.path.split(name)
82 parts.insert(0, tail)
/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/annotations/hiddenapi/java/lang/ref/
DReferenceQueue.java90 private java.lang.ref.Reference<? extends T> tail; field in ReferenceQueue
/libcore/ojluni/annotations/hiddenapi/java/util/
DArrayDeque.java223 transient int tail; field in ArrayDeque
DLinkedHashMap.java159 transient java.util.LinkedHashMap.LinkedHashMapEntry<K, V> tail; field in LinkedHashMap
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodType.java572 int tail = len - end; in dropParameterTypes() local
573 nptypes = Arrays.copyOfRange(ptypes, 0, start + tail); in dropParameterTypes()
574 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.java381 String tail = src.getFile().split("hyts_resource")[1]; in copyFile() local
382 String copyName = targetDir + 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()