Home
last modified time | relevance | path

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

12345678910>>...34

/system/bt/gd/crypto_toolbox/
Dcrypto_toolbox.cc45 auto it = msg.begin(); in f4() local
46 it = std::copy(&z, &z + 1, it); in f4()
47 it = std::copy(v, v + OCTET32_LEN, it); in f4()
48 it = std::copy(u, u + OCTET32_LEN, it); in f4()
66 auto it = msg.begin(); in calculate_mac_key_or_ltk() local
67 it = std::copy(length, length + 2, it); in calculate_mac_key_or_ltk()
68 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
69 it = std::copy(a1, a1 + 7, it); in calculate_mac_key_or_ltk()
70 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
71 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk()
[all …]
/system/bt/stack/gatt/
Dconnection_manager.cc76 const std::map<RawAddress, tAPPS_CONNECTING>::iterator it) { in anyone_connecting() argument
77 return (!it->second.doing_bg_conn.empty() || in anyone_connecting()
78 !it->second.doing_direct_conn.empty()); in anyone_connecting()
86 auto it = bgconn_dev.find(address); in get_apps_connecting_to() local
87 return (it != bgconn_dev.end()) ? it->second.doing_bg_conn in get_apps_connecting_to()
98 auto it = bgconn_dev.find(address); in background_connect_add() local
100 if (it != bgconn_dev.end()) { in background_connect_add()
102 if (it->second.doing_bg_conn.count(app_id)) { in background_connect_add()
109 if (anyone_connecting(it)) { in background_connect_add()
127 auto it = bgconn_dev.find(address); in remove_unconditional() local
[all …]
/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/bt/stack/crypto_toolbox/
Dcrypto_toolbox.cc47 auto it = msg.begin(); in f4() local
48 it = std::copy(&z, &z + 1, it); in f4()
49 it = std::copy(v, v + BT_OCTET32_LEN, it); in f4()
50 it = std::copy(u, u + BT_OCTET32_LEN, it); in f4()
64 auto it = msg.begin(); in calculate_mac_key_or_ltk() local
65 it = std::copy(length, length + 2, it); in calculate_mac_key_or_ltk()
66 it = std::copy(a2, a2 + 7, it); in calculate_mac_key_or_ltk()
67 it = std::copy(a1, a1 + 7, it); in calculate_mac_key_or_ltk()
68 it = std::copy(n2.begin(), n2.end(), it); in calculate_mac_key_or_ltk()
69 it = std::copy(n1.begin(), n1.end(), it); in calculate_mac_key_or_ltk()
[all …]
/system/bt/gd/dumpsys/internal/
Dfilter_internal_test.cc133 for (auto it = object->fields()->cbegin(); it != object->fields()->cend(); ++it) { in TEST_F() local
134 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F()
148 for (auto it = object->fields()->cbegin(); it != object->fields()->cend(); ++it) { in TEST_F() local
150 **it, table, bluetooth::dumpsys::internal::PrivacyLevel::kAnonymized); in TEST_F()
164 for (auto it = object->fields()->cbegin(); it != object->fields()->cend(); ++it) { in TEST_F() local
165 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F()
179 for (auto it = object->fields()->cbegin(); it != object->fields()->cend(); ++it) { in TEST_F() local
180 …bluetooth::dumpsys::internal::FilterTypeInteger(**it, table, bluetooth::dumpsys::internal::Privacy… in TEST_F()
194 for (auto it = object->fields()->cbegin(); it != object->fields()->cend(); ++it) { in TEST_F() local
195 …bluetooth::dumpsys::internal::FilterTypeFloat(**it, table, bluetooth::dumpsys::internal::PrivacyLe… in TEST_F()
[all …]
/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 …]
/system/bt/gd/security/record/
Dsecurity_record_database.h33 auto it = Find(address); in FindOrCreate() local
35 if (it != records_.end()) return *it; in FindOrCreate()
44 auto it = Find(address); in Remove() local
47 if (it == records_.end()) return; in Remove()
49 records_.erase(it); in Remove()
53 for (auto it = records_.begin(); it != records_.end(); ++it) { in Find() local
54 std::shared_ptr<SecurityRecord> record = *it; in Find()
55 … (record->identity_address_.has_value() && record->identity_address_.value() == address) return it; in Find()
56 if (record->GetPseudoAddress() == address) return it; in Find()
57 if (record->irk.has_value() && address.IsRpaThatMatchesIrk(record->irk.value())) return it; in Find()
/system/bt/gd/dumpsys/
Dreflection_schema.cc51 for (auto it = map->cbegin(); it != map->cend(); ++it) { in FindInReflectionSchema() local
52 if (it->name()->str() == name) { in FindInReflectionSchema()
53 …flatbuffers::Verifier verifier(reinterpret_cast<const uint8_t*>(it->data()->Data()), it->data()->s… in FindInReflectionSchema()
58 return reflection::GetSchema(it->data()->Data()); in FindInReflectionSchema()
70 for (auto it = map->cbegin(); it != map->cend(); ++it) { in PrintReflectionSchema() local
71 LOG_INFO(" schema:%s", it->name()->c_str()); in PrintReflectionSchema()
78 for (auto it = map->cbegin(); it != map->cend(); ++it) { in VerifyReflectionSchema() local
79 …flatbuffers::Verifier verifier(reinterpret_cast<const uint8_t*>(it->data()->Data()), it->data()->s… in VerifyReflectionSchema()
/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/core/logd/
DChattyLogBuffer.cpp177 LogBufferElementCollection::iterator ChattyLogBuffer::Erase(LogBufferElementCollection::iterator it, in Erase() argument
179 LogBufferElement& element = *it; in Erase()
188 if ((found != mLastWorst[id].end()) && (it == found->second)) { in Erase()
198 if (found != mLastWorstPidOfSystem[id].end() && it == found->second) { in Erase()
204 LogBufferElementCollection::iterator bad = it; in Erase()
214 it = SimpleLogBuffer::Erase(it); in Erase()
230 return it; in Erase()
243 LogBufferElementMap::iterator it = map.find(key); in coalesce() local
244 if (it != map.end()) { in coalesce()
245 LogBufferElement* found = it->second; in coalesce()
[all …]
DSimpleLogBuffer.cpp45 auto it = logs().begin(); in GetOldest() local
47 it = *oldest_[log_id]; in GetOldest()
49 while (it != logs().end() && it->log_id() != log_id) { in GetOldest()
50 it++; in GetOldest()
52 if (it != logs().end()) { in GetOldest()
53 oldest_[log_id] = it; in GetOldest()
55 return it; in GetOldest()
142 std::list<LogBufferElement>::iterator it; in FlushTo() local
145 it = logs_.begin(); in FlushTo()
149 for (it = logs_.end(); it != logs_.begin(); in FlushTo()
[all …]
/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/update_engine/payload_generator/
Dextent_ranges.cc86 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in AddExtent() local
87 it != e; in AddExtent()
88 ++it) { in AddExtent()
89 if (ExtentsOverlapOrTouch(*it, extent)) { in AddExtent()
90 end_del = it; in AddExtent()
92 del_blocks += it->num_blocks(); in AddExtent()
94 begin_del = it; in AddExtent()
96 extent = UnionOverlappingExtents(extent, *it); in AddExtent()
131 for (ExtentSet::iterator it = extent_set_.begin(), e = extent_set_.end(); in SubtractExtent() local
132 it != e; in SubtractExtent()
[all …]
/system/bt/gd/packet/
Dendian_inserter.h43 void insert(FixedWidthPODType value, BitInserter& it) const { in insert() argument
47 it.insert_byte(raw_bytes[i]); in insert()
49 it.insert_byte(raw_bytes[sizeof(FixedWidthPODType) - i - 1]); in insert()
58 void insert(const T& value, BitInserter& it) const { in insert() argument
62 it.insert_byte(raw_bytes[i]); in insert()
64 it.insert_byte(raw_bytes[CustomFieldFixedSizeInterface<T>::length() - i - 1]); in insert()
72 void insert(FixedWidthIntegerType value, BitInserter& it, size_t num_bits) const { in insert() argument
77 it.insert_byte(static_cast<uint8_t>(value >> (i * 8))); in insert()
79 it.insert_byte(static_cast<uint8_t>(value >> (((num_bits / 8) - i - 1) * 8))); in insert()
83 it.insert_bits(static_cast<uint8_t>(value >> ((num_bits / 8) * 8)), num_bits % 8); in insert()
[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/bt/gd/packet/parser/
Ddeclarations.h33 auto it = type_defs_.find(name); in AddTypeDef() local
34 if (it != type_defs_.end()) { in AddTypeDef()
42 auto it = type_defs_.find(name); in GetTypeDef() local
43 if (it == type_defs_.end()) { in GetTypeDef()
47 return it->second; in GetTypeDef()
51 auto it = packet_defs_.find(name); in AddPacketDef() local
52 if (it != packet_defs_.end()) { in AddPacketDef()
60 auto it = packet_defs_.find(name); in GetPacketDef() local
61 if (it == packet_defs_.end()) { in GetPacketDef()
65 return &(it->second); in GetPacketDef()
[all …]
/system/libufdt/
Dufdt_node.c48 struct ufdt_node *it = ((struct ufdt_node_fdt_node *)node)->child; in ufdt_node_destruct() local
49 while (it != NULL) { in ufdt_node_destruct()
50 struct ufdt_node *next = it->sibling; in ufdt_node_destruct()
51 ufdt_node_destruct(it, pool); in ufdt_node_destruct()
52 it = next; in ufdt_node_destruct()
87 struct ufdt_node **it = NULL; in ufdt_node_get_subnode_by_name_len() local
88 for_each_node(it, node) { in ufdt_node_get_subnode_by_name_len()
89 if (ufdt_node_name_eq(*it, name, len)) return *it; in ufdt_node_get_subnode_by_name_len()
103 struct ufdt_node **it = NULL; in ufdt_node_get_property_by_name_len() local
104 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/bt/gd/
Dmodule.cc68 for (auto it = modules->list_.begin(); it != modules->list_.end(); it++) { in Start() local
69 Start(*it, thread); in Start()
98 for (auto it = start_order_.rbegin(); it != start_order_.rend(); it++) { in StopAll() local
99 auto instance = started_modules_.find(*it); in StopAll()
109 for (auto it = start_order_.rbegin(); it != start_order_.rend(); it++) { in StopAll() local
110 auto instance = started_modules_.find(*it); in StopAll()
136 …for (auto it = module_registry_.start_order_.rbegin(); it != module_registry_.start_order_.rend();… in DumpState() local
137 auto instance = module_registry_.started_modules_.find(*it); in DumpState()
/system/linkerconfig/modules/
Dsection.cc127 if (auto it = providers.find(lib); it != providers.end()) { in Resolve() local
128 ns.GetLink(it->second).AddSharedLib(lib); in Resolve()
129 } else if (auto it = apex_providers.find(lib); it != apex_providers.end()) { in Resolve() local
130 ns.GetLink(it->second.namespace_name).AddSharedLib(lib); in Resolve()
132 add_namespace(it->second.namespace_name, [&]() { in Resolve()
133 return ctx.BuildApexNamespace(it->second, false); in Resolve()
135 } else if (auto it = lib_providers.find(lib); it != lib_providers.end()) { in Resolve() local
138 ns.GetLink(it->second.ns).AddSharedLib(it->second.shared_libs); in Resolve()
140 add_namespace(it->second.ns, it->second.ns_builder); in Resolve()
/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/bt/packet/avrcp/
Dget_item_attributes.cc88 auto it = begin() + BrowsePacket::kMinSize(); in GetScope() local
89 return static_cast<Scope>(*it); in GetScope()
93 auto it = begin() + BrowsePacket::kMinSize() + static_cast<size_t>(1); in GetUid() local
94 return it.extractBE<uint64_t>(); in GetUid()
98 auto it = begin() + BrowsePacket::kMinSize() + static_cast<size_t>(9); in GetUidCounter() local
99 return it.extractBE<uint16_t>(); in GetUidCounter()
103 auto it = begin() + BrowsePacket::kMinSize() + static_cast<size_t>(11); in GetNumAttributes() local
104 return *it; in GetNumAttributes()
109 auto it = begin() + BrowsePacket::kMinSize() + static_cast<size_t>(11); in GetAttributesRequested() local
110 size_t number_of_attributes = it.extract<uint8_t>(); in GetAttributesRequested()
[all …]

12345678910>>...34