Home
last modified time | relevance | path

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

12

/system/bt/packet/base/
Diterator.cc25 Iterator::Iterator(std::shared_ptr<const Packet> packet, size_t i) { in Iterator() function in bluetooth::Iterator
33 Iterator::Iterator(const Iterator& itr) { *this = itr; } in Iterator() function in bluetooth::Iterator
35 Iterator Iterator::operator+(size_t offset) { in operator +()
41 Iterator& Iterator::operator+=(size_t offset) { in operator +=()
48 Iterator Iterator::operator++(int) { in operator ++()
57 Iterator& Iterator::operator++() { in operator ++()
65 Iterator Iterator::operator-(size_t offset) { in operator -()
71 int Iterator::operator-(const Iterator& itr) { return index_ - itr.index_; } in operator -()
73 Iterator& Iterator::operator-=(size_t offset) { in operator -=()
81 Iterator Iterator::operator--(int) { in operator --()
[all …]
Diterator.h28 class Iterator
31 Iterator(std::shared_ptr<const Packet> packet, size_t i);
32 Iterator(const Iterator& itr);
36 Iterator operator+(size_t offset);
37 Iterator& operator+=(size_t offset);
38 Iterator operator++(int);
39 Iterator& operator++();
41 Iterator operator-(size_t offset);
42 int operator-(const Iterator& itr);
43 Iterator& operator-=(size_t offset);
[all …]
Dpacket.cc28 Iterator Packet::begin() const { in begin()
29 return Iterator(shared_from_this(), packet_start_index_); in begin()
32 Iterator Packet::end() const { in end()
33 return Iterator(shared_from_this(), packet_end_index_); in end()
Dpacket.h31 friend class Iterator; variable
52 class Iterator begin() const;
53 class Iterator end() const;
/system/bt/gd/packet/
Diterator.cc25 Iterator<little_endian>::Iterator(const std::forward_list<View>& data, size_t offset) { in Iterator() function in bluetooth::packet::Iterator
36 Iterator<little_endian> Iterator<little_endian>::operator+(int offset) { in operator +()
43 Iterator<little_endian>& Iterator<little_endian>::operator+=(int offset) { in operator +=()
49 Iterator<little_endian>& Iterator<little_endian>::operator++() { in operator ++()
55 Iterator<little_endian> Iterator<little_endian>::operator-(int offset) { in operator -()
62 int Iterator<little_endian>::operator-(Iterator<little_endian>& itr) { in operator -()
67 Iterator<little_endian>& Iterator<little_endian>::operator-=(int offset) { in operator -=()
74 Iterator<little_endian>& Iterator<little_endian>::operator--() { in operator --()
81 Iterator<little_endian>& Iterator<little_endian>::operator=(const Iterator<little_endian>& itr) { in operator =()
91 bool Iterator<little_endian>::operator==(const Iterator<little_endian>& itr) const { in operator ==()
[all …]
Diterator.h32 class Iterator : public std::iterator<std::random_access_iterator_tag, uint8_t> {
34 Iterator(const std::forward_list<View>& data, size_t offset);
35 Iterator(const Iterator& itr) = default;
36 virtual ~Iterator() = default;
39 Iterator operator+(int offset);
40 Iterator& operator+=(int offset);
41 Iterator& operator++();
43 Iterator operator-(int offset);
44 int operator-(Iterator& itr);
45 Iterator& operator-=(int offset);
[all …]
Dpacket_view.cc39 Iterator<little_endian> PacketView<little_endian>::begin() const { in begin()
40 return Iterator<little_endian>(this->fragments_, 0); in begin()
44 Iterator<little_endian> PacketView<little_endian>::end() const { in end()
45 return Iterator<little_endian>(this->fragments_, size()); in end()
Dpacket_view.h42 virtual Iterator<little_endian> begin() const;
44 virtual Iterator<little_endian> end() const;
Dpython3_module.cc56 using ::bluetooth::packet::Iterator;
87 py::class_<Iterator<kLittleEndian>>(m, "IteratorLittleEndian"); in PYBIND11_MODULE()
88 py::class_<Iterator<!kLittleEndian>>(m, "IteratorBigEndian"); in PYBIND11_MODULE()
/system/bt/vendor_libs/test_vendor_lib/test/
Diterator_test.cc63 Iterator general_case = packet->get_begin(); in TEST_F()
72 Iterator bounds_test = packet->get_end(); in TEST_F()
81 Iterator dereference_test = packet->get_end(); in TEST_F()
87 Iterator plus_eq = packet->get_begin(); in TEST_F()
96 Iterator plus_plus = packet->get_begin(); in TEST_F()
105 Iterator plus_plus = packet->get_begin(); in TEST_F()
114 Iterator plus = packet->get_begin(); in TEST_F()
123 Iterator minus_eq = packet->get_end(); in TEST_F()
133 Iterator minus_minus = packet->get_end(); in TEST_F()
142 Iterator minus_minus = packet->get_end(); in TEST_F()
[all …]
Dl2cap_test.cc57 Iterator expected_begin = expected->get_begin(); in compare_packets()
58 Iterator expected_end = expected->get_end(); in compare_packets()
60 Iterator received_begin = received->get_begin(); in compare_packets()
61 Iterator received_end = received->get_end(); in compare_packets()
/system/bt/packet/tests/base/
Diterator_test.cc53 ASSERT_DEATH(Iterator(packet, 0), "index_ >= packet->packet_start_index_"); in TEST_F()
54 ASSERT_DEATH(Iterator(packet, test_l2cap_data.size()), in TEST_F()
60 Iterator general_case = packet->begin(); in TEST_F()
70 Iterator general_case = packet->begin(); in TEST_F()
91 Iterator bounds_test = packet->end(); in TEST_P()
104 Iterator bounds_test = packet->end(); in TEST_P()
117 Iterator dereference_test = packet->end(); in TEST_P()
126 Iterator plus_eq = packet->begin(); in TEST_P()
139 Iterator plus_plus = packet->begin(); in TEST_P()
149 Iterator plus_plus = packet->begin(); in TEST_P()
[all …]
/system/bt/profile/sdp/common/
Ddata_element_reader.h39 DataElementReader(Iterator begin, Iterator end) : it_(begin), end_(end){}; in DataElementReader()
60 Iterator it_;
61 Iterator end_;
/system/bt/gd/packet/parser/test/
Dvariable.h47 …static std::optional<Iterator<little_endian>> Parse(Variable* instance, Iterator<little_endian> it… in Parse()
/system/bt/gd/packet/parser/
Dcustom_type_checker.h36 …template <class C, bool little_endian, std::optional<Iterator<little_endian>> (*)(C* vec, Iterator
Dfield_list.h39 template <class Iterator>
40 FieldList(Iterator begin, Iterator end) { in FieldList()
DREADME61 static std::optional<size_t> Size(Iterator);
62 static Type Parse(Iterator);
/system/core/libutils/
DLruCache_test.cpp355 LruCache<int, int>::Iterator it(cache); in TEST_F()
370 LruCache<int, int>::Iterator it(cache); in TEST_F()
383 LruCache<int, int>::Iterator it(cache); in TEST_F()
397 LruCache<int, int>::Iterator it(cache); in TEST_F()
413 LruCache<int, int>::Iterator it(cache); in TEST_F()
429 LruCache<int, int>::Iterator it(cache); in TEST_F()
445 LruCache<int, int>::Iterator it(cache); in TEST_F()
DLruCache_fuzz.cpp42 android::LruCache<size_t, size_t>::Iterator iter(*cache); in __anon3091d9e80502()
/system/extras/perf2cfg/perf2cfg/
Danalyze.py28 from typing import DefaultDict, Dict, Iterable, Iterator, Optional
180 def samples(self) -> Iterator[simpleperf_report_lib.SampleStruct]:
/system/keymaster/ng/include/
Dauthorization_set.h189 template <typename Iterator> void append(Iterator begin, Iterator end) { in append()
/system/teeui/libteeui/include/teeui/
Dutils.h968 template <typename Iterator> class Range {
969 Iterator begin_;
970 Iterator end_;
973 Range(Iterator begin, Iterator end) : begin_(begin), end_(end) {}
974 const Iterator begin() const { return begin_; }
975 const Iterator end() const { return end_; }
978 template <typename Iterator> Range<Iterator> makeRange(Iterator begin, Iterator end) {
/system/bt/packet/avrcp/
Davrcp_packet.h96 static inline uint32_t PullCompanyId(Iterator it) { in PullCompanyId()
/system/core/libutils/include/utils/
DLruCache.h124 class Iterator {
126 Iterator(const LruCache<TKey, TValue>& cache): in Iterator() function
/system/extras/simpleperf/scripts/
Ddebug_unwind_reporter.py42 from typing import Dict, Iterator, List
153 def get_samples(self, input_file: str) -> Iterator[Sample]:

12