Home
last modified time | relevance | path

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

12345678910>>...288

/external/ImageMagick/MagickWand/
Dpixel-iterator.c119 WandExport void ClearPixelIterator(PixelIterator *iterator) in ClearPixelIterator() argument
121 assert(iterator != (const PixelIterator *) NULL); in ClearPixelIterator()
122 assert(iterator->signature == MagickWandSignature); in ClearPixelIterator()
123 if (iterator->debug != MagickFalse) in ClearPixelIterator()
124 (void) LogMagickEvent(WandEvent,GetMagickModule(),"%s",iterator->name); in ClearPixelIterator()
125 iterator->pixel_wands=DestroyPixelWands(iterator->pixel_wands, in ClearPixelIterator()
126 iterator->region.width); in ClearPixelIterator()
127 ClearMagickException(iterator->exception); in ClearPixelIterator()
128 iterator->pixel_wands=NewPixelWands(iterator->region.width); in ClearPixelIterator()
129 iterator->active=MagickFalse; in ClearPixelIterator()
[all …]
/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()
114iterator->_next_bitmap = (le32 *) (((u8 *) radiotap_header) + offsetof(struct ieee80211_radiotap_h… in ieee80211_radiotap_iterator_init()
115 iterator->_next_bitmap++; in ieee80211_radiotap_iterator_init()
[all …]
/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/internal/
DMemoryMappedFileTest.java102 BufferIterator iterator = memoryMappedFile.bigEndianIterator(); in testReadAfterCloseFails() local
106 iterator.readByte(); in testReadAfterCloseFails()
123 BufferIterator iterator = iteratorFactory.apply(mappedFile); in checkReadByte() local
125 assertReadByteSucceeds(iterator, bytes[i]); in checkReadByte()
129 iterator.seek(0); in checkReadByte()
131 assertReadByteSucceeds(iterator, bytes[i]); in checkReadByte()
132 iterator.skip(1); in checkReadByte()
151 BufferIterator iterator = iteratorFactory.apply(mappedFile); in checkSeek() local
152 seekRead(bytes, iterator, 2); in checkSeek()
154 seekRead(bytes, iterator, 0); in checkSeek()
[all …]
/external/guava/android/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.java65 Iterator<T> iterator = targetList.iterator(); in newTargetIterator() local
66 return Iterators.peekingIterator(iterator); in newTargetIterator()
85 Iterator<T> iterator = Collections.unmodifiableList(list).iterator(); in actsLikeIteratorHelper() local
86 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper()
112 Iterator<?> iterator = list.iterator(); in testPeekOnEmptyList() local
113 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList()
125 Iterator<?> iterator = list.iterator(); in testPeekDoesntChangeIteration() local
126 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration()
168 Iterator<String> iterator = list.iterator(); in testCantRemoveAfterPeek() local
169 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
[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.java65 Iterator<T> iterator = targetList.iterator(); in newTargetIterator() local
66 return Iterators.peekingIterator(iterator); in newTargetIterator()
85 Iterator<T> iterator = Collections.unmodifiableList(list).iterator(); in actsLikeIteratorHelper() local
86 return Iterators.peekingIterator(iterator); in actsLikeIteratorHelper()
112 Iterator<?> iterator = list.iterator(); in testPeekOnEmptyList() local
113 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekOnEmptyList()
125 Iterator<?> iterator = list.iterator(); in testPeekDoesntChangeIteration() local
126 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testPeekDoesntChangeIteration()
168 Iterator<String> iterator = list.iterator(); in testCantRemoveAfterPeek() local
169 PeekingIterator<?> peekingIterator = Iterators.peekingIterator(iterator); in testCantRemoveAfterPeek()
[all …]
/external/guava/guava/src/com/google/common/collect/
DIterators.java126 final Iterator<? extends T> iterator) { in unmodifiableIterator() argument
127 checkNotNull(iterator); in unmodifiableIterator()
128 if (iterator instanceof UnmodifiableIterator) { in unmodifiableIterator()
130 UnmodifiableIterator<T> result = (UnmodifiableIterator<T>) iterator; in unmodifiableIterator()
136 return iterator.hasNext(); in unmodifiableIterator()
141 return iterator.next(); in unmodifiableIterator()
153 public static <T> UnmodifiableIterator<T> unmodifiableIterator(UnmodifiableIterator<T> iterator) {
154 return checkNotNull(iterator);
161 public static int size(Iterator<?> iterator) {
163 while (iterator.hasNext()) {
[all …]
/external/guava/android/guava/src/com/google/common/collect/
DIterators.java126 final Iterator<? extends T> iterator) { in unmodifiableIterator() argument
127 checkNotNull(iterator); in unmodifiableIterator()
128 if (iterator instanceof UnmodifiableIterator) { in unmodifiableIterator()
130 UnmodifiableIterator<T> result = (UnmodifiableIterator<T>) iterator; in unmodifiableIterator()
136 return iterator.hasNext(); in unmodifiableIterator()
141 return iterator.next(); in unmodifiableIterator()
153 public static <T> UnmodifiableIterator<T> unmodifiableIterator(UnmodifiableIterator<T> iterator) {
154 return checkNotNull(iterator);
161 public static int size(Iterator<?> iterator) {
163 while (iterator.hasNext()) {
[all …]
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/Inputs/modernize-loop-convert/
Dstructures.h32 typedef MutableVal *iterator; typedef
38 iterator begin();
39 iterator end();
44 struct iterator { struct
47 iterator& operator ++();
48 bool operator!=(const iterator &other);
52 iterator begin();
53 iterator end();
57 struct iterator { struct
60 iterator& operator ++();
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/text/
DScientificNumberFormatter.java121 AttributedCharacterIterator iterator, in format() argument
125 AttributedCharacterIterator iterator, in append() argument
129 int oldIndex = iterator.getIndex(); in append()
130 iterator.setIndex(start); in append()
132 result.append(iterator.current()); in append()
133 iterator.next(); in append()
135 iterator.setIndex(oldIndex); in append()
151 AttributedCharacterIterator iterator, in format() argument
156 iterator.first(); in format()
157 iterator.current() != CharacterIterator.DONE; in format()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DScientificNumberFormatter.java132 AttributedCharacterIterator iterator, in format() argument
136 AttributedCharacterIterator iterator, in append() argument
140 int oldIndex = iterator.getIndex(); in append()
141 iterator.setIndex(start); in append()
143 result.append(iterator.current()); in append()
144 iterator.next(); in append()
146 iterator.setIndex(oldIndex); in append()
162 AttributedCharacterIterator iterator, in format() argument
167 iterator.first(); in format()
168 iterator.current() != CharacterIterator.DONE; in format()
[all …]
/external/bcc/src/cc/
Dtable_storage.cc34 bool TableStorage::Find(const Path &path, TableStorage::iterator &result) const { in Find()
61 TableStorage::iterator TableStorage::begin() { return impl_->begin(); } in begin()
62 TableStorage::iterator TableStorage::end() { return impl_->end(); } in end()
63 TableStorage::iterator TableStorage::lower_bound(const Path &p) { in lower_bound()
66 TableStorage::iterator TableStorage::upper_bound(const Path &p) { in upper_bound()
71 TableStorage::iterator::iterator() {} in iterator() function in ebpf::TableStorage::iterator
72 TableStorage::iterator::iterator(unique_ptr<TableStorageIteratorImpl> impl) : impl_(move(impl)) {} in iterator() function in ebpf::TableStorage::iterator
73 TableStorage::iterator::iterator(const iterator &that) : impl_(that.impl_->clone()) {} in iterator() function in ebpf::TableStorage::iterator
74 TableStorage::iterator::~iterator() {} in ~iterator()
75 TableStorage::iterator::iterator(iterator &&that) { *this = move(that); } in iterator() function in ebpf::TableStorage::iterator
[all …]
/external/flac/src/libFLAC/
Dmetadata_iterators.c72 static FLAC__bool read_metadata_block_header_(FLAC__Metadata_SimpleIterator *iterator);
73 static FLAC__bool read_metadata_block_data_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMe…
100 static FLAC__bool write_metadata_block_stationary_(FLAC__Metadata_SimpleIterator *iterator, const F…
101 …_metadata_block_stationary_with_padding_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMeta…
102 static FLAC__bool rewrite_whole_file_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMetadata…
104 static void simple_iterator_push_(FLAC__Metadata_SimpleIterator *iterator);
105 static FLAC__bool simple_iterator_pop_(FLAC__Metadata_SimpleIterator *iterator);
110 static FLAC__bool simple_iterator_copy_file_prefix_(FLAC__Metadata_SimpleIterator *iterator, FILE *…
111 static FLAC__bool simple_iterator_copy_file_postfix_(FLAC__Metadata_SimpleIterator *iterator, FILE …
363 FLAC__Metadata_SimpleIterator *iterator = calloc(1, sizeof(FLAC__Metadata_SimpleIterator)); in FLAC__metadata_simple_iterator_new() local
[all …]
/external/guava/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java35 Iterator<String> iterator = iterable.iterator(); in testOf_empty() local
36 assertFalse(iterator.hasNext()); in testOf_empty()
38 iterator.next(); in testOf_empty()
43 iterable.iterator(); in testOf_empty()
51 Iterator<String> iterator = iterable.iterator(); in testOf_one() local
52 assertTrue(iterator.hasNext()); in testOf_one()
53 assertEquals("a", iterator.next()); in testOf_one()
54 assertFalse(iterator.hasNext()); in testOf_one()
56 iterator.next(); in testOf_one()
61 iterable.iterator(); in testOf_one()
[all …]
/external/guava/android/guava-testlib/test/com/google/common/collect/testing/
DMinimalIterableTest.java35 Iterator<String> iterator = iterable.iterator(); in testOf_empty() local
36 assertFalse(iterator.hasNext()); in testOf_empty()
38 iterator.next(); in testOf_empty()
43 iterable.iterator(); in testOf_empty()
51 Iterator<String> iterator = iterable.iterator(); in testOf_one() local
52 assertTrue(iterator.hasNext()); in testOf_one()
53 assertEquals("a", iterator.next()); in testOf_one()
54 assertFalse(iterator.hasNext()); in testOf_one()
56 iterator.next(); in testOf_one()
61 iterable.iterator(); in testOf_one()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DCharacterIteratorWrapper.java25 private CharacterIterator iterator; field in CharacterIteratorWrapper
32 iterator = iter; in CharacterIteratorWrapper()
40 int c = iterator.current(); in current()
52 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
60 return iterator.getIndex(); in getIndex()
68 int i = iterator.current(); in next()
69 iterator.next(); in next()
81 int i = iterator.previous(); in previous()
94 iterator.setIndex(index); in setIndex()
105 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
[all …]
DUCharacterIteratorWrapper.java26 this.iterator = iter; in UCharacterIteratorWrapper()
29 private UCharacterIterator iterator; field in UCharacterIteratorWrapper
41 iterator.setToStart(); in first()
42 return (char)iterator.current(); in first()
53 iterator.setToLimit(); in last()
54 return (char)iterator.previous(); in last()
65 return (char) iterator.current(); in current()
79 iterator.next(); in next()
80 return (char) iterator.current(); in next()
93 return (char) iterator.previous(); in previous()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DCharacterIteratorWrapper.java23 private CharacterIterator iterator; field in CharacterIteratorWrapper
30 iterator = iter; in CharacterIteratorWrapper()
38 int c = iterator.current(); in current()
50 return (iterator.getEndIndex() - iterator.getBeginIndex()); in getLength()
58 return iterator.getIndex(); in getIndex()
66 int i = iterator.current(); in next()
67 iterator.next(); in next()
79 int i = iterator.previous(); in previous()
92 iterator.setIndex(index); in setIndex()
103 iterator.setIndex(iterator.getEndIndex()); in setToLimit()
[all …]
/external/flac/src/test_libFLAC/
Dmetadata_manip.c91 static FLAC__bool die_ss_(const char *msg, FLAC__Metadata_SimpleIterator *iterator) in die_ss_() argument
94 …%s\n", FLAC__Metadata_SimpleIteratorStatusString[FLAC__metadata_simple_iterator_status(iterator)]); in die_ss_()
399 FLAC__Metadata_Iterator *iterator; in compare_chain_() local
408 if(0 == (iterator = FLAC__metadata_iterator_new())) in compare_chain_()
411 FLAC__metadata_iterator_init(iterator, chain); in compare_chain_()
418 if(0 == (block = FLAC__metadata_iterator_get_block(iterator))) { in compare_chain_()
419 FLAC__metadata_iterator_delete(iterator); in compare_chain_()
424 FLAC__metadata_iterator_delete(iterator); in compare_chain_()
429 next_ok = FLAC__metadata_iterator_next(iterator); in compare_chain_()
432 FLAC__metadata_iterator_delete(iterator); in compare_chain_()
[all …]
/external/icing/icing/tokenization/
Dlanguage-segmenter-iterator_test.cc57 ICING_ASSERT_OK_AND_ASSIGN(auto iterator, in TEST_F()
60 EXPECT_TRUE(iterator->Advance()); in TEST_F()
61 EXPECT_THAT(iterator->GetTerm(), Eq("foo")); in TEST_F()
63 EXPECT_TRUE(iterator->Advance()); in TEST_F()
64 EXPECT_THAT(iterator->GetTerm(), Eq(" ")); in TEST_F()
66 EXPECT_TRUE(iterator->Advance()); in TEST_F()
67 EXPECT_THAT(iterator->GetTerm(), Eq("bar")); in TEST_F()
69 EXPECT_FALSE(iterator->Advance()); in TEST_F()
79 ICING_ASSERT_OK_AND_ASSIGN(auto iterator, in TEST_F()
82 EXPECT_THAT(iterator->ResetToTermStartingAfterUtf32(/*offset=*/0), in TEST_F()
[all …]
/external/flac/src/test_libFLAC++/
Dmetadata_manip.cpp98 static bool die_ss_(const char *msg, FLAC::Metadata::SimpleIterator &iterator) in die_ss_() argument
100 const FLAC::Metadata::SimpleIterator::Status status = iterator.status(); in die_ss_()
409 FLAC::Metadata::Iterator iterator; in compare_chain_() local
415 if(!iterator.is_valid()) in compare_chain_()
418 iterator.init(chain); in compare_chain_()
427 if(0 == (block = iterator.get_block())) in compare_chain_()
435 next_ok = iterator.next(); in compare_chain_()
834 FLAC::Metadata::SimpleIterator iterator; in test_level_1_() local
836 if(!iterator.is_valid()) in test_level_1_()
839 …if(!iterator.init(flacfilename(/*is_ogg=*/false), /*read_only=*/false, /*preserve_file_stats=*/fal… in test_level_1_()
[all …]
/external/javassist/src/main/javassist/convert/
DTransformAfter.java33 protected int match2(int pos, CodeIterator iterator) throws BadBytecode { in match2() argument
34 iterator.move(pos); in match2()
35 iterator.insert(saveCode); in match2()
36 iterator.insert(loadCode); in match2()
37 int p = iterator.insertGap(3); in match2()
38 iterator.setMark(p); in match2()
39 iterator.insert(loadCode); in match2()
40 pos = iterator.next(); in match2()
41 p = iterator.getMark(); in match2()
42 iterator.writeByte(iterator.byteAt(pos), p); in match2()
[all …]
/external/OpenCL-CTS/test_conformance/spir/
Ddatagen.cpp59 ArgGeneratorsMap::iterator i = m_argGenerators.begin(); in ~DataGenerator()
60 ArgGeneratorsMap::iterator e = m_argGenerators.end(); in ~DataGenerator()
71 ArgGeneratorsMap::iterator i = m_argGenerators.find(argInfo.getTypeName()); in getArgGenerator()
72 ArgGeneratorsMap::iterator e = m_argGenerators.end(); in getArgGenerator()
174 SamplerValuesGenerator::iterator SamplerValuesGenerator::end() in end()
176 return iterator(NUM_NORM_MODES-1, NUM_FILTER_MODES-1, NUM_ADDR_MODES-1); in end()
182 SamplerValuesGenerator::iterator::iterator(size_t norm, size_t filter, in iterator() function in SamplerValuesGenerator::iterator
189 SamplerValuesGenerator::iterator::iterator(): in iterator() function in SamplerValuesGenerator::iterator
192 SamplerValuesGenerator::iterator& SamplerValuesGenerator::iterator::operator ++() in operator ++()
202 bool SamplerValuesGenerator::iterator::incrementIndex(size_t &i, in incrementIndex()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/DebugInfo/DWARF/
DDWARFDie.h276 class iterator; variable
278 iterator begin() const;
279 iterator end() const;
281 std::reverse_iterator<iterator> rbegin() const;
282 std::reverse_iterator<iterator> rend() const;
284 iterator_range<iterator> children() const;
340 class DWARFDie::iterator
341 : public iterator_facade_base<iterator, std::bidirectional_iterator_tag,
345 friend std::reverse_iterator<llvm::DWARFDie::iterator>;
346 friend bool operator==(const DWARFDie::iterator &LHS,
[all …]

12345678910>>...288