Home
last modified time | relevance | path

Searched refs:itr (Results 1 – 12 of 12) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/locale/
DLanguageTag.java189 StringTokenIterator itr; in parse() local
195 itr = new StringTokenIterator(gfmap[1], SEP); in parse()
197 itr = new StringTokenIterator(languageTag, SEP); in parse()
203 if (tag.parseLanguage(itr, sts)) { in parse()
204 tag.parseExtlangs(itr, sts); in parse()
205 tag.parseScript(itr, sts); in parse()
206 tag.parseRegion(itr, sts); in parse()
207 tag.parseVariants(itr, sts); in parse()
208 tag.parseExtensions(itr, sts); in parse()
210 tag.parsePrivateuse(itr, sts); in parse()
[all …]
DInternalLocaleBuilder.java148 StringTokenIterator itr = new StringTokenIterator(tp, LanguageTag.SEP); in setUnicodeLocaleKeyword() local
149 while (!itr.isDone()) { in setUnicodeLocaleKeyword()
150 String s = itr.current(); in setUnicodeLocaleKeyword()
154 itr.currentStart()); in setUnicodeLocaleKeyword()
156 itr.next(); in setUnicodeLocaleKeyword()
194 StringTokenIterator itr = new StringTokenIterator(val, LanguageTag.SEP); in setExtension() local
195 while (!itr.isDone()) { in setExtension()
196 String s = itr.current(); in setExtension()
205 itr.currentStart()); in setExtension()
207 itr.next(); in setExtension()
[all …]
/libcore/ojluni/src/test/java/util/Arrays/
DAsList.java51 Iterator<Object> itr = Arrays.asList(array).iterator(); in testIterator() local
53 assertTrue(itr.hasNext()); in testIterator()
54 assertTrue(itr.hasNext()); // must be idempotent in testIterator()
55 assertSame(array[i], itr.next()); in testIterator()
57 itr.remove(); in testIterator()
63 assertFalse(itr.hasNext()); in testIterator()
65 assertFalse(itr.hasNext()); in testIterator()
67 itr.next(); in testIterator()
/libcore/ojluni/src/test/java/util/HashMap/
DTreeBinAssert.java141 Iterator<Key> itr = null; // saved iterator, used for removals in doTest() local
144 if (itr == null) { in doTest()
145 itr = mkItr.apply(collection); in doTest()
147 itr.next(); in doTest()
148 itr.remove(); in doTest()
150 itr = null; in doTest()
DReplaceExisting.java76 Iterator<Integer> itr = hm.keySet().iterator(); in testItr() local
78 Integer retVal = itr.next(); in testItr()
90 while(itr.hasNext()) { in testItr()
91 Integer retVal = itr.next(); in testItr()
/libcore/ojluni/src/main/java/jdk/internal/util/jar/
DJarIndex.java323 Iterator<Map.Entry<String,LinkedList<String>>> itr = indexMap.entrySet().iterator(); in merge() local
324 while(itr.hasNext()) { in merge()
325 Map.Entry<String,LinkedList<String>> e = itr.next(); in merge()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DHashMapTest.java432 for (Iterator<Integer> itr = map.keySet().iterator(); itr.hasNext(); ) { in test_putLjava_lang_ObjectLjava_lang_Object()
433 Integer key = itr.next(); in test_putLjava_lang_ObjectLjava_lang_Object()
445 for (Iterator<Integer> itr = map.keySet().iterator(); itr.hasNext(); ) { in test_putLjava_lang_ObjectLjava_lang_Object()
446 Integer key = itr.next(); in test_putLjava_lang_ObjectLjava_lang_Object()
/libcore/ojluni/annotations/hiddenapi/java/util/
DLinkedList.java298 private final java.util.LinkedList.ListItr itr; field in LinkedList.DescendingIterator
301 itr = null;
/libcore/ojluni/src/main/java/java/util/
DLinkedList.java1004 private final ListItr itr = new ListItr(size()); field in LinkedList.DescendingIterator
1006 return itr.hasPrevious(); in hasNext()
1009 return itr.previous(); in next()
1012 itr.remove(); in remove()
DCollections.java601 ListIterator<? super T> itr = list.listIterator(); in fill() local
603 itr.next(); in fill()
604 itr.set(obj); in fill()
931 ListIterator<T> itr=list.listIterator(); in replaceAll() local
934 if (itr.next()==null) { in replaceAll()
935 itr.set(newVal); in replaceAll()
941 if (oldVal.equals(itr.next())) { in replaceAll()
942 itr.set(newVal); in replaceAll()
5564 Iterator<?> itr = ((List<?>) o).iterator();
5566 while (itr.hasNext() && remaining-- > 0) {
[all …]
/libcore/ojluni/src/main/java/java/text/
DAttributedString.java267 Iterator<Attribute> itr = keys.iterator(); in AttributedString()
268 while (itr.hasNext()) { in AttributedString()
269 Attribute attributeKey = itr.next(); in AttributedString()
/libcore/ojluni/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java909 void register(Itr itr) { in register() argument
911 head = new Node(itr, head); in register()