/aosp_15_r20/external/guava/guava-tests/test/com/google/common/collect/ |
H A D | IteratorsTest.java | 51 import java.util.Iterator; 84 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() local 85 assertFalse(iterator.hasNext()); in testEmptyIterator() 87 iterator.next(); in testEmptyIterator() 92 iterator.remove(); in testEmptyIterator() 100 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator() local 101 assertFalse(iterator.hasNext()); in testEmptyListIterator() 102 assertFalse(iterator.hasPrevious()); in testEmptyListIterator() 103 assertEquals(0, iterator.nextIndex()); in testEmptyListIterator() 104 assertEquals(-1, iterator.previousIndex()); in testEmptyListIterator() [all …]
|
/aosp_15_r20/external/guava/android/guava-tests/test/com/google/common/collect/ |
H A D | IteratorsTest.java | 51 import java.util.Iterator; 84 Iterator<String> iterator = Iterators.emptyIterator(); in testEmptyIterator() local 85 assertFalse(iterator.hasNext()); in testEmptyIterator() 87 iterator.next(); in testEmptyIterator() 92 iterator.remove(); in testEmptyIterator() 100 ListIterator<String> iterator = Iterators.emptyListIterator(); in testEmptyListIterator() local 101 assertFalse(iterator.hasNext()); in testEmptyListIterator() 102 assertFalse(iterator.hasPrevious()); in testEmptyListIterator() 103 assertEquals(0, iterator.nextIndex()); in testEmptyListIterator() 104 assertEquals(-1, iterator.previousIndex()); in testEmptyListIterator() [all …]
|
/aosp_15_r20/external/guava/android/guava/src/com/google/common/collect/ |
H A D | Iterators.java | 43 import java.util.Iterator; 54 * Iterator}. Except as noted, each method has a corresponding {@link Iterable}-based method in the 75 * Returns the empty iterator. 84 * Returns the empty iterator. 98 private enum EmptyModifiableIterator implements Iterator<Object> { 118 * Returns the empty {@code Iterator} that throws {@link IllegalStateException} instead of {@link 119 * UnsupportedOperationException} on a call to {@link Iterator#remove()}. 123 static <T extends @Nullable Object> Iterator<T> emptyModifiableIterator() { in emptyModifiableIterator() 124 return (Iterator<T>) EmptyModifiableIterator.INSTANCE; in emptyModifiableIterator() 127 /** Returns an unmodifiable view of {@code iterator}. */ [all …]
|
/aosp_15_r20/external/guava/guava/src/com/google/common/collect/ |
H A D | Iterators.java | 43 import java.util.Iterator; 54 * Iterator}. Except as noted, each method has a corresponding {@link Iterable}-based method in the 75 * Returns the empty iterator. 84 * Returns the empty iterator. 98 private enum EmptyModifiableIterator implements Iterator<Object> { 118 * Returns the empty {@code Iterator} that throws {@link IllegalStateException} instead of {@link 119 * UnsupportedOperationException} on a call to {@link Iterator#remove()}. 123 static <T extends @Nullable Object> Iterator<T> emptyModifiableIterator() { in emptyModifiableIterator() 124 return (Iterator<T>) EmptyModifiableIterator.INSTANCE; in emptyModifiableIterator() 127 /** Returns an unmodifiable view of {@code iterator}. */ [all …]
|
/aosp_15_r20/libcore/luni/src/test/java/libcore/libcore/io/ |
H A D | MemoryMappedFileTest.java | 103 BufferIterator iterator = memoryMappedFile.bigEndianIterator(); in testReadAfterCloseFails() local 107 iterator.readByte(); in testReadAfterCloseFails() 124 BufferIterator iterator = iteratorFactory.apply(mappedFile); in checkReadByte() local 126 assertReadByteSucceeds(iterator, bytes[i]); in checkReadByte() 130 iterator.seek(0); in checkReadByte() 132 assertReadByteSucceeds(iterator, bytes[i]); in checkReadByte() 133 iterator.skip(1); in checkReadByte() 152 BufferIterator iterator = iteratorFactory.apply(mappedFile); in checkSeek() local 153 seekRead(bytes, iterator, 2); in checkSeek() 155 seekRead(bytes, iterator, 0); in checkSeek() [all …]
|
/aosp_15_r20/external/icu/android_icu4j/testing/src/com/android/i18n/test/timezone/internal/ |
H A D | MemoryMappedFileTest.java | 102 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 …]
|
/aosp_15_r20/external/python/python-api-core/tests/unit/ |
D | test_page_iterator.py | 49 side_effect=lambda iterator, value: value, spec=["__call__"] 86 class PageIteratorImpl(page_iterator.Iterator): 98 iterator = PageIteratorImpl( 102 assert not iterator._started 103 assert iterator.client is client 104 assert iterator.item_to_value == item_to_value 105 assert iterator.max_results == max_results 107 assert iterator.page_number == 0 108 assert iterator.next_page_token == token 109 assert iterator.num_results == 0 [all …]
|
/aosp_15_r20/external/cronet/third_party/libc++/src/test/std/iterators/predef.iterators/move.iterators/move.iterator/ |
H A D | iterator_concept_conformance.compile.pass.cpp | 13 #include <iterator> 21 using iterator = std::move_iterator<cpp17_input_iterator<int*>>; in test() typedef 23 LIBCPP_STATIC_ASSERT(!std::default_initializable<iterator>); in test() 24 static_assert( std::copyable<iterator>); in test() 25 static_assert( std::input_iterator<iterator>); in test() 26 static_assert(!std::forward_iterator<iterator>); in test() 27 static_assert(!std::sentinel_for<iterator, iterator>); // not copyable in test() 28 static_assert(!std::sized_sentinel_for<iterator, iterator>); in test() 29 static_assert(!std::indirectly_movable<int*, iterator>); in test() 30 static_assert(!std::indirectly_movable_storable<int*, iterator>); in test() [all …]
|
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
H A D | TreeMapExtendTest.java | 25 import java.util.Iterator; 1760 Iterator subMapSetIterator; in test_AscendingSubMap_subMap() 1763 Iterator startIterator = entrySet.iterator(); in test_AscendingSubMap_subMap() 1767 Iterator endIterator = entrySet.iterator(); in test_AscendingSubMap_subMap() 1815 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap() 1824 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap() 1833 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap() 1842 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap() 1850 subMapSetIterator = subMap.entrySet().iterator(); in test_AscendingSubMap_subMap() 2413 Iterator it = values.iterator(); in test_DescendingSubMap_values() [all …]
|
/aosp_15_r20/libcore/ojluni/src/test/java/text/AttributedString/ |
H A D | AttributedStringTest.java | 37 import java.util.Iterator; 65 AttributedCharacterIterator iterator; in main() local 69 iterator = string.getIterator(); in main() 72 checkIteratorText(iterator, text); in main() 73 if (!iterator.getAllAttributeKeys().isEmpty()) { in main() 74 throwException(iterator, "iterator provides attributes where none are defined"); in main() 79 iterator = string.getIterator(); in main() 82 checkIteratorAttributeKeys(iterator, arrayLanguage); in main() 83 checkIteratorSubranges(iterator, array3_9_13); in main() 84 checkIteratorAttribute(iterator, 0, Attribute.LANGUAGE, null); in main() [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/intrusive/test/ |
D | scary_iterators_test.cpp | 90 BOOST_STATIC_ASSERT((!detail::is_same< list<MyClass<> >::iterator in main() 93 //constant_time_size does not change iterator in main() 94 BOOST_STATIC_ASSERT((detail::is_same< list<MyClass<>, constant_time_size<true> >::iterator in main() 95 , list<MyClass<>, constant_time_size<false> >::iterator in main() 97 //void_pointer does change iterator in main() 98 BOOST_STATIC_ASSERT((!detail::is_same< list<MyClass<> >::iterator in main() 99 , list<MyClass<smart_ptr<void> > >::iterator in main() 101 //size_type does not change iterator in main() 102 BOOST_STATIC_ASSERT((detail::is_same< list<MyClass<>, size_type<unsigned int > >::iterator in main() 103 , list<MyClass<>, size_type<unsigned char> >::iterator in main() [all …]
|
/aosp_15_r20/external/flac/src/libFLAC/ |
H A D | metadata_iterators.c | 71 static FLAC__bool read_metadata_block_header_(FLAC__Metadata_SimpleIterator *iterator); 72 static FLAC__bool read_metadata_block_data_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMe… 99 static FLAC__bool write_metadata_block_stationary_(FLAC__Metadata_SimpleIterator *iterator, const F… 100 …_metadata_block_stationary_with_padding_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMeta… 101 static FLAC__bool rewrite_whole_file_(FLAC__Metadata_SimpleIterator *iterator, FLAC__StreamMetadata… 103 static void simple_iterator_push_(FLAC__Metadata_SimpleIterator *iterator); 104 static FLAC__bool simple_iterator_pop_(FLAC__Metadata_SimpleIterator *iterator); 109 static FLAC__bool simple_iterator_copy_file_prefix_(FLAC__Metadata_SimpleIterator *iterator, FILE *… 110 static FLAC__bool simple_iterator_copy_file_postfix_(FLAC__Metadata_SimpleIterator *iterator, FILE … 367 FLAC__Metadata_SimpleIterator *iterator = calloc(1, sizeof(FLAC__Metadata_SimpleIterator)); in FLAC__metadata_simple_iterator_new() local [all …]
|
/aosp_15_r20/external/wpa_supplicant_8/src/utils/ |
H A D | radiotap.c | 53 * ieee80211_radiotap_iterator_init - radiotap parser iterator initialization 54 * @iterator: radiotap_iterator to initialize 60 * This function initializes an opaque iterator struct which can then 66 * call __ieee80211_radiotap_iterator_init() to init a semi-opaque iterator 71 * The iterator's @this_arg member points to the start of the argument 73 * found in the iterator's @this_arg_index member. This arg index corresponds 78 * iterator->max_length after executing ieee80211_radiotap_iterator_init() 82 * You must take care when dereferencing iterator.this_arg 84 * get_unaligned((type *)iterator.this_arg) to dereference 85 * iterator.this_arg for type "type" safely on all arches. [all …]
|
/aosp_15_r20/external/parameter-framework/asio-1.10.6/include/asio/ |
H A D | connect.hpp | 41 * @param begin An iterator pointing to the start of a sequence of endpoints. 43 * @returns On success, an iterator denoting the successfully connected 44 * endpoint. Otherwise, the end iterator. 51 * Iterator represents the end of the sequence. This is a valid assumption for 52 * iterator types such as @c asio::ip::tcp::resolver::iterator. 60 template <typename Protocol, typename SocketService, typename Iterator> 61 Iterator connect(basic_socket<Protocol, SocketService>& s, Iterator begin); 73 * @param begin An iterator pointing to the start of a sequence of endpoints. 79 * @returns On success, an iterator denoting the successfully connected 80 * endpoint. Otherwise, the end iterator. [all …]
|
/aosp_15_r20/external/flac/src/test_libFLAC/ |
H A D | metadata_manip.c | 70 /* the current block number that corresponds to the position of the iterator we are testing */ 91 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_() 409 return die_("allocating memory for iterator"); 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_() 420 return die_("getting block from iterator"); in compare_chain_() [all …]
|
/aosp_15_r20/external/flac/src/test_libFLAC++/ |
H A D | metadata_manip.cpp | 77 /* the current block number that corresponds to the position of the iterator we are testing */ 98 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_() 416 return die_("allocating memory for iterator"); in compare_chain_() 418 iterator.init(chain); in compare_chain_() 427 if(0 == (block = iterator.get_block())) in compare_chain_() 428 return die_("getting block from iterator"); in compare_chain_() 435 next_ok = iterator.next(); in compare_chain_() [all …]
|
/aosp_15_r20/external/icing/icing/util/ |
H A D | character-iterator_test.cc | 15 #include "icing/util/character-iterator.h" 30 CharacterIterator iterator(kText); in TEST() local 31 EXPECT_THAT(UCharToString(iterator.GetCurrentChar()), Eq("¿")); in TEST() 33 EXPECT_THAT(iterator.AdvanceToUtf8(4), IsTrue()); in TEST() 34 EXPECT_THAT(UCharToString(iterator.GetCurrentChar()), Eq("ó")); in TEST() 35 EXPECT_THAT(iterator, in TEST() 39 EXPECT_THAT(iterator.AdvanceToUtf8(18), IsTrue()); in TEST() 40 EXPECT_THAT(UCharToString(iterator.GetCurrentChar()), Eq("b")); in TEST() 41 EXPECT_THAT(iterator, in TEST() 45 EXPECT_THAT(iterator.AdvanceToUtf8(28), IsTrue()); in TEST() [all …]
|
/aosp_15_r20/external/parameter-framework/asio-1.10.6/include/asio/impl/ |
H A D | connect.hpp | 32 template <typename Iterator> 33 Iterator operator()(const asio::error_code&, Iterator next) in operator ()() 40 template <typename Protocol, typename SocketService, typename Iterator> 41 Iterator connect(basic_socket<Protocol, SocketService>& s, Iterator begin) in connect() 44 Iterator result = connect(s, begin, ec); in connect() 49 template <typename Protocol, typename SocketService, typename Iterator> 50 inline Iterator connect(basic_socket<Protocol, SocketService>& s, in connect() 51 Iterator begin, asio::error_code& ec) in connect() 53 return connect(s, begin, Iterator(), detail::default_connect_condition(), ec); in connect() 56 template <typename Protocol, typename SocketService, typename Iterator> [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/qi/detail/ |
D | construct.hpp | 26 template <typename Iterator> 27 struct assign_to_attribute_from_iterators<char, Iterator> 30 call(Iterator const& first, Iterator const&, char& attr) in call() 36 template <typename Iterator> 37 struct assign_to_attribute_from_iterators<signed char, Iterator> 40 call(Iterator const& first, Iterator const&, signed char& attr) in call() 46 template <typename Iterator> 47 struct assign_to_attribute_from_iterators<unsigned char, Iterator> 50 call(Iterator const& first, Iterator const&, unsigned char& attr) in call() 57 template <typename Iterator> [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/asio/include/boost/asio/impl/ |
D | connect.hpp | 48 template <typename Protocol, typename Iterator> 50 Iterator iter, boost::system::error_code& ec) in deref_connect_result() 55 template <typename T, typename Iterator> 62 template <typename R, typename Arg1, typename Arg2, typename Iterator> 63 struct legacy_connect_condition_helper<R (*)(Arg1, Arg2), Iterator> 69 template <typename T, typename Iterator> 73 static char (&asio_connect_condition_check(Iterator))[2]; 77 (*static_cast<legacy_connect_condition_helper<T, Iterator>*>(0))( 79 *static_cast<const Iterator*>(0)))) != 1; 82 template <typename ConnectCondition, typename Iterator> [all …]
|
/aosp_15_r20/trusty/kernel/lib/app_manifest/ |
H A D | app_manifest.c | 34 int app_manifest_iterator_reset(struct app_manifest_iterator* iterator, in app_manifest_iterator_reset() argument 37 assert(iterator); in app_manifest_iterator_reset() 39 iterator->manifest_data = manifest_data; in app_manifest_iterator_reset() 40 iterator->manifest_size = manifest_size; in app_manifest_iterator_reset() 41 iterator->index = 0; in app_manifest_iterator_reset() 42 iterator->app_name = "<unknown>"; in app_manifest_iterator_reset() 43 iterator->error = NO_ERROR; in app_manifest_iterator_reset() 53 struct app_manifest_iterator* iterator, in app_manifest_get_ptr() argument 55 const void* curr = &iterator->manifest_data[iterator->index]; in app_manifest_get_ptr() 56 if (size > iterator->manifest_size - iterator->index) { in app_manifest_get_ptr() [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/iterator/doc/quickbook/ |
D | iterator.qbk | 1 [library Boost.Iterator 6 [category iterator] 7 [id iterator] 8 [dirname iterator] 31 [def _iterator_ [@../../../iterator/doc/index.html Boost.Iterator]] 41 The Boost Iterator Library contains two parts. The first 43 iterator requirements. The second is a framework of 45 extended concepts and includes several useful iterator 46 adaptors. The extended iterator concepts have been 51 take full advantage of the new-style iterator [all …]
|
D | filter_iterator.qbk | 1 [section:filter Filter Iterator] 3 The filter iterator adaptor creates a view of an iterator range in 10 underlying range. A filter iterator is therefore constructed with pair 84 template <class Predicate, class Iterator> 88 typedef iterator_traits<Iterator>::value_type value_type; 89 typedef iterator_traits<Iterator>::reference reference; 90 typedef iterator_traits<Iterator>::pointer pointer; 91 typedef iterator_traits<Iterator>::difference_type difference_type; 95 filter_iterator(Predicate f, Iterator x, Iterator end = Iterator()); 96 filter_iterator(Iterator x, Iterator end = Iterator()); [all …]
|
/aosp_15_r20/external/sdv/vsomeip/third_party/boost/spirit/include/boost/spirit/home/support/iterators/ |
D | line_pos_iterator.hpp | 13 #include <boost/iterator/iterator_adaptor.hpp> 19 /*`The `line_pos_iterator` is a lightweight line position iterator. 20 This iterator adapter only stores the current line number, nothing else. 22 column number and does not need an end iterator. The current column can 25 template <class Iterator> 27 line_pos_iterator<Iterator> // Derived 28 , Iterator // Base 35 explicit line_pos_iterator(Iterator); 45 typename std::iterator_traits<Iterator>::value_type prev; 49 template <class Iterator> [all …]
|
/aosp_15_r20/external/tensorflow/tensorflow/python/data/ops/ |
H A D | iterator_ops.py | 42 # NOTE(mrry): It is legitimate to call `Iterator.get_next()` multiple 45 # users call `Iterator.get_next()` in each iteration of their training 46 # loop. `Iterator.get_next()` adds ops to the graph, and executing 54 "An unusually high number of `Iterator.get_next()` calls was detected. " 55 "This often indicates that `Iterator.get_next()` is being called inside " 58 "`next_element = iterator.get_next()` once outside the loop, and use " 67 "An unusually high number of `tf.data.Iterator.get_next()` calls was " 97 @tf_export(v1=["data.Iterator"]) 98 class Iterator(trackable.Trackable): class 103 """Creates a new iterator from the given iterator resource. [all …]
|