Home
last modified time | relevance | path

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

/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/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 …]
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 …]
DAbstractQueueTest.java150 Iterator iter = queue.iterator(); in test_addLE() local
152 iter.next(); in test_addLE()
154 assertTrue(I == iter.next()); in test_addLE()
DWeakHashMapTest.java342 Iterator iter = map.keySet().iterator(); in test_keySet_hasNext() local
343 iter.next(); in test_keySet_hasNext()
344 iter.next(); in test_keySet_hasNext()
352 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()
DTreeMapExtendTest.java11032 Iterator iter = values.iterator();
11034 assertEquals(i, iter.next());
11037 iter.next();
/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/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/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/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DDdmServer.java146 Iterator iter = values.iterator(); in broadcast() local
148 while (iter.hasNext()) { in broadcast()
149 ChunkHandler handler = (ChunkHandler) iter.next(); in broadcast()
/libcore/ojluni/src/main/java/java/util/logging/
DLogger.java2054 … for (Iterator<LogManager.LoggerWeakRef> iter = parent.kids.iterator(); iter.hasNext(); ) {
2055 ref = iter.next();
2059 iter.remove();
2092 for (Iterator<LogManager.LoggerWeakRef> iter = kids.iterator(); iter.hasNext(); ) {
2093 LogManager.LoggerWeakRef ref = iter.next();
2095 iter.remove();
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationStressTest4.java1039 java.util.Iterator iter = ((Set) objLoaded).iterator(); in test_writeObject_Collections_SingletonSet() local
1040 equals = iter.hasNext(); in test_writeObject_Collections_SingletonSet()
1042 equals = iter.next().equals(new Byte((byte) 107)); in test_writeObject_Collections_SingletonSet()
1044 equals = !iter.hasNext(); in test_writeObject_Collections_SingletonSet()
1075 java.util.Iterator iter = ((List) objLoaded).iterator(); in test_writeObject_Collections_SingletonList() local
1076 equals = objLoaded.equals(objToSave) && iter.hasNext() in test_writeObject_Collections_SingletonList()
1077 && iter.next().equals(new Byte((byte) 107)) in test_writeObject_Collections_SingletonList()
1078 && !iter.hasNext(); in test_writeObject_Collections_SingletonList()
1109 java.util.Iterator iter = ((Map) objLoaded).entrySet().iterator(); in test_writeObject_Collections_SingletonMap() local
1110 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()
/libcore/ojluni/src/main/java/java/io/
DBufferedReader.java573 Iterator<String> iter = new Iterator<String>() { in lines() local
602 iter, Spliterator.ORDERED | Spliterator.NONNULL), false); in lines()