/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | AttributedCharacterIteratorTest.java | 32 AttributedCharacterIterator it = attrString.getIterator(); in test_current() local 33 assertEquals("Wrong first", 'T', it.current()); in test_current() 34 it.next(); in test_current() 35 assertEquals("Wrong second", 'e', it.current()); in test_current() 37 it.next(); in test_current() 38 assertEquals("Wrong last", 'g', it.current()); in test_current() 39 it.next(); in test_current() 40 assertTrue("Wrong final", it.current() == CharacterIterator.DONE); in test_current() 42 it = attrString.getIterator(null, 2, 8); in test_current() 43 assertEquals("Wrong first2", 's', it.current()); in test_current() [all …]
|
D | BreakIteratorTest.java | 181 BreakIterator it = BreakIterator.getCharacterInstance(Locale.US); in testGetCharacterInstanceLocale() local 183 assertEquals(it, it2); in testGetCharacterInstanceLocale() 190 BreakIterator it = BreakIterator.getLineInstance(); in testGetLineInstance() local 191 assertNotNull(it); in testGetLineInstance() 198 BreakIterator it = BreakIterator.getLineInstance(Locale.US); in testGetLineInstanceLocale() local 199 assertNotNull(it); in testGetLineInstanceLocale() 207 BreakIterator it = BreakIterator.getSentenceInstance(); in testGetSentenceInstance() local 208 assertNotNull(it); in testGetSentenceInstance() 215 BreakIterator it = BreakIterator.getSentenceInstance(Locale.US); in testGetSentenceInstanceLocale() local 216 assertNotNull(it); in testGetSentenceInstanceLocale() [all …]
|
D | StringCharacterIteratorTest.java | 155 StringCharacterIterator it = new StringCharacterIterator("testing", 2, in test_clone() local 157 StringCharacterIterator clone = (StringCharacterIterator) it.clone(); in test_clone() 158 assertTrue("Clone not equal", it.equals(clone)); in test_clone() 170 StringCharacterIterator it = in test_current() local 172 assertEquals("Wrong current char", 'i', it.current()); in test_current() 407 StringCharacterIterator it = new StringCharacterIterator("testing"); in test_ConstructorLjava_lang_String() local 408 assertEquals("Wrong begin index", 0, it.getBeginIndex()); in test_ConstructorLjava_lang_String() 409 assertEquals("Wrong end index", 7, it.getEndIndex()); in test_ConstructorLjava_lang_String() 410 assertEquals("Wrong current index", 0, it.getIndex()); in test_ConstructorLjava_lang_String() 411 assertEquals("Wrong current char", 't', it.current()); in test_ConstructorLjava_lang_String() [all …]
|
D | AttributedStringTest.java | 35 AttributedCharacterIterator it = attrString.getIterator(); in test_ConstructorLjava_lang_String() local 37 buf.append(it.first()); in test_ConstructorLjava_lang_String() 39 while ((ch = it.next()) != CharacterIterator.DONE) in test_ConstructorLjava_lang_String() 123 AttributedCharacterIterator it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() local 124 assertEquals("non-null value limit", 2, it in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 130 it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 131 assertEquals("null value limit", 4, it in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII()
|
/libcore/ojluni/src/main/java/java/util/ |
D | AbstractCollection.java | 99 Iterator<E> it = iterator(); in contains() local 101 while (it.hasNext()) in contains() 102 if (it.next()==null) in contains() 105 while (it.hasNext()) in contains() 106 if (o.equals(it.next())) in contains() 137 Iterator<E> it = iterator(); in toArray() local 139 if (! it.hasNext()) // fewer elements than expected in toArray() 141 r[i] = it.next(); in toArray() 143 return it.hasNext() ? finishToArray(r, it) : r; in toArray() 180 Iterator<E> it = iterator(); in toArray() local [all …]
|
D | AbstractList.java | 185 ListIterator<E> it = listIterator(); in indexOf() local 187 while (it.hasNext()) in indexOf() 188 if (it.next()==null) in indexOf() 189 return it.previousIndex(); in indexOf() 191 while (it.hasNext()) in indexOf() 192 if (o.equals(it.next())) in indexOf() 193 return it.previousIndex(); in indexOf() 211 ListIterator<E> it = listIterator(size()); in lastIndexOf() local 213 while (it.hasPrevious()) in lastIndexOf() 214 if (it.previous()==null) in lastIndexOf() [all …]
|
D | Spliterators.java | 1695 private Iterator<? extends T> it; field in Spliterators.IteratorSpliterator 1712 this.it = null; in IteratorSpliterator() 1730 this.it = iterator; in IteratorSpliterator() 1748 this.it = iterator; in IteratorSpliterator() 1770 if ((i = it) == null) { in trySplit() 1771 i = it = collection.iterator(); in trySplit() 1797 if ((i = it) == null) { in forEachRemaining() 1798 i = it = collection.iterator(); in forEachRemaining() 1807 if (it == null) { in tryAdvance() 1808 it = collection.iterator(); in tryAdvance() [all …]
|
/libcore/luni/src/test/java/libcore/java/text/ |
D | BreakIteratorTest.java | 58 BreakIterator it = BreakIterator.getWordInstance(Locale.US); in testStress() local 59 it.setText(new String(cs)); in testStress() 73 BreakIterator it = BreakIterator.getWordInstance(Locale.US); in testWordBoundaries() local 74 it.setText(s); in testWordBoundaries() 78 it.setText(s); in testWordBoundaries() 81 BreakIterator clone = (BreakIterator) it.clone(); in testWordBoundaries() 83 assertExpectedWordBoundaries(it, s); in testWordBoundaries() 87 private void assertExpectedWordBoundaries(BreakIterator it, String s) { in assertExpectedWordBoundaries() argument 89 int pos = it.first(); in assertExpectedWordBoundaries() 93 pos = it.next(); in assertExpectedWordBoundaries() [all …]
|
D | OldAttributedCharacterIteratorTest.java | 29 AttributedCharacterIterator it; field in OldAttributedCharacterIteratorTest 36 AttributedCharacterIterator it = as.getIterator(); in test_getRunLimitLSet() local 41 2, it.getRunLimit(attr)); in test_getRunLimitLSet() 46 it = as.getIterator(); in test_getRunLimitLSet() 48 4, it.getRunLimit(attr)); in test_getRunLimitLSet() 52 4, it.getRunLimit(attr)); in test_getRunLimitLSet() 57 AttributedCharacterIterator it = as.getIterator(); in test_getAllAttributeKeys() local 59 it.getAllAttributeKeys(); in test_getAllAttributeKeys() 67 it = as.getIterator(); in test_getAllAttributeKeys() 69 it.getAllAttributeKeys(); in test_getAllAttributeKeys() [all …]
|
D | OldAttributedStringTest.java | 31 AttributedCharacterIterator it = attrString.getIterator(); in assertEqualString() local 33 buf.append(it.first()); in assertEqualString() 35 while ((ch = it.next()) != CharacterIterator.DONE) in assertEqualString() 169 AttributedCharacterIterator it = attrString.getIterator(); in test_ConstructorLjava_lang_StringLjava_util_Map() local 171 buf.append(it.first()); in test_ConstructorLjava_lang_StringLjava_util_Map() 173 while ((ch = it.next()) != CharacterIterator.DONE) in test_ConstructorLjava_lang_StringLjava_util_Map() 283 AttributedCharacterIterator it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() local 284 assertEquals("non-null value limit", 2, it in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 290 it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 291 assertEquals("null value limit", 4, it in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() [all …]
|
/libcore/support/src/test/java/tests/support/ |
D | Support_UnmodifiableCollectionTest.java | 72 Iterator<Integer> it = col.iterator(); in runTest() local 74 while (it.hasNext()) { in runTest() 75 ss.add(it.next()); in runTest() 77 it = ss.iterator(); in runTest() 78 for (int counter = 0; it.hasNext(); counter++) { in runTest() 79 int nextValue = it.next().intValue(); in runTest() 94 for (int counter = 0; it.hasNext(); counter++) { in runTest() 97 objArray[counter] == it.next()); in runTest() 103 for (int counter = 0; it.hasNext(); counter++) { in runTest() 106 objArray[counter] == it.next()); in runTest()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 33 Iterator<ServiceLoaderTestInterface> it = loader.iterator(); in test_implementations() local 34 assertTrue(it.hasNext()); in test_implementations() 35 assertTrue(it.next() instanceof Impl1); in test_implementations() 36 assertTrue(it.hasNext()); in test_implementations() 37 assertTrue(it.next() instanceof Impl2); in test_implementations() 38 assertFalse(it.hasNext()); in test_implementations()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | LinkedListTest.java | 429 Iterator it = q.iterator(); in testIterator() local 431 for (i = 0; it.hasNext(); i++) in testIterator() 432 assertTrue(q.contains(it.next())); in testIterator() 434 assertIteratorExhausted(it); in testIterator() 453 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 454 assertEquals(++k, it.next()); in testIteratorOrdering() 468 Iterator it = q.iterator(); in testIteratorRemove() local 469 assertEquals(1, it.next()); in testIteratorRemove() 470 it.remove(); in testIteratorRemove() 471 it = q.iterator(); in testIteratorRemove() [all …]
|
D | ConcurrentLinkedDequeTest.java | 735 Iterator it = q.iterator(); in testIterator() local 737 for (i = 0; it.hasNext(); i++) in testIterator() 738 assertTrue(q.contains(it.next())); in testIterator() 740 assertIteratorExhausted(it); in testIterator() 762 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 763 assertEquals(++k, it.next()); in testIteratorOrdering() 778 for (Iterator it = q.iterator(); it.hasNext();) { in testWeaklyConsistentIteration() 780 it.next(); in testWeaklyConsistentIteration() 797 Iterator it = q.iterator(); in testIteratorRemove() local 799 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() [all …]
|
D | ArrayDequeTest.java | 738 Iterator it = q.iterator(); in checkToArray() local 741 Integer x = (Integer) it.next(); in checkToArray() 804 Iterator it = q.iterator(); in testIterator() local 806 for (i = 0; it.hasNext(); i++) in testIterator() 807 assertTrue(q.contains(it.next())); in testIterator() 809 assertIteratorExhausted(it); in testIterator() 830 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 831 assertEquals(++k, it.next()); in testIteratorOrdering() 848 Iterator it = q.iterator(); in testIteratorRemove() local 850 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() [all …]
|
D | ConcurrentLinkedQueueTest.java | 465 Iterator it = q.iterator(); in testIterator() local 467 for (i = 0; it.hasNext(); i++) in testIterator() 468 assertTrue(q.contains(it.next())); in testIterator() 470 assertIteratorExhausted(it); in testIterator() 490 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 491 assertEquals(++k, it.next()); in testIteratorOrdering() 506 for (Iterator it = q.iterator(); it.hasNext();) { in testWeaklyConsistentIteration() 508 it.next(); in testWeaklyConsistentIteration() 522 Iterator it = q.iterator(); in testIteratorRemove() local 523 it.next(); in testIteratorRemove() [all …]
|
D | Collection8Test.java | 311 Iterator it = rnd.nextBoolean() ? c.iterator() : null; 344 if (it != null && impl.isConcurrent()) 346 while (it.hasNext()) assertTrue(orig.contains(it.next())); 402 Iterator it = c.iterator(); 405 if (rnd.nextBoolean()) assertTrue(it.hasNext()); 406 iterated.add(it.next()); 418 if (it.hasNext()) iterated.add(it.next()); 419 if (rnd.nextBoolean()) assertIteratorExhausted(it); 442 Iterator it = c.iterator(); 448 if (rnd.nextBoolean()) assertTrue(it.hasNext()); [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | LinkedListTest.java | 388 Iterator it = q.iterator(); in testIterator() local 390 for (i = 0; it.hasNext(); i++) in testIterator() 391 assertTrue(q.contains(it.next())); in testIterator() 393 assertIteratorExhausted(it); in testIterator() 412 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 413 assertEquals(++k, it.next()); in testIteratorOrdering() 427 Iterator it = q.iterator(); in testIteratorRemove() local 428 assertEquals(1, it.next()); in testIteratorRemove() 429 it.remove(); in testIteratorRemove() 430 it = q.iterator(); in testIteratorRemove() [all …]
|
D | ConcurrentLinkedDequeTest.java | 701 Iterator it = q.iterator(); in testIterator() local 703 for (i = 0; it.hasNext(); i++) in testIterator() 704 assertTrue(q.contains(it.next())); in testIterator() 706 assertIteratorExhausted(it); in testIterator() 728 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 729 assertEquals(++k, it.next()); in testIteratorOrdering() 744 for (Iterator it = q.iterator(); it.hasNext();) { in testWeaklyConsistentIteration() 746 it.next(); in testWeaklyConsistentIteration() 763 Iterator it = q.iterator(); in testIteratorRemove() local 765 assertEquals(it.next(), new Integer(j)); in testIteratorRemove() [all …]
|
D | ArrayDequeTest.java | 636 Iterator it = q.iterator(); in checkToArray() local 638 Integer x = (Integer) it.next(); in checkToArray() 678 Iterator it = q.iterator(); in checkToArray2() local 680 Integer x = (Integer) it.next(); in checkToArray2() 747 Iterator it = q.iterator(); in testIterator() local 749 for (i = 0; it.hasNext(); i++) in testIterator() 750 assertTrue(q.contains(it.next())); in testIterator() 752 assertIteratorExhausted(it); in testIterator() 773 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 774 assertEquals(++k, it.next()); in testIteratorOrdering() [all …]
|
D | ConcurrentLinkedQueueTest.java | 432 Iterator it = q.iterator(); in testIterator() local 434 for (i = 0; it.hasNext(); i++) in testIterator() 435 assertTrue(q.contains(it.next())); in testIterator() 437 assertIteratorExhausted(it); in testIterator() 457 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering() 458 assertEquals(++k, it.next()); in testIteratorOrdering() 473 for (Iterator it = q.iterator(); it.hasNext();) { in testWeaklyConsistentIteration() 475 it.next(); in testWeaklyConsistentIteration() 489 Iterator it = q.iterator(); in testIteratorRemove() local 490 it.next(); in testIteratorRemove() [all …]
|
/libcore/luni/src/main/native/ |
D | AsynchronousCloseMonitor.cpp | 93 for (AsynchronousCloseMonitorImpl* it = blockedThreadList; it != NULL; it = it->mNext) { in signalBlockedThreads() local 94 if (it->mFd == fd) { in signalBlockedThreads() 95 it->mSignaled = true; in signalBlockedThreads() 96 pthread_kill(it->mThread, BLOCKED_THREAD_SIGNAL); in signalBlockedThreads()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | BreakIteratorBenchmark.java | 52 BreakIterator it = BreakIterator.getLineInstance(text.locale); in timeBreakIterator() local 53 it.setText(text.text); in timeBreakIterator() 55 while (it.next() != BreakIterator.DONE) { in timeBreakIterator() 62 android.icu.text.BreakIterator it = in timeIcuBreakIterator() local 64 it.setText(text.text); in timeIcuBreakIterator() 66 while (it.next() != android.icu.text.BreakIterator.DONE) { in timeIcuBreakIterator()
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | ConcurrentSkipListSetTest.java | 70 Iterator it = set.iterator(); in testClone() local 72 while (it.hasNext() && itOfClone.hasNext()) { in testClone() 73 String entry = (String) it.next(); in testClone() 77 assertFalse(it.hasNext()); in testClone() 86 Iterator it = set.descendingIterator(); in testDescendingIterator() local 88 for (i = 0; it.hasNext(); i++) { in testDescendingIterator() 89 String val = (String) it.next(); in testDescendingIterator()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | FindAnyOpTest.java | 78 Iterator<Integer> it = fs.apply(data.stream()).iterator(); in exerciseStream() local 80 while (!contained && it.hasNext()) { in exerciseStream() 81 contained = Objects.equals(r, it.next()); in exerciseStream() 102 PrimitiveIterator.OfInt it = fs.apply(data.stream()).iterator(); in exerciseIntStream() local 104 while (!contained && it.hasNext()) { in exerciseIntStream() 105 contained = r == it.nextInt(); in exerciseIntStream() 126 PrimitiveIterator.OfLong it = fs.apply(data.stream()).iterator(); in exerciseLongStream() local 128 while (!contained && it.hasNext()) { in exerciseLongStream() 129 contained = r == it.nextLong(); in exerciseLongStream() 150 PrimitiveIterator.OfDouble it = fs.apply(data.stream()).iterator(); in exerciseDoubleStream() local [all …]
|