Home
last modified time | relevance | path

Searched refs:iter (Results 1 – 25 of 27) sorted by relevance

12

/libcore/ojluni/src/main/java/sun/net/
DProgressMonitor.java71 … for (Iterator<ProgressSource> iter = progressSourceList.iterator(); iter.hasNext();) { in getProgressSources()
72 ProgressSource pi = iter.next(); in getProgressSources()
121 … for (Iterator<ProgressListener> iter = progressListenerList.iterator(); iter.hasNext();) { in registerSource()
122 listeners.add(iter.next()); in registerSource()
127 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) { in registerSource()
128 ProgressListener pl = iter.next(); in registerSource()
158 … for (Iterator<ProgressListener> iter = progressListenerList.iterator(); iter.hasNext();) { in unregisterSource()
159 listeners.add(iter.next()); in unregisterSource()
164 for (Iterator<ProgressListener> iter = listeners.iterator(); iter.hasNext();) { in unregisterSource()
165 ProgressListener pl = iter.next(); in unregisterSource()
[all …]
/libcore/ojluni/src/main/java/sun/net/www/protocol/http/
DAuthCacheImpl.java62 ListIterator iter = list.listIterator(); in put() local
63 while (iter.hasNext()) { in put()
64 AuthenticationInfo inf = (AuthenticationInfo)iter.next(); in put()
66 iter.remove (); in put()
69 iter.add (value); in put()
85 ListIterator iter = list.listIterator(); in get() local
86 while (iter.hasNext()) { in get()
87 AuthenticationInfo inf = (AuthenticationInfo)iter.next(); in get()
104 ListIterator iter = list.listIterator (); in remove() local
105 while (iter.hasNext()) { in remove()
[all …]
DAuthenticationHeader.java147 Iterator iter = rsp.multiValueIterator (hdrname); in parse() local
148 while (iter.hasNext()) { in parse()
149 String raw = (String)iter.next(); in parse()
DHttpURLConnection.java1354 Iterator iter = responses.multiValueIterator("Proxy-Authenticate");
1355 while (iter.hasNext()) {
1356 String value = ((String)iter.next()).trim();
1432 Iterator iter = responses.multiValueIterator("WWW-Authenticate");
1433 while (iter.hasNext()) {
1434 String value = ((String)iter.next()).trim();
1811 Iterator iter = responses.multiValueIterator("Proxy-Authenticate");
1812 while (iter.hasNext()) {
1813 String value = ((String)iter.next()).trim();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DPriorityQueueTest.java50 Iterator<Integer> iter = integerQueue.iterator(); in test_iterator() local
51 assertNotNull(iter); in test_iterator()
53 while (iter.hasNext()) { in test_iterator()
54 iterResult.add(iter.next()); in test_iterator()
67 Iterator<Integer> iter = integerQueue.iterator(); in test_iterator_empty() local
69 iter.next(); in test_iterator_empty()
75 iter = integerQueue.iterator(); in test_iterator_empty()
77 iter.remove(); in test_iterator_empty()
90 Iterator<Integer> iter = integerQueue.iterator(); in test_iterator_outofbound() local
91 iter.next(); in test_iterator_outofbound()
[all …]
DEnumMapTest.java457 Iterator iter = set.iterator(); in test_entrySet() local
458 entry = (Map.Entry) iter.next(); in test_entrySet()
466 entry = (Map.Entry) iter.next(); in test_entrySet()
479 iter.remove(); in test_entrySet()
481 iter.remove(); in test_entrySet()
503 iter = set.iterator(); in test_entrySet()
504 entry = (Map.Entry) iter.next(); in test_entrySet()
515 iter.next(); in test_entrySet()
524 iter = set.iterator(); in test_entrySet()
529 iter.remove(); in test_entrySet()
[all …]
DArrayDequeTest.java640 Iterator<Object> iter = ad.iterator(); in test_iterator() local
642 assertTrue(iter.hasNext()); in test_iterator()
643 iter.next(); in test_iterator()
645 iter.remove(); in test_iterator()
652 iter = ad.iterator(); in test_iterator()
654 assertTrue(iter.hasNext()); in test_iterator()
655 iter.next(); in test_iterator()
657 iter.remove(); in test_iterator()
664 iter = ad.iterator(); in test_iterator()
665 assertTrue(iter.hasNext()); in test_iterator()
[all …]
DAbstractQueueTest.java150 Iterator iter = queue.iterator(); in test_addLE() local
152 iter.next(); in test_addLE()
154 assertTrue(I == iter.next()); in test_addLE()
DTreeMapTest.java589 Iterator iter = entrySet.iterator(); in test_subMap_Iterator() local
591 while (iter.hasNext()) { in test_subMap_Iterator()
592 Map.Entry<String, String> entry = (Map.Entry<String, String>) iter in test_subMap_Iterator()
601 iter = keySet.iterator(); in test_subMap_Iterator()
603 while (iter.hasNext()) { in test_subMap_Iterator()
604 String key = (String) iter.next(); in test_subMap_Iterator()
695 for (Iterator iter = vals.iterator(); iter.hasNext(); ) { in test_values()
696 Object element = (Object) iter.next(); in test_values()
711 for (Iterator iter = vals.iterator(); iter.hasNext(); ) { in test_values()
712 Object element = (Object) iter.next(); in test_values()
[all …]
DWeakHashMapTest.java336 Iterator iter = map.keySet().iterator(); in test_keySet_hasNext() local
337 iter.next(); in test_keySet_hasNext()
338 iter.next(); in test_keySet_hasNext()
346 assertFalse("Wrong hasNext() value", iter.hasNext()); in test_keySet_hasNext()
DAbstractListTest.java296 ListIterator iter = subList.listIterator(); in test_subList_addAll() local
300 assertTrue("should be more elements", iter.hasNext()); in test_subList_addAll()
301 assertEquals("element in incorrect position", expected[i], iter in test_subList_addAll()
DHashMapTest.java284 Iterator iter = s.iterator(); in test_entrySet() local
285 s.remove(iter.next()); in test_entrySet()
/libcore/dom/src/test/java/org/w3c/domts/
DDOMErrorMonitor.java58 Iterator iter = errors.iterator(); in assertLowerSeverity() local
59 while (iter.hasNext()) { in assertLowerSeverity()
60 DOMError error = (DOMError) iter.next(); in assertLowerSeverity()
DDOMTestCase.java379 Iterator iter = expected.iterator(); in toUpperCase() local
380 while (iter.hasNext()) { in toUpperCase()
381 upperd.add(iter.next().toString().toUpperCase()); in toUpperCase()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DDdmServer.java110 Iterator iter = values.iterator(); in broadcast() local
112 while (iter.hasNext()) { in broadcast()
113 ChunkHandler handler = (ChunkHandler) iter.next(); in broadcast()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java247 public static<T extends Comparable<? super T>> void assertSorted(Iterable<T> iter) { in assertSorted() argument
248 assertSorted(iter.iterator()); in assertSorted()
251 public static<T> void assertSorted(Iterable<T> iter, Comparator<? super T> comp) { in assertSorted() argument
252 assertSorted(iter.iterator(), comp); in assertSorted()
255 public static <T> void assertUnique(Iterable<T> iter) { in assertUnique() argument
256 assertUnique(iter.iterator()); in assertUnique()
259 public static<T> void assertUnique(Iterator<T> iter) { in assertUnique() argument
260 if (!iter.hasNext()) { in assertUnique()
264 if (iter instanceof PrimitiveIterator.OfInt in assertUnique()
265 || iter instanceof PrimitiveIterator.OfDouble in assertUnique()
[all …]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java246 public static<T extends Comparable<? super T>> void assertSorted(Iterable<T> iter) { in assertSorted() argument
247 assertSorted(iter.iterator()); in assertSorted()
250 public static<T> void assertSorted(Iterable<T> iter, Comparator<? super T> comp) { in assertSorted() argument
251 assertSorted(iter.iterator(), comp); in assertSorted()
254 public static <T> void assertUnique(Iterable<T> iter) { in assertUnique() argument
255 assertUnique(iter.iterator()); in assertUnique()
258 public static<T> void assertUnique(Iterator<T> iter) { in assertUnique() argument
259 if (!iter.hasNext()) { in assertUnique()
263 if (iter instanceof PrimitiveIterator.OfInt in assertUnique()
264 || iter instanceof PrimitiveIterator.OfDouble in assertUnique()
[all …]
/libcore/ojluni/src/main/java/java/io/
DExpiringCache.java118 for (Iterator iter = keySet.iterator(); iter.hasNext(); ) { in cleanup()
119 String key = (String) iter.next(); in cleanup()
DBufferedReader.java570 Iterator<String> iter = new Iterator<String>() { in lines() local
599 iter, Spliterator.ORDERED | Spliterator.NONNULL), false); in lines()
/libcore/luni/src/test/java/libcore/java/text/
DOldAttributedStringTest.java43 AttributedCharacterIterator iter = attrString.getIterator(); in test_ConstructorLAttributedCharacterIterator_1() local
44 AttributedString attrString2 = new AttributedString(iter); in test_ConstructorLAttributedCharacterIterator_1()
51 AttributedCharacterIterator iter = attrString.getIterator(); in test_ConstructorLAttributedCharacterIterator_2() local
52 AttributedString attrString2 = new AttributedString(iter, 2, 7); in test_ConstructorLAttributedCharacterIterator_2()
94 AttributedCharacterIterator iter = attrString.getIterator(); in test_ConstructorLAttributedCharacterIterator_3() local
97 … attrString2 = new AttributedString(iter, 2, 7, new AttributedCharacterIterator.Attribute[] {}); in test_ConstructorLAttributedCharacterIterator_3()
100 attrString2 = new AttributedString(iter, 2, 7, null); in test_ConstructorLAttributedCharacterIterator_3()
/libcore/ojluni/src/main/java/sun/net/www/
DMimeLauncher.java192 StringTokenizer iter = new StringTokenizer(execPathList, "|"); in findExecutablePath() local
193 while (iter.hasMoreElements()) { in findExecutablePath()
194 String prefix = (String)iter.nextElement(); in findExecutablePath()
/libcore/ojluni/src/main/java/java/util/logging/
DLogger.java1587 … for (Iterator<LogManager.LoggerWeakRef> iter = parent.kids.iterator(); iter.hasNext(); ) {
1588 ref = iter.next();
1592 iter.remove();
1625 for (Iterator<LogManager.LoggerWeakRef> iter = kids.iterator(); iter.hasNext(); ) {
1626 LogManager.LoggerWeakRef ref = iter.next();
1628 iter.remove();
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DSunCertPathBuilder.java233 Iterator<TrustAnchor> iter = buildParams.trustAnchors().iterator(); in buildReverse() local
234 while (iter.hasNext()) { in buildReverse()
235 TrustAnchor anchor = iter.next(); in buildReverse()
266 if (iter.hasNext()) in buildReverse()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java1063 java.util.Iterator iter = ((Set) objLoaded).iterator(); in test_writeObject_Collections_SingletonSet() local
1064 equals = iter.hasNext(); in test_writeObject_Collections_SingletonSet()
1066 equals = iter.next().equals(new Byte((byte) 107)); in test_writeObject_Collections_SingletonSet()
1068 equals = !iter.hasNext(); in test_writeObject_Collections_SingletonSet()
1099 java.util.Iterator iter = ((List) objLoaded).iterator(); in test_writeObject_Collections_SingletonList() local
1100 equals = objLoaded.equals(objToSave) && iter.hasNext() in test_writeObject_Collections_SingletonList()
1101 && iter.next().equals(new Byte((byte) 107)) in test_writeObject_Collections_SingletonList()
1102 && !iter.hasNext(); in test_writeObject_Collections_SingletonList()
1133 java.util.Iterator iter = ((Map) objLoaded).entrySet().iterator(); in test_writeObject_Collections_SingletonMap() local
1134 equals = objLoaded.equals(objToSave) && iter.hasNext(); in test_writeObject_Collections_SingletonMap()
[all …]
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
DKeyStoreBuilderTest.java364 for (Enumeration<String> iter = ks1.aliases(); iter.hasMoreElements();) { in testNewInstanceStringProviderFileProtectionParameter()
365 String aName = iter.nextElement(); in testNewInstanceStringProviderFileProtectionParameter()

12