Home
last modified time | relevance | path

Searched refs:it (Results 1 – 25 of 1030) sorted by relevance

12345678910>>...42

/system/extras/memtrack/
Dmemtrack.cpp167 for (processes_t::iterator it = all_.begin(); it != all_.end(); ++it) { in scan() local
168 it->second.pids.clear(); in scan()
195 for (cur_processes_t::const_iterator it = cur_.begin(); in scan() local
196 it != cur_.end(); ++it) { in scan()
198 if (all_.count(it->first) == 0) { in scan()
200 all_[it->first].num_samples = 0; in scan()
201 all_[it->first].name = it->first; in scan()
202 all_[it->first].avg_pss_kb = 0; in scan()
203 all_[it->first].min_pss_kb = 0; in scan()
204 all_[it->first].max_pss_kb = 0; in scan()
[all …]
/system/libufdt/include/
Dufdt_types.h23 #define for_each(it, node) \ argument
25 for ((it) = (node)->nodes; (it) != (node)->nodes + (node)->mem_size; ++(it)) \
26 if (*(it))
28 #define for_each_child(it, node) \ argument
30 for ((it) = &(((struct ufdt_node_fdt_node *)(node))->child); *(it); \
31 (it) = &((*(it))->sibling))
33 #define for_each_prop(it, node) \ argument
34 for_each_child(it, node) if (ufdt_node_tag(*(it)) == FDT_PROP)
36 #define for_each_node(it, node) \ argument
37 for_each_child(it, node) if (ufdt_node_tag(*(it)) == FDT_BEGIN_NODE)
/system/core/init/
Dproperty_type.cpp65 auto it = value.begin(); in CheckType() local
66 while (it != value.end() && isdigit(*it)) { in CheckType()
67 it++; in CheckType()
69 if (it == value.begin() || it == value.end() || (*it != 'g' && *it != 'k' && *it != 'm')) { in CheckType()
72 it++; in CheckType()
73 return it == value.end(); in CheckType()
76 for (auto it = std::next(type_strings.begin()); it != type_strings.end(); ++it) { in CheckType() local
77 if (*it == value) { in CheckType()
/system/memory/libmemunreachable/
DMemUnreachable.cpp92 for (auto it = mappings.begin(); it != mappings.end(); it++) { in CollectAllocations() local
93 heap_walker_.Mapping(it->begin, it->end); in CollectAllocations()
104 for (auto it = heap_mappings.begin(); it != heap_mappings.end(); it++) { in CollectAllocations() local
105 MEM_ALOGV("Heap mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
106 HeapIterate(*it, in CollectAllocations()
110 for (auto it = anon_mappings.begin(); it != anon_mappings.end(); it++) { in CollectAllocations() local
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() local
116 MEM_ALOGV("Globals mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations()
[all …]
DHeapWalker.cpp95 AllocationMap::iterator it = allocations_.find(Range{value, value + 1}); in WordContainsAllocationPtr() local
96 if (it != allocations_.end()) { in WordContainsAllocationPtr()
97 *range = it->first; in WordContainsAllocationPtr()
98 *info = &it->second; in WordContainsAllocationPtr()
145 for (auto it = roots_.begin(); it != roots_.end(); it++) { in DetectLeaks() local
146 RecurseRoot(*it); in DetectLeaks()
168 for (auto it = allocations_.begin(); it != allocations_.end(); it++) { in Leaked() local
169 if (!it->second.referenced_from_root) { in Leaked()
171 leak_bytes += it->first.end - it->first.begin; in Leaked()
176 for (auto it = allocations_.begin(); it != allocations_.end(); it++) { in Leaked() local
[all …]
/system/nfc/src/fuzzers/ce/
Dt3t.cc93 for (auto it = ctx.Data.cbegin(); it != ctx.Data.cend(); ++it) { in Fuzz_Run() local
95 p_msg = (NFC_HDR*)GKI_getbuf(sizeof(NFC_HDR) + it->size()); in Fuzz_Run()
96 if (p_msg == nullptr || it->size() < 1) { in Fuzz_Run()
97 FUZZLOG(MODULE_NAME ": GKI_getbuf returns null, size=%zu", it->size()); in Fuzz_Run()
102 p_msg->len = it->size() - 1; in Fuzz_Run()
106 memcpy(p, it->data(), it->size()); in Fuzz_Run()
114 it - ctx.Data.cbegin() + 1, ctx.Data.size(), in Fuzz_Run()
115 BytesToHex(*it).c_str()); in Fuzz_Run()
122 for (auto it = Packets.begin() + 1; it != Packets.end(); ++it) { in Type3_FixPackets() local
123 if (it->size() < T3T_MSG_CMD_COMMON_HDR_LEN) { in Type3_FixPackets()
[all …]
Dt4t.cc96 for (auto it = ctx.Data.cbegin(); it != ctx.Data.cend(); ++it) { in Fuzz_Run() local
98 p_msg = (NFC_HDR*)GKI_getbuf(sizeof(NFC_HDR) + it->size()); in Fuzz_Run()
100 FUZZLOG(MODULE_NAME ": GKI_getbuf returns null, size=%zu", it->size()); in Fuzz_Run()
105 p_msg->len = it->size(); in Fuzz_Run()
109 memcpy(p, it->data(), it->size()); in Fuzz_Run()
117 it - ctx.Data.cbegin() + 1, ctx.Data.size(), in Fuzz_Run()
118 BytesToHex(*it).c_str()); in Fuzz_Run()
128 for (auto it = Packets.begin() + 1; it != Packets.end(); ++it) { in Type4_FixPackets() local
129 if (it->size() < T4T_CMD_MIN_HDR_SIZE) { in Type4_FixPackets()
130 it->resize(T4T_CMD_MIN_HDR_SIZE); in Type4_FixPackets()
[all …]
/system/nfc/src/fuzzers/integration/fakes/
Dgki_time_fakes.cc24 auto it = p_timer_listq->begin(); in GKI_add_to_timer_list() local
25 while (it != p_timer_listq->end()) { in GKI_add_to_timer_list()
26 TIMER_LIST_ENT* p_successor = *it; in GKI_add_to_timer_list()
39 it++; in GKI_add_to_timer_list()
42 p_timer_listq->insert(it, p_tle); in GKI_add_to_timer_list()
51 auto it = std::find(p_timer_listq->begin(), p_timer_listq->end(), p_tle); in GKI_remove_from_timer_list() local
52 if (it == p_timer_listq->end()) { in GKI_remove_from_timer_list()
56 auto successor_it = p_timer_listq->erase(it); in GKI_remove_from_timer_list()
71 for (auto it : *p_timer_listq) { in GKI_update_timer_list()
72 if (it->ticks <= 0) { in GKI_update_timer_list()
[all …]
/system/netd/server/
DPppController.cpp44 TtyCollection::iterator it; in ~PppController() local
46 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in ~PppController()
47 free(*it); in ~PppController()
63 TtyCollection::iterator it; in attachPppd() local
64 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in attachPppd()
65 if (!strcmp(tty, *it)) { in attachPppd()
69 if (it == mTtys->end()) { in attachPppd()
132 TtyCollection::iterator it; in updateTtyList() local
134 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in updateTtyList()
135 free(*it); in updateTtyList()
/system/nfc/src/fuzzers/llcp/
Dllcp.cc62 for (auto it = ctx.Data.cbegin(); it != ctx.Data.cend(); ++it) { in Fuzz_Run() local
64 (uint)(it - ctx.Data.cbegin() + 1), ctx.Data.size(), in Fuzz_Run()
65 BytesToHex(*it).c_str()); in Fuzz_Run()
68 p_msg = (NFC_HDR*)GKI_getbuf(sizeof(NFC_HDR) + it->size()); in Fuzz_Run()
70 FUZZLOG(MODULE_NAME ": GKI_getbuf returns null, size=%zu", it->size()); in Fuzz_Run()
75 p_msg->len = it->size(); in Fuzz_Run()
79 memcpy(p, it->data(), it->size()); in Fuzz_Run()
91 for (auto it = Packets.begin(); it != Packets.end(); ++it) { in Fuzz_FixPackets() local
92 if (it->size() < LLCP_PDU_HEADER_SIZE) { in Fuzz_FixPackets()
93 it->resize(LLCP_PDU_HEADER_SIZE); in Fuzz_FixPackets()
/system/tools/hidl/c2hal/
DAST.cpp141 auto it = mDeclarations->begin(); in isolateInterfaces() local
142 while (it != mDeclarations->end()) { in isolateInterfaces()
143 if ((*it)->decType() == CompositeDeclaration::type() in isolateInterfaces()
144 && ((CompositeDeclaration *) (*it))->isInterface()) { in isolateInterfaces()
146 mInterfaces->push_back((CompositeDeclaration *) *it); in isolateInterfaces()
147 it = mDeclarations->erase(it); in isolateInterfaces()
149 it++; in isolateInterfaces()
160 auto it = mDeclarations->begin(); in isolateGlobalInterface() local
161 while (it != mDeclarations->end()) { in isolateGlobalInterface()
162 if ((*it)->decType() == FunctionDeclaration::type()) { in isolateGlobalInterface()
[all …]
DType.cpp75 auto it = kSignedToUnsignedMap.find(signedType); in signedToUnsigned() local
77 if (it == kCToHidlMap.end()) { in signedToUnsigned()
81 return (*it).second; in signedToUnsigned()
108 auto it = kCToHidlMap.find(cType); in cToHidlType() local
110 if (it == kCToHidlMap.end()) { in cToHidlType()
114 return (*it).second; in cToHidlType()
124 for (auto it = mQualifiers->begin(); it != mQualifiers->end(); ++it) { in getHidlType() local
125 if (it != mQualifiers->begin()) { in getHidlType()
129 switch((*it)->qualification) { in getHidlType()
136 << Type::qualifierText((*it)->qualification) in getHidlType()
[all …]
/system/logging/logd/
DSimpleLogBuffer.cpp46 auto it = logs().begin(); in GetOldest() local
48 it = *oldest_[log_id]; in GetOldest()
50 while (it != logs().end() && it->log_id() != log_id) { in GetOldest()
51 it++; in GetOldest()
53 if (it != logs().end()) { in GetOldest()
54 oldest_[log_id] = it; in GetOldest()
56 return it; in GetOldest()
124 std::list<LogBufferElement>::iterator it; in FlushTo() local
127 it = logs_.begin(); in FlushTo()
131 for (it = logs_.end(); it != logs_.begin(); in FlushTo()
[all …]
/system/update_engine/payload_generator/
Dextent_ranges.cc87 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in AddExtent() local
88 it != e; in AddExtent()
89 ++it) { in AddExtent()
91 ? ExtentsOverlapOrTouch(*it, extent) in AddExtent()
92 : ExtentsOverlap(*it, extent); in AddExtent()
94 end_del = it; in AddExtent()
96 del_blocks += it->num_blocks(); in AddExtent()
98 begin_del = it; in AddExtent()
100 extent = UnionOverlappingExtents(extent, *it); in AddExtent()
135 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in SubtractExtent() local
[all …]
/system/apex/apexd/
Dapex_file_repository.cpp112 if (auto it = pre_installed_store_.find(name); in ScanBuiltInDir() local
113 it != pre_installed_store_.end()) { in ScanBuiltInDir()
114 pre_installed_store_.erase(it); in ScanBuiltInDir()
134 auto it = pre_installed_store_.find(name); in ScanBuiltInDir() local
135 if (it == pre_installed_store_.end()) { in ScanBuiltInDir()
137 } else if (it->second.GetPath() != apex_file->GetPath()) { in ScanBuiltInDir()
152 LOG(level) << "Found two apex packages " << it->second.GetPath() in ScanBuiltInDir()
155 } else if (it->second.GetBundledPublicKey() != in ScanBuiltInDir()
157 LOG(FATAL) << "Public key of apex package " << it->second.GetPath() in ScanBuiltInDir()
290 if (auto it = store.find(name); it != store.end()) { in AddBlockApex() local
[all …]
/system/security/ondevice-signing/
DVerityUtils.cpp54 for (auto it = data.begin(); it != data.end(); ++it) { in toHex() local
55 ss << std::setfill('0') << std::setw(2) << std::hex << static_cast<unsigned>(*it); in toHex()
183 auto it = std::filesystem::recursive_directory_iterator(path, ec); in addFilesToVerityRecursive() local
184 for (auto end = std::filesystem::recursive_directory_iterator(); it != end; it.increment(ec)) { in addFilesToVerityRecursive()
185 if (it->is_regular_file()) { in addFilesToVerityRecursive()
186 unique_fd fd(TEMP_FAILURE_RETRY(open(it->path().c_str(), O_RDONLY | O_CLOEXEC))); in addFilesToVerityRecursive()
192 LOG(INFO) << "Adding " << it->path() << " to fs-verity..."; in addFilesToVerityRecursive()
195 LOG(INFO) << it->path() << " was already in fs-verity."; in addFilesToVerityRecursive()
198 digests[it->path()] = digest; in addFilesToVerityRecursive()
212 auto it = std::filesystem::recursive_directory_iterator(path, ec); in verifyAllFilesInVerity() local
[all …]
/system/libvintf/include/vintf/
DHalGroup.h45 for (auto it = range.first; it != range.second; ++it) { in getHals() local
46 ret.push_back(&it->second); in getHals()
57 for (auto it = range.first; it != range.second; ++it) { in getHals() local
58 ret.push_back(&it->second); in getHals()
187 auto it = mHals.find(name); in getAnyHal() local
188 if (it == mHals.end()) { in getAnyHal()
191 return &(it->second); in getAnyHal()
197 auto it = mHals.emplace(std::move(name), std::move(hal)); // always succeeds in addInternal() local
198 return &it->second; in addInternal()
203 for (auto it = mHals.begin(); it != mHals.end();) { in removeHalsIf() local
[all …]
/system/connectivity/wificond/
Dserver.cpp72 for (const auto& it : wificond_event_callbacks_) { in registerWificondEventCallback() local
73 if (IInterface::asBinder(callback) == IInterface::asBinder(it)) { in registerWificondEventCallback()
84 for (auto it = wificond_event_callbacks_.begin(); in unregisterWificondEventCallback() local
85 it != wificond_event_callbacks_.end(); in unregisterWificondEventCallback()
86 it++) { in unregisterWificondEventCallback()
87 if (IInterface::asBinder(callback) == IInterface::asBinder(*it)) { in unregisterWificondEventCallback()
88 wificond_event_callbacks_.erase(it); in unregisterWificondEventCallback()
99 for (auto& it : interface_event_callbacks_) { in RegisterCallback() local
100 if (IInterface::asBinder(callback) == IInterface::asBinder(it)) { in RegisterCallback()
111 for (auto it = interface_event_callbacks_.begin(); in UnregisterCallback() local
[all …]
/system/core/libmodprobe/
Dlibmodprobe_ext_test.cpp44 for (auto it = modules_loaded.begin(); it != modules_loaded.end(); ++it) { in Insmod() local
45 if (android::base::StartsWith(*it, path_name)) { in Insmod()
64 for (auto it = modules_loaded.begin(); it != modules_loaded.end(); it++) { in Rmmod() local
65 if (*it == module_name || android::base::StartsWith(*it, module_name + " ")) { in Rmmod()
66 modules_loaded.erase(it); in Rmmod()
/system/nfc/src/fuzzers/rw/
Dt3t.cc264 for (auto it = ctx.Data.cbegin() + 1; it != ctx.Data.cend(); ++it) { in Fuzz_Run() local
266 p_msg = (NFC_HDR*)GKI_getbuf(sizeof(NFC_HDR) + it->size()); in Fuzz_Run()
268 FUZZLOG(MODULE_NAME ": GKI_getbuf returns null, size=%zu", it->size()); in Fuzz_Run()
273 p_msg->len = it->size(); in Fuzz_Run()
277 memcpy(p, it->data(), it->size()); in Fuzz_Run()
280 it - ctx.Data.cbegin(), ctx.Data.size() - 1, in Fuzz_Run()
281 BytesToHex(*it).c_str()); in Fuzz_Run()
292 for (auto it = Packets.begin() + 1; it != Packets.end(); ++it) { in Type3_FixPackets() local
294 if (it->size() < 3) { in Type3_FixPackets()
295 it->resize(3); in Type3_FixPackets()
[all …]
/system/libufdt/
Dufdt_node.c56 struct ufdt_node *it = ((struct ufdt_node_fdt_node *)node)->child; in ufdt_node_destruct() local
57 while (it != NULL) { in ufdt_node_destruct()
58 struct ufdt_node *next = it->sibling; in ufdt_node_destruct()
59 ufdt_node_destruct(it, pool); in ufdt_node_destruct()
60 it = next; in ufdt_node_destruct()
95 struct ufdt_node **it = NULL; in ufdt_node_get_subnode_by_name_len() local
96 for_each_node(it, node) { in ufdt_node_get_subnode_by_name_len()
97 if (ufdt_node_name_eq(*it, name, len)) return *it; in ufdt_node_get_subnode_by_name_len()
111 struct ufdt_node **it = NULL; in ufdt_node_get_property_by_name_len() local
112 for_each_prop(it, node) { in ufdt_node_get_property_by_name_len()
[all …]
/system/hwservicemanager/
DHidlService.cpp87 for (auto it = mListeners.begin(); it != mListeners.end();) { in removeListener() local
88 if (interfacesEqual(*it, listener.promote())) { in removeListener()
89 it = mListeners.erase(it); in removeListener()
92 ++it; in removeListener()
124 for (auto it = mClientCallbacks.begin(); it != mClientCallbacks.end();) { in removeClientCallback() local
125 if (interfacesEqual(*it, callback)) { in removeClientCallback()
126 it = mClientCallbacks.erase(it); in removeClientCallback()
129 ++it; in removeClientCallback()
214 for (auto it = mListeners.begin(); it != mListeners.end();) { in sendRegistrationNotifications() local
215 auto ret = (*it)->onRegistration(iface, name, false /* preexisting */); in sendRegistrationNotifications()
[all …]
/system/core/libbinderwrapper/
Dstub_binder_wrapper.cc38 const auto it = registered_services_.find(service_name); in GetRegisteredService() local
39 return it != registered_services_.end() ? it->second : sp<IBinder>(); in GetRegisteredService()
43 const auto it = death_callbacks_.find(binder); in NotifyAboutBinderDeath() local
44 if (it != death_callbacks_.end()) in NotifyAboutBinderDeath()
45 it->second.Run(); in NotifyAboutBinderDeath()
49 const auto it = services_to_return_.find(service_name); in GetService() local
50 return it != services_to_return_.end() ? it->second : sp<IBinder>(); in GetService()
/system/tools/aidl/tests/
Dfake_io_delegate.cpp49 auto it = file_contents_.find(filename); in GetFileContents() local
50 if (it == file_contents_.end()) { in GetFileContents()
54 *contents = it->second; in GetFileContents()
81 for (auto it = file_contents_.begin(); it != file_contents_.end(); it++) { in ListFiles() local
82 if (android::base::StartsWith(it->first, dir_name)) { in ListFiles()
83 files.emplace_back(it->first); in ListFiles()
94 const auto it = written_file_contents_.find(path); in GetWrittenContents() local
95 if (it == written_file_contents_.end()) { in GetWrittenContents()
99 *content = it->second; in GetWrittenContents()
/system/extras/simpleperf/
Dthread_tree.cpp79 if (auto it = thread_tree_.find(tid); it != thread_tree_.end()) { in FindThread() local
80 return it->second.get(); in FindThread()
86 auto it = thread_tree_.find(tid); in FindThreadOrNew() local
87 if (it != thread_tree_.end() && pid == it->second.get()->pid) { in FindThreadOrNew()
88 return it->second.get(); in FindThreadOrNew()
90 if (it != thread_tree_.end()) { in FindThreadOrNew()
91 ExitThread(it->second.get()->pid, tid); in FindThreadOrNew()
119 auto it = user_dso_tree_.find(name); in CreateThread() local
120 if (it != user_dso_tree_.end()) { in CreateThread()
121 AddThreadMapsForDsoSymbols(thread, it->second.get()); in CreateThread()
[all …]

12345678910>>...42