Home
last modified time | relevance | path

Searched refs:iterator (Results 1 – 25 of 3381) sorted by relevance

12345678910>>...136

/external/wpa_supplicant_8/src/utils/
Dradiotap.c91 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument
107 iterator->_rtheader = radiotap_header; in ieee80211_radiotap_iterator_init()
108 iterator->_max_length = get_unaligned_le16(&radiotap_header->it_len); in ieee80211_radiotap_iterator_init()
109 iterator->_arg_index = 0; in ieee80211_radiotap_iterator_init()
110 iterator->_bitmap_shifter = get_unaligned_le32(&radiotap_header->it_present); in ieee80211_radiotap_iterator_init()
111 iterator->_arg = (uint8_t *)radiotap_header + sizeof(*radiotap_header); in ieee80211_radiotap_iterator_init()
112 iterator->_next_ns_data = NULL; in ieee80211_radiotap_iterator_init()
113 iterator->_reset_on_ext = 0; in ieee80211_radiotap_iterator_init()
114 iterator->_next_bitmap = &radiotap_header->it_present; in ieee80211_radiotap_iterator_init()
115 iterator->_next_bitmap++; in ieee80211_radiotap_iterator_init()
[all …]
/external/v8/test/mjsunit/es6/
Darguments-iterator.js13 assertTrue(arguments.hasOwnProperty(Symbol.iterator));
14 assertFalse(arguments.propertyIsEnumerable(Symbol.iterator));
15 var descriptor = Object.getOwnPropertyDescriptor(arguments, Symbol.iterator);
19 assertEquals(descriptor.value, [][Symbol.iterator]);
20 assertEquals(arguments[Symbol.iterator], [][Symbol.iterator]);
27 assertTrue(o.hasOwnProperty(Symbol.iterator));
28 assertFalse(o.propertyIsEnumerable(Symbol.iterator));
29 assertEquals(o[Symbol.iterator], [][Symbol.iterator]);
40 var iterator = arguments[Symbol.iterator]();
41 assertIteratorResult(a, false, iterator.next());
[all …]
Darray-iterator.js49 assertHasOwnProperty(Array.prototype, Symbol.iterator, DONT_ENUM);
52 assertEquals('values', Array.prototype[Symbol.iterator].name);
64 var iterator = array[Symbol.iterator]();
65 assertIteratorResult('a', false, iterator.next());
66 assertIteratorResult('b', false, iterator.next());
67 assertIteratorResult('c', false, iterator.next());
68 assertIteratorResult(void 0, true, iterator.next());
71 assertIteratorResult(void 0, true, iterator.next());
78 var iterator = array[Symbol.iterator]();
79 assertIteratorResult('a', false, iterator.next());
[all …]
Dstring-iterator.js8 assertTrue(String.prototype.hasOwnProperty(Symbol.iterator));
9 assertFalse("".hasOwnProperty(Symbol.iterator));
10 assertFalse("".propertyIsEnumerable(Symbol.iterator));
22 var iterator = string[Symbol.iterator]();
23 assertIteratorResult('a', false, iterator.next());
24 assertIteratorResult('b', false, iterator.next());
25 assertIteratorResult('c', false, iterator.next());
26 assertIteratorResult(void 0, true, iterator.next());
27 assertIteratorResult(void 0, true, iterator.next());
37 var iterator = string[Symbol.iterator]();
[all …]
/external/guava/guava-gwt/test-super/com/google/common/collect/super/com/google/common/collect/
DIteratorsTest.java53 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() local
54 assertFalse(iterator.hasNext()); in testEmptyIterator()
56 iterator.next(); in testEmptyIterator()
61 iterator.remove(); in testEmptyIterator()
68 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator() local
69 assertFalse(iterator.hasNext()); in testEmptyListIterator()
70 assertFalse(iterator.hasPrevious()); in testEmptyListIterator()
71 assertEquals(0, iterator.nextIndex()); in testEmptyListIterator()
72 assertEquals(-1, iterator.previousIndex()); in testEmptyListIterator()
74 iterator.next(); in testEmptyListIterator()
[all …]
DPeekingIteratorTest.java66 Iterator<T> iterator = targetList.iterator(); in newTargetIterator() local
67 return Iterators.peekingIterator(iterator); in newTargetIterator()
83 Iterator<T> iterator = Collections.unmodifiableList(list).iterator(); in actsLikeIteratorHelper() local
84 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper()
101 Iterator<?> iterator = list.iterator(); in testPeekOnEmptyList() local
102 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList()
112 Iterator<?> iterator = list.iterator(); in testPeekDoesntChangeIteration() local
114 Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration()
153 Iterator<String> iterator = list.iterator(); in testCantRemoveAfterPeek() local
154 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
[all …]
/external/v8/test/unittests/interpreter/
Dbytecode-array-iterator-unittest.cc55 BytecodeArrayIterator iterator(builder.ToBytecodeArray()); in TEST_F() local
56 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaConstant); in TEST_F()
57 CHECK(iterator.GetConstantForIndexOperand(0).is_identical_to(heap_num_0)); in TEST_F()
58 CHECK(!iterator.done()); in TEST_F()
59 iterator.Advance(); in TEST_F()
61 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaConstant); in TEST_F()
62 CHECK(iterator.GetConstantForIndexOperand(0).is_identical_to(heap_num_1)); in TEST_F()
63 CHECK(!iterator.done()); in TEST_F()
64 iterator.Advance(); in TEST_F()
66 CHECK_EQ(iterator.current_bytecode(), Bytecode::kLdaZero); in TEST_F()
[all …]
Dbytecode-array-builder-unittest.cc457 BytecodeArrayIterator iterator(array); in TEST_F() local
458 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJump); in TEST_F()
459 CHECK_EQ(iterator.GetImmediateOperand(0), 18); in TEST_F()
460 iterator.Advance(); in TEST_F()
463 iterator.Advance(); in TEST_F()
465 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpIfTrue); in TEST_F()
466 CHECK_EQ(iterator.GetImmediateOperand(0), 14); in TEST_F()
467 iterator.Advance(); in TEST_F()
470 iterator.Advance(); in TEST_F()
472 CHECK_EQ(iterator.current_bytecode(), Bytecode::kJumpIfFalse); in TEST_F()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DIteratorsTest.java78 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() local
79 assertFalse(iterator.hasNext()); in testEmptyIterator()
81 iterator.next(); in testEmptyIterator()
86 iterator.remove(); in testEmptyIterator()
93 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator() local
94 assertFalse(iterator.hasNext()); in testEmptyListIterator()
95 assertFalse(iterator.hasPrevious()); in testEmptyListIterator()
96 assertEquals(0, iterator.nextIndex()); in testEmptyListIterator()
97 assertEquals(-1, iterator.previousIndex()); in testEmptyListIterator()
99 iterator.next(); in testEmptyListIterator()
[all …]
DPeekingIteratorTest.java67 Iterator<T> iterator = targetList.iterator(); in newTargetIterator() local
68 return Iterators.peekingIterator(iterator); in newTargetIterator()
84 Iterator<T> iterator = Collections.unmodifiableList(list).iterator(); in actsLikeIteratorHelper() local
85 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper()
111 Iterator<?> iterator = list.iterator(); in testPeekOnEmptyList() local
112 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList()
122 Iterator<?> iterator = list.iterator(); in testPeekDoesntChangeIteration() local
124 Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration()
163 Iterator<String> iterator = list.iterator(); in testCantRemoveAfterPeek() local
164 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
[all …]
DUnmodifiableListIteratorTest.java35 Iterator<String> iterator = create(); in testRemove() local
37 assertTrue(iterator.hasNext()); in testRemove()
38 assertEquals("a", iterator.next()); in testRemove()
40 iterator.remove(); in testRemove()
46 ListIterator<String> iterator = create(); in testAdd() local
48 assertTrue(iterator.hasNext()); in testAdd()
49 assertEquals("a", iterator.next()); in testAdd()
50 assertEquals("b", iterator.next()); in testAdd()
51 assertEquals("b", iterator.previous()); in testAdd()
53 iterator.add("c"); in testAdd()
[all …]
/external/guava/guava/src/com/google/common/collect/
DIterators.java156 final Iterator<T> iterator) { in unmodifiableIterator() argument
157 checkNotNull(iterator); in unmodifiableIterator()
158 if (iterator instanceof UnmodifiableIterator) { in unmodifiableIterator()
159 return (UnmodifiableIterator<T>) iterator; in unmodifiableIterator()
164 return iterator.hasNext(); in unmodifiableIterator()
168 return iterator.next(); in unmodifiableIterator()
180 UnmodifiableIterator<T> iterator) {
181 return checkNotNull(iterator);
189 public static int size(Iterator<?> iterator) {
191 while (iterator.hasNext()) {
[all …]
DIterables.java93 public Iterator<T> iterator() { in iterator() method in Iterables.UnmodifiableIterable
94 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator()
110 : Iterators.size(iterable.iterator()); in size()
122 return Iterators.contains(iterable.iterator(), element); in contains()
140 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll()
158 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll()
180 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
239 Iterator<T> iterator = removeFrom.iterator(); in removeFirstMatching() local
240 while (iterator.hasNext()) { in removeFirstMatching()
241 T next = iterator.next(); in removeFirstMatching()
[all …]
/external/v8/src/compiler/
Dbytecode-graph-builder.cc20 const interpreter::BytecodeArrayIterator& iterator) in FrameStateBeforeAndAfter() argument
26 BailoutId id_before(iterator.current_offset()); in FrameStateBeforeAndAfter()
29 id_after_ = BailoutId(id_before.ToInt() + iterator.current_bytecode_size()); in FrameStateBeforeAndAfter()
525 interpreter::BytecodeArrayIterator iterator(bytecode_array()); in VisitBytecodes() local
526 set_bytecode_iterator(&iterator); in VisitBytecodes()
527 while (!iterator.done()) { in VisitBytecodes()
528 int current_offset = iterator.current_offset(); in VisitBytecodes()
533 switch (iterator.current_bytecode()) { in VisitBytecodes()
536 Visit##name(iterator); \ in VisitBytecodes()
542 iterator.Advance(); in VisitBytecodes()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterators.java154 final Iterator<T> iterator) { in unmodifiableIterator() argument
155 checkNotNull(iterator); in unmodifiableIterator()
156 if (iterator instanceof UnmodifiableIterator) { in unmodifiableIterator()
157 return (UnmodifiableIterator<T>) iterator; in unmodifiableIterator()
162 return iterator.hasNext(); in unmodifiableIterator()
166 return iterator.next(); in unmodifiableIterator()
178 UnmodifiableIterator<T> iterator) {
179 return checkNotNull(iterator);
187 public static int size(Iterator<?> iterator) {
189 while (iterator.hasNext()) {
[all …]
DIterables.java91 public Iterator<T> iterator() { in iterator() method in Iterables.UnmodifiableIterable
92 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator()
108 : Iterators.size(iterable.iterator()); in size()
120 return Iterators.contains(iterable.iterator(), element); in contains()
138 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll()
156 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll()
178 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
237 Iterator<T> iterator = removeFrom.iterator(); in removeFirstMatching() local
238 while (iterator.hasNext()) { in removeFirstMatching()
239 T next = iterator.next(); in removeFirstMatching()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DScientificNumberFormatter.java131 AttributedCharacterIterator iterator, in format() argument
135 AttributedCharacterIterator iterator, in append() argument
139 int oldIndex = iterator.getIndex(); in append()
140 iterator.setIndex(start); in append()
142 result.append(iterator.current()); in append()
143 iterator.next(); in append()
145 iterator.setIndex(oldIndex); in append()
161 AttributedCharacterIterator iterator, in format() argument
166 iterator.first(); in format()
167 iterator.current() != CharacterIterator.DONE; in format()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DScientificNumberFormatter.java135 AttributedCharacterIterator iterator, in format() argument
139 AttributedCharacterIterator iterator, in append() argument
143 int oldIndex = iterator.getIndex(); in append()
144 iterator.setIndex(start); in append()
146 result.append(iterator.current()); in append()
147 iterator.next(); in append()
149 iterator.setIndex(oldIndex); in append()
165 AttributedCharacterIterator iterator, in format() argument
170 iterator.first(); in format()
171 iterator.current() != CharacterIterator.DONE; in format()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCharacterIteratorWrapper.java23 private CharacterIterator iterator; field in CharacterIteratorWrapper
30 iterator = iter; in CharacterIteratorWrapper()
37 int c = iterator.current(); in current()
48 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
55 return iterator.getIndex(); in getIndex()
62 int i = iterator.current(); in next()
63 iterator.next(); in next()
74 int i = iterator.previous(); in previous()
86 iterator.setIndex(index); in setIndex()
96 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
[all …]
DUCharacterIteratorWrapper.java24 this.iterator = iter; in UCharacterIteratorWrapper()
27 private UCharacterIterator iterator; field in UCharacterIteratorWrapper
38 iterator.setToStart(); in first()
39 return (char)iterator.current(); in first()
49 iterator.setToLimit(); in last()
50 return (char)iterator.previous(); in last()
60 return (char) iterator.current(); in current()
73 iterator.next(); in next()
74 return (char) iterator.current(); in next()
86 return (char) iterator.previous(); in previous()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCharacterIteratorWrapper.java21 private CharacterIterator iterator; field in CharacterIteratorWrapper
28 iterator = iter; in CharacterIteratorWrapper()
35 int c = iterator.current(); in current()
46 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
53 return iterator.getIndex(); in getIndex()
60 int i = iterator.current(); in next()
61 iterator.next(); in next()
72 int i = iterator.previous(); in previous()
84 iterator.setIndex(index); in setIndex()
94 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
[all …]
DUCharacterIteratorWrapper.java22 this.iterator = iter; in UCharacterIteratorWrapper()
25 private UCharacterIterator iterator; field in UCharacterIteratorWrapper
36 iterator.setToStart(); in first()
37 return (char)iterator.current(); in first()
47 iterator.setToLimit(); in last()
48 return (char)iterator.previous(); in last()
58 return (char) iterator.current(); in current()
71 iterator.next(); in next()
72 return (char) iterator.current(); in next()
84 return (char) iterator.previous(); in previous()
[all …]
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java37 Iterator<String> iterator = iterable.iterator(); in testOf_empty() local
38 assertFalse(iterator.hasNext()); in testOf_empty()
40 iterator.next(); in testOf_empty()
45 iterable.iterator(); in testOf_empty()
53 Iterator<String> iterator = iterable.iterator(); in testOf_one() local
54 assertTrue(iterator.hasNext()); in testOf_one()
55 assertEquals("a", iterator.next()); in testOf_one()
56 assertFalse(iterator.hasNext()); in testOf_one()
58 iterator.next(); in testOf_one()
63 iterable.iterator(); in testOf_one()
[all …]
/external/javassist/src/main/javassist/convert/
DTransformAfter.java30 protected int match2(int pos, CodeIterator iterator) throws BadBytecode { in match2() argument
31 iterator.move(pos); in match2()
32 iterator.insert(saveCode); in match2()
33 iterator.insert(loadCode); in match2()
34 int p = iterator.insertGap(3); in match2()
35 iterator.setMark(p); in match2()
36 iterator.insert(loadCode); in match2()
37 pos = iterator.next(); in match2()
38 p = iterator.getMark(); in match2()
39 iterator.writeByte(iterator.byteAt(pos), p); in match2()
[all …]
/external/google-breakpad/src/processor/
Drange_map-inl.h124 MapConstIterator iterator = map_.lower_bound(address); in RetrieveRange() local
125 if (iterator == map_.end()) in RetrieveRange()
133 if (address < iterator->second.base()) in RetrieveRange()
136 *entry = iterator->second.entry(); in RetrieveRange()
138 *entry_base = iterator->second.base(); in RetrieveRange()
140 *entry_size = iterator->first - iterator->second.base() + 1; in RetrieveRange()
162 MapConstIterator iterator = map_.upper_bound(address); in RetrieveNearestRange() local
163 if (iterator == map_.begin()) in RetrieveNearestRange()
165 --iterator; in RetrieveNearestRange()
167 *entry = iterator->second.entry(); in RetrieveNearestRange()
[all …]

12345678910>>...136