Home
last modified time | relevance | path

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

12345678910>>...113

/external/wpa_supplicant_8/src/utils/
Dradiotap.c81 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument
93 iterator->rtheader = radiotap_header; in ieee80211_radiotap_iterator_init()
94 iterator->max_length = le16_to_cpu(get_unaligned( in ieee80211_radiotap_iterator_init()
96 iterator->arg_index = 0; in ieee80211_radiotap_iterator_init()
97 iterator->bitmap_shifter = le32_to_cpu(get_unaligned( in ieee80211_radiotap_iterator_init()
99 iterator->arg = (u8 *)radiotap_header + sizeof(*radiotap_header); in ieee80211_radiotap_iterator_init()
100 iterator->this_arg = NULL; in ieee80211_radiotap_iterator_init()
104 if (unlikely(iterator->bitmap_shifter & (1<<IEEE80211_RADIOTAP_EXT))) { in ieee80211_radiotap_iterator_init()
105 while (le32_to_cpu(get_unaligned((__le32 *)iterator->arg)) & in ieee80211_radiotap_iterator_init()
107 iterator->arg += sizeof(u32); in ieee80211_radiotap_iterator_init()
[all …]
/external/wpa_supplicant_6/wpa_supplicant/src/drivers/
Dradiotap.c81 struct ieee80211_radiotap_iterator *iterator, in ieee80211_radiotap_iterator_init() argument
93 iterator->rtheader = radiotap_header; in ieee80211_radiotap_iterator_init()
94 iterator->max_length = le16_to_cpu(get_unaligned( in ieee80211_radiotap_iterator_init()
96 iterator->arg_index = 0; in ieee80211_radiotap_iterator_init()
97 iterator->bitmap_shifter = le32_to_cpu(get_unaligned( in ieee80211_radiotap_iterator_init()
99 iterator->arg = (u8 *)radiotap_header + sizeof(*radiotap_header); in ieee80211_radiotap_iterator_init()
100 iterator->this_arg = NULL; in ieee80211_radiotap_iterator_init()
104 if (unlikely(iterator->bitmap_shifter & (1<<IEEE80211_RADIOTAP_EXT))) { in ieee80211_radiotap_iterator_init()
105 while (le32_to_cpu(get_unaligned((__le32 *)iterator->arg)) & in ieee80211_radiotap_iterator_init()
107 iterator->arg += sizeof(u32); in ieee80211_radiotap_iterator_init()
[all …]
/external/apache-harmony/text/src/test/java/org/apache/harmony/text/tests/java/text/
DBreakIteratorTest.java31 BreakIterator iterator; field in BreakIteratorTest
38 iterator = BreakIterator.getCharacterInstance(Locale.US); in setUp()
47 assertNotSame(newOne, iterator); in testCache()
48 assertEquals(newOne, iterator); in testCache()
51 assertEquals(newOne, iterator); in testCache()
54 assertEquals(newOne, iterator); in testCache()
57 assertFalse(wordIterator.equals(iterator)); in testCache()
60 assertFalse(lineIterator.equals(iterator)); in testCache()
63 assertFalse(senteIterator.equals(iterator)); in testCache()
67 BreakIterator cloned = (BreakIterator) iterator.clone(); in testClone()
[all …]
DCollationElementIteratorTest.java44 CollationElementIterator iterator = coll in testGetOffset() local
47 int offset = iterator.getOffset(); in testGetOffset()
51 iterator.next(); in testGetOffset()
52 offset = iterator.getOffset(); in testGetOffset()
59 CollationElementIterator iterator = coll in testNext() local
62 int order = iterator.next(); in testNext()
66 order = iterator.next(); in testNext()
69 int offset = iterator.getOffset(); in testNext()
71 order = iterator.previous(); in testNext()
75 order = iterator.previous(); in testNext()
[all …]
/external/webkit/Source/WebCore/platform/text/gtk/
DTextBreakIteratorGtk.cpp194 static TextBreakIterator* setUpIterator(bool& createdIterator, TextBreakIterator*& iterator, in setUpIterator() argument
201 iterator = new TextBreakIterator(); in setUpIterator()
204 if (!iterator) in setUpIterator()
207 if (!iterator->m_charIterator.setText(string, length)) in setUpIterator()
210 int charLength = iterator->m_charIterator.getLength(); in setUpIterator()
212 iterator->m_type = type; in setUpIterator()
214 g_free(iterator->m_logAttrs); in setUpIterator()
215 iterator->m_logAttrs = g_new0(PangoLogAttr, charLength + 1); in setUpIterator()
216 pango_get_log_attrs(iterator->m_charIterator.getText(), iterator->m_charIterator.getSize(), in setUpIterator()
217 -1, 0, iterator->m_logAttrs, charLength + 1); in setUpIterator()
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DIteratorsTest.java77 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() local
78 assertFalse(iterator.hasNext()); in testEmptyIterator()
80 iterator.next(); in testEmptyIterator()
85 iterator.remove(); in testEmptyIterator()
92 Iterator<String> iterator = Iterators.emptyIterator(); in testSize0() local
93 assertEquals(0, Iterators.size(iterator)); in testSize0()
97 Iterator<Integer> iterator = Collections.singleton(0).iterator(); in testSize1() local
98 assertEquals(1, Iterators.size(iterator)); in testSize1()
102 Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator(); in testSize_partiallyConsumed() local
103 iterator.next(); in testSize_partiallyConsumed()
[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.java116 final Iterator<T> iterator) { in unmodifiableIterator() argument
117 checkNotNull(iterator); in unmodifiableIterator()
118 if (iterator instanceof UnmodifiableIterator) { in unmodifiableIterator()
119 return (UnmodifiableIterator<T>) iterator; in unmodifiableIterator()
124 return iterator.hasNext(); in unmodifiableIterator()
128 return iterator.next(); in unmodifiableIterator()
140 UnmodifiableIterator<T> iterator) {
141 return checkNotNull(iterator);
149 public static int size(Iterator<?> iterator) {
151 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()
129 return Iterators.contains(iterable.iterator(), element); in contains()
147 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll()
165 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll()
187 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
249 return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); in elementsEqual()
257 return Iterators.toString(iterable.iterator()); in toString()
268 return Iterators.getOnlyElement(iterable.iterator()); in getOnlyElement()
[all …]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterators.java114 final Iterator<T> iterator) { in unmodifiableIterator() argument
115 checkNotNull(iterator); in unmodifiableIterator()
116 if (iterator instanceof UnmodifiableIterator) { in unmodifiableIterator()
117 return (UnmodifiableIterator<T>) iterator; in unmodifiableIterator()
122 return iterator.hasNext(); in unmodifiableIterator()
126 return iterator.next(); in unmodifiableIterator()
138 UnmodifiableIterator<T> iterator) {
139 return checkNotNull(iterator);
147 public static int size(Iterator<?> iterator) {
149 while (iterator.hasNext()) {
[all …]
DIterables.java90 public Iterator<T> iterator() { in iterator() method in Iterables.UnmodifiableIterable
91 return Iterators.unmodifiableIterator(iterable.iterator()); in iterator()
107 : Iterators.size(iterable.iterator()); in size()
126 return Iterators.contains(iterable.iterator(), element); in contains()
144 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove); in removeAll()
162 : Iterators.retainAll(removeFrom.iterator(), elementsToRetain); in retainAll()
184 return Iterators.removeIf(removeFrom.iterator(), predicate); in removeIf()
246 return Iterators.elementsEqual(iterable1.iterator(), iterable2.iterator()); in elementsEqual()
254 return Iterators.toString(iterable.iterator()); in toString()
265 return Iterators.getOnlyElement(iterable.iterator()); in getOnlyElement()
[all …]
/external/flac/libFLAC/
Dmetadata_iterators.c89 static FLAC__bool read_metadata_block_header_(FLAC__Metadata_SimpleIterator *iterator);
90 static FLAC__bool read_metadata_block_data_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMe…
117 static FLAC__bool write_metadata_block_stationary_(FLAC__Metadata_SimpleIterator *iterator, const F…
118 …_metadata_block_stationary_with_padding_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMeta…
119 static FLAC__bool rewrite_whole_file_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMetadata…
121 static void simple_iterator_push_(FLAC__Metadata_SimpleIterator *iterator);
122 static FLAC__bool simple_iterator_pop_(FLAC__Metadata_SimpleIterator *iterator);
127 static FLAC__bool simple_iterator_copy_file_prefix_(FLAC__Metadata_SimpleIterator *iterator, FILE *…
128 static FLAC__bool simple_iterator_copy_file_postfix_(FLAC__Metadata_SimpleIterator *iterator, FILE …
380 …FLAC__Metadata_SimpleIterator *iterator = (FLAC__Metadata_SimpleIterator*)calloc(1, sizeof(FLAC__M… in FLAC__metadata_simple_iterator_new() local
[all …]
/external/webkit/Source/WebCore/platform/text/
DTextBreakIteratorICU.cpp34 static TextBreakIterator* setUpIterator(bool& createdIterator, TextBreakIterator*& iterator, in setUpIterator() argument
42iterator = reinterpret_cast<TextBreakIterator*>(ubrk_open(type, currentTextBreakLocaleID(), 0, 0, … in setUpIterator()
46 if (!iterator) in setUpIterator()
50 ubrk_setText(reinterpret_cast<UBreakIterator*>(iterator), string, length, &setTextStatus); in setUpIterator()
54 return iterator; in setUpIterator()
92 void releaseLineBreakIterator(TextBreakIterator* iterator) in releaseLineBreakIterator() argument
95 ASSERT(iterator); in releaseLineBreakIterator()
98 staticLineBreakIterator = iterator; in releaseLineBreakIterator()
100 ubrk_close(reinterpret_cast<UBreakIterator*>(iterator)); in releaseLineBreakIterator()
111 int textBreakFirst(TextBreakIterator* iterator) in textBreakFirst() argument
[all …]
/external/openssl/crypto/engine/
Deng_list.c84 ENGINE *iterator = engine_list_head; in engine_list_cleanup() local
86 while(iterator != NULL) in engine_list_cleanup()
88 ENGINE_remove(iterator); in engine_list_cleanup()
89 iterator = engine_list_head; in engine_list_cleanup()
99 ENGINE *iterator = NULL; in engine_list_add() local
107 iterator = engine_list_head; in engine_list_add()
108 while(iterator && !conflict) in engine_list_add()
110 conflict = (strcmp(iterator->id, e->id) == 0); in engine_list_add()
111 iterator = iterator->next; in engine_list_add()
159 ENGINE *iterator; in engine_list_remove() local
[all …]
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/util/
DTreeMapExtendTest.java1749 Iterator startIterator = entrySet.iterator(); in test_AscendingSubMap_subMap()
1753 Iterator endIterator = entrySet.iterator(); in test_AscendingSubMap_subMap()
1801 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap()
1810 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap()
1819 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap()
1828 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap()
1836 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap()
2399 Iterator it = values.iterator(); in test_DescendingSubMap_values()
2408 it = values.iterator(); in test_DescendingSubMap_values()
3395 Iterator iterator = entrySet.iterator(); in test_Entry_setValue() local
[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 …]
DTransformWriteField.java29 public int transform(CtClass tclazz, int pos, CodeIterator iterator, in transform() argument
32 int c = iterator.byteAt(pos); in transform()
34 int index = iterator.u16bitAt(pos + 1); in transform()
39 CodeAttribute ca = iterator.get(); in transform()
40 iterator.move(pos); in transform()
44 pos = iterator.insertGap(3); in transform()
45 iterator.writeByte(ACONST_NULL, pos); in transform()
46 iterator.writeByte(DUP_X2, pos + 1); in transform()
47 iterator.writeByte(POP, pos + 2); in transform()
52 pos = iterator.insertGap(2); in transform()
[all …]
/external/stlport/stlport/stl/pointers/
D_slist.h61 typedef typename _Base::iterator _BaseIte;
77 typedef _STLP_PRIV _Slist_iterator<value_type, _Nonconst_traits<value_type> > iterator; typedef
186 iterator before_begin() { return iterator(_M_impl.before_begin()._M_node); } in before_begin()
189 iterator begin() { return iterator(_M_impl.begin()._M_node); } in begin()
192 iterator end() { return iterator(_M_impl.end()._M_node); } in end()
193 const_iterator end() const { return iterator(_M_impl.end()._M_node); } in end()
220 iterator previous(const_iterator __pos) in previous()
221 { return iterator(_M_impl.previous(_BaseConstIte(__pos._M_node))._M_node); } in previous()
226iterator insert_after(iterator __pos, const value_type& __x = _STLP_DEFAULT_CONSTRUCTED(value_type…
228 iterator insert_after(iterator __pos, const value_type& __x)
[all …]
/external/clang/include/clang/AST/
DExternalASTSource.h359 class iterator {
385 iterator() : Self(0), Position(0) { } in iterator() function
387 iterator(LazyVector *Self, int Position) in iterator() function
407 iterator &operator++() {
412 iterator operator++(int) {
413 iterator Prev(*this);
418 iterator &operator--() {
423 iterator operator--(int) {
424 iterator Prev(*this);
429 friend bool operator==(const iterator &X, const iterator &Y) {
[all …]
/external/stlport/stlport/stl/debug/
D_tree.h105 typedef _STLP_PRIV _DBG_iter<_Base, _STLP_PRIV _DbgTraits<_NonConstIteTraits> > iterator; typedef
112 void _Invalidate_iterator(const iterator& __it) in _STLP_KEY_TYPE_FOR_CONT_EXT()
114 void _Invalidate_iterators(const iterator& __first, const iterator& __last) in _Invalidate_iterators()
117 typedef typename _Base::iterator _Base_iterator;
156 iterator begin() { return iterator(&_M_iter_list, _M_non_dbg_impl.begin()); } in begin()
158 iterator end() { return iterator(&_M_iter_list, _M_non_dbg_impl.end()); } in end()
178 iterator find(const _KT& __k) in find()
179 { return iterator(&_M_iter_list, _M_non_dbg_impl.find(__k)); } in find()
185 iterator lower_bound(const _KT& __x) in lower_bound()
186 { return iterator(&_M_iter_list, _M_non_dbg_impl.lower_bound(__x)); } in lower_bound()
[all …]
D_slist.h91 …f _STLP_PRIV _DBG_iter<_Base, _STLP_PRIV _SlistDbgTraits<_Nonconst_traits<value_type> > > iterator; typedef
99 void _Invalidate_iterator(const iterator& __it) in _Invalidate_iterator()
101 void _Invalidate_iterators(const iterator& __first, const iterator& __last) in _Invalidate_iterators()
104 typedef typename _Base::iterator _Base_iterator;
184 iterator before_begin() in before_begin()
185 { return iterator(&_M_iter_list, _M_non_dbg_impl.before_begin()); } in before_begin()
189 iterator begin() in begin()
190 { return iterator(&_M_iter_list, _M_non_dbg_impl.begin()); } in begin()
194 iterator end() in end()
195 { return iterator(&_M_iter_list, _M_non_dbg_impl.end()); } in end()
[all …]
/external/clang/include/clang/Lex/
DPreprocessingRecord.h407 class iterator {
431 iterator() : Self(0), Position(0) { } in iterator() function
433 iterator(PreprocessingRecord *Self, PPEntityID Position) in iterator() function
444 iterator &operator++() {
449 iterator operator++(int) {
450 iterator Prev(*this);
455 iterator &operator--() {
460 iterator operator--(int) {
461 iterator Prev(*this);
466 friend bool operator==(const iterator &X, const iterator &Y) {
[all …]
/external/javassist/src/main/javassist/expr/
DExprEditor.java85 CodeIterator iterator = codeAttr.iterator(); in doit()
89 while (iterator.hasNext()) in doit()
90 if (loopBody(iterator, clazz, minfo, context)) in doit()
96 Handler h = new Handler(et, i, iterator, clazz, minfo); in doit()
126 CodeIterator iterator, int endPos) in doit() argument
130 while (iterator.hasNext() && iterator.lookAhead() < endPos) { in doit()
131 int size = iterator.getCodeLength(); in doit()
132 if (loopBody(iterator, clazz, minfo, context)) { in doit()
134 int size2 = iterator.getCodeLength(); in doit()
175 final boolean loopBody(CodeIterator iterator, CtClass clazz, in loopBody() argument
[all …]
/external/chromium/base/memory/
Dscoped_vector.h19 typedef typename std::vector<T*>::iterator iterator; typedef
41 iterator begin() { return v.begin(); } in begin()
43 iterator end() { return v.end(); } in end()
61 iterator insert(iterator position, T* x) { in insert()
67 void insert(iterator position, InputIterator first, InputIterator last) { in insert()
71 iterator erase(iterator position) { in erase()
76 iterator erase(iterator first, iterator last) { in erase()
82 iterator weak_erase(iterator position) { in weak_erase()
87 iterator weak_erase(iterator first, iterator last) { in weak_erase()

12345678910>>...113