Home
last modified time | relevance | path

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

1234

/system/netd/server/
DUidRanges.cpp24 auto iter = std::lower_bound(mRanges.begin(), mRanges.end(), Range(uid, uid)); in hasUid()
26 (iter != mRanges.begin() && (--iter)->second >= uid); in hasUid()
70 std::sort(mRanges.begin(), mRanges.end()); in parseFrom()
75 auto middle = mRanges.insert(mRanges.end(), other.mRanges.begin(), other.mRanges.end()); in add()
76 std::inplace_merge(mRanges.begin(), middle, mRanges.end()); in add()
80 auto end = std::set_difference(mRanges.begin(), mRanges.end(), other.mRanges.begin(), in remove()
81 other.mRanges.end(), mRanges.begin()); in remove()
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();
DPppController.cpp45 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in ~PppController()
63 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in attachPppd()
133 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in updateTtyList()
DTetherController.cpp87 for (it = mInterfaces->begin(); it != mInterfaces->end(); ++it) { in ~TetherController()
288 for (it = mInterfaces->begin(); it != mInterfaces->end(); ++it) { in applyDnsInterfaces()
320 for (it = mInterfaces->begin(); it != mInterfaces->end(); ++it) { in tetherInterface()
338 for (it = mInterfaces->begin(); it != mInterfaces->end(); ++it) { in untetherInterface()
DNetwork.cpp44 std::string interface = *mInterfaces.begin(); in clearInterfaces()
/system/core/logd/
DLogWhiteBlackList.cpp57 for (it = mNice.begin(); it != mNice.end();) { in ~PruneList()
60 for (it = mNaughty.begin(); it != mNaughty.end();) { in ~PruneList()
68 for (it = mNice.begin(); it != mNice.end();) { in init()
71 for (it = mNaughty.begin(); it != mNaughty.end();) { in init()
137 PruneCollection::iterator it = list->begin(); in init()
188 for (it = mNice.begin(); it != mNice.end(); ++it) { in format()
200 for (it = mNaughty.begin(); it != mNaughty.end(); ++it) { in format()
219 for (it = mNaughty.begin(); it != mNaughty.end(); ++it) { in naughty()
229 for (it = mNice.begin(); it != mNice.end(); ++it) { in nice()
DLogBuffer.cpp170 while (last != mLogElements.begin()) { in log()
187 LastLogTimes::iterator t = mTimes.begin(); in log()
317 for(LogBufferElementMap::iterator it = map.begin(); it != map.end();) { in clear()
383 LastLogTimes::iterator t = mTimes.begin(); in prune()
396 for(it = mLogElements.begin(); it != mLogElements.end();) { in prune()
459 it = mLogElements.begin(); in prune()
592 it = mLogElements.begin(); in prune()
627 it = mLogElements.begin(); in prune()
700 it = mLogElements.begin(); in flushTo()
704 for (it = mLogElements.end(); it != mLogElements.begin(); /* do nothing */) { in flushTo()
DFlushCommand.cpp53 LastLogTimes::iterator it = times.begin(); in runSocketCommand()
/system/core/libutils/
DString16.cpp112 String16::String16(const String16& o, size_t len, size_t begin) in String16() argument
115 setTo(o, len, begin); in String16()
175 status_t String16::setTo(const String16& other, size_t len, size_t begin) in setTo() argument
178 if (begin >= N) { in setTo()
183 if ((begin+len) > N) len = N-begin; in setTo()
184 if (begin == 0 && len == N) { in setTo()
193 return setTo(other.string()+begin, len); in setTo()
385 status_t String16::remove(size_t len, size_t begin) in remove() argument
388 if (begin >= N) { in remove()
393 if ((begin+len) > N) len = N-begin; in remove()
[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();
Dintegrity_assured_key_blob.cpp108 const uint8_t* p = key_blob.begin(); in DeserializeIntegrityAssuredBlob()
115 keymaster_error_t error = ComputeHmac(key_blob.begin(), key_blob.key_material_size - HMAC_SIZE, in DeserializeIntegrityAssuredBlob()
/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/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()
225 for (it = mClients->begin(); it != mClients->end(); ++it) { in runListener()
240 it = pendingList.begin(); in runListener()
260 for (it = mClients->begin(); it != mClients->end(); ++it) { in release()
287 for (i = mClients->begin(); i != mClients->end(); ++i) { in sendBroadcast()
296 i = safeList.begin(); in sendBroadcast()
315 for (i = mClients->begin(); i != mClients->end(); ++i) { in runOnEachSocket()
324 i = safeList.begin(); in runOnEachSocket()
/system/core/include/backtrace/
DBacktraceMap.h72 iterator begin() { return maps_.begin(); } in begin() function
76 const_iterator begin() const { return maps_.begin(); } in begin() function
DBacktrace.h107 iterator begin() { return frames_.begin(); } in begin() function
111 const_iterator begin() const { return frames_.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();
DString16.h57 size_t begin=0);
76 size_t begin=0);
101 status_t remove(size_t len, size_t begin=0);
/system/core/logcat/tests/
Dlogcat_benchmark.cpp23 static const char begin[] = "--------- beginning of "; variable
86 if (!strncmp(begin, buffer, sizeof(begin) - 1)) { in TEST()
/system/extras/simpleperf/
Dcommand.cpp44 std::sort(Commands().begin(), Commands().end(), CompareCommandByName); in GetAllCommands()
53 for (auto it = Commands().begin(); it != Commands().end(); ++it) { in UnRegisterCommand()
Dmain.cpp34 args.insert(args.begin(), "help"); in main()
/system/extras/memtrack/
Dmemtrack.cpp171 for (processes_t::iterator it = all_.begin(); it != all_.end(); ++it) { in scan()
199 for (cur_processes_t::const_iterator it = cur_.begin(); in scan()
240 for (processes_t::const_iterator it = all_.begin(); it != all_.end(); ++it) { in dumpToLog()
245 std::sort(list_.begin(), list_.end(), comparePss); in dumpToLog()
248 for (std::vector<const process_info_t *>::const_iterator it = list_.begin(); in dumpToLog()
254 for (std::vector<int>::const_iterator pid_it = (*it)->pids.begin(); in dumpToLog()
/system/security/keystore/
Dauth_token_table.cpp34 return std::find_if(container.begin(), container.end(), pred); in find_if()
39 return std::remove_if(container.begin(), container.end(), pred); in remove_if()
43 return std::min_element(container.begin(), container.end()); in min_element()
163 return std::any_of(entries_.begin(), entries_.end(), in IsSupersededBySomeEntry()
Doperation.cpp69 auto lruEntry = std::find(mLru.begin(), mLru.end(), token); in updateLru()
83 auto lruEntry = std::find(mLru.begin(), mLru.end(), token); in removeOperation()
97 auto tokenEntry = std::find(appEntry->second.begin(), appEntry->second.end(), token); in removeOperationTracking()

1234