Home
last modified time | relevance | path

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

12345678910>>...20

/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.java187 int prev, next; in getAndIncrement() local
190 next = prev + 1; in getAndIncrement()
191 } while (!compareAndSet(obj, prev, next)); in getAndIncrement()
203 int prev, next; in getAndDecrement() local
206 next = prev - 1; in getAndDecrement()
207 } while (!compareAndSet(obj, prev, next)); in getAndDecrement()
220 int prev, next; in getAndAdd() local
223 next = prev + delta; in getAndAdd()
224 } while (!compareAndSet(obj, prev, next)); in getAndAdd()
236 int prev, next; in incrementAndGet() local
[all …]
DAtomicLongFieldUpdater.java190 long prev, next; in getAndIncrement() local
193 next = prev + 1; in getAndIncrement()
194 } while (!compareAndSet(obj, prev, next)); in getAndIncrement()
206 long prev, next; in getAndDecrement() local
209 next = prev - 1; in getAndDecrement()
210 } while (!compareAndSet(obj, prev, next)); in getAndDecrement()
223 long prev, next; in getAndAdd() local
226 next = prev + delta; in getAndAdd()
227 } while (!compareAndSet(obj, prev, next)); in getAndAdd()
239 long prev, next; in incrementAndGet() local
[all …]
DAtomicLong.java306 long prev = get(), next = 0L; in getAndUpdate() local
309 next = updateFunction.applyAsLong(prev); in getAndUpdate()
310 if (weakCompareAndSetVolatile(prev, next)) in getAndUpdate()
328 long prev = get(), next = 0L; in updateAndGet() local
331 next = updateFunction.applyAsLong(prev); in updateAndGet()
332 if (weakCompareAndSetVolatile(prev, next)) in updateAndGet()
333 return next; in updateAndGet()
355 long prev = get(), next = 0L; in getAndAccumulate() local
358 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate()
359 if (weakCompareAndSetVolatile(prev, next)) in getAndAccumulate()
[all …]
DAtomicInteger.java289 int prev = get(), next = 0; in getAndUpdate() local
292 next = updateFunction.applyAsInt(prev); in getAndUpdate()
293 if (weakCompareAndSetVolatile(prev, next)) in getAndUpdate()
311 int prev = get(), next = 0; in updateAndGet() local
314 next = updateFunction.applyAsInt(prev); in updateAndGet()
315 if (weakCompareAndSetVolatile(prev, next)) in updateAndGet()
316 return next; in updateAndGet()
338 int prev = get(), next = 0; in getAndAccumulate() local
341 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
342 if (weakCompareAndSetVolatile(prev, next)) in getAndAccumulate()
[all …]
DAtomicReference.java185 V prev = get(), next = null; in getAndUpdate() local
188 next = updateFunction.apply(prev); in getAndUpdate()
189 if (weakCompareAndSetVolatile(prev, next)) in getAndUpdate()
207 V prev = get(), next = null; in updateAndGet() local
210 next = updateFunction.apply(prev); in updateAndGet()
211 if (weakCompareAndSetVolatile(prev, next)) in updateAndGet()
212 return next; in updateAndGet()
234 V prev = get(), next = null; in getAndAccumulate() local
237 next = accumulatorFunction.apply(prev, x); in getAndAccumulate()
238 if (weakCompareAndSetVolatile(prev, next)) in getAndAccumulate()
[all …]
DAtomicLongArray.java276 long prev = get(i), next = 0L; in getAndUpdate() local
279 next = updateFunction.applyAsLong(prev); in getAndUpdate()
280 if (weakCompareAndSetVolatile(i, prev, next)) in getAndUpdate()
300 long prev = get(i), next = 0L; in updateAndGet() local
303 next = updateFunction.applyAsLong(prev); in updateAndGet()
304 if (weakCompareAndSetVolatile(i, prev, next)) in updateAndGet()
305 return next; in updateAndGet()
329 long prev = get(i), next = 0L; in getAndAccumulate() local
332 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate()
333 if (weakCompareAndSetVolatile(i, prev, next)) in getAndAccumulate()
[all …]
DAtomicIntegerArray.java276 int prev = get(i), next = 0; in getAndUpdate() local
279 next = updateFunction.applyAsInt(prev); in getAndUpdate()
280 if (weakCompareAndSetVolatile(i, prev, next)) in getAndUpdate()
300 int prev = get(i), next = 0; in updateAndGet() local
303 next = updateFunction.applyAsInt(prev); in updateAndGet()
304 if (weakCompareAndSetVolatile(i, prev, next)) in updateAndGet()
305 return next; in updateAndGet()
329 int prev = get(i), next = 0; in getAndAccumulate() local
332 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate()
333 if (weakCompareAndSetVolatile(i, 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()
98 if (next >= length) in read()
100 int n = Math.min(length - next, len); in read()
101 str.getChars(next, next + n, cbuf, off); in read()
102 next += n; in read()
126 if (next >= length) in skip()
129 long n = Math.min(length - next, ns); in skip()
130 n = Math.max(-next, n); in skip()
[all …]
/libcore/ojluni/src/main/java/java/nio/file/
DFileTreeIterator.java52 private Event next; field in FileTreeIterator
71 this.next = walker.walk(start); in FileTreeIterator()
72 assert next.type() == FileTreeWalker.EventType.ENTRY || in FileTreeIterator()
73 next.type() == FileTreeWalker.EventType.START_DIRECTORY; in FileTreeIterator()
76 IOException ioe = next.ioeException(); in FileTreeIterator()
82 if (next == null) { in fetchNextIfNeeded()
83 FileTreeWalker.Event ev = walker.next(); in fetchNextIfNeeded()
91 next = ev; in fetchNextIfNeeded()
94 ev = walker.next(); in fetchNextIfNeeded()
104 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/jdk/internal/ref/
DPhantomCleanable.java49 PhantomCleanable<?> prev = this, next = this; field in PhantomCleanable
89 next = list.next; in insert()
90 next.prev = this; in insert()
91 list.next = this; in insert()
103 if (next != this) { in remove()
104 next.prev = prev; in remove()
105 prev.next = next; in remove()
107 next = this; in remove()
121 return list == list.next; in isListEmpty()
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/java/util/concurrent/
DSubmissionPublisher.java368 pred.next = subscription; in subscribe()
371 BufferedSubscription<T> next = b.next; in subscribe() local
373 b.next = null; // detach in subscribe()
375 clients = next; in subscribe()
377 pred.next = next; in subscribe()
385 b = next; in subscribe()
413 BufferedSubscription<T> retries = null, rtail = null, next; in doOffer() local
415 next = b.next; in doOffer()
429 } while ((b = next) != null); in doOffer()
479 BufferedSubscription<T> pred = null, next; in cleanAndCount() local
[all …]
DLinkedBlockingQueue.java132 Node<E> next; field in LinkedBlockingQueue.Node
204 last = last.next = node; in enqueue()
216 Node<E> first = h.next; in dequeue()
217 h.next = h; // help GC in dequeue()
504 return (count.get() > 0) ? head.next.item : null; in peek()
519 pred.next = p.next; in unlink()
541 for (Node<E> pred = head, p = pred.next; in remove()
543 pred = p, p = p.next) { in remove()
567 for (Node<E> p = head.next; p != null; p = p.next) in contains()
595 for (Node<E> p = head.next; p != null; p = p.next) in toArray()
[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/
DLinkedList.java158 l.next = newNode; in linkLast()
174 pred.next = newNode; in linkBefore()
185 final Node<E> next = f.next; in unlinkFirst() local
187 f.next = null; // help GC in unlinkFirst()
188 first = next; in unlinkFirst()
189 if (next == null) in unlinkFirst()
192 next.prev = null; in unlinkFirst()
211 prev.next = null; in unlinkLast()
223 final Node<E> next = x.next; in unlink() local
227 first = next; in unlink()
[all …]
/libcore/ojluni/src/main/java/sun/misc/
DCleaner.java74 next = null, field in Cleaner
79 cl.next = first; in add()
89 if (cl.next == cl) in remove()
94 if (cl.next != null) in remove()
95 first = cl.next; in remove()
99 if (cl.next != null) in remove()
100 cl.next.prev = cl.prev; in remove()
102 cl.prev.next = cl.next; in remove()
105 cl.next = cl; in remove()
/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()

12345678910>>...20