/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 | 178 ListIterator<E> it = listIterator(); in indexOf() local 180 while (it.hasNext()) in indexOf() 181 if (it.next()==null) in indexOf() 182 return it.previousIndex(); in indexOf() 184 while (it.hasNext()) in indexOf() 185 if (o.equals(it.next())) in indexOf() 186 return it.previousIndex(); in indexOf() 203 ListIterator<E> it = listIterator(size()); in lastIndexOf() local 205 while (it.hasPrevious()) in lastIndexOf() 206 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() 171 AttributedCharacterIterator it = attrString.getIterator(); in test_ConstructorLjava_lang_StringLjava_util_Map() local 173 buf.append(it.first()); in test_ConstructorLjava_lang_StringLjava_util_Map() 175 while ((ch = it.next()) != CharacterIterator.DONE) in test_ConstructorLjava_lang_StringLjava_util_Map() 286 AttributedCharacterIterator it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() local 287 assertEquals("non-null value limit", 2, it in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 293 it = as.getIterator(); in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() 294 assertEquals("null value limit", 4, it in test_addAttributeLjava_text_AttributedCharacterIterator$AttributeLjava_lang_ObjectII() [all …]
|
D | CollatorTest.java | 133 private void assertCollationElementIterator(CollationElementIterator it, Integer... offsets) { 135 assertEquals(offset, it.getOffset()); 136 it.next(); 138 assertEquals(CollationElementIterator.NULLORDER, it.next()); 148 CharacterIterator it = new StringCharacterIterator(s); 149 assertCollationElementIterator(coll.getCollationElementIterator(it), offsets);
|
/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/main/java/libcore/util/ |
D | ZoneInfoDB.java | 158 BufferIterator it = mappedFile.bigEndianIterator(); in getBufferIterator() local 159 it.skip(byteOffset); in getBufferIterator() 160 return it; in getBufferIterator() 199 BufferIterator it = mappedFile.bigEndianIterator(); in readHeader() local 203 it.readByteArray(tzdata_version, 0, tzdata_version.length); in readHeader() 211 int index_offset = it.readInt(); in readHeader() 213 int data_offset = it.readInt(); in readHeader() 215 int zonetab_offset = it.readInt(); in readHeader() 224 readIndex(it, index_offset, data_offset); in readHeader() 225 readZoneTab(it, zonetab_offset, fileSize - zonetab_offset); in readHeader() [all …]
|
/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/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/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 …]
|
D | ArrayBlockingQueueTest.java | 605 Iterator it = q.iterator(); in checkToArray() local 607 Integer x = (Integer) it.next(); in checkToArray() 648 Iterator it = q.iterator(); in checkToArray2() local 650 Integer x = (Integer) it.next(); in checkToArray2() 705 Iterator it = q.iterator(); in testIterator() local 707 for (i = 0; it.hasNext(); i++) in testIterator() 708 assertTrue(q.contains(it.next())); in testIterator() 710 assertIteratorExhausted(it); in testIterator() 712 it = q.iterator(); in testIterator() 713 for (i = 0; it.hasNext(); i++) in testIterator() [all …]
|
/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 …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | AbstractListTest.java | 84 Iterator it = list.iterator(); in test_iterator() local 85 it.next(); in test_iterator() 86 it.remove(); in test_iterator() 87 it.next(); in test_iterator() 117 ListIterator it = list.listIterator(); in test_listIterator() local 118 it.add("one"); in test_listIterator() 119 it.add("two"); in test_listIterator() 245 Iterator it = t.iterator(); in test_iterator_next() local 247 while (it.hasNext()) { in test_iterator_next() 248 it.next(); in test_iterator_next() [all …]
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory3Test.java | 112 Iterator<? extends Certificate> it = col.iterator(); in testGenerateCertificates() local 114 assertEquals("Incorrect Certificate in Collection", cert, it.next()); in testGenerateCertificates() 137 Iterator<? extends Certificate> it = list1.iterator(); in testGenerateCertPath01() local 138 assertEquals("Incorrect Certificate in CertPath", cert, it.next()); in testGenerateCertPath01() 172 Iterator<String> it = certFs[0].getCertPathEncodings(); in testGenerateCertPath03() local 174 assertTrue("no CertPath encodings", it.hasNext()); in testGenerateCertPath03() 176 assertEquals("Incorrect default encoding", certPathEncoding, it in testGenerateCertPath03()
|
/libcore/ojluni/ |
D | NOTICE | 295 document, but changing it is not allowed. 300 and change it. By contrast, the GNU General Public License is intended to 304 authors commit to using it. (Some other Free Software Foundation software is 305 covered by the GNU Library General Public License instead.) You can apply it to 311 that you receive source code or can get it if you want it, that you can change 312 the software or use pieces of it in new free programs; and that you know you 318 software, or if you modify it. 338 To prevent this, we have made it clear that any patent must be licensed for 347 placed by the copyright holder saying it may be distributed under the terms of 351 Program or a portion of it, either verbatim or with modifications and/or [all …]
|
/libcore/ojluni/src/main/java/java/net/ |
D | InMemoryCookieStore.java | 126 Iterator<HttpCookie> it = list.iterator(); in getCookies() local 127 while (it.hasNext()) { in getCookies() 128 HttpCookie cookie = it.next(); in getCookies() 130 it.remove(); in getCookies() 317 Iterator<HttpCookie> it = indexedCookies.iterator(); in getInternal2() local 318 while (it.hasNext()) { in getInternal2() 319 HttpCookie ck = it.next(); in getInternal2() 326 it.remove(); in getInternal2()
|