Home
last modified time | relevance | path

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

12345678910>>...28

/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/extras/simpleperf/
Dread_symbol_map.cpp34 size_t begin = content_ref.find_first_not_of(" \t"); in ConsumeWord() local
35 if (begin == content_ref.npos) { in ConsumeWord()
39 size_t end = content_ref.find_first_of(" \t", begin + 1); in ConsumeWord()
44 auto res = content_ref.substr(begin, end - begin); in ConsumeWord()
94 for (size_t begin = 0;;) { in ReadSymbolMapFromString() local
95 size_t end = content.find_first_of("\n\r", begin); in ReadSymbolMapFromString()
98 ReadSymbol({content.c_str() + begin, content.size() - begin}, &symbols); in ReadSymbolMapFromString()
99 std::sort(symbols.begin(), symbols.end(), Symbol::CompareValueByAddr); in ReadSymbolMapFromString()
103 ReadSymbol({content.c_str() + begin, end - begin}, &symbols); in ReadSymbolMapFromString()
104 begin = end + 1; in ReadSymbolMapFromString()
/system/libcppbor/include/cppbor/
Dcppbor_parse.h37 ParseResult parse(const uint8_t* begin, const uint8_t* end);
55 ParseResult parseWithViews(const uint8_t* begin, const uint8_t* end);
83 inline ParseResult parse(const uint8_t* begin, size_t size) { in parse() argument
84 return parse(begin, begin + size); in parse()
103 inline ParseResult parseWithViews(const uint8_t* begin, size_t size) { in parseWithViews() argument
104 return parseWithViews(begin, begin + size); in parseWithViews()
130 void parse(const uint8_t* begin, const uint8_t* end, ParseClient* parseClient);
137 void parseWithViews(const uint8_t* begin, const uint8_t* end, ParseClient* parseClient);
/system/core/trusty/coverage/
Dcoverage.cpp183 volatile uint8_t* begin = nullptr; in ResetCounts() local
185 GetRawCounts(&begin, &end); in ResetCounts()
187 for (volatile uint8_t* x = begin; x < end; x++) { in ResetCounts()
193 volatile uintptr_t* begin = nullptr; in ResetPCs() local
195 GetRawPCs(&begin, &end); in ResetPCs()
197 for (volatile uintptr_t* x = begin; x < end; x++) { in ResetPCs()
223 void CoverageRecord::GetRawData(volatile void** begin, volatile void** end) { in GetRawData() argument
226 *begin = shm_; in GetRawData()
227 *end = (uint8_t*)(*begin) + record_len_; in GetRawData()
230 void CoverageRecord::GetRawCounts(volatile uint8_t** begin, volatile uint8_t** end) { in GetRawCounts() argument
[all …]
/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/core/trusty/fuzz/
Dcounters.cpp51 volatile uint8_t* begin = NULL; in ExtraCounters() local
53 record_->GetRawCounts(&begin, &end); in ExtraCounters()
54 assert(end - begin <= sizeof(counters)); in ExtraCounters()
75 volatile uint8_t* begin = NULL; in Flush() local
78 record_->GetRawCounts(&begin, &end); in Flush()
79 if (!begin || !end) { in Flush()
84 size_t num_counters = end - begin; in Flush()
90 *(counters + i) = *(begin + i); in Flush()
/system/update_engine/lz4diff/
Dlz4patch.h46 auto begin = arr.begin();
47 out << *begin;
48 ++begin;
49 for (; begin != arr.end(); ++begin) {
50 out << ", " << *begin;
Dlz4diff_main.cc28 if (vec.begin() == vec.end()) { in operator <<()
33 auto begin = vec.begin(); in operator <<() local
34 out << *begin; in operator <<()
35 for (const auto& ext : Range{++begin, vec.end()}) { in operator <<()
103 dst_files.begin(), in ExecuteLz4diffOp()
115 src_files.begin(), src_files.end(), [inode_path](auto&& file) { in ExecuteLz4diffOp()
124 dst_files.begin(), dst_files.end(), [inode_path](auto&& file) { in ExecuteLz4diffOp()
/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/libcppbor/src/
Dcppbor_parse.cpp60 std::tuple<const uint8_t*, ParseClient*> parseRecursively(const uint8_t* begin, const uint8_t* end,
239 std::tuple<const uint8_t*, ParseClient*> parseRecursively(const uint8_t* begin, const uint8_t* end, in parseRecursively() argument
241 if (begin == end) { in parseRecursively()
243 begin, in parseRecursively()
245 return {begin, nullptr}; in parseRecursively()
248 const uint8_t* pos = begin; in parseRecursively()
260 begin, in parseRecursively()
262 return {begin, nullptr}; in parseRecursively()
287 if (!success) return {begin, nullptr}; in parseRecursively()
291 return handleUint(addlData, begin, pos, parseClient); in parseRecursively()
[all …]
/system/connectivity/wificond/tests/
Dclient_interface_impl_unittest.cpp125 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
136 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
150 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
165 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
176 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
187 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
199 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
210 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), kAutoMcs, _)) in TEST_F()
220 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
230 vector<uint8_t>(std::begin(kTestFrame), std::end(kTestFrame)), in TEST_F()
[all …]
/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/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.cpp69 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), makeUidRangeParcel(intUid, intUid), in hasUid()
72 (iter != mRanges.begin() && (--iter)->stop >= intUid); in hasUid()
116 std::sort(mRanges.begin(), mRanges.end(), compUidRangeParcel); in parseFrom()
122 std::sort(mRanges.begin(), mRanges.end(), compUidRangeParcel); in UidRanges()
126 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); in add()
127 std::inplace_merge(mRanges.begin(), middle, mRanges.end(), compUidRangeParcel); in add()
131 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), in remove()
132 other.mRanges.end(), mRanges.begin(), compUidRangeParcel); in remove()
/system/update_engine/payload_consumer/
Dcached_file_descriptor.cc85 size_t begin = 0; in FlushCache() local
86 while (begin < bytes_cached_) { in FlushCache()
88 GetFd()->Write(cache_.data() + begin, bytes_cached_ - begin); in FlushCache()
93 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()
Dextent_writer_unittest.cc69 EXPECT_TRUE(direct_writer.Init({extents.begin(), extents.end()}, kBlockSize)); in TEST_F()
87 EXPECT_TRUE(direct_writer.Init({extents.begin(), extents.end()}, kBlockSize)); in TEST_F()
111 EXPECT_TRUE(direct_writer.Init({extents.begin(), extents.end()}, kBlockSize)); in WriteAlignedExtents()
131 data.begin() + kBlockSize, in WriteAlignedExtents()
132 data.begin() + kBlockSize * 2); in WriteAlignedExtents()
134 expected_file.end(), data.begin(), data.begin() + kBlockSize); in WriteAlignedExtents()
136 expected_file.end(), data.begin() + kBlockSize * 2, data.end()); in WriteAlignedExtents()
151 EXPECT_TRUE(direct_writer.Init({extents.begin(), extents.end()}, kBlockSize)); in TEST_F()
/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/linkerconfig/modules/
Dbasecontext.cc71 system_provide_libs_ = {config.providelibs().begin(), in SetSystemConfig()
73 system_require_libs_ = {config.requirelibs().begin(), in SetSystemConfig()
85 vendor_provide_libs_ = {config.providelibs().begin(), in SetVendorConfig()
87 vendor_require_libs_ = {config.requirelibs().begin(), in SetVendorConfig()
99 product_provide_libs_ = {config.providelibs().begin(), in SetProductConfig()
101 product_require_libs_ = {config.requirelibs().begin(), in SetProductConfig()
/system/linkerconfig/generator/
Dlibrarylistloader.cc99 library_list->begin(), in GetPublicLibrariesString()
101 private_library_list->begin(), in GetPublicLibrariesString()
103 std::inserter(public_library_list, public_library_list.begin())); in GetPublicLibrariesString()
128 std::set_intersection(library_list->begin(), in GetPrivateLibrariesString()
130 private_library_list->begin(), in GetPrivateLibrariesString()
133 private_only_library_list.begin())); in GetPrivateLibrariesString()
/system/core/init/
Dfirst_stage_mount.cpp94 bool MountPartition(const Fstab::iterator& begin, bool erase_same_mounts,
146 if (std::any_of(fstab.begin(), fstab.end(), in IsDtVbmetaCompatible()
157 fstab.erase(std::remove_if(fstab.begin(), fstab.end(), in ReadFirstStageFstab()
177 auto entry = std::find_if(proc_mounts.begin(), proc_mounts.end(), [](const auto& entry) { in GetRootEntry()
241 auto metadata_partition = std::find_if(fstab_.begin(), fstab_.end(), [](const auto& entry) { in DoCreateDevices()
403 bool FirstStageMount::MountPartition(const Fstab::iterator& begin, bool erase_same_mounts, in MountPartition() argument
407 *end = begin + 1; in MountPartition()
410 if (!fs_mgr_create_canonical_mount_point(begin->mount_point)) { in MountPartition()
414 if (begin->fs_mgr_flags.logical) { in MountPartition()
415 if (!fs_mgr_update_logical_partition(&(*begin))) { in MountPartition()
[all …]

12345678910>>...28