Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 357) sorted by relevance

12345678910>>...15

/libcore/luni/src/test/java/libcore/xml/
DPullParserDtdTest.java41 while (parser.next() != XmlPullParser.END_DOCUMENT) { in testDeclaringParameterEntities()
64 assertEquals(XmlPullParser.START_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
65 assertEquals(XmlPullParser.TEXT, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
67 assertEquals(XmlPullParser.END_TAG, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
68 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); in testGeneralAndParameterEntityWithTheSameName()
76 assertEquals(XmlPullParser.START_TAG, parser.next()); in testInternalEntities()
77 assertEquals(XmlPullParser.TEXT, parser.next()); in testInternalEntities()
79 assertEquals(XmlPullParser.END_TAG, parser.next()); in testInternalEntities()
80 assertEquals(XmlPullParser.END_DOCUMENT, parser.next()); in testInternalEntities()
86 assertEquals(XmlPullParser.START_TAG, parser.next()); in testExternalDtdIsSilentlyIgnored()
[all …]
DPullParserTest.java31 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeNoValueWithRelaxed()
41 assertEquals(XmlPullParser.START_TAG, parser.next()); in testAttributeUnquotedValueWithRelaxed()
51 assertEquals(XmlPullParser.START_TAG, parser.next()); in testUnterminatedEntityWithRelaxed()
55 assertEquals(XmlPullParser.TEXT, parser.next()); in testUnterminatedEntityWithRelaxed()
77 assertEquals(XmlPullParser.START_TAG, parser.next()); in testNamespace()
80 assertEquals(XmlPullParser.START_TAG, parser.next()); in testNamespace()
83 assertEquals(XmlPullParser.END_TAG, parser.next()); in testNamespace()
86 assertEquals(XmlPullParser.END_TAG, parser.next()); in testNamespace()
94 assertEquals(XmlPullParser.START_TAG, parser.next()); in testRegularNumericEntities()
119 assertEquals(XmlPullParser.START_TAG, parser.next()); in testCharacterReferenceOfUtf16Surrogates()
[all …]
/libcore/json/src/test/java/libcore/org/json/
DJSONTokenerTest.java42 new JSONTokener(null).next(); in testNulls()
48 new JSONTokener(null).next(3); in testNulls()
54 new JSONTokener(null).next('A'); in testNulls()
112 assertEquals('\0', new JSONTokener("").next()); in testEmptyString()
114 new JSONTokener("").next(3); in testEmptyString()
119 new JSONTokener("").next('A'); in testEmptyString()
145 assertEquals('A', abcdeTokener.next()); in testCharacterNavigation()
146 assertEquals('B', abcdeTokener.next('B')); in testCharacterNavigation()
147 assertEquals("CD", abcdeTokener.next(2)); in testCharacterNavigation()
149 abcdeTokener.next(2); in testCharacterNavigation()
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/atomic/
DAtomicIntegerFieldUpdater.java185 int prev, next; in getAndIncrement() local
188 next = prev + 1; in getAndIncrement()
189 } while (!compareAndSet(obj, prev, next)); in getAndIncrement()
201 int prev, next; in getAndDecrement() local
204 next = prev - 1; in getAndDecrement()
205 } while (!compareAndSet(obj, prev, next)); in getAndDecrement()
218 int prev, next; in getAndAdd() local
221 next = prev + delta; in getAndAdd()
222 } while (!compareAndSet(obj, prev, next)); in getAndAdd()
234 int prev, next; in incrementAndGet() local
[all …]
DAtomicLongFieldUpdater.java188 long prev, next; in getAndIncrement() local
191 next = prev + 1; in getAndIncrement()
192 } while (!compareAndSet(obj, prev, next)); in getAndIncrement()
204 long prev, next; in getAndDecrement() local
207 next = prev - 1; in getAndDecrement()
208 } while (!compareAndSet(obj, prev, next)); in getAndDecrement()
221 long prev, next; in getAndAdd() local
224 next = prev + delta; in getAndAdd()
225 } while (!compareAndSet(obj, prev, next)); in getAndAdd()
237 long prev, next; in incrementAndGet() local
[all …]
DAtomicInteger.java220 int prev, next; in getAndUpdate() local
223 next = updateFunction.applyAsInt(prev); in getAndUpdate()
224 } while (!compareAndSet(prev, next)); in getAndUpdate()
239 int prev, next; in updateAndGet() local
242 next = updateFunction.applyAsInt(prev); in updateAndGet()
243 } while (!compareAndSet(prev, next)); in updateAndGet()
244 return next; in updateAndGet()
263 int prev, next; in getAndAccumulate() local
266 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
267 } while (!compareAndSet(prev, next)); in getAndAccumulate()
[all …]
DAtomicReference.java159 V prev, next; in getAndUpdate() local
162 next = updateFunction.apply(prev); in getAndUpdate()
163 } while (!compareAndSet(prev, next)); in getAndUpdate()
178 V prev, next; in updateAndGet() local
181 next = updateFunction.apply(prev); in updateAndGet()
182 } while (!compareAndSet(prev, next)); in updateAndGet()
183 return next; in updateAndGet()
202 V prev, next; in getAndAccumulate() local
205 next = accumulatorFunction.apply(prev, x); in getAndAccumulate()
206 } while (!compareAndSet(prev, next)); in getAndAccumulate()
[all …]
DAtomicLong.java236 long prev, next; in getAndUpdate() local
239 next = updateFunction.applyAsLong(prev); in getAndUpdate()
240 } while (!compareAndSet(prev, next)); in getAndUpdate()
255 long prev, next; in updateAndGet() local
258 next = updateFunction.applyAsLong(prev); in updateAndGet()
259 } while (!compareAndSet(prev, next)); in updateAndGet()
260 return next; in updateAndGet()
279 long prev, next; in getAndAccumulate() local
282 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate()
283 } while (!compareAndSet(prev, next)); in getAndAccumulate()
[all …]
DAtomicIntegerArray.java264 int prev, next; in getAndUpdate() local
267 next = updateFunction.applyAsInt(prev); in getAndUpdate()
268 } while (!compareAndSetRaw(offset, prev, next)); in getAndUpdate()
285 int prev, next; in updateAndGet() local
288 next = updateFunction.applyAsInt(prev); in updateAndGet()
289 } while (!compareAndSetRaw(offset, prev, next)); in updateAndGet()
290 return next; in updateAndGet()
311 int prev, next; in getAndAccumulate() local
314 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
315 } while (!compareAndSetRaw(offset, prev, next)); in getAndAccumulate()
[all …]
DAtomicLongArray.java263 long prev, next; in getAndUpdate() local
266 next = updateFunction.applyAsLong(prev); in getAndUpdate()
267 } while (!compareAndSetRaw(offset, prev, next)); in getAndUpdate()
284 long prev, next; in updateAndGet() local
287 next = updateFunction.applyAsLong(prev); in updateAndGet()
288 } while (!compareAndSetRaw(offset, prev, next)); in updateAndGet()
289 return next; in updateAndGet()
310 long prev, next; in getAndAccumulate() local
313 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate()
314 } while (!compareAndSetRaw(offset, prev, next)); in getAndAccumulate()
[all …]
DAtomicReferenceArray.java214 E prev, next; in getAndUpdate() local
217 next = updateFunction.apply(prev); in getAndUpdate()
218 } while (!compareAndSetRaw(offset, prev, next)); in getAndUpdate()
235 E prev, next; in updateAndGet() local
238 next = updateFunction.apply(prev); in updateAndGet()
239 } while (!compareAndSetRaw(offset, prev, next)); in updateAndGet()
240 return next; in updateAndGet()
261 E prev, next; in getAndAccumulate() local
264 next = accumulatorFunction.apply(prev, x); in getAndAccumulate()
265 } while (!compareAndSetRaw(offset, prev, next)); in getAndAccumulate()
[all …]
/libcore/ojluni/src/main/java/java/io/
DStringReader.java40 private int next = 0; field in StringReader
70 if (next >= length) in read()
72 return str.charAt(next++); in read()
97 if (next >= length) in read()
99 int n = Math.min(length - next, len); in read()
100 str.getChars(next, next + n, cbuf, off); in read()
101 next += n; in read()
125 if (next >= length) in skip()
128 long n = Math.min(length - next, ns); in skip()
129 n = Math.max(-next, n); in skip()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeIterator.java53 private Event next; field in FileTreeIterator
72 this.next = walker.walk(start); in FileTreeIterator()
73 assert next.type() == FileTreeWalker.EventType.ENTRY || in FileTreeIterator()
74 next.type() == FileTreeWalker.EventType.START_DIRECTORY; in FileTreeIterator()
77 IOException ioe = next.ioeException(); in FileTreeIterator()
83 if (next == null) { in fetchNextIfNeeded()
84 FileTreeWalker.Event ev = walker.next(); in fetchNextIfNeeded()
92 next = ev; in fetchNextIfNeeded()
95 ev = walker.next(); in fetchNextIfNeeded()
105 return next != null; in hasNext()
[all …]
/libcore/ojluni/src/main/java/sun/util/
DResourceBundleEnumeration.java55 String next = null; field in ResourceBundleEnumeration
58 if (next == null) { in hasMoreElements()
60 next = iterator.next(); in hasMoreElements()
62 while (next == null && enumeration.hasMoreElements()) { in hasMoreElements()
63 next = enumeration.nextElement(); in hasMoreElements()
64 if (set.contains(next)) { in hasMoreElements()
65 next = null; in hasMoreElements()
70 return next != null; in hasMoreElements()
75 String result = next; in nextElement()
76 next = null; in nextElement()
/libcore/ojluni/src/main/java/java/util/
DLinkedList.java147 l.next = newNode; in linkLast()
163 pred.next = newNode; in linkBefore()
174 final Node<E> next = f.next; in unlinkFirst() local
176 f.next = null; // help GC in unlinkFirst()
177 first = next; in unlinkFirst()
178 if (next == null) in unlinkFirst()
181 next.prev = null; in unlinkFirst()
200 prev.next = null; in unlinkLast()
212 final Node<E> next = x.next; in unlink() local
216 first = next; in unlink()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java75 next = null, field in Cleaner
80 cl.next = first; in add()
90 if (cl.next == cl) in remove()
95 if (cl.next != null) in remove()
96 first = cl.next; in remove()
100 if (cl.next != null) in remove()
101 cl.next.prev = cl.prev; in remove()
103 cl.prev.next = cl.next; in remove()
106 cl.next = cl; in remove()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DStringCharacterIteratorTest.java129 sci1.next(); in test_equalsLjava_lang_Object()
131 sci0.next(); in test_equalsLjava_lang_Object()
167 fixture.next(); in test_current()
181 fixture.next(); in test_first()
192 assertEquals("Wrong next char", 't', it1.next()); in test_first()
254 fixture.next(); in testLast()
271 assertEquals('i', fixture.next()); in test_next()
273 assertEquals('x', fixture.next()); in test_next()
275 assertEquals('t', fixture.next()); in test_next()
277 assertEquals('u', fixture.next()); in test_next()
[all …]
DCollationElementIteratorTest.java53 iterator.next(); in testGetOffset()
63 int order = iterator.next(); in testNext()
67 order = iterator.next(); in testNext()
90 int order = iterator.next(); in testPrevious()
94 order = iterator.next(); in testPrevious()
115 int order = iterator.next(); in testReset()
119 order = iterator.next(); in testReset()
134 int order = iterator.next(); in testGetMaxExpansion()
137 order = iterator.next(); in testGetMaxExpansion()
145 int order = iterator.next(); in testPrimaryOrder()
[all …]
/libcore/ojluni/src/main/java/javax/security/auth/
DSubject.java859 Principal p = pI.next();
868 Object o = pI.next();
880 Object o = pI.next();
924 Principal p = pIterator.next();
932 hashCode ^= getCredHashCode(pubCIterator.next());
1054 public E next() {
1056 return i.next();
1066 i.next();
1070 return i.next();
1144 E next;
[all …]
/libcore/ojluni/src/main/java/java/util/concurrent/locks/
DStampedLock.java310 volatile WNode next; field in StampedLock.WNode
347 long s, next; // bypass acquireWrite in fully unlocked case only in writeLock() local
349 U.compareAndSwapLong(this, STATE, s, next = s + WBIT)) ? in writeLock()
350 next : acquireWrite(false, 0L)); in writeLock()
360 long s, next; in tryWriteLock() local
362 U.compareAndSwapLong(this, STATE, s, next = s + WBIT)) ? in tryWriteLock()
363 next : 0L); in tryWriteLock()
383 long next, deadline; in tryWriteLock() local
384 if ((next = tryWriteLock()) != 0L) in tryWriteLock()
385 return next; in tryWriteLock()
[all …]
/libcore/luni/src/main/java/java/lang/ref/
DFinalizerReference.java41 private FinalizerReference<?> next; field in FinalizerReference
64 reference.next = head; in add()
75 FinalizerReference<?> next = reference.next; in remove() local
77 reference.next = null; in remove()
80 prev.next = next; in remove()
82 head = next; in remove()
84 if (next != null) { in remove()
85 next.prev = prev; in remove()
110 for (FinalizerReference<?> r = head; r != null; r = r.next) { in enqueueSentinelReference()
/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java43 private T next; in dereferenceIterable() local
47 while (next == null && delegate.hasNext()) { in dereferenceIterable()
48 next = delegate.next().get(); in dereferenceIterable()
49 if (trim && next == null) { in dereferenceIterable()
57 return next != null; in dereferenceIterable()
60 @Override public T next() { in dereferenceIterable() method
64 T result = next; in dereferenceIterable()
66 next = null; in dereferenceIterable()
/libcore/ojluni/src/main/java/sun/nio/fs/
DGlobs.java45 private static char next(String glob, int i) { in next() method in Globs
71 char next = globPattern.charAt(i++); in toRegexPattern() local
72 if (isGlobMeta(next) || isRegexMeta(next)) { in toRegexPattern()
75 regex.append(next); in toRegexPattern()
91 if (next(globPattern, i) == '^') { in toRegexPattern()
97 if (next(globPattern, i) == '!') { in toRegexPattern()
102 if (next(globPattern, i) == '-') { in toRegexPattern()
120 c == '&' && next(globPattern, i) == '&') { in toRegexPattern()
131 if ((c = next(globPattern, i++)) == EOL || c == ']') { in toRegexPattern()
174 if (next(globPattern, i) == '*') { in toRegexPattern()
/libcore/ojluni/src/main/java/java/util/concurrent/
DLinkedBlockingQueue.java131 Node<E> next; field in LinkedBlockingQueue.Node
201 last = last.next = node; in enqueue()
213 Node<E> first = h.next; in dequeue()
214 h.next = h; // help GC in dequeue()
510 return (count.get() > 0) ? head.next.item : null; in peek()
524 trail.next = p.next; in unlink()
546 for (Node<E> trail = head, p = trail.next; in remove()
548 trail = p, p = p.next) { in remove()
572 for (Node<E> p = head.next; p != null; p = p.next) in contains()
600 for (Node<E> p = head.next; p != null; p = p.next) in toArray()
[all …]
/libcore/luni/src/test/java/libcore/java/util/
DOldListIteratorTest.java39 l.next(); in testHasNext()
46 assertTrue(objArray[i].equals(l.next())); in testNext()
50 l.next(); in testNext()
72 public Object next() { in next() method in OldListIteratorTest.Mock_ListIterator
107 l.next(); in testRemove()
131 l.next(); in testHasPrevious()
144 l.next(); in testPrevious()
162 l.next(); in testNextIndex()
169 l.next(); in testPreviousIndex()
182 l.next(); in testSet()
[all …]

12345678910>>...15