Home
last modified time | relevance | path

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

12345678910>>...13

/system/core/libmemunreachable/
DHeapWalker.cpp31 bool HeapWalker::Allocation(uintptr_t begin, uintptr_t end) { in Allocation() argument
32 if (end == begin) { in Allocation()
33 end = begin + 1; in Allocation()
35 Range range{begin, end}; in Allocation()
38 valid_allocations_range_.begin = std::min(valid_allocations_range_.begin, begin); in Allocation()
46 reinterpret_cast<void*>(begin), in Allocation()
48 reinterpret_cast<void*>(overlap.begin), in Allocation()
62 if (value >= valid_allocations_range_.begin && value < valid_allocations_range_.end) { in WordContainsAllocationPtr()
88 void HeapWalker::Root(uintptr_t begin, uintptr_t end) { in Root() argument
89 roots_.push_back(Range{begin, end}); in Root()
[all …]
DHeapWalker.h30 uintptr_t begin; member
33 size_t size() const { return end - begin; }; in size()
35 return this->begin == other.begin && this->end == other.end;
45 return a.end <= b.begin; in operator()
56 valid_allocations_range_.begin = ~valid_allocations_range_.end; in HeapWalker()
65 bool Allocation(uintptr_t begin, uintptr_t end);
66 void Root(uintptr_t begin, uintptr_t end);
108 uintptr_t begin = (range.begin + (sizeof(uintptr_t) - 1)) & ~(sizeof(uintptr_t) - 1); in ForEachPtrInRange() local
112 for (uintptr_t i = begin; i < range.end; i += sizeof(uintptr_t)) { in ForEachPtrInRange()
DMemUnreachable.cpp72 malloc_iterate(heap_mapping.begin, heap_mapping.end - heap_mapping.begin, in HeapIterate()
91 for (auto it = heap_mappings.begin(); it != heap_mappings.end(); it++) { in CollectAllocations()
92 ALOGV("Heap mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
98 for (auto it = anon_mappings.begin(); it != anon_mappings.end(); it++) { in CollectAllocations()
99 ALOGV("Anon mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
100 heap_walker_.Allocation(it->begin, it->end); in CollectAllocations()
103 for (auto it = globals_mappings.begin(); it != globals_mappings.end(); it++) { in CollectAllocations()
104 ALOGV("Globals mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
105 heap_walker_.Root(it->begin, it->end); in CollectAllocations()
108 for (auto thread_it = threads.begin(); thread_it != threads.end(); thread_it++) { in CollectAllocations()
[all …]
/system/netd/server/
DUidRanges.cpp28 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), Range(uid, uid)); in hasUid()
30 (iter != mRanges.begin() && (--iter)->second >= uid); in hasUid()
74 std::sort(mRanges.begin(), mRanges.end()); in parseFrom()
80 std::transform(ranges.begin(), ranges.end(), mRanges.begin(), in UidRanges()
84 std::sort(mRanges.begin(), mRanges.end()); in UidRanges()
88 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); in add()
89 std::inplace_merge(mRanges.begin(), middle, mRanges.end()); in add()
93 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), in remove()
94 other.mRanges.end(), mRanges.begin()); in remove()
/system/bt/service/common/bluetooth/
Duuid.cpp117 std::reverse_copy(uuid.uu, uuid.uu + sizeof(uuid.uu), id_.begin()); in UUID()
123 std::copy(uuid.begin(), uuid.end(), id_.begin() + kNumBytes16); in UUID()
128 std::copy(uuid.begin(), uuid.end(), id_.begin()); in UUID()
139 std::reverse_copy(id_.begin(), id_.end(), ret.begin()); in GetFullLittleEndian()
145 std::reverse_copy(id_.begin(), id_.end(), ret.uu); in GetBlueDroid()
169 return std::lexicographical_compare(id_.begin(), id_.end(), rhs.id_.begin(), in operator <()
174 return std::equal(id_.begin(), id_.end(), rhs.id_.begin()); in operator ==()
/system/tools/aidl/
Daidl_language_y.yy95 { ps->AddImport($2, @1.begin.line); };
117 @2.begin.line, $2->GetText().c_str());
123 $$ = new AidlParcelable($2, @2.begin.line, ps->Package());
126 $$ = new AidlParcelable($2, @2.begin.line, ps->Package(), $4->GetText());
130 ps->FileName().c_str(), @1.begin.line);
135 ps->FileName().c_str(), @2.begin.line, $2->GetText().c_str());
141 $$ = new AidlInterface($2->GetText(), @2.begin.line, $1->GetComments(),
147 $$ = new AidlInterface($3->GetText(), @3.begin.line, $1->GetComments(),
155 ps->FileName().c_str(), @2.begin.line, $2->GetText().c_str());
162 ps->FileName().c_str(), @2.begin.line, $2->GetText().c_str());
[all …]
/system/keymaster/
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 …]
DList.h168 insert(begin(), src.begin(), src.end()); in List()
185 return size_t(distance(begin(), end())); in size()
193 inline iterator begin() { in begin() function
196 inline const_iterator begin() const { in begin() function
207 void push_front(const T& val) { insert(begin(), val); } in push_front()
317 iterator firstDst = begin();
319 const_iterator firstSrc = right.begin();
/system/update_engine/payload_consumer/
Dxz_extent_writer_unittest.cc110 std::begin(kSampleData),
111 std::begin(kSampleData) + strlen(kSampleData)};
122 WriteAll(brillo::Blob(std::begin(kCompressedDataNoCheck), in TEST_F()
128 WriteAll(brillo::Blob(std::begin(kCompressedDataCRC32), in TEST_F()
136 WriteAll(brillo::Blob(std::begin(kCompressed30KiBofA), in TEST_F()
152 brillo::Blob compressed(std::begin(kCompressed30KiBofA), in TEST_F()
Dextent_writer_unittest.cc157 data.begin() + kBlockSize, in WriteAlignedExtents()
158 data.begin() + kBlockSize * 2); in WriteAlignedExtents()
160 data.begin(), data.begin() + kBlockSize); in WriteAlignedExtents()
162 data.begin() + kBlockSize * 2, data.end()); in WriteAlignedExtents()
207 data.begin() + kBlockSize, in TestZeroPad()
208 data.begin() + kBlockSize * 2); in TestZeroPad()
210 data.begin(), data.begin() + kBlockSize); in TestZeroPad()
/system/extras/perfprofd/quipper/
Daddress_mapper.cc52 for (iter = mappings_.begin(); iter != mappings_.end(); ++iter) { in MapWithID()
114 if (mappings_.begin()->mapped_addr >= range.size) { in MapWithID()
116 range.unmapped_space_after = mappings_.begin()->mapped_addr - range.size; in MapWithID()
123 for (iter = mappings_.begin(); iter != mappings_.end(); ++iter) { in MapWithID()
145 for (it = mappings_.begin(); it != mappings_.end(); ++it) { in DumpToLog()
157 for (iter = mappings_.begin(); iter != mappings_.end(); ++iter) { in GetMappedAddress()
172 for (iter = mappings_.begin(); iter != mappings_.end(); ++iter) { in GetMappedIDAndOffset()
186 uint64_t min = mappings_.begin()->mapped_addr; in GetMaxMappedLength()
201 for (iter = mappings_.begin(); iter != mappings_.end(); ++iter) { in Unmap()
205 if (iter != mappings_.begin()) { in Unmap()
/system/core/logd/
DLogWhiteBlackList.cpp59 for (it = mNice.begin(); it != mNice.end();) { in ~PruneList()
62 for (it = mNaughty.begin(); it != mNaughty.end();) { in ~PruneList()
71 for (it = mNice.begin(); it != mNice.end();) { in init()
74 for (it = mNaughty.begin(); it != mNaughty.end();) { in init()
185 PruneCollection::iterator it = list->begin(); in init()
234 for (it = mNice.begin(); it != mNice.end(); ++it) { in format()
241 for (it = mNaughty.begin(); it != mNaughty.end(); ++it) { in format()
255 for (it = mNaughty.begin(); it != mNaughty.end(); ++it) { in naughty()
265 for (it = mNice.begin(); it != mNice.end(); ++it) { in nice()
/system/core/libutils/
DString16.cpp113 String16::String16(const String16& o, size_t len, size_t begin) in String16() argument
116 setTo(o, len, begin); in String16()
181 status_t String16::setTo(const String16& other, size_t len, size_t begin) in setTo() argument
184 if (begin >= N) { in setTo()
189 if ((begin+len) > N) len = N-begin; in setTo()
190 if (begin == 0 && len == N) { in setTo()
199 return setTo(other.string()+begin, len); in setTo()
396 status_t String16::remove(size_t len, size_t begin) in remove() argument
399 if (begin >= N) { in remove()
404 if ((begin+len) > N) len = N-begin; in remove()
[all …]
/system/core/libsysutils/src/
DSocketListener.cpp65 for (it = mClients->begin(); it != mClients->end();) { in ~SocketListener()
137 for (it = mClients->begin(); it != mClients->end();) { in stopListener()
174 for (it = mClients->begin(); it != mClients->end(); ++it) { in runListener()
226 for (it = mClients->begin(); it != mClients->end(); ++it) { in runListener()
241 it = pendingList.begin(); in runListener()
261 for (it = mClients->begin(); it != mClients->end(); ++it) { in release()
288 for (i = mClients->begin(); i != mClients->end(); ++i) { in sendBroadcast()
297 i = safeList.begin(); in sendBroadcast()
316 for (i = mClients->begin(); i != mClients->end(); ++i) { in runOnEachSocket()
325 i = safeList.begin(); in runOnEachSocket()
/system/update_engine/payload_generator/
Dextent_ranges.cc85 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in AddExtent()
129 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in SubtractExtent()
142 for (ExtentSet::iterator jt = subtraction.begin(), je = subtraction.end(); in SubtractExtent()
149 extent_set_.insert(new_extents.begin(), new_extents.end()); in SubtractExtent()
154 for (ExtentSet::const_iterator it = ranges.extent_set_.begin(), in AddRanges()
161 for (ExtentSet::const_iterator it = ranges.extent_set_.begin(), in SubtractRanges()
168 for (vector<Extent>::const_iterator it = extents.begin(), e = extents.end(); in AddExtents()
175 for (vector<Extent>::const_iterator it = extents.begin(), e = extents.end(); in SubtractExtents()
198 if (lower != extent_set_.begin()) in ContainsBlock()
214 for (ExtentSet::const_iterator it = extent_set_.begin(), in Dump()
[all …]
Dcycle_breaker.cc79 for (vector<Vertex::Index>::iterator it = component_indexes.begin(); in BreakCycles()
82 for (vector<Vertex::Index>::iterator jt = component_indexes.begin(); in BreakCycles()
113 for (vector<Vertex::Index>::const_iterator it = stack_.begin(); in HandleCircuit()
136 for (Vertex::EdgeMap::iterator it = blocked_graph_[u].out_edges.begin(); in Unblock()
146 for (vector<Vertex::Index>::const_iterator it = ++stack_.begin(), in StackContainsCutEdge()
176 subgraph_[vertex].subgraph_edges.begin(); in Circuit()
197 subgraph_[vertex].subgraph_edges.begin(); in Circuit()
Dpayload_signer.cc70 serialized.begin(), in ConvertSignatureToProtobufBlob()
116 payload.erase(payload.begin() + metadata_size, in AddSignatureBlobToPayload()
117 payload.begin() + metadata_size + metadata_signature_size); in AddSignatureBlobToPayload()
118 payload.insert(payload.begin() + metadata_size, in AddSignatureBlobToPayload()
119 metadata_signature_blob.begin(), in AddSignatureBlobToPayload()
151 payload.erase(payload.begin() + manifest_offset, in AddSignatureBlobToPayload()
152 payload.begin() + metadata_size); in AddSignatureBlobToPayload()
153 payload.insert(payload.begin() + manifest_offset, in AddSignatureBlobToPayload()
154 serialized_manifest.begin(), in AddSignatureBlobToPayload()
169 payload.insert(payload.begin() + signatures_offset, in AddSignatureBlobToPayload()
[all …]
Dgraph_utils.cc42 for (vector<Extent>::const_iterator it = extents.begin(); in EdgeWeight()
68 for (vector<Extent>::const_iterator it = extents.begin(), e = extents.end(); in AddReadBeforeDepExtents()
81 for (Vertex::EdgeMap::iterator it = edge_map->begin(); in DropWriteBeforeDeps()
98 for (Graph::iterator it = graph->begin(), e = graph->end(); it != e; ++it) { in DropIncomingEdgesTo()
114 for (Vertex::EdgeMap::const_iterator it = out_edges.begin(), in DumpOutEdges()
/system/core/include/backtrace/
DBacktraceMap.h75 iterator begin() { return maps_.begin(); } in begin() function
79 const_iterator begin() const { return maps_.begin(); } in begin() function
/system/core/include/sysutils/
DList.h169 insert(begin(), src.begin(), src.end()); in List()
186 return size_t(distance(begin(), end())); in size()
194 inline iterator begin() { in begin() function
197 inline const_iterator begin() const { in begin() function
208 void push_front(const T& val) { insert(begin(), val); } in push_front()
318 iterator firstDst = begin();
320 const_iterator firstSrc = right.begin();
/system/core/include/utils/
DList.h168 insert(begin(), src.begin(), src.end()); in List()
185 return size_t(distance(begin(), end())); in size()
193 inline iterator begin() { in begin() function
196 inline const_iterator begin() const { in begin() function
207 void push_front(const T& val) { insert(begin(), val); } in push_front()
317 iterator firstDst = begin();
319 const_iterator firstSrc = right.begin();
/system/bt/service/ipc/
Dlinux_ipc_host.cpp144 if (std::find(option_tokens.begin(), option_tokens.end(), "notify") != in OnAddCharacteristic()
150 if (std::find(option_tokens.begin(), option_tokens.end(), "read") != in OnAddCharacteristic()
155 if (std::find(option_tokens.begin(), option_tokens.end(), "write") != in OnAddCharacteristic()
177 std::vector<uint8_t> blob_data(decoded_data.begin(), decoded_data.end()); in OnSetCharacteristicValue()
201 std::vector<uint8_t> decoded_advertise_data(decoded_data.begin(), in OnSetAdvertisement()
205 std::vector<uint8_t> decoded_manufacturer_data(decoded_data.begin(), in OnSetAdvertisement()
229 std::vector<uint8_t> decoded_advertise_data(decoded_data.begin(), in OnSetScanResponse()
233 std::vector<uint8_t> decoded_manufacturer_data(decoded_data.begin(), in OnSetScanResponse()
323 auto server = gatt_servers_.begin(); in OnGattWrite()
325 const std::string value_string(value.begin(), value.end()); in OnGattWrite()
/system/update_engine/common/
Dhash_calculator_unittest.cc57 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F()
68 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F()
83 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F()
126 brillo::Blob raw_hash(std::begin(kExpectedRawHash), in TEST_F()
148 brillo::Blob exp_raw_hash(std::begin(kExpectedRawHash), in TEST_F()
/system/connectivity/shill/net/
Dbyte_string.cc105 for (auto i = data_.begin(); i != data_.end(); i += sizeof(T)) { in ConvertByteOrderAsUIntArray()
136 auto lhs = data_.begin(); in BitwiseAnd()
147 auto lhs = data_.begin(); in BitwiseOr()
164 auto lhs = data_.begin(); in Equals()
174 data_.insert(data_.end(), b.data_.begin(), b.data_.end()); in Append()
/system/vold/
DKeymaster.cpp34 virtual keymaster_error_t begin(keymaster_purpose_t purpose, const keymaster_key_blob_t* key,
65 keymaster_error_t begin(keymaster_purpose_t purpose, const keymaster_key_blob_t* key, in begin() function in android::vold::KeymasterDevice
69 return mDevice->begin(mDevice, purpose, key, in_params, out_params, operation_handle); in begin()
120 auto it = input.begin(); in updateCompletely()
220 KeymasterOperation Keymaster::begin(keymaster_purpose_t purpose, const std::string& key, in begin() function in android::vold::Keymaster
226 auto error = mDevice->begin(purpose, &keyBlob, &inParams, &outParams_set, &mOpHandle); in begin()
237 KeymasterOperation Keymaster::begin(keymaster_purpose_t purpose, const std::string& key, in begin() function in android::vold::Keymaster
241 auto error = mDevice->begin(purpose, &keyBlob, &inParams, nullptr, &mOpHandle); in begin()

12345678910>>...13