Home
last modified time | relevance | path

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

12345678910>>...20

/frameworks/support/compat/tests/java/android/support/v4/util/
DArrayMapCompatTest.java49 Iterator<Map.Entry<String, String>> iterator = map.entrySet().iterator(); in testCanNotIteratePastEnd_entrySetIterator() local
52 assertTrue(iterator.hasNext()); in testCanNotIteratePastEnd_entrySetIterator()
53 Map.Entry<String, String> firstEntry = copyOf(iterator.next()); in testCanNotIteratePastEnd_entrySetIterator()
56 assertTrue(iterator.hasNext()); in testCanNotIteratePastEnd_entrySetIterator()
57 Map.Entry<String, String> secondEntry = copyOf(iterator.next()); in testCanNotIteratePastEnd_entrySetIterator()
60 assertFalse(iterator.hasNext()); in testCanNotIteratePastEnd_entrySetIterator()
63 iterator.next(); in testCanNotIteratePastEnd_entrySetIterator()
83 Iterator<String> iterator = map.keySet().iterator(); in testCanNotIteratePastEnd_keySetIterator() local
86 assertTrue(iterator.hasNext()); in testCanNotIteratePastEnd_keySetIterator()
87 String firstKey = iterator.next(); in testCanNotIteratePastEnd_keySetIterator()
[all …]
DArraySetCompatTest.java39 Iterator<String> iterator = set.iterator(); in testCanNotIteratePastEnd() local
41 assertTrue(iterator.hasNext()); in testCanNotIteratePastEnd()
42 assertEquals("value", iterator.next()); in testCanNotIteratePastEnd()
43 assertFalse(iterator.hasNext()); in testCanNotIteratePastEnd()
46 iterator.next(); in testCanNotIteratePastEnd()
/frameworks/base/libs/androidfw/include/androidfw/
DTypeWrappers.h28 class iterator {
30 iterator& operator=(const iterator& rhs) {
36 bool operator==(const iterator& rhs) const {
40 bool operator!=(const iterator& rhs) const {
44 iterator operator++(int) {
47 return iterator(mTypeVariant, prevIndex);
58 iterator& operator++();
63 iterator(const TypeVariant* tv, uint32_t index) in iterator() function
69 iterator beginEntries() const { in beginEntries()
70 return iterator(this, 0); in beginEntries()
[all …]
/frameworks/compile/mclinker/include/mcld/MC/
DSymbolCategory.h26 typedef OutputSymbols::iterator iterator; typedef
88 iterator begin();
89 iterator end();
93 iterator fileBegin();
94 iterator fileEnd();
98 iterator localBegin();
99 iterator localEnd();
103 iterator localDynBegin();
104 iterator localDynEnd();
108 iterator commonBegin();
[all …]
/frameworks/native/services/sensorservice/
DRingBuffer.h47 class iterator : public std::iterator<std::forward_iterator_tag, T> {
49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
51 iterator& operator++();
53 iterator operator++(int);
55 bool operator==(const iterator& rhs);
57 bool operator!=(const iterator& rhs);
73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> {
127 iterator begin();
132 iterator end();
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : in iterator() function
[all …]
/frameworks/av/media/libmedia/include/media/
DRingBuffer.h47 class iterator : public std::iterator<std::forward_iterator_tag, T> {
49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
51 iterator& operator++();
53 iterator operator++(int);
55 bool operator==(const iterator& rhs);
57 bool operator!=(const iterator& rhs);
73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> {
127 iterator begin();
132 iterator end();
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : in iterator() function
[all …]
/frameworks/av/include/media/
DRingBuffer.h47 class iterator : public std::iterator<std::forward_iterator_tag, T> {
49 iterator(T* ptr, size_t size, size_t pos, size_t ctr);
51 iterator& operator++();
53 iterator operator++(int);
55 bool operator==(const iterator& rhs);
57 bool operator!=(const iterator& rhs);
73 class const_iterator : public std::iterator<std::forward_iterator_tag, T> {
127 iterator begin();
132 iterator end();
177 RingBuffer<T>::iterator::iterator(T* ptr, size_t size, size_t pos, size_t ctr) : in iterator() function
[all …]
/frameworks/base/core/java/android/text/method/
DAllCapsTransformationMethod.java78 final Edits.Iterator iterator = edits.getFineIterator(); in getTransformation() local
89 mapToDest(iterator, sourceStart); in getTransformation()
91 mapToDest(iterator, sourceEnd); in getTransformation()
97 private static int mapToDest(Edits.Iterator iterator, int sourceIndex) { in mapToDest() argument
99 iterator.findSourceIndex(sourceIndex); in mapToDest()
100 if (sourceIndex == iterator.sourceIndex()) { in mapToDest()
101 return iterator.destinationIndex(); in mapToDest()
112 if (iterator.hasChange()) { in mapToDest()
113 return iterator.destinationIndex() + iterator.newLength(); in mapToDest()
116 return iterator.destinationIndex() + (sourceIndex - iterator.sourceIndex()); in mapToDest()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DRecurrenceProcessor.java195 private static int filter(EventRecurrence r, Time iterator) in filter() argument
204 iterator.month + 1); in filter()
215 iterator.getWeekNumber(), in filter()
216 iterator.getActualMaximum(Time.WEEK_NUM)); in filter()
226 iterator.yearDay, iterator.getActualMaximum(Time.YEAR_DAY)); in filter()
234 iterator.monthDay, in filter()
235 iterator.getActualMaximum(Time.MONTH_DAY)); in filter()
246 int v = EventRecurrence.timeDay2Day(iterator.weekDay); in filter()
258 iterator.hour, in filter()
259 iterator.getActualMaximum(Time.HOUR)); in filter()
[all …]
/frameworks/av/drm/common/
DDrmSupportInfo.cpp114 const DrmSupportInfo::FileSuffixIterator& iterator) : in FileSuffixIterator() argument
115 mDrmSupportInfo(iterator.mDrmSupportInfo), in FileSuffixIterator()
116 mIndex(iterator.mIndex) { in FileSuffixIterator()
121 const DrmSupportInfo::FileSuffixIterator& iterator) { in operator =() argument
122 mDrmSupportInfo = iterator.mDrmSupportInfo; in operator =()
123 mIndex = iterator.mIndex; in operator =()
138 const DrmSupportInfo::MimeTypeIterator& iterator) : in MimeTypeIterator() argument
139 mDrmSupportInfo(iterator.mDrmSupportInfo), in MimeTypeIterator()
140 mIndex(iterator.mIndex) { in MimeTypeIterator()
145 const DrmSupportInfo::MimeTypeIterator& iterator) { in operator =() argument
[all …]
DDrmInfoRequest.cpp57 DrmInfoRequest::Iterator DrmInfoRequest::iterator() const { in iterator() function in DrmInfoRequest
86 DrmInfoRequest::Iterator::Iterator(const DrmInfoRequest::Iterator& iterator) : in Iterator() argument
87 mDrmInfoRequest(iterator.mDrmInfoRequest), mIndex(iterator.mIndex) { in Iterator()
91 const DrmInfoRequest::Iterator& iterator) { in operator =() argument
92 mDrmInfoRequest = iterator.mDrmInfoRequest; in operator =()
93 mIndex = iterator.mIndex; in operator =()
DDrmMetadata.cpp92 DrmMetadata::Iterator DrmMetadata::iterator() { in iterator() function in DrmMetadata
96 DrmMetadata::Iterator::Iterator(const DrmMetadata::Iterator& iterator) : in Iterator() argument
97 mDrmMetadata(iterator.mDrmMetadata), in Iterator()
98 mIndex(iterator.mIndex) { in Iterator()
102 DrmMetadata::Iterator& DrmMetadata::Iterator::operator=(const DrmMetadata::Iterator& iterator) { in operator =() argument
104 mDrmMetadata = iterator.mDrmMetadata; in operator =()
105 mIndex = iterator.mIndex; in operator =()
DDrmInfo.cpp64 DrmInfo::Iterator DrmInfo::iterator() const { in iterator() function in DrmInfo
91 DrmInfo::Iterator::Iterator(const DrmInfo::Iterator& iterator) in Iterator() argument
92 : mDrmInfo(iterator.mDrmInfo), mIndex(iterator.mIndex) { in Iterator()
96 DrmInfo::Iterator& DrmInfo::Iterator::operator=(const DrmInfo::Iterator& iterator) { in operator =() argument
97 mDrmInfo = iterator.mDrmInfo; in operator =()
98 mIndex = iterator.mIndex; in operator =()
/frameworks/compile/mclinker/include/mcld/Script/
DRpnExpr.h31 typedef TokenQueue::iterator iterator; typedef
41 iterator begin() { return m_TokenQueue.begin(); } in begin()
43 iterator end() { return m_TokenQueue.end(); } in end()
55 iterator insert(iterator pPosition, ExprToken* pToken);
57 void erase(iterator pPosition);
66 static RpnExpr* buildHelperExpr(SectionMap::iterator pIter);
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
DBaseMenuWrapper.java99 Iterator<SupportMenuItem> iterator = mMenuItems.keySet().iterator(); in internalRemoveGroup() local
102 while (iterator.hasNext()) { in internalRemoveGroup()
103 menuItem = iterator.next(); in internalRemoveGroup()
105 iterator.remove(); in internalRemoveGroup()
115 Iterator<SupportMenuItem> iterator = mMenuItems.keySet().iterator(); in internalRemoveItem() local
118 while (iterator.hasNext()) { in internalRemoveItem()
119 menuItem = iterator.next(); in internalRemoveItem()
121 iterator.remove(); in internalRemoveItem()
/frameworks/rs/
DrsMap.h79 class iterator {
82 iterator& operator++() {
103 bool operator==(const iterator& other) const {
108 bool operator!=(const iterator& other) const {
118 iterator(size_t index, LinkNode* n, const Map* m) : bucket_index(index), node(n), map(m) {} in iterator() function
126 iterator begin() const { in begin()
130 return iterator(i, node, this); in begin()
137 const iterator& end() const { return endIterator; } in end()
139 iterator begin() { return ((const Map*)this)->begin(); } in begin()
141 const iterator& end() { return endIterator; } in end()
[all …]
DrsList.h28 class iterator;
66 class iterator {
69 iterator& operator++() {
82 bool operator==(const iterator& other) const {
86 bool operator!=(const iterator& other) const {
95 explicit iterator(const List* list_) : list(list_) {} in iterator() function
96 iterator(const List* list_, LinkedBuffer* buffer_, T* p_) : in iterator() function
105 const iterator& begin() const { return beginIterator; } in begin()
107 iterator end() const { return iterator(this, currentBuffer, current); } in end()
123 const iterator beginIterator;
/frameworks/compile/mclinker/include/mcld/ADT/
Dilist_sort.h24 typedef typename iplist::iterator iterator; in sort() typedef
35 iterator first = xs.begin(); in sort()
36 iterator second = xs.begin(); in sort()
47 iterator mid_iter(xs.begin()); in sort()
58 iterator xs_it = xs.begin(); in sort()
59 iterator xs_end = xs.end(); in sort()
60 iterator ys_it = ys.begin(); in sort()
61 iterator ys_end = ys.end(); in sort()
/frameworks/compile/mclinker/include/mcld/LD/
DELFSegmentFactory.h29 typedef Segments::iterator iterator; typedef
32 iterator begin() { return m_Segments.begin(); } in begin()
34 iterator end() { return m_Segments.end(); } in end()
45 iterator find(uint32_t pType, uint32_t pFlagSet, uint32_t pFlagClear);
51 iterator find(uint32_t pType, const LDSection* pSection);
60 ELFSegment* insert(iterator pPosition,
64 void erase(iterator pSegment);
/frameworks/av/media/libnbaio/include/
DNBLog.h72 class iterator;
74 explicit FormatEntry(const iterator &it);
90 class iterator {
92 iterator();
93 iterator(const uint8_t *entry);
94 iterator(const iterator &other);
100 iterator& operator++(); // ++i
102 iterator& operator--(); // --i
103 iterator next() const;
104 iterator prev() const;
[all …]
/frameworks/base/tools/aapt2/util/
DUtil.h222 class iterator {
224 iterator(const iterator&) = default;
225 iterator& operator=(const iterator&) = default;
227 iterator& operator++();
230 bool operator==(const iterator& rhs) const;
231 bool operator!=(const iterator& rhs) const;
236 iterator(android::StringPiece s, char sep, android::StringPiece tok, bool end);
246 iterator begin() { return begin_; } in begin()
248 iterator end() { return end_; } in end()
251 const iterator begin_;
[all …]
/frameworks/compile/mclinker/lib/MC/
DSymbolCategory.cpp285 SymbolCategory::iterator SymbolCategory::begin() { in begin()
289 SymbolCategory::iterator SymbolCategory::end() { in end()
301 SymbolCategory::iterator SymbolCategory::fileBegin() { in fileBegin()
305 SymbolCategory::iterator SymbolCategory::fileEnd() { in fileEnd()
306 iterator iter = fileBegin(); in fileEnd()
321 SymbolCategory::iterator SymbolCategory::localBegin() { in localBegin()
325 SymbolCategory::iterator SymbolCategory::localEnd() { in localEnd()
326 iterator iter = localBegin(); in localEnd()
341 SymbolCategory::iterator SymbolCategory::localDynBegin() { in localDynBegin()
345 SymbolCategory::iterator SymbolCategory::localDynEnd() { in localDynEnd()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPathMeasure_Delegate.java132 return pathMeasure.mOriginalPathIterator.iterator().getTotalLength(); in native_getLength()
169 CachedPathIterator iterator = pathMeasure.mOriginalPathIterator.iterator(); in native_getSegment() local
174 iterator.jumpToSegment(accLength); in native_getSegment()
175 while (!iterator.isDone() && (stopD - accLength > 0.1f)) { in native_getSegment()
176 int type = iterator.currentSegment(points, stopD - accLength); in native_getSegment()
178 if (accLength - iterator.getCurrentSegmentLength() <= stopD) { in native_getSegment()
186 iterator.getCurrentSegmentEnd(lastPoint); in native_getSegment()
191 isZeroLength = isZeroLength && iterator.getCurrentSegmentLength() > 0; in native_getSegment()
217 accLength += iterator.getCurrentSegmentLength(); in native_getSegment()
218 iterator.next(); in native_getSegment()
/frameworks/compile/mclinker/include/mcld/Object/
DSectionMap.h35 typedef DotAssignments::iterator dot_iterator;
66 typedef InputList::iterator iterator; typedef
72 typedef DotAssignments::iterator dot_iterator;
97 iterator begin() { return m_InputList.begin(); } in begin()
99 iterator end() { return m_InputList.end(); } in end()
150 typedef OutputDescList::iterator iterator; typedef
165 iterator find(const std::string& pOutputSection);
178 iterator begin() { return m_OutputDescList.begin(); } in begin()
180 iterator end() { return m_OutputDescList.end(); } in end()
192 iterator insert(iterator pPosition, LDSection* pSection);
/frameworks/base/packages/Osu/src/com/android/hotspot2/omadm/
DMultiValueMap.java60 Iterator<T> valueIterator = values.iterator(); in remove()
76 Iterator<Map.Entry<String, ArrayList<T>>> iterator = mMap.entrySet().iterator(); in remove() local
77 while (iterator.hasNext()) { in remove()
78 ArrayList<T> values = iterator.next().getValue(); in remove()
79 Iterator<T> valueIterator = values.iterator(); in remove()
89 iterator.remove(); in remove()
111 List<T> values = mMap.values().iterator().next(); in getSingletonValue()
115 return values.iterator().next(); in getSingletonValue()

12345678910>>...20