Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 102) sorted by relevance

12345

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
DAttributedCharacterIteratorTest.java32 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 …]
DBreakIteratorTest.java181 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 …]
DStringCharacterIteratorTest.java155 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 …]
DAttributedStringTest.java35 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/luni/src/main/java/java/util/
DAbstractCollection.java74 Iterator<? extends E> it = collection.iterator(); in addAll() local
75 while (it.hasNext()) { in addAll()
76 if (add(it.next())) { in addAll()
100 Iterator<E> it = iterator(); in clear() local
101 while (it.hasNext()) { in clear()
102 it.next(); in clear()
103 it.remove(); in clear()
127 Iterator<E> it = iterator(); in contains() local
129 while (it.hasNext()) { in contains()
130 if (object.equals(it.next())) { in contains()
[all …]
DAbstractSet.java77 Iterator<?> it = iterator(); in hashCode() local
78 while (it.hasNext()) { in hashCode()
79 Object next = it.next(); in hashCode()
100 Iterator<?> it = iterator(); in removeAll() local
101 while (it.hasNext()) { in removeAll()
102 if (collection.contains(it.next())) { in removeAll()
103 it.remove(); in removeAll()
108 Iterator<?> it = collection.iterator(); in removeAll() local
109 while (it.hasNext()) { in removeAll()
110 result = remove(it.next()) || result; in removeAll()
DAbstractSequentialList.java42 ListIterator<E> it = listIterator(location); in addAll() local
44 int next = it.nextIndex(); in addAll()
46 it.add(colIt.next()); in addAll()
48 return next != it.nextIndex(); in addAll()
71 ListIterator<E> it = listIterator(location); in remove() local
72 E result = it.next(); in remove()
73 it.remove(); in remove()
82 ListIterator<E> it = listIterator(location); in set() local
83 if (!it.hasNext()) { in set()
86 E result = it.next(); in set()
[all …]
DAbstractMap.java190 Iterator<Map.Entry<K, V>> it = entrySet().iterator(); in containsKey() local
192 while (it.hasNext()) { in containsKey()
193 if (key.equals(it.next().getKey())) { in containsKey()
198 while (it.hasNext()) { in containsKey()
199 if (it.next().getKey() == null) { in containsKey()
214 Iterator<Map.Entry<K, V>> it = entrySet().iterator(); in containsValue() local
216 while (it.hasNext()) { in containsValue()
217 if (value.equals(it.next().getValue())) { in containsValue()
222 while (it.hasNext()) { in containsValue()
223 if (it.next().getValue() == null) { in containsValue()
[all …]
DAbstractList.java177 SubAbstractListIterator(ListIterator<E> it, in SubAbstractListIterator() argument
179 iterator = it; in SubAbstractListIterator()
449 Iterator<? extends E> it = collection.iterator(); in addAll() local
450 while (it.hasNext()) { in addAll()
451 add(location++, it.next()); in addAll()
525 Iterator<?> it = iterator(); in hashCode() local
526 while (it.hasNext()) { in hashCode()
527 Object object = it.next(); in hashCode()
543 ListIterator<?> it = listIterator(); in indexOf() local
545 while (it.hasNext()) { in indexOf()
[all …]
/libcore/luni/src/test/java/libcore/java/text/
DBreakIteratorTest.java58 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 …]
DOldAttributedCharacterIteratorTest.java29 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 …]
DOldAttributedStringTest.java31 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 …]
/libcore/luni/src/main/java/libcore/util/
DZoneInfoDB.java86 BufferIterator it = mappedFile.bigEndianIterator();
87 it.skip(byteOffsets[index]);
89 return ZoneInfo.makeTimeZone(id, it);
132 BufferIterator it = mappedFile.bigEndianIterator(); in readHeader() local
135 it.readByteArray(tzdata_version, 0, tzdata_version.length); in readHeader()
142 int index_offset = it.readInt(); in readHeader()
143 int data_offset = it.readInt(); in readHeader()
144 int zonetab_offset = it.readInt(); in readHeader()
146 readIndex(it, index_offset, data_offset); in readHeader()
147 readZoneTab(it, zonetab_offset, (int) mappedFile.size() - zonetab_offset); in readHeader()
[all …]
/libcore/luni/src/main/java/java/text/
DAttributedString.java163 Iterator<Range> it = ranges.iterator(); in inRange() local
164 while (it.hasNext()) { in inRange()
165 Range range = it.next(); in inRange()
191 Iterator<Map.Entry<Attribute, List<Range>>> it = attrString.attributeMap in getAllAttributeKeys() local
193 while (it.hasNext()) { in getAllAttributeKeys()
194 Map.Entry<Attribute, List<Range>> entry = it.next(); in getAllAttributeKeys()
207 Iterator<Range> it = ranges.iterator(); in currentValue() local
208 while (it.hasNext()) { in currentValue()
209 Range range = it.next(); in currentValue()
234 Iterator<Map.Entry<Attribute, List<Range>>> it = attrString.attributeMap in getAttributes() local
[all …]
DIcuIteratorWrapper.java104 final CharacterIterator it = wrapped.getText(); in checkOffset() local
105 if (it == null) { in checkOffset()
108 if (offset < it.getBeginIndex() || offset > it.getEndIndex()) { in checkOffset()
109 String message = "Valid range is [" + it.getBeginIndex() + " " + it.getEndIndex() + "]"; in checkOffset()
DStringCharacterIterator.java141 StringCharacterIterator it = (StringCharacterIterator) object; in equals() local
142 return string.equals(it.string) && start == it.start && end == it.end in equals()
143 && offset == it.offset; in equals()
/libcore/support/src/test/java/tests/support/
DSupport_UnmodifiableCollectionTest.java72 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/native/
DAsynchronousCloseMonitor.cpp67 for (AsynchronousCloseMonitor* it = blockedThreadList; it != NULL; it = it->mNext) { in signalBlockedThreads() local
68 if (it->mFd == fd) { in signalBlockedThreads()
69 it->mSignaled = true; in signalBlockedThreads()
70 pthread_kill(it->mThread, BLOCKED_THREAD_SIGNAL); in signalBlockedThreads()
/libcore/luni/src/test/java/libcore/java/util/
DServiceLoaderTest.java33 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/luni/src/main/java/java/util/zip/
DZipEntry.java385 BufferIterator it = HeapBufferIterator.iterator(cdeHdrBuf, 0, cdeHdrBuf.length, in ZipEntry() local
388 int sig = it.readInt(); in ZipEntry()
393 it.seek(8); in ZipEntry()
394 int gpbf = it.readShort() & 0xffff; in ZipEntry()
407 compressionMethod = it.readShort() & 0xffff; in ZipEntry()
408 time = it.readShort() & 0xffff; in ZipEntry()
409 modDate = it.readShort() & 0xffff; in ZipEntry()
412 crc = ((long) it.readInt()) & 0xffffffffL; in ZipEntry()
413 compressedSize = ((long) it.readInt()) & 0xffffffffL; in ZipEntry()
414 size = ((long) it.readInt()) & 0xffffffffL; in ZipEntry()
[all …]
/libcore/benchmarks/src/benchmarks/regression/
DBreakIteratorBenchmark.java54 BreakIterator it = BreakIterator.getLineInstance(text.locale); in timeBreakIterator() local
55 it.setText(text.text); in timeBreakIterator()
57 while (it.next() != BreakIterator.DONE) { in timeBreakIterator()
64 android.icu.text.BreakIterator it = in timeIcuBreakIterator() local
66 it.setText(text.text); in timeIcuBreakIterator()
68 while (it.next() != android.icu.text.BreakIterator.DONE) { in timeIcuBreakIterator()
/libcore/jsr166-tests/src/test/java/jsr166/
DLinkedListTest.java386 Iterator it = q.iterator(); in testIterator() local
388 for (i = 0; it.hasNext(); i++) in testIterator()
389 assertTrue(q.contains(it.next())); in testIterator()
391 assertIteratorExhausted(it); in testIterator()
410 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering()
411 assertEquals(++k, it.next()); in testIteratorOrdering()
425 Iterator it = q.iterator(); in testIteratorRemove() local
426 assertEquals(1, it.next()); in testIteratorRemove()
427 it.remove(); in testIteratorRemove()
428 it = q.iterator(); in testIteratorRemove()
[all …]
DConcurrentLinkedDequeTest.java703 Iterator it = q.iterator(); in testIterator() local
705 for (i = 0; it.hasNext(); i++) in testIterator()
706 assertTrue(q.contains(it.next())); in testIterator()
708 assertIteratorExhausted(it); in testIterator()
730 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering()
731 assertEquals(++k, it.next()); in testIteratorOrdering()
746 for (Iterator it = q.iterator(); it.hasNext();) { in testWeaklyConsistentIteration()
748 it.next(); in testWeaklyConsistentIteration()
765 Iterator it = q.iterator(); in testIteratorRemove() local
767 assertEquals(it.next(), new Integer(j)); in testIteratorRemove()
[all …]
DArrayDequeTest.java638 Iterator it = q.iterator(); in checkToArray() local
640 Integer x = (Integer) it.next(); in checkToArray()
680 Iterator it = q.iterator(); in checkToArray2() local
682 Integer x = (Integer) it.next(); in checkToArray2()
749 Iterator it = q.iterator(); in testIterator() local
751 for (i = 0; it.hasNext(); i++) in testIterator()
752 assertTrue(q.contains(it.next())); in testIterator()
754 assertIteratorExhausted(it); in testIterator()
775 for (Iterator it = q.iterator(); it.hasNext();) { in testIteratorOrdering()
776 assertEquals(++k, it.next()); in testIteratorOrdering()
[all …]
/libcore/luni/src/main/java/org/apache/harmony/security/x509/
DExtendedKeyUsage.java85 for (Iterator<?> it = keys.iterator(); it.hasNext();) { in dumpValue()
86 sb.append(" \"").append(it.next()).append('"'); in dumpValue()
87 if (it.hasNext()) { in dumpValue()

12345