Home
last modified time | relevance | path

Searched refs:last (Results 1 – 25 of 71) sorted by relevance

123

/libcore/ojluni/src/main/java/java/lang/ref/
DReferenceQueue.java267 Reference<?> last = unenqueued; in add() local
268 while (last.pendingNext != unenqueued) { in add()
269 last = last.pendingNext; in add()
272 last.pendingNext = list; in add()
273 last = list; in add()
274 while (last.pendingNext != list) { in add()
275 last = last.pendingNext; in add()
277 last.pendingNext = unenqueued; in add()
/libcore/ojluni/src/main/java/java/util/stream/
DStreams.java70 private int last; field in Streams.RangeIntSpliterator
76 private RangeIntSpliterator(int from, int upTo, int last) { in RangeIntSpliterator() argument
79 this.last = last; in RangeIntSpliterator()
92 else if (last > 0) { in tryAdvance()
93 last = 0; in tryAdvance()
106 int hLast = last; in forEachRemaining()
108 last = 0; in forEachRemaining()
121 return ((long) upTo) - from + last; in estimateSize()
194 private int last; field in Streams.RangeLongSpliterator
200 private RangeLongSpliterator(long from, long upTo, int last) { in RangeLongSpliterator() argument
[all …]
/libcore/ojluni/src/main/java/java/util/
DLinkedList.java101 transient Node<E> last; field in LinkedList
130 last = newNode; in linkFirst()
141 final Node<E> l = last; in linkLast()
143 last = newNode; in linkLast()
179 last = null; in unlinkFirst()
196 last = prev; in unlinkLast()
223 last = prev; in unlink()
255 final Node<E> l = last; in getLast()
281 final Node<E> l = last; in removeLast()
416 pred = last; in addAll()
[all …]
DDualPivotQuicksort.java183 for (int last; count > 1; count = last) { in sort()
184 for (int k = (last = 0) + 2; k <= count; k += 2) { in sort()
193 run[++last] = hi; in sort()
199 run[++last] = right; in sort()
269 int last = a[right]; in sort() local
271 while (last < a[--right]) { in sort()
274 a[right + 1] = last; in sort()
631 for (int last; count > 1; count = last) { in sort()
632 for (int k = (last = 0) + 2; k <= count; k += 2) { in sort()
641 run[++last] = hi; in sort()
[all …]
DLinkedHashMap.java247 LinkedHashMapEntry<K,V> last = tail; in linkNodeLast() local
249 if (last == null) in linkNodeLast()
252 p.before = last; in linkNodeLast()
253 last.after = p; in linkNodeLast()
330 LinkedHashMapEntry<K,V> last; in afterNodeAccess() local
331 if (accessOrder && (last = tail) != e) { in afterNodeAccess()
342 last = b; in afterNodeAccess()
343 if (last == null) in afterNodeAccess()
346 p.before = last; in afterNodeAccess()
347 last.after = p; in afterNodeAccess()
DProperties.java662 int last = 0; in writeComments() local
669 if (last != current) in writeComments()
670 bw.write(comments.substring(last, current)); in writeComments()
689 last = current + 1; in writeComments()
693 if (last != current) in writeComments()
694 bw.write(comments.substring(last, current)); in writeComments()
DSortedSet.java221 E last(); in last() method
/libcore/ojluni/src/main/java/sun/nio/fs/
DUtil.java84 int last = 0; in split() local
87 result[n++] = s.substring(last, i); in split()
88 last = i + 1; in split()
91 result[n] = s.substring(last, s.length()); in split()
DUnixUriUtils.java160 private static long lowMask(char first, char last) { in lowMask() argument
163 int l = Math.max(Math.min(last, 63), 0); in lowMask()
171 private static long highMask(char first, char last) { in highMask() argument
174 int l = Math.max(Math.min(last, 127), 64) - 64; in highMask()
DGlobs.java108 char last = 0; in toRegexPattern() local
134 if (c < last) { in toRegexPattern()
142 last = c; in toRegexPattern()
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestExampleCode.java108 ChronoLocalDate last = first in test_chronoPackageExample() local
111 System.out.printf(" %s: 1st of year: %s; end of year: %s%n", last.getChronology().getId(), in test_chronoPackageExample()
112 first, last); in test_chronoPackageExample()
161 ThaiBuddhistDate last = first in test_calendarPackageExample() local
164 System.out.printf(" %s: 1st of year: %s; end of year: %s%n", last.getChronology().getId(), in test_calendarPackageExample()
165 first, last); in test_calendarPackageExample()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedCharacterIteratorTest.java106 assertEquals("Wrong last1", 'g', it.last()); in test_last()
108 assertEquals("Wrong last2", 's', it.last()); in test_last()
110 assertEquals("Wrong last3", 'r', it.last()); in test_last()
112 assertTrue("Wrong last4", it.last() == CharacterIterator.DONE); in test_last()
DStringCharacterIteratorTest.java253 assertEquals('e', fixture.last()); in testLast()
255 assertEquals('e', fixture.last()); in testLast()
257 assertEquals('e', fixture.last()); in testLast()
260 assertEquals('e', fixture.last()); in testLast()
262 assertEquals('t', fixture.last()); in testLast()
384 assertEquals('x', fixture.last()); in test_setText()
451 it1.last(); in test_getIndex()
491 assertEquals("Wrong last char", 'n', it1.last()); in test_last()
494 assertTrue("Not DONE", it1.last() == CharacterIterator.DONE); in test_last()
/libcore/ojluni/src/main/java/java/util/concurrent/
DConcurrentLinkedDeque.java562 private void unlinkLast(Node<E> last, Node<E> prev) { in unlinkLast() argument
568 if (o != null && p.next != p && last.casPrev(prev, p)) { in unlinkLast()
570 if (last.next == null && in unlinkLast()
572 p.next == last) { in unlinkLast()
733 return (p == q) ? last() : q; in pred()
767 Node<E> last() { in last() method in ConcurrentLinkedDeque
912 for (Node<E> p = last(); p != null; p = pred(p)) { in peekLast()
946 for (Node<E> p = last(); p != null; p = pred(p)) { in pollLast()
1056 for (Node<E> p = last(); p != null; p = pred(p)) { in removeLastOccurrence()
1160 Node<E> beginningOfTheEnd = null, last = null; in addAll() local
[all …]
DLinkedBlockingDeque.java149 transient Node<E> last; field in LinkedBlockingDeque
224 if (last == null) in linkFirst()
225 last = node; in linkFirst()
240 Node<E> l = last; in linkLast()
242 last = node; in linkLast()
266 last = null; in unlinkFirst()
279 Node<E> l = last; in unlinkLast()
286 last = p; in unlinkLast()
580 return (last == null) ? null : last.item; in peekLast()
608 for (Node<E> p = last; p != null; p = p.prev) { in removeLastOccurrence()
[all …]
DLinkedBlockingQueue.java152 private transient Node<E> last; field in LinkedBlockingQueue
201 last = last.next = node; in enqueue()
263 last = head = new Node<E>(null); in LinkedBlockingQueue()
525 if (last == p) in unlink()
526 last = trail; in unlink()
678 head = last; in clear()
1004 last = head = new Node<E>(null); in readObject()
/libcore/ojluni/src/main/java/java/text/
DMessageFormat.java1247 int last = result.length(); in subformat() local
1298 if (last != result.length()) { in subformat()
1301 (last))); in subformat()
1302 last = result.length(); in subformat()
1309 if (last != result.length()) { in subformat()
1314 last = result.length(); in subformat()
1324 last = result.length(); in subformat()
1331 last = result.length(); in subformat()
1335 fp.setBeginIndex(last); in subformat()
1338 last = result.length(); in subformat()
[all …]
DIcuIteratorWrapper.java281 public int last() { in last() method in IcuIteratorWrapper
282 return wrapped.last(); in last()
DMergeCollation.java101 PatternEntry last = findLastWithNoExtension(i-1); in getPattern() local
104 tmp.addToBuffer(result, false, withWhiteSpace, last); in getPattern()
112 PatternEntry last = findLastWithNoExtension(i-1); in getPattern() local
115 tmp.addToBuffer(result, false, withWhiteSpace, last); in getPattern()
DCharacterIterator.java129 public char last(); in last() method
/libcore/jsr166-tests/src/test/java/jsr166/
DTreeMapTest.java184 Integer last = (Integer)i.next(); in testKeySetOrder() local
185 assertEquals(last, one); in testKeySetOrder()
189 assertTrue(last.compareTo(k) < 0); in testKeySetOrder()
190 last = k; in testKeySetOrder()
203 Integer last = (Integer)i.next();
204 assertEquals(last, five);
208 assertTrue(last.compareTo(k) > 0);
209 last = k;
222 Integer last = (Integer)i.next(); in testDescendingKeySetOrder() local
223 assertEquals(last, five); in testDescendingKeySetOrder()
[all …]
DConcurrentSkipListMapTest.java185 Integer last = (Integer)i.next(); in testKeySetOrder() local
186 assertEquals(last, one); in testKeySetOrder()
190 assertTrue(last.compareTo(k) < 0); in testKeySetOrder()
191 last = k; in testKeySetOrder()
204 Integer last = (Integer)i.next();
205 assertEquals(last, five);
209 assertTrue(last.compareTo(k) > 0);
210 last = k;
223 Integer last = (Integer)i.next(); in testDescendingKeySetOrder() local
224 assertEquals(last, five); in testDescendingKeySetOrder()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DManifestDigester.java69 int last = offset; in findSection() local
91 pos.endOfSection = last; in findSection()
97 last = i; in findSection()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java220 T last = i.next(); in assertSorted()
223 assertTrue(last.compareTo(t) <= 0); in assertSorted()
224 assertTrue(t.compareTo(last) >= 0); in assertSorted()
225 last = t; in assertSorted()
238 T last = i.next(); in assertSorted()
241 assertTrue(comp.compare(last, t) <= 0); in assertSorted()
242 assertTrue(comp.compare(t, last) >= 0); in assertSorted()
243 last = t; in assertSorted()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java219 T last = i.next(); in assertSorted()
222 assertTrue(last.compareTo(t) <= 0); in assertSorted()
223 assertTrue(t.compareTo(last) >= 0); in assertSorted()
224 last = t; in assertSorted()
237 T last = i.next(); in assertSorted()
240 assertTrue(comp.compare(last, t) <= 0); in assertSorted()
241 assertTrue(comp.compare(t, last) >= 0); in assertSorted()
242 last = t; in assertSorted()

123