/system/core/logd/ |
D | LogWhiteBlackList.cpp | 58 PruneCollection::iterator it; in ~PruneList() local 59 for (it = mNice.begin(); it != mNice.end();) { in ~PruneList() 60 it = mNice.erase(it); in ~PruneList() 62 for (it = mNaughty.begin(); it != mNaughty.end();) { in ~PruneList() 63 it = mNaughty.erase(it); in ~PruneList() 70 PruneCollection::iterator it; in init() local 71 for (it = mNice.begin(); it != mNice.end();) { in init() 72 it = mNice.erase(it); in init() 74 for (it = mNaughty.begin(); it != mNaughty.end();) { in init() 75 it = mNaughty.erase(it); in init() [all …]
|
D | LogBuffer.cpp | 158 LogBufferElementCollection::iterator it = mLogElements.begin(); in init() local 159 while((it != mLogElements.end())) { in init() 160 LogBufferElement *e = *it; in init() 170 ++it; in init() 235 LogBufferElementCollection::iterator it = mLogElements.end(); in log() local 236 LogBufferElementCollection::iterator last = it; in log() 238 --it; in log() 239 if ((*it)->getRealTime() <= realtime) { in log() 242 last = it; in log() 312 LogBufferElementCollection::iterator it, bool coalesce) { in erase() argument [all …]
|
/system/extras/memtrack/ |
D | memtrack.cpp | 171 for (processes_t::iterator it = all_.begin(); it != all_.end(); ++it) { in scan() local 172 it->second.pids.clear(); in scan() 199 for (cur_processes_t::const_iterator it = cur_.begin(); in scan() local 200 it != cur_.end(); ++it) { in scan() 202 if (all_.count(it->first) == 0) { in scan() 204 all_[it->first].num_samples = 0; in scan() 205 all_[it->first].name = it->first; in scan() 206 all_[it->first].avg_pss_kb = 0; in scan() 207 all_[it->first].min_pss_kb = 0; in scan() 208 all_[it->first].max_pss_kb = 0; in scan() [all …]
|
/system/connectivity/shill/ |
D | key_value_store.cc | 133 const auto it(properties_.find(name)); in GetBool() local 134 CHECK(it != properties_.end() && it->second.IsTypeCompatible<bool>()) in GetBool() 136 return it->second.Get<bool>(); in GetBool() 141 const auto it(properties_.find(name)); in GetByteArrays() local 142 CHECK(it != properties_.end() && in GetByteArrays() 143 it->second.IsTypeCompatible<vector<vector<uint8_t>>>()) in GetByteArrays() 145 return it->second.Get<vector<vector<uint8_t>>>(); in GetByteArrays() 149 const auto it(properties_.find(name)); in GetInt() local 150 CHECK(it != properties_.end() && it->second.IsTypeCompatible<int32_t>()) in GetInt() 152 return it->second.Get<int32_t>(); in GetInt() [all …]
|
D | property_store.cc | 126 ReadablePropertyConstIterator<bool> it = GetBoolPropertiesIter(); in GetProperties() local 127 for ( ; !it.AtEnd(); it.Advance()) { in GetProperties() 128 out->insert(std::make_pair(it.Key(), brillo::Any(it.value()))); in GetProperties() 132 ReadablePropertyConstIterator<int16_t> it = GetInt16PropertiesIter(); in GetProperties() local 133 for ( ; !it.AtEnd(); it.Advance()) { in GetProperties() 134 out->insert(std::make_pair(it.Key(), brillo::Any(it.value()))); in GetProperties() 138 ReadablePropertyConstIterator<int32_t> it = GetInt32PropertiesIter(); in GetProperties() local 139 for ( ; !it.AtEnd(); it.Advance()) { in GetProperties() 140 out->insert(std::make_pair(it.Key(), brillo::Any(it.value()))); in GetProperties() 144 ReadablePropertyConstIterator<RpcIdentifier> it = in GetProperties() local [all …]
|
D | property_store_unittest.cc | 342 ReadablePropertyConstIterator<bool> it = store.GetBoolPropertiesIter(); in TEST_F() local 343 EXPECT_FALSE(it.AtEnd()); in TEST_F() 344 EXPECT_EQ(keys[1], it.Key()); in TEST_F() 345 EXPECT_TRUE(values[1] == it.value()); in TEST_F() 346 it.Advance(); in TEST_F() 347 EXPECT_TRUE(it.AtEnd()); in TEST_F() 363 ReadablePropertyConstIterator<int16_t> it = store.GetInt16PropertiesIter(); in TEST_F() local 364 EXPECT_FALSE(it.AtEnd()); in TEST_F() 365 EXPECT_EQ(keys[1], it.Key()); in TEST_F() 366 EXPECT_EQ(values[1], it.value()); in TEST_F() [all …]
|
/system/update_engine/payload_generator/ |
D | graph_utils.cc | 42 for (vector<Extent>::const_iterator it = extents.begin(); in EdgeWeight() local 43 it != extents.end(); ++it) { in EdgeWeight() 44 if (it->start_block() != kSparseHole) in EdgeWeight() 45 weight += it->num_blocks(); in EdgeWeight() 68 for (vector<Extent>::const_iterator it = extents.begin(), e = extents.end(); in AddReadBeforeDepExtents() local 69 it != e; ++it) { in AddReadBeforeDepExtents() 70 const Extent& extent = *it; in AddReadBeforeDepExtents() 81 for (Vertex::EdgeMap::iterator it = edge_map->begin(); in DropWriteBeforeDeps() local 82 it != edge_map->end(); ) { in DropWriteBeforeDeps() 83 if (!it->second.write_extents.empty()) in DropWriteBeforeDeps() [all …]
|
D | extent_ranges.cc | 85 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in AddExtent() local 86 it != e; ++it) { in AddExtent() 87 if (ExtentsOverlapOrTouch(*it, extent)) { in AddExtent() 88 end_del = it; in AddExtent() 90 del_blocks += it->num_blocks(); in AddExtent() 92 begin_del = it; in AddExtent() 94 extent = UnionOverlappingExtents(extent, *it); in AddExtent() 129 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in SubtractExtent() local 130 it != e; ++it) { in SubtractExtent() 131 if (!ExtentsOverlap(*it, extent)) in SubtractExtent() [all …]
|
D | cycle_breaker.cc | 79 for (vector<Vertex::Index>::iterator it = component_indexes.begin(); in BreakCycles() local 80 it != component_indexes.end(); ++it) { in BreakCycles() 81 subgraph_[*it].subgraph_edges.clear(); in BreakCycles() 86 if (utils::MapContainsKey(subgraph_[*it].out_edges, *jt)) in BreakCycles() 87 subgraph_[*it].subgraph_edges.insert(*jt); in BreakCycles() 113 for (vector<Vertex::Index>::const_iterator it = stack_.begin(); in HandleCircuit() local 114 it != (stack_.end() - 1); ++it) { in HandleCircuit() 115 Edge edge = make_pair(*it, *(it + 1)); in HandleCircuit() 136 for (Vertex::EdgeMap::iterator it = blocked_graph_[u].out_edges.begin(); in Unblock() local 137 it != blocked_graph_[u].out_edges.end(); ) { in Unblock() [all …]
|
D | tarjan.cc | 40 for (Graph::iterator it = graph->begin(); it != graph->end(); ++it) in Execute() local 41 it->index = it->lowlink = kInvalidIndex; in Execute() 55 for (Vertex::EdgeMap::iterator it = (*graph)[vertex].out_edges.begin(); in Tarjan() local 56 it != (*graph)[vertex].out_edges.end(); ++it) { in Tarjan() 57 Vertex::Index vertex_next = it->first; in Tarjan()
|
/system/core/libmemunreachable/ |
D | MemUnreachable.cpp | 91 for (auto it = heap_mappings.begin(); it != heap_mappings.end(); it++) { in CollectAllocations() local 92 ALOGV("Heap mapping %" PRIxPTR "-%" PRIxPTR " %s", it->begin, it->end, it->name); in CollectAllocations() 93 HeapIterate(*it, [&](uintptr_t base, size_t size) { in CollectAllocations() 98 for (auto it = anon_mappings.begin(); it != anon_mappings.end(); it++) { in CollectAllocations() local 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() local 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() 109 for (auto it = stack_mappings.begin(); it != stack_mappings.end(); it++) { in CollectAllocations() local [all …]
|
D | HeapWalker.cpp | 63 AllocationMap::iterator it = allocations_.find(Range{value, value + 1}); in WordContainsAllocationPtr() local 64 if (it != allocations_.end()) { in WordContainsAllocationPtr() 65 *range = it->first; in WordContainsAllocationPtr() 66 *info = &it->second; in WordContainsAllocationPtr() 106 for (auto it = roots_.begin(); it != roots_.end(); it++) { in DetectLeaks() local 107 RecurseRoot(*it); in DetectLeaks() 125 for (auto it = allocations_.begin(); it != allocations_.end(); it++) { in Leaked() local 126 if (!it->second.referenced_from_root) { in Leaked() 128 leak_bytes += it->first.end - it->first.begin; in Leaked() 133 for (auto it = allocations_.begin(); it != allocations_.end(); it++) { in Leaked() local [all …]
|
D | ThreadCapture.cpp | 161 for (auto it = tids.begin(); it != tids.end(); it++) { in CaptureThreads() local 162 auto captured = captured_threads_.find(*it); in CaptureThreads() 164 if (CaptureThread(*it) < 0) { in CaptureThreads() 302 auto it = captured_threads_.find(tid); in ReleaseThread() local 303 if (it == captured_threads_.end()) { in ReleaseThread() 306 return ReleaseThread(it->first, it->second); in ReleaseThread() 316 for (auto it = captured_threads_.begin(); it != captured_threads_.end(); ) { in ReleaseThreads() local 317 if (ReleaseThread(it->first, it->second)) { in ReleaseThreads() 318 it = captured_threads_.erase(it); in ReleaseThreads() 320 it++; in ReleaseThreads() [all …]
|
D | LeakFolding.cpp | 47 for (auto& it : leak_map_) { in ComputeDAG() local 48 LeakInfo& leak = it.second; in ComputeDAG() 79 auto it = leak_map_.emplace(std::piecewise_construct, in FoldLeaks() local 82 LeakInfo& leak = it.first->second; in FoldLeaks() 88 for (auto& it : leak_map_) { in FoldLeaks() local 89 LeakInfo& leak = it.second; in FoldLeaks() 117 for (auto& it : leak_map_) { in Leaked() local 118 const LeakInfo& leak = it.second; in Leaked() 123 for (auto& it : leak_map_) { in Leaked() local 124 const LeakInfo& leak = it.second; in Leaked()
|
/system/netd/server/ |
D | PppController.cpp | 43 TtyCollection::iterator it; in ~PppController() local 45 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in ~PppController() 46 free(*it); in ~PppController() 62 TtyCollection::iterator it; in attachPppd() local 63 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in attachPppd() 64 if (!strcmp(tty, *it)) { in attachPppd() 68 if (it == mTtys->end()) { in attachPppd() 131 TtyCollection::iterator it; in updateTtyList() local 133 for (it = mTtys->begin(); it != mTtys->end(); ++it) { in updateTtyList() 134 free(*it); in updateTtyList()
|
/system/core/libsysutils/src/ |
D | SocketListener.cpp | 64 SocketClientCollection::iterator it; in ~SocketListener() local 65 for (it = mClients->begin(); it != mClients->end();) { in ~SocketListener() 66 (*it)->decRef(); in ~SocketListener() 67 it = mClients->erase(it); in ~SocketListener() 136 SocketClientCollection::iterator it; in stopListener() local 137 for (it = mClients->begin(); it != mClients->end();) { in stopListener() 138 delete (*it); in stopListener() 139 it = mClients->erase(it); in stopListener() 157 SocketClientCollection::iterator it; in runListener() local 174 for (it = mClients->begin(); it != mClients->end(); ++it) { in runListener() [all …]
|
/system/extras/simpleperf/ |
D | thread_tree.cpp | 46 auto it = thread_tree_.find(tid); in AddThread() local 47 if (it == thread_tree_.end()) { in AddThread() 55 it = pair.first; in AddThread() 58 it->second->comm = thread_comm_storage_.back()->c_str(); in AddThread() 69 auto it = thread_tree_.find(tid); in FindThreadOrNew() local 70 if (it == thread_tree_.end()) { in FindThreadOrNew() 72 it = thread_tree_.find(tid); in FindThreadOrNew() 74 if (pid != it->second.get()->pid) { in FindThreadOrNew() 76 LOG(DEBUG) << "unexpected (pid, tid) pair: expected (" << it->second.get()->pid << ", " << tid in FindThreadOrNew() 80 return it->second.get(); in FindThreadOrNew() [all …]
|
/system/core/libbinderwrapper/ |
D | stub_binder_wrapper.cc | 38 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/update_engine/update_manager/ |
D | evaluation_context.cc | 88 for (auto& it : value_cache_) { in RemoveObserversAndTimeout() local 89 if (it.first->GetMode() == kVariableModeAsync) in RemoveObserversAndTimeout() 90 it.first->RemoveObserver(this); in RemoveObserversAndTimeout() 149 for (auto it = value_cache_.begin(); it != value_cache_.end(); ) { in ResetEvaluation() local 150 if (it->first->GetMode() == kVariableModeConst) { in ResetEvaluation() 151 ++it; in ResetEvaluation() 153 it = value_cache_.erase(it); in ResetEvaluation() 185 for (auto& it : value_cache_) { in RunOnValueChangeOrTimeout() local 186 switch (it.first->GetMode()) { in RunOnValueChangeOrTimeout() 188 DLOG(INFO) << "Waiting for value on " << it.first->GetName(); in RunOnValueChangeOrTimeout() [all …]
|
/system/connectivity/shill/ethernet/ |
D | ethernet_eap_provider.cc | 99 CallbackMap::iterator it = callback_map_.find(device); in ClearCredentialChangeCallback() local 100 if (it != callback_map_.end()) { in ClearCredentialChangeCallback() 101 callback_map_.erase(it); in ClearCredentialChangeCallback() 106 CallbackMap::const_iterator it; in OnCredentialsChanged() local 107 for (it = callback_map_.begin(); it != callback_map_.end(); ++it) { in OnCredentialsChanged() 108 CHECK(!it->second.is_null()); in OnCredentialsChanged() 109 it->second.Run(); in OnCredentialsChanged()
|
/system/extras/perfprofd/ |
D | configreader.cc | 161 auto it = u_entries.find(ks); in getUnsignedValue() local 162 assert(it != u_entries.end()); in getUnsignedValue() 163 return it->second; in getUnsignedValue() 169 auto it = s_entries.find(ks); in getStringValue() local 170 assert(it != s_entries.end()); in getStringValue() 171 return it->second; in getStringValue() 177 auto it = u_entries.find(ks); in overrideUnsignedEntry() local 178 assert(it != u_entries.end()); in overrideUnsignedEntry() 184 it->second = new_value; in overrideUnsignedEntry() 240 for (std::string::const_iterator it = line.begin(); it != line.end(); ++it) in isblank() local [all …]
|
/system/tpm/tpm_manager/server/ |
D | mock_tpm_nvram.cc | 56 auto it = nvram_map_.find(index); in FakeDestroyNvram() local 57 if (it == nvram_map_.end()) { in FakeDestroyNvram() 60 nvram_map_.erase(it); in FakeDestroyNvram() 65 auto it = nvram_map_.find(index); in FakeWriteNvram() local 66 if (it == nvram_map_.end()) { in FakeWriteNvram() 69 NvSpace& nv = it->second; in FakeWriteNvram() 79 auto it = nvram_map_.find(index); in FakeReadNvram() local 80 if (it == nvram_map_.end()) { in FakeReadNvram() 83 const NvSpace& nv = it->second; in FakeReadNvram()
|
/system/webservd/webservd/ |
D | config_unittest.cc | 92 auto it = config.protocol_handlers.begin(); in ValidateConfig() local 93 EXPECT_EQ("ue_p2p", it->name); in ValidateConfig() 94 EXPECT_EQ(16725u, it->port); in ValidateConfig() 95 EXPECT_FALSE(it->use_tls); in ValidateConfig() 96 EXPECT_TRUE(it->certificate.empty()); in ValidateConfig() 97 EXPECT_TRUE(it->certificate_fingerprint.empty()); in ValidateConfig() 98 EXPECT_TRUE(it->private_key.empty()); in ValidateConfig() 158 auto it = config.protocol_handlers.begin(); in TEST() local 159 EXPECT_EQ("http", it->name); in TEST() 160 EXPECT_EQ(80, it->port); in TEST() [all …]
|
/system/connectivity/dhcp_client/ |
D | manager.cc | 42 for (auto it = services_.begin(); it != services_.end(); ++it) { in StopService() local 43 if (*it == service) { in StopService() 44 services_.erase(it); in StopService()
|
/system/connectivity/shill/wimax/ |
D | wimax_provider.cc | 128 for (auto it = networks_.begin(); it != networks_.end(); ) { in OnNetworksChanged() local 129 const RpcIdentifier& path = it->first; in OnNetworksChanged() 131 ++it; in OnNetworksChanged() 134 it = networks_.erase(it); in OnNetworksChanged() 364 for (auto it = pending_devices_.begin(); it != pending_devices_.end(); ) { in DestroyDeadDevices() local 365 if (find(live_devices.begin(), live_devices.end(), it->second) == in DestroyDeadDevices() 367 LOG(INFO) << "Forgetting pending device: " << it->second; in DestroyDeadDevices() 368 it = pending_devices_.erase(it); in DestroyDeadDevices() 370 ++it; in DestroyDeadDevices() 373 for (auto it = devices_.begin(); it != devices_.end(); ) { in DestroyDeadDevices() local [all …]
|