Home
last modified time | relevance | path

Searched refs:begin (Results 1 – 25 of 753) sorted by relevance

12345678910>>...31

/system/memory/libmemunreachable/
DHeapWalker.cpp45 bool HeapWalker::Allocation(uintptr_t begin, uintptr_t end) { in Allocation() argument
46 if (end == begin) { in Allocation()
47 end = begin + 1; in Allocation()
49 begin = UntagAddress(begin); in Allocation()
51 Range range{begin, end}; in Allocation()
53 (begin < valid_mappings_range_.begin || end > valid_mappings_range_.end)) { in Allocation()
55 reinterpret_cast<void*>(begin), reinterpret_cast<void*>(end), in Allocation()
56 reinterpret_cast<void*>(valid_mappings_range_.begin), in Allocation()
61 valid_allocations_range_.begin = std::min(valid_allocations_range_.begin, begin); in Allocation()
68 MEM_ALOGE("range %p-%p overlaps with existing range %p-%p", reinterpret_cast<void*>(begin), in Allocation()
[all …]
DHeapWalker.h32 uintptr_t begin; member
35 size_t size() const { return end - begin; }; in size()
37 return this->begin == other.begin && this->end == other.end;
44 bool operator()(const Range& a, const Range& b) const { return a.end <= b.begin; } in operator()
62 valid_allocations_range_.begin = ~valid_allocations_range_.end;
64 valid_mappings_range_.begin = ~valid_allocations_range_.end;
77 bool Allocation(uintptr_t begin, uintptr_t end);
78 void Mapping(uintptr_t begin, uintptr_t end);
79 void Root(uintptr_t begin, uintptr_t end);
124 uintptr_t begin = (range.begin + (sizeof(uintptr_t) - 1)) & ~(sizeof(uintptr_t) - 1); in ForEachPtrInRange() local
[all …]
DProcessMappings.h27 uintptr_t begin; member
35 Mapping(uintptr_t begin, uintptr_t end, bool read, bool write, bool execute, const char* name) in Mapping()
36 : begin(begin), end(end), read(read), write(write), execute(execute) { in Mapping()
DMemUnreachable.cpp79 malloc_iterate(heap_mapping.begin, heap_mapping.end - heap_mapping.begin, in HeapIterate()
92 for (auto it = mappings.begin(); it != mappings.end(); it++) { in CollectAllocations()
93 heap_walker_.Mapping(it->begin, it->end); in CollectAllocations()
104 for (auto it = heap_mappings.begin(); it != heap_mappings.end(); it++) { in CollectAllocations()
105 MEM_ALOGV("Heap mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
110 for (auto it = anon_mappings.begin(); it != anon_mappings.end(); it++) { in CollectAllocations()
111 MEM_ALOGV("Anon mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
112 heap_walker_.Allocation(it->begin, it->end); in CollectAllocations()
115 for (auto it = globals_mappings.begin(); it != globals_mappings.end(); it++) { in CollectAllocations()
116 MEM_ALOGV("Globals mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
[all …]
/system/bt/stack/test/
Dcrypto_toolbox_test.cc66 std::reverse(std::begin(k), std::end(k)); in TEST()
67 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
91 std::reverse(std::begin(k), std::end(k)); in TEST()
92 std::reverse(std::begin(m), std::end(m)); in TEST()
93 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
120 std::reverse(std::begin(k), std::end(k)); in TEST()
121 std::reverse(std::begin(m), std::end(m)); in TEST()
122 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
145 std::reverse(std::begin(k), std::end(k)); in TEST()
146 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox_test.cc59 std::reverse(std::begin(k), std::end(k)); in TEST()
60 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
81 std::reverse(std::begin(k), std::end(k)); in TEST()
82 std::reverse(std::begin(m), std::end(m)); in TEST()
83 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
107 std::reverse(std::begin(k), std::end(k)); in TEST()
108 std::reverse(std::begin(m), std::end(m)); in TEST()
109 std::reverse(std::begin(aes_cmac_k_m), std::end(aes_cmac_k_m)); in TEST()
127 std::reverse(std::begin(k), std::end(k)); in TEST()
128 std::reverse(std::begin(m), std::end(m)); in TEST()
[all …]
/system/bt/gd/packet/
Dpacket_view.cc39 Iterator<little_endian> PacketView<little_endian>::begin() const { in begin() function in bluetooth::packet::PacketView
72 std::forward_list<View> PacketView<little_endian>::GetSubviewList(size_t begin, size_t end) const { in GetSubviewList() argument
73 ASSERT(begin <= end); in GetSubviewList()
78 size_t length = end - begin; in GetSubviewList()
80 if (begin >= fragment.size()) { in GetSubviewList()
81 begin -= fragment.size(); in GetSubviewList()
83 View view(fragment, begin, begin + std::min(length, fragment.size() - begin)); in GetSubviewList()
86 begin = 0; in GetSubviewList()
93 PacketView<true> PacketView<little_endian>::GetLittleEndianSubview(size_t begin, size_t end) const { in GetLittleEndianSubview() argument
94 return PacketView<true>(GetSubviewList(begin, end)); in GetLittleEndianSubview()
[all …]
Dview.cc24 View::View(std::shared_ptr<const std::vector<uint8_t>> data, size_t begin, size_t end) in View() argument
25 : data_(data), begin_(begin < data_->size() ? begin : data_->size()), in View()
28 View::View(const View& view, size_t begin, size_t end) : data_(view.data_) { in View() argument
29 begin_ = (begin < view.size() ? begin : view.size()); in View()
Dpacket_view_unittest.cc134 auto general_case = packet.begin(); in TEST()
148 auto general_case = packet.begin(); in TEST()
177 auto plus_eq = this->packet->begin(); in TYPED_TEST()
185 auto plus_plus = this->packet->begin(); in TYPED_TEST()
193 auto plus_plus = this->packet->begin(); in TYPED_TEST()
201 auto plus = this->packet->begin(); in TYPED_TEST()
248 auto begin = this->packet->begin(); in TYPED_TEST() local
250 int difference = end - begin; in TYPED_TEST()
252 int neg_difference = begin - end; in TYPED_TEST()
257 auto begin = this->packet->begin(); in TYPED_TEST() local
[all …]
Dpacket_view.h42 virtual Iterator<little_endian> begin() const;
52 PacketView<true> GetLittleEndianSubview(size_t begin, size_t end) const;
54 PacketView<false> GetBigEndianSubview(size_t begin, size_t end) const;
62 std::forward_list<View> GetSubviewList(size_t begin, size_t end) const;
/system/teeui/libteeui/include/teeui/
Dutf8range.h32 UTF8Range(CharIterator begin, CharIterator end) : begin_(begin), end_(end) {} in UTF8Range() argument
57 static unsigned long codePoint(CharIterator begin) { in codePoint() argument
58 unsigned long c = (uint8_t)*begin; in codePoint()
65 ++begin; in codePoint()
68 result |= *begin & 0x3f; in codePoint()
69 ++begin; in codePoint()
80 Iter(CharIterator begin) : begin_(begin) {} in Iter() argument
100 Iter begin() const { return Iter(begin_); } in begin() function
Dstatic_vec.h47 static_vec(T* begin, T* end) : data_(begin), size_(end - begin) {} in static_vec() argument
58 T* begin() { return data_; } in begin() function
60 const T* begin() const { return data_; } in begin() function
/system/teeui/libteeui/src/
Dcbor.cpp96 bool checkUTF8Copy(const char* begin, const char* const end, uint8_t* out) { in checkUTF8Copy() argument
97 while (begin != end) { in checkUTF8Copy()
98 auto bc = byteCount(*begin); in checkUTF8Copy()
100 if (begin + bc > end) return false; in checkUTF8Copy()
103 if (out) *out++ = *reinterpret_cast<const uint8_t*>(begin++); in checkUTF8Copy()
106 if (out) *out++ = *reinterpret_cast<const uint8_t*>(begin++); in checkUTF8Copy()
109 if (out) *out++ = *reinterpret_cast<const uint8_t*>(begin++); in checkUTF8Copy()
112 if (out) *out++ = *reinterpret_cast<const uint8_t*>(begin++); in checkUTF8Copy()
/system/tools/hidl/
DLocation.cpp56 Location::Location(const Position& begin, const Position& end) in Location() argument
57 : mIsValid(true), mBegin(begin), mEnd(end) {} in Location()
59 void Location::setLocation(const Position& begin, const Position& end) { in setLocation() argument
61 mBegin = begin; in setLocation()
69 const Position& Location::begin() const { in begin() function in android::Location
97 ostr << loc.begin(); in operator <<()
98 if (loc.begin().filename() != last.filename()) { in operator <<()
100 } else if (loc.begin().line() != last.line()) { in operator <<()
102 } else if (loc.begin().column() != last.column()) { in operator <<()
/system/core/adb/
Dbenchmark_device.py73 begin = time.time()
76 speeds.append(size_mb / float(end - begin))
89 begin = time.time()
92 speeds.append(size_mb / float(end - begin))
108 begin = time.time()
111 speeds.append(file_size_mb / float(end - begin))
126 begin = time.time()
129 speeds.append(file_size_mb / float(end - begin))
139 begin = time.time()
143 speeds.append(file_size_mb / float(end - begin))
/system/gatekeeper/tests/
Dgatekeeper_messages_test.cpp55 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
59 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
78 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
82 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
106 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
110 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
134 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
138 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
156 … ASSERT_EQ(serialized_msg.size(), msg.Serialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
160 deserialized_msg.Deserialize(&*serialized_msg.begin(), &*serialized_msg.end())); in TEST()
[all …]
/system/netd/server/
DUidRanges.cpp63 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), makeUidRangeParcel(intUid, intUid), in hasUid()
66 (iter != mRanges.begin() && (--iter)->stop >= intUid); in hasUid()
110 std::sort(mRanges.begin(), mRanges.end(), compUidRangeParcel); in parseFrom()
116 std::sort(mRanges.begin(), mRanges.end(), compUidRangeParcel); in UidRanges()
120 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); in add()
121 std::inplace_merge(mRanges.begin(), middle, mRanges.end(), compUidRangeParcel); in add()
125 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), in remove()
126 other.mRanges.end(), mRanges.begin(), compUidRangeParcel); in remove()
/system/bt/gd/packet/parser/
Dfield_list.h40 FieldList(Iterator begin, Iterator end) { in FieldList() argument
41 while (begin != end) { in FieldList()
42 AppendField(*begin); in FieldList()
43 begin++; in FieldList()
67 field_list_.insert(field_list_.begin(), field); in PrependField()
72 for (auto it = begin(); it != end(); it++) { in GetFieldsBeforePayloadOrBody()
85 for (it = begin(); it != end(); it++) { in GetFieldsAfterPayloadOrBody()
163 FieldListIterator begin() const { in begin() function
164 return field_list_.begin(); in begin()
/system/update_engine/payload_consumer/
Dcached_file_descriptor.cc85 size_t begin = 0; in FlushCache() local
86 while (begin < bytes_cached_) { in FlushCache()
87 auto bytes_wrote = fd_->Write(cache_.data() + begin, bytes_cached_ - begin); in FlushCache()
92 begin += bytes_wrote; in FlushCache()
Dxz_extent_writer_unittest.cc102 std::begin(kSampleData), std::begin(kSampleData) + strlen(kSampleData)};
112 WriteAll(brillo::Blob(std::begin(kCompressedDataNoCheck), in TEST_F()
118 WriteAll(brillo::Blob(std::begin(kCompressedDataCRC32), in TEST_F()
126 WriteAll(brillo::Blob(std::begin(kCompressed30KiBofA), in TEST_F()
139 brillo::Blob compressed(std::begin(kCompressed30KiBofA), in TEST_F()
/system/connectivity/wificond/tests/
Dclient_interface_impl_unittest.cpp160 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
171 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
185 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
200 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
211 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
222 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
234 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
245 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), kAutoMcs, _)) in TEST_F()
255 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
265 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
[all …]
/system/bt/gd/common/
Dlru_cache.h122 list_map_.splice(list_map_.begin(), list_map_, iter); in find()
142 list_map_.begin()->second = std::move(value); in insert_or_assign()
151 list_map_.insert_or_assign(list_map_.begin(), key, std::move(value)); in insert_or_assign()
173 auto pair = list_map_.try_emplace(list_map_.begin(), key, std::forward<Args>(args)...); in try_emplace()
194 inline iterator begin() { in begin() function
195 return list_map_.begin(); in begin()
199 inline const_iterator begin() const { in begin() function
200 return list_map_.begin(); in begin()
/system/libvintf/
DKernelConfigParser.cpp51 return std::string{s.begin(), r.base()}; in trimTrailingSpaces()
114 const char* begin = buf; in process() local
120 mRemaining.insert(mRemaining.size(), begin, end - begin); in process()
127 begin = end + 1; in process()
131 mRemaining.insert(mRemaining.size(), begin, end - begin); in process()
/system/keymaster/tests/
Dkey_blob_test.cpp104 EXPECT_EQ(serialized_blob_.end(), std::search(serialized_blob_.begin(), serialized_blob_.end(), in TEST_F()
105 key_material_.begin(), key_material_.end())); in TEST_F()
106 EXPECT_NE(serialized_blob_.end(), std::search(serialized_blob_.begin(), serialized_blob_.end(), in TEST_F()
107 ciphertext_.begin(), ciphertext_.end())); in TEST_F()
124 EXPECT_EQ(0, memcmp(plaintext.begin(), key_material_.begin(), plaintext.key_material_size)); in TEST_F()
143 std::search(serialized_blob_.begin(), serialized_blob_.end(), nonce_.begin(), nonce_.end()); in TEST_F()
146 std::search(nonce_ptr + 1, serialized_blob_.end(), nonce_.begin(), nonce_.end())); in TEST_F()
160 std::search(serialized_blob_.begin(), serialized_blob_.end(), tag_.begin(), tag_.end()); in TEST_F()
163 std::search(tag_ptr + 1, serialized_blob_.end(), tag_.begin(), tag_.end())); in TEST_F()
176 auto ciphertext_ptr = std::search(serialized_blob_.begin(), serialized_blob_.end(), in TEST_F()
[all …]
/system/linkerconfig/generator/
Dlibrarylistloader.cc98 library_list->begin(), in GetPublicLibrariesString()
100 private_library_list->begin(), in GetPublicLibrariesString()
102 std::inserter(public_library_list, public_library_list.begin())); in GetPublicLibrariesString()
126 std::set_intersection(library_list->begin(), in GetPrivateLibrariesString()
128 private_library_list->begin(), in GetPrivateLibrariesString()
131 private_only_library_list.begin())); in GetPrivateLibrariesString()

12345678910>>...31