/libcore/luni/src/test/java/libcore/xml/ |
D | PullParserDtdTest.java | 41 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 …]
|
D | PullParserTest.java | 31 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/org/json/ |
D | JSONTokenerTest.java | 38 new JSONTokener(null).next(); in testNulls() 44 new JSONTokener(null).next(3); in testNulls() 50 new JSONTokener(null).next('A'); in testNulls() 108 assertEquals('\0', new JSONTokener("").next()); in testEmptyString() 110 new JSONTokener("").next(3); in testEmptyString() 115 new JSONTokener("").next('A'); in testEmptyString() 141 assertEquals('A', abcdeTokener.next()); in testCharacterNavigation() 142 assertEquals('B', abcdeTokener.next('B')); in testCharacterNavigation() 143 assertEquals("CD", abcdeTokener.next(2)); in testCharacterNavigation() 145 abcdeTokener.next(2); in testCharacterNavigation() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicIntegerFieldUpdater.java | 157 int prev, next; in getAndIncrement() local 160 next = prev + 1; in getAndIncrement() 161 } while (!compareAndSet(obj, prev, next)); in getAndIncrement() 173 int prev, next; in getAndDecrement() local 176 next = prev - 1; in getAndDecrement() 177 } while (!compareAndSet(obj, prev, next)); in getAndDecrement() 190 int prev, next; in getAndAdd() local 193 next = prev + delta; in getAndAdd() 194 } while (!compareAndSet(obj, prev, next)); in getAndAdd() 206 int prev, next; in incrementAndGet() local [all …]
|
D | AtomicReference.java | 130 V prev, next; in getAndUpdate() local 133 next = updateFunction.apply(prev); in getAndUpdate() 134 } while (!compareAndSet(prev, next)); in getAndUpdate() 149 V prev, next; in updateAndGet() local 152 next = updateFunction.apply(prev); in updateAndGet() 153 } while (!compareAndSet(prev, next)); in updateAndGet() 154 return next; in updateAndGet() 173 V prev, next; in getAndAccumulate() local 176 next = accumulatorFunction.apply(prev, x); in getAndAccumulate() 177 } while (!compareAndSet(prev, next)); in getAndAccumulate() [all …]
|
D | AtomicInteger.java | 191 int prev, next; in getAndUpdate() local 194 next = updateFunction.applyAsInt(prev); in getAndUpdate() 195 } while (!compareAndSet(prev, next)); in getAndUpdate() 210 int prev, next; in updateAndGet() local 213 next = updateFunction.applyAsInt(prev); in updateAndGet() 214 } while (!compareAndSet(prev, next)); in updateAndGet() 215 return next; in updateAndGet() 234 int prev, next; in getAndAccumulate() local 237 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate() 238 } while (!compareAndSet(prev, next)); in getAndAccumulate() [all …]
|
D | AtomicLongFieldUpdater.java | 160 long prev, next; in getAndIncrement() local 163 next = prev + 1; in getAndIncrement() 164 } while (!compareAndSet(obj, prev, next)); in getAndIncrement() 176 long prev, next; in getAndDecrement() local 179 next = prev - 1; in getAndDecrement() 180 } while (!compareAndSet(obj, prev, next)); in getAndDecrement() 193 long prev, next; in getAndAdd() local 196 next = prev + delta; in getAndAdd() 197 } while (!compareAndSet(obj, prev, next)); in getAndAdd() 209 long prev, next; in incrementAndGet() local [all …]
|
D | AtomicLong.java | 207 long prev, next; in getAndUpdate() local 210 next = updateFunction.applyAsLong(prev); in getAndUpdate() 211 } while (!compareAndSet(prev, next)); in getAndUpdate() 226 long prev, next; in updateAndGet() local 229 next = updateFunction.applyAsLong(prev); in updateAndGet() 230 } while (!compareAndSet(prev, next)); in updateAndGet() 231 return next; in updateAndGet() 250 long prev, next; in getAndAccumulate() local 253 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate() 254 } while (!compareAndSet(prev, next)); in getAndAccumulate() [all …]
|
D | AtomicIntegerArray.java | 235 int prev, next; in getAndUpdate() local 238 next = updateFunction.applyAsInt(prev); in getAndUpdate() 239 } while (!compareAndSetRaw(offset, prev, next)); in getAndUpdate() 256 int prev, next; in updateAndGet() local 259 next = updateFunction.applyAsInt(prev); in updateAndGet() 260 } while (!compareAndSetRaw(offset, prev, next)); in updateAndGet() 261 return next; in updateAndGet() 282 int prev, next; in getAndAccumulate() local 285 next = accumulatorFunction.applyAsInt(prev, x); in getAndAccumulate() 286 } while (!compareAndSetRaw(offset, prev, next)); in getAndAccumulate() [all …]
|
D | AtomicLongArray.java | 234 long prev, next; in getAndUpdate() local 237 next = updateFunction.applyAsLong(prev); in getAndUpdate() 238 } while (!compareAndSetRaw(offset, prev, next)); in getAndUpdate() 255 long prev, next; in updateAndGet() local 258 next = updateFunction.applyAsLong(prev); in updateAndGet() 259 } while (!compareAndSetRaw(offset, prev, next)); in updateAndGet() 260 return next; in updateAndGet() 281 long prev, next; in getAndAccumulate() local 284 next = accumulatorFunction.applyAsLong(prev, x); in getAndAccumulate() 285 } while (!compareAndSetRaw(offset, prev, next)); in getAndAccumulate() [all …]
|
D | AtomicReferenceArray.java | 185 E prev, next; in getAndUpdate() local 188 next = updateFunction.apply(prev); in getAndUpdate() 189 } while (!compareAndSetRaw(offset, prev, next)); in getAndUpdate() 206 E prev, next; in updateAndGet() local 209 next = updateFunction.apply(prev); in updateAndGet() 210 } while (!compareAndSetRaw(offset, prev, next)); in updateAndGet() 211 return next; in updateAndGet() 232 E prev, next; in getAndAccumulate() local 235 next = accumulatorFunction.apply(prev, x); in getAndAccumulate() 236 } while (!compareAndSetRaw(offset, prev, next)); in getAndAccumulate() [all …]
|
D | AtomicReferenceFieldUpdater.java | 179 V prev, next; in getAndUpdate() local 182 next = updateFunction.apply(prev); in getAndUpdate() 183 } while (!compareAndSet(obj, prev, next)); in getAndUpdate() 199 V prev, next; in updateAndGet() local 202 next = updateFunction.apply(prev); in updateAndGet() 203 } while (!compareAndSet(obj, prev, next)); in updateAndGet() 204 return next; in updateAndGet() 224 V prev, next; in getAndAccumulate() local 227 next = accumulatorFunction.apply(prev, x); in getAndAccumulate() 228 } while (!compareAndSet(obj, prev, next)); in getAndAccumulate() [all …]
|
/libcore/ojluni/src/main/java/java/io/ |
D | StringReader.java | 40 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/sun/util/ |
D | ResourceBundleEnumeration.java | 55 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/ |
D | LinkedList.java | 147 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/ |
D | Cleaner.java | 75 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/ojluni/src/main/java/javax/security/auth/ |
D | Subject.java | 841 Principal p = pI.next(); 850 Object o = pI.next(); 862 Object o = pI.next(); 906 Principal p = pIterator.next(); 914 hashCode ^= getCredHashCode(pubCIterator.next()); 1016 public E next() { 1018 return i.next(); 1028 i.next(); 1032 return i.next(); 1106 E next; [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | StringCharacterIteratorTest.java | 129 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 …]
|
D | CollationElementIteratorTest.java | 53 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/luni/src/main/java/java/lang/ref/ |
D | FinalizerReference.java | 35 private FinalizerReference<?> next; field in FinalizerReference 57 reference.next = head; in add() 67 FinalizerReference<?> next = reference.next; in remove() local 69 reference.next = null; in remove() 72 prev.next = next; in remove() 74 head = next; in remove() 76 if (next != null) { in remove() 77 next.prev = prev; in remove() 102 for (FinalizerReference<?> r = head; r != null; r = r.next) { in enqueueSentinelReference()
|
/libcore/luni/src/main/java/libcore/util/ |
D | CollectionUtils.java | 43 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/luni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 281 volatile WNode next; field in StampedLock.WNode 318 long s, next; // bypass acquireWrite in fully unlocked case only in writeLock() local 320 U.compareAndSwapLong(this, STATE, s, next = s + WBIT)) ? in writeLock() 321 next : acquireWrite(false, 0L)); in writeLock() 331 long s, next; in tryWriteLock() local 333 U.compareAndSwapLong(this, STATE, s, next = s + WBIT)) ? in tryWriteLock() 334 next : 0L); in tryWriteLock() 354 long next, deadline; in tryWriteLock() local 355 if ((next = tryWriteLock()) != 0L) in tryWriteLock() 356 return next; in tryWriteLock() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldListIteratorTest.java | 39 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 …]
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | LinkedBlockingQueue.java | 102 Node<E> next; field in LinkedBlockingQueue.Node 172 last = last.next = node; in enqueue() 184 Node<E> first = h.next; in dequeue() 185 h.next = h; // help GC in dequeue() 481 return (count.get() > 0) ? head.next.item : null; in peek() 495 trail.next = p.next; in unlink() 517 for (Node<E> trail = head, p = trail.next; in remove() 519 trail = p, p = p.next) { in remove() 543 for (Node<E> p = head.next; p != null; p = p.next) in contains() 571 for (Node<E> p = head.next; p != null; p = p.next) in toArray() [all …]
|
/libcore/luni/src/test/java/libcore/java/sql/ |
D | OldResultSetTest.java | 68 target.next(); in testAbsolute() 76 assertFalse(target.next()); in testAfterLast() 93 assertTrue(target.next()); in testBeforeFirst() 116 target.next(); in testClose1() 147 while (rs2.next()){ in testClose() 158 while (rs1.next()) { in testClose() 209 target.next(); in testtestIsAfterLast() 225 assertTrue(target.next()); in testtestIsBeforeFirst() 245 target.next(); in testtestIsFirst() 271 assertFalse(emptyTarget.next()); in testtestIsLast() [all …]
|