Home
last modified time | relevance | path

Searched refs:Iterator (Results 1 – 25 of 1330) sorted by relevance

12345678910>>...54

/external/guava/guava/src/com/google/common/collect/
DIterators.java38 import java.util.Iterator;
87 private static final Iterator<Object> EMPTY_MODIFIABLE_ITERATOR =
88 new Iterator<Object>() {
110 static <T> Iterator<T> emptyModifiableIterator() { in emptyModifiableIterator()
111 return (Iterator<T>) EMPTY_MODIFIABLE_ITERATOR; in emptyModifiableIterator()
116 final Iterator<T> iterator) { in unmodifiableIterator()
149 public static int size(Iterator<?> iterator) {
161 public static boolean contains(Iterator<?> iterator, @Nullable Object element)
189 Iterator<?> removeFrom, Collection<?> elementsToRemove) {
213 Iterator<T> removeFrom, Predicate<? super T> predicate) {
[all …]
DAbstractSortedMultiset.java22 import java.util.Iterator;
70 Iterator<Entry<E>> entryIterator = entryIterator();
76 Iterator<Entry<E>> entryIterator = descendingEntryIterator();
82 Iterator<Entry<E>> entryIterator = entryIterator();
94 Iterator<Entry<E>> entryIterator = descendingEntryIterator();
110 abstract Iterator<Entry<E>> descendingEntryIterator();
112 Iterator<E> descendingIterator() {
132 Iterator<Entry<E>> entryIterator() {
137 public Iterator<E> iterator() {
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DIterators.java36 import java.util.Iterator;
85 private static final Iterator<Object> EMPTY_MODIFIABLE_ITERATOR =
86 new Iterator<Object>() {
108 static <T> Iterator<T> emptyModifiableIterator() { in emptyModifiableIterator()
109 return (Iterator<T>) EMPTY_MODIFIABLE_ITERATOR; in emptyModifiableIterator()
114 final Iterator<T> iterator) { in unmodifiableIterator()
147 public static int size(Iterator<?> iterator) {
159 public static boolean contains(Iterator<?> iterator, @Nullable Object element)
187 Iterator<?> removeFrom, Collection<?> elementsToRemove) {
211 Iterator<T> removeFrom, Predicate<? super T> predicate) {
[all …]
/external/guava/guava-tests/test/com/google/common/collect/
DIteratorsTest.java53 import java.util.Iterator;
77 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator()
92 Iterator<String> iterator = Iterators.emptyIterator(); in testSize0()
97 Iterator<Integer> iterator = Collections.singleton(0).iterator(); in testSize1()
102 Iterator<Integer> iterator = asList(1, 2, 3, 4, 5).iterator(); in testSize_partiallyConsumed()
109 Iterator<String> set = asList("a", null, "b").iterator(); in test_contains_nonnull_yes()
114 Iterator<String> set = asList("a", "b").iterator(); in test_contains_nonnull_no()
119 Iterator<String> set = asList("a", null, "b").iterator(); in test_contains_null_yes()
124 Iterator<String> set = asList("a", "b").iterator(); in test_contains_null_no()
129 Iterator<String> iterator = Collections.singletonList("foo").iterator(); in testGetOnlyElement_noDefault_valid()
[all …]
DAbstractLinkedIteratorTest.java29 import java.util.Iterator;
40 protected Iterator<Integer> newTargetIterator() { in testDoublerExhaustive()
49 public Iterator<Integer> iterator() { in testDoubler()
59 public Iterator<Integer> iterator() { in testSampleCode()
60 Iterator<Integer> powersOfTwo = new AbstractLinkedIterator<Integer>(1) { in testSampleCode()
74 Iterator<Object> empty = newEmpty(); in testEmpty()
89 Iterator<Object> broken = newBroken(); in testBroken()
104 private static Iterator<Integer> newDoubler(int first, final int last) { in newDoubler()
113 private static <T> Iterator<T> newEmpty() {
122 private static Iterator<Object> newBroken() {
DPeekingIteratorTest.java32 import java.util.Iterator;
64 @Override protected Iterator<T> newTargetIterator() { in newTargetIterator()
67 Iterator<T> iterator = targetList.iterator(); in newTargetIterator()
83 @Override protected Iterator<T> newTargetIterator() { in actsLikeIteratorHelper()
84 Iterator<T> iterator = Collections.unmodifiableList(list).iterator(); in actsLikeIteratorHelper()
111 Iterator<?> iterator = list.iterator(); in testPeekOnEmptyList()
122 Iterator<?> iterator = list.iterator(); in testPeekDoesntChangeIteration()
163 Iterator<String> iterator = list.iterator(); in testCantRemoveAfterPeek()
192 static class ThrowsAtEndIterator<E> implements Iterator<E> {
193 Iterator<E> iterator;
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/text/
DBidiResolver.h38 template <class Iterator> class MidpointState {
52 void startIgnoringSpaces(const Iterator& midpoint) in startIgnoringSpaces()
58 void stopIgnoringSpaces(const Iterator& midpoint) in stopIgnoringSpaces()
68 Iterator midpoint(0, renderer, 0); in ensureLineBoxInsideIgnoredSpaces()
74 void ensureCharacterGetsLineBox(Iterator& textParagraphSeparator) in ensureCharacterGetsLineBox()
76 …startIgnoringSpaces(Iterator(0, textParagraphSeparator.object(), textParagraphSeparator.offset() -… in ensureCharacterGetsLineBox()
77 … stopIgnoringSpaces(Iterator(0, textParagraphSeparator.object(), textParagraphSeparator.offset())); in ensureCharacterGetsLineBox()
80 void checkMidpoints(Iterator& lBreak) in checkMidpoints()
86 Iterator* midpointsIterator = m_midpoints.data(); in checkMidpoints()
87 Iterator& endpoint = midpointsIterator[m_numMidpoints - 2]; in checkMidpoints()
[all …]
/external/deqp/framework/common/
DtcuFormatUtil.hpp173 template <typename Iterator>
177 Iterator begin;
178 Iterator end;
180 Array (const Iterator& begin_, const Iterator& end_) : begin(begin_), end(end_) {} in Array()
193 template <typename Iterator>
194 std::ostream& operator<< (std::ostream& str, const Array<Iterator>& fmt) in operator <<()
197 for (Iterator cur = fmt.begin; cur != fmt.end; ++cur) in operator <<()
219 template <typename T, typename Iterator = const T*>
223 HexIterator (Iterator iter) : m_iter(iter) {} in HexIterator()
225 HexIterator<T, Iterator>& operator++ (void) { ++m_iter; return *this; } in operator ++()
[all …]
/external/chromium_org/v8/src/compiler/
Dgeneric-algorithm-inl.h23 typedef typename N::Inputs::iterator Iterator; typedef
25 static Iterator begin(Node* node) { return node->inputs().begin(); } in begin()
26 static Iterator end(Node* node) { return node->inputs().end(); } in end()
28 static Node* to(Iterator iterator) { return *iterator; } in to()
29 static Node* from(Iterator iterator) { return iterator.edge().from(); } in from()
36 typedef typename N::Uses::iterator Iterator; typedef
38 static Iterator begin(Node* node) { return node->uses().begin(); } in begin()
39 static Iterator end(Node* node) { return node->uses().end(); } in end()
41 static Node* to(Iterator iterator) { return *iterator; } in to()
42 static Node* from(Iterator iterator) { return iterator.edge().to(); } in from()
/external/chromium_org/third_party/leveldatabase/src/include/leveldb/
Diterator.h23 class Iterator {
25 Iterator();
26 virtual ~Iterator();
88 Iterator(const Iterator&);
89 void operator=(const Iterator&);
93 extern Iterator* NewEmptyIterator();
96 extern Iterator* NewErrorIterator(const Status& status);
/external/chromium_org/sandbox/win/src/
Dhandle_table.h38 class Iterator; variable
64 friend class Iterator;
93 class Iterator {
95 Iterator(const HandleTable& table, const SYSTEM_HANDLE_INFORMATION* start,
98 Iterator(const Iterator& it);
100 Iterator& operator++() {
106 bool operator==(const Iterator& rhs) const {
110 bool operator!=(const Iterator& rhs) const {
130 Iterator begin() const { in begin()
131 return Iterator(*this, handle_info()->Information, in begin()
[all …]
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/
Dleveldb_wrapper.cc21 LevelDBWrapper::Iterator::Iterator(LevelDBWrapper* db) in Iterator() function in sync_file_system::drive_backend::LevelDBWrapper::Iterator
26 LevelDBWrapper::Iterator::~Iterator() {} in ~Iterator()
28 bool LevelDBWrapper::Iterator::Valid() { in Valid()
33 void LevelDBWrapper::Iterator::SeekToFirst() { in SeekToFirst()
39 void LevelDBWrapper::Iterator::SeekToLast() { in SeekToLast()
44 void LevelDBWrapper::Iterator::Seek(const std::string& target) { in Seek()
50 void LevelDBWrapper::Iterator::Next() { in Next()
70 void LevelDBWrapper::Iterator::Delete() { in Delete()
86 leveldb::Slice LevelDBWrapper::Iterator::key() { in key()
99 leveldb::Slice LevelDBWrapper::Iterator::value() { in value()
[all …]
/external/chromium_org/cc/debug/
Dring_buffer.h54 class Iterator {
61 Iterator& operator++() {
68 Iterator& operator--() {
80 Iterator(const RingBuffer<T, kSize>& buffer, size_t index) in Iterator() function
96 Iterator Begin() const { in Begin()
98 return Iterator(*this, kSize - current_index_); in Begin()
99 return Iterator(*this, 0); in Begin()
105 Iterator End() const { in End()
106 return Iterator(*this, kSize - 1); in End()
/external/deqp/framework/referencerenderer/
DrrPrimitiveAssembler.hpp79 template <typename Iterator>
80 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec()
96 template <typename Iterator>
97 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec()
141 template <typename Iterator>
142 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec()
204 template <typename Iterator>
205 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec()
221 template <typename Iterator>
222 …static void exec (Iterator outputIterator, VertexPacket* const* vertices, size_t numVertices, rr::… in exec()
[all …]
/external/chromium_org/third_party/leveldatabase/src/table/
Diterator.cc9 Iterator::Iterator() { in Iterator() function in leveldb::Iterator
14 Iterator::~Iterator() { in ~Iterator()
26 void Iterator::RegisterCleanup(CleanupFunction func, void* arg1, void* arg2) { in RegisterCleanup()
42 class EmptyIterator : public Iterator {
59 Iterator* NewEmptyIterator() { in NewEmptyIterator()
63 Iterator* NewErrorIterator(const Status& status) { in NewErrorIterator()
/external/smack/src/org/jivesoftware/smackx/
DReportedData.java29 import java.util.Iterator;
72 for (Iterator fields = dataForm.getReportedData().getFields(); fields.hasNext();) { in ReportedData()
78 for (Iterator items = dataForm.getItems(); items.hasNext();) { in ReportedData()
82 for (Iterator fields = item.getFields(); fields.hasNext();) { in ReportedData()
86 for (Iterator<String> it=field.getValues(); it.hasNext();) { in ReportedData()
125 public Iterator<Row> getRows() { in getRows()
134 public Iterator<Column> getColumns() { in getColumns()
234 public Iterator getValues(String variable) { in getValues()
235 for(Iterator<Field> it=getFields();it.hasNext();) { in getValues()
249 private Iterator<Field> getFields() { in getFields()
[all …]
/external/guava/guava/src/com/google/common/base/
DJoiner.java27 import java.util.Iterator;
98 public final <A extends Appendable, I extends Object & Iterable<?> & Iterator<?>> A
100 return appendTo(appendable, (Iterator<?>) parts); in appendTo()
118 public <A extends Appendable> A appendTo(A appendable, Iterator<?> parts) throws IOException { in appendTo()
157 public final <I extends Object & Iterable<?> & Iterator<?>> StringBuilder
159 return appendTo(builder, (Iterator<?>) parts); in appendTo()
179 public final StringBuilder appendTo(StringBuilder builder, Iterator<?> parts) { in appendTo()
217 public final <I extends Object & Iterable<?> & Iterator<?>> String join(I parts) { in join()
218 return join((Iterator<?>) parts); in join()
236 public final String join(Iterator<?> parts) { in join()
[all …]
/external/chromium_org/components/policy/core/common/
Dschema.h118 class POLICY_EXPORT Iterator {
120 Iterator(const scoped_refptr<const InternalStorage>& storage,
122 Iterator(const Iterator& iterator);
123 ~Iterator();
125 Iterator& operator=(const Iterator& iterator);
150 Iterator GetPropertiesIterator() const;
/external/llvm/include/llvm/ADT/
DDenseSet.h63 class Iterator {
73 Iterator(const typename MapTy::iterator &i) : I(i) {} in Iterator() function
78 Iterator& operator++() { ++I; return *this; }
79 bool operator==(const Iterator& X) const { return I == X.I; }
80 bool operator!=(const Iterator& X) const { return I != X.I; }
103 typedef Iterator iterator;
106 iterator begin() { return Iterator(TheMap.begin()); } in begin()
107 iterator end() { return Iterator(TheMap.end()); } in end()
112 iterator find(const ValueT &V) { return Iterator(TheMap.find(V)); } in find()
113 void erase(Iterator I) { return TheMap.erase(I.I); } in erase()
/external/chromium_org/third_party/icu/source/common/
Dbytestrieiterator.cpp23 BytesTrie::Iterator::Iterator(const void *trieBytes, int32_t maxStringLength, in Iterator() function in BytesTrie::Iterator
45 BytesTrie::Iterator::Iterator(const BytesTrie &trie, int32_t maxStringLength, in Iterator() function in BytesTrie::Iterator
76 BytesTrie::Iterator::~Iterator() { in ~Iterator()
81 BytesTrie::Iterator &
82 BytesTrie::Iterator::reset() { in reset()
97 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
100 BytesTrie::Iterator::next(UErrorCode &errorCode) { in next()
171 BytesTrie::Iterator::truncateAndStop() { in truncateAndStop()
180 BytesTrie::Iterator::branchNext(const uint8_t *pos, int32_t length, UErrorCode &errorCode) { in branchNext()
/external/icu/icu4c/source/common/
Dbytestrieiterator.cpp23 BytesTrie::Iterator::Iterator(const void *trieBytes, int32_t maxStringLength, in Iterator() function in BytesTrie::Iterator
45 BytesTrie::Iterator::Iterator(const BytesTrie &trie, int32_t maxStringLength, in Iterator() function in BytesTrie::Iterator
76 BytesTrie::Iterator::~Iterator() { in ~Iterator()
81 BytesTrie::Iterator &
82 BytesTrie::Iterator::reset() { in reset()
97 BytesTrie::Iterator::hasNext() const { return pos_!=NULL || !stack_->isEmpty(); } in hasNext()
100 BytesTrie::Iterator::next(UErrorCode &errorCode) { in next()
171 BytesTrie::Iterator::truncateAndStop() { in truncateAndStop()
180 BytesTrie::Iterator::branchNext(const uint8_t *pos, int32_t length, UErrorCode &errorCode) { in branchNext()
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/analysis/reflection/
DReflectionClassDef.java50 import java.util.Iterator;
83 @Nonnull @Override public Iterator<String> iterator() { in getInterfaces()
110 @Nonnull @Override public Iterator<Field> iterator() {
111 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(
132 @Nonnull @Override public Iterator<Field> iterator() {
133 Iterator<java.lang.reflect.Field> staticFields = Iterators.filter(
154 @Nonnull @Override public Iterator<Field> iterator() {
172 @Nonnull @Override public Iterator<Method> iterator() {
173 Iterator<Method> constructorIterator =
181 Iterator<java.lang.reflect.Method> directMethods = Iterators.filter(
[all …]
/external/smali/util/src/main/java/org/jf/util/
DAbstractForwardSequentialList.java37 import java.util.Iterator;
43 @Nonnull private Iterator<T> iterator(int index) { in iterator()
48 Iterator<T> it = iterator(); in iterator()
55 @Override @Nonnull public abstract Iterator<T> iterator(); in iterator()
59 final Iterator<T> initialIterator; in listIterator()
68 @Nullable private Iterator<T> forwardIterator = initialIterator; in listIterator()
71 private Iterator<T> getForwardIterator() { in listIterator()
/external/chromium_org/chrome/browser/chromeos/drive/
Dresource_metadata_storage.h24 class Iterator; variable
43 class Iterator {
45 explicit Iterator(scoped_ptr<leveldb::Iterator> it);
46 ~Iterator();
66 scoped_ptr<leveldb::Iterator> it_;
68 DISALLOW_COPY_AND_ASSIGN(Iterator);
119 scoped_ptr<Iterator> GetIterator();
/external/chromium_org/cc/quads/
Dlist_container.h70 class CC_EXPORT Iterator : public PositionInListContainerCharAllocator {
74 Iterator(ListContainerCharAllocator* container,
77 ~Iterator();
80 Iterator operator++(int unused_post_increment);
81 Iterator operator++();
91 ConstIterator(const Iterator& other); // NOLINT
133 void EraseAndInvalidateAllPointers(Iterator position);
141 Iterator begin();
142 Iterator end();

12345678910>>...54