/libcore/luni/src/main/java/java/util/ |
D | AbstractCollection.java | 74 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 …]
|
D | AbstractSet.java | 77 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()
|
D | AbstractSequentialList.java | 42 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 …]
|
D | AbstractMap.java | 190 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 …]
|
D | AbstractList.java | 177 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 …]
|
D | ListResourceBundle.java | 94 Iterator<String> it = table.keySet().iterator(); in getKeys() 97 return it.hasNext(); in getKeys() 101 return it.next(); in getKeys()
|
/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 | 118 private void assertCollationElementIterator(CollationElementIterator it, Integer... offsets) { in assertCollationElementIterator() argument 120 assertEquals(offset, it.getOffset()); in assertCollationElementIterator() 121 it.next(); in assertCollationElementIterator() 123 assertEquals(CollationElementIterator.NULLORDER, it.next()); in assertCollationElementIterator() 133 CharacterIterator it = new StringCharacterIterator(s); in assertGetCollationElementIteratorCharacterIterator() local 134 assertCollationElementIterator(coll.getCollationElementIterator(it), offsets); in assertGetCollationElementIteratorCharacterIterator()
|
/libcore/luni/src/main/native/ |
D | libcore_icu_NativeBreakIterator.cpp | 116 BreakIterator* it = F(locale, status); \ 120 return reinterpret_cast<uintptr_t>(it) 123 BreakIteratorAccessor it(env, address); in NativeBreakIterator_cloneImpl() local 124 return reinterpret_cast<uintptr_t>(it->clone()); in NativeBreakIterator_cloneImpl() 132 BreakIteratorAccessor it(env, address, javaInput, false); in NativeBreakIterator_currentImpl() local 133 return it->current(); in NativeBreakIterator_currentImpl() 137 BreakIteratorAccessor it(env, address, javaInput, false); in NativeBreakIterator_firstImpl() local 138 return it->first(); in NativeBreakIterator_firstImpl() 142 BreakIteratorAccessor it(env, address, javaInput, false); in NativeBreakIterator_followingImpl() local 143 return it->following(offset); in NativeBreakIterator_followingImpl() [all …]
|
D | AsynchronousSocketCloseMonitor.cpp | 66 for (AsynchronousSocketCloseMonitor* it = blockedThreadList; it != NULL; it = it->mNext) { in signalBlockedThreads() local 67 if (it->mFd == fd) { in signalBlockedThreads() 68 pthread_kill(it->mThread, BLOCKED_THREAD_SIGNAL); in signalBlockedThreads()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ServiceLoaderTest.java | 32 Iterator<ServiceLoaderTestInterface> it = loader.iterator(); in test_implementations() local 33 assertTrue(it.hasNext()); in test_implementations() 34 assertTrue(it.next() instanceof Impl1); in test_implementations() 35 assertTrue(it.hasNext()); in test_implementations() 36 assertTrue(it.next() instanceof Impl2); in test_implementations() 37 assertFalse(it.hasNext()); in test_implementations()
|
/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()
|
D | Support_UnmodifiableMapTest.java | 130 Iterator<?> it = keySet.iterator(); in t_KeySet() local 131 while (it.hasNext()) { in t_KeySet() 134 keySet.contains(it.next())); in t_KeySet() 145 for (int counter = 0; it.hasNext(); counter++) { in t_KeySet() 148 objArray[counter] == it.next()); in t_KeySet() 154 for (int counter = 0; it.hasNext(); counter++) { in t_KeySet() 157 objArray[counter] == it.next()); in t_KeySet()
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfoDB.java | 81 BufferIterator it = TZDATA.bigEndianIterator(); in readHeader() local 84 it.readByteArray(tzdata_version, 0, tzdata_version.length); in readHeader() 91 int index_offset = it.readInt(); in readHeader() 92 int data_offset = it.readInt(); in readHeader() 93 int zonetab_offset = it.readInt(); in readHeader() 95 readIndex(it, index_offset, data_offset); in readHeader() 96 readZoneTab(it, zonetab_offset); in readHeader() 118 private static void readZoneTab(BufferIterator it, int zoneTabOffset) { in readZoneTab() argument 120 it.seek(zoneTabOffset); in readZoneTab() 121 it.readByteArray(bytes, 0, bytes.length); in readZoneTab() [all …]
|
D | ZoneInfo.java | 54 public static TimeZone makeTimeZone(String id, BufferIterator it) { in makeTimeZone() argument 58 if (it.readInt() != 0x545a6966) { // "TZif" in makeTimeZone() 63 it.skip(28); in makeTimeZone() 66 int tzh_timecnt = it.readInt(); in makeTimeZone() 67 int tzh_typecnt = it.readInt(); in makeTimeZone() 69 it.skip(4); // Skip tzh_charcnt. in makeTimeZone() 72 it.readIntArray(transitions, 0, transitions.length); in makeTimeZone() 75 it.readByteArray(type, 0, type.length); in makeTimeZone() 80 gmtOffsets[i] = it.readInt(); in makeTimeZone() 81 isDsts[i] = it.readByte(); in makeTimeZone() [all …]
|
/libcore/luni/src/main/java/java/text/ |
D | AttributedString.java | 163 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 …]
|
D | RuleBasedBreakIterator.java | 51 CharacterIterator it = wrapped.getText(); in checkOffset() local 52 if (offset < it.getBeginIndex() || offset > it.getEndIndex()) { in checkOffset() 53 String message = "Valid range is [" + it.getBeginIndex() + " " + it.getEndIndex() + "]"; in checkOffset()
|
D | StringCharacterIterator.java | 141 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/luni/src/main/java/java/util/zip/ |
D | ZipEntry.java | 353 …BufferIterator it = HeapBufferIterator.iterator(hdrBuf, 0, hdrBuf.length, ByteOrder.LITTLE_ENDIAN); in ZipEntry() local 355 int sig = it.readInt(); in ZipEntry() 360 it.seek(8); in ZipEntry() 361 int gpbf = it.readShort() & 0xffff; in ZipEntry() 367 compressionMethod = it.readShort() & 0xffff; in ZipEntry() 368 time = it.readShort() & 0xffff; in ZipEntry() 369 modDate = it.readShort() & 0xffff; in ZipEntry() 372 crc = ((long) it.readInt()) & 0xffffffffL; in ZipEntry() 373 compressedSize = ((long) it.readInt()) & 0xffffffffL; in ZipEntry() 374 size = ((long) it.readInt()) & 0xffffffffL; in ZipEntry() [all …]
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
D | ExtendedKeyUsage.java | 85 for (Iterator<?> it = keys.iterator(); it.hasNext();) { in dumpValue() 86 sb.append(" \"").append(it.next()).append('"'); in dumpValue() 87 if (it.hasNext()) { in dumpValue()
|
/libcore/luni/src/main/java/java/util/prefs/ |
D | FilePreferencesImpl.java | 126 Iterator<String> it = removed.iterator(); in flushSpi() local 127 while (it.hasNext()) { in flushSpi() 128 currentPrefs.remove(it.next()); in flushSpi() 131 it = updated.iterator(); in flushSpi() 132 while (it.hasNext()) { in flushSpi() 133 Object key = it.next(); in flushSpi()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | RuleBasedCollatorICU.java | 113 public CollationElementIteratorICU getCollationElementIterator(CharacterIterator it) { in getCollationElementIterator() argument 115 return getCollationElementIterator(characterIteratorToString(it)); in getCollationElementIterator() 118 private String characterIteratorToString(CharacterIterator it) { in characterIteratorToString() argument 120 for (char ch = it.current(); ch != CharacterIterator.DONE; ch = it.next()) { in characterIteratorToString()
|
/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()
|