Home
last modified time | relevance | path

Searched refs:pair (Results 1 – 25 of 261) sorted by relevance

1234567891011

/system/bt/gd/packet/parser/
Denum_gen.cc30 for (const auto& pair : e_.constants_) { in GenDefinition() local
31 stream << pair.second << " = 0x" << std::hex << pair.first << std::dec << ","; in GenDefinition()
38 for (const auto& pair : e_.constants_) { in GenDefinitionPybind11() local
39 stream << ".value(\"" << pair.second << "\", " << e_.name_ << "::" << pair.second << ")"; in GenDefinitionPybind11()
48 for (const auto& pair : e_.constants_) { in GenLogging() local
49 stream << "case " << e_.name_ << "::" << pair.second << ":"; in GenLogging()
50 stream << " return \"" << pair.second << "\";"; in GenLogging()
Ddeclarations.h37 type_defs_.insert(std::pair(name, def)); in AddTypeDef()
38 type_defs_queue_.push_back(std::pair(name, def)); in AddTypeDef()
55 packet_defs_.insert(std::pair(name, def)); in AddPacketDef()
56 packet_defs_queue_.push_back(std::pair(name, def)); in AddPacketDef()
73 group_defs_.insert(std::pair(name, group_def)); in AddGroupDef()
87 std::deque<std::pair<std::string, TypeDef*>> type_defs_queue_;
89 std::deque<std::pair<std::string, PacketDef>> packet_defs_queue_;
/system/extras/simpleperf/
Dthread_tree_test.cpp41 for (auto& pair : thread->maps->maps) { in CheckMaps() local
42 ASSERT_GE(pair.first, prev_end); in CheckMaps()
43 prev_end = pair.second->get_end_addr(); in CheckMaps()
44 ASSERT_EQ(pair.second->start_addr, pair.first); in CheckMaps()
45 ASSERT_GT(pair.second->len, 0u); in CheckMaps()
46 ASSERT_EQ(pair.second->pgoff, pair.first); in CheckMaps()
47 if (names.size() < pair.second->get_end_addr()) { in CheckMaps()
48 names.resize(pair.second->get_end_addr()); in CheckMaps()
50 for (uint64_t i = pair.first; i < pair.second->get_end_addr(); ++i) { in CheckMaps()
51 names[i] = pair.second->dso->Path(); in CheckMaps()
Drecord_file_writer.cpp401 for (auto& pair : info_map) { in WriteMetaInfoFeature() local
402 size += pair.first.size() + 1; in WriteMetaInfoFeature()
403 size += pair.second.size() + 1; in WriteMetaInfoFeature()
407 for (auto& pair : info_map) { in WriteMetaInfoFeature() local
408 MoveToBinaryFormat(pair.first.c_str(), pair.first.size() + 1, p); in WriteMetaInfoFeature()
409 MoveToBinaryFormat(pair.second.c_str(), pair.second.size() + 1, p); in WriteMetaInfoFeature()
451 for (const auto& pair : features_) { in EndWriteFeatures() local
452 if (!Write(&pair.second, sizeof(SectionDesc))) { in EndWriteFeatures()
469 for (const auto& pair : features_) { in WriteFileHeader() local
470 int i = pair.first / 8; in WriteFileHeader()
[all …]
Dcommand.h116 auto pair = values.equal_range(name); in PullValues() local
117 if (pair.first != pair.second) { in PullValues()
119 for (auto it = pair.first; it != pair.second; ++it) { in PullValues()
167 std::vector<std::pair<OptionName, OptionValue>>* ordered_options,
/system/apex/apexd/
Dapex_database.h87 for (const auto& pair : apex_set.second) { in CheckAtMostOneLatest() local
88 if (pair.second) { in CheckAtMostOneLatest()
100 for (const auto& pair : apex_set.second) { in CheckUniqueLoopDm() local
101 if (pair.first.loop_name != "") { in CheckUniqueLoopDm()
102 CHECK(loop_devices.insert(pair.first.loop_name).second) in CheckUniqueLoopDm()
103 << "Duplicate loop device: " << pair.first.loop_name; in CheckUniqueLoopDm()
105 if (pair.first.device_name != "") { in CheckUniqueLoopDm()
106 CHECK(dm_devices.insert(pair.first.device_name).second) in CheckUniqueLoopDm()
107 << "Duplicate dm device: " << pair.first.device_name; in CheckUniqueLoopDm()
109 if (pair.first.hashtree_loop_name != "") { in CheckUniqueLoopDm()
[all …]
/system/bt/bta/gatt/
Ddatabase_builder.h29 constexpr static std::pair<uint16_t, uint16_t> EXPLORE_END =
46 const std::pair<uint16_t, uint16_t>& CurrentlyExploredService();
51 std::pair<uint16_t, uint16_t> NextDescriptorRangeToExplore();
74 std::pair<uint16_t, uint16_t> pending_service;
80 std::set<std::pair<uint16_t, uint16_t>> services_to_discover;
/system/core/init/
Dpersistent_properties_test.cpp34 const std::vector<std::pair<std::string, std::string>>& input_properties) { in VectorToPersistentProperties()
46 void CheckPropertiesEqual(std::vector<std::pair<std::string, std::string>> expected, in CheckPropertiesEqual()
59 auto joiner = [](const std::vector<std::pair<std::string, std::string>>& vector) { in CheckPropertiesEqual()
74 std::vector<std::pair<std::string, std::string>> persistent_properties = { in TEST()
98 std::vector<std::pair<std::string, std::string>> persistent_properties = { in TEST()
106 std::vector<std::pair<std::string, std::string>> persistent_properties_expected = { in TEST()
120 std::vector<std::pair<std::string, std::string>> persistent_properties = { in TEST()
129 std::vector<std::pair<std::string, std::string>> persistent_properties_expected = { in TEST()
Drlimit_parser_test.cpp27 const std::pair<int, rlimit>& expected_result) { in TestRlimitSuccess()
51 const std::vector<std::pair<std::vector<std::string>, std::pair<int, rlimit>>> in TEST()
111 const std::vector<std::pair<std::vector<std::string>, std::string>> inputs_and_results = { in TEST()
Drlimit_parser.cpp31 Result<std::pair<int, rlimit>> ParseRlimit(const std::vector<std::string>& args) { in ParseRlimit()
32 static const std::vector<std::pair<const char*, int>> text_to_resources = { in ParseRlimit()
80 return std::pair{resource, limit}; in ParseRlimit()
/system/libziparchive/
Dzip_cd_entry_map.h40 virtual std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name,
47 virtual std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) = 0;
78 std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name,
81 std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) override;
103 std::pair<ZipError, uint64_t> GetCdEntryOffset(std::string_view name,
106 std::pair<std::string_view, uint64_t> Next(const uint8_t* cd_start) override;
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dacl_connection_handler.cc77 for (auto pair : acl_connections_) { in CreatePendingLeConnection() local
78 auto connection = std::get<AclConnection>(pair); in CreatePendingLeConnection()
141 for (auto pair : acl_connections_) { in GetHandle() local
142 if (std::get<AclConnection>(pair).GetAddress() == addr) { in GetHandle()
143 return std::get<0>(pair); in GetHandle()
151 for (auto pair : acl_connections_) { in GetHandleOnlyAddress() local
152 if (std::get<AclConnection>(pair).GetAddress().GetAddress() == addr) { in GetHandleOnlyAddress()
153 return std::get<0>(pair); in GetHandleOnlyAddress()
/system/core/libsysutils/src/
DSocketListener.cpp67 for (auto pair : mClients) { in ~SocketListener() local
68 pair.second->decRef(); in ~SocketListener()
136 for (auto pair : mClients) { in stopListener() local
137 delete pair.second; in stopListener()
159 for (auto pair : mClients) { in runListener() local
161 const int fd = pair.second->getSocket(); in runListener()
162 if (fd != pair.first) SLOGE("fd mismatch: %d != %d", fd, pair.first); in runListener()
250 for (auto pair : mClients) { in snapshotClients() local
251 SocketClient* c = pair.second; in snapshotClients()
/system/libvintf/include/vintf/
DXmlFileGroup.h37 using const_range = std::pair<typename map::const_iterator, typename map::const_iterator>;
62 for (auto& pair : other->mXmlFiles) { in addAllXmlFiles()
63 if (!addXmlFile(std::move(pair.second))) { in addAllXmlFiles()
65 *error = "XML File \"" + pair.first + "\" has a conflict."; in addAllXmlFiles()
DVersion.h32 constexpr Version(const std::pair<size_t, size_t>& pair) in Version()
33 : majorVer(pair.first), minorVer(pair.second) {} in Version()
/system/incremental_delivery/incfs/tests/
DMountRegistry_test.cpp75 ASSERT_EQ(std::pair("/root"sv, ""s), r().rootAndSubpathFor("/root")); in TEST_F()
76 ASSERT_EQ(std::pair("/root"sv, "1"s), r().rootAndSubpathFor("/bind")); in TEST_F()
77 ASSERT_EQ(std::pair("/root"sv, "2/3"s), r().rootAndSubpathFor("/bind2")); in TEST_F()
78 ASSERT_EQ(std::pair("/root"sv, "2/3/blah"s), r().rootAndSubpathFor("/bind2/blah")); in TEST_F()
79 ASSERT_EQ(std::pair("/root"sv, "2/3/blah"s), r().rootAndSubpathFor("/other/bind/blah")); in TEST_F()
/system/chre/host/common/
Dsocket_server.cc92 for (const auto& pair : mClients) { in run() local
93 int clientSocket = pair.first; in run()
96 pair.second.clientId, strerror(errno)); in run()
109 for (const auto& pair : mClients) { in sendToAllClients() local
110 int clientSocket = pair.first; in sendToAllClients()
111 uint16_t clientId = pair.second.clientId; in sendToAllClients()
131 for (const auto& pair : mClients) { in sendToClientById() local
132 uint16_t thisClientId = pair.second.clientId; in sendToClientById()
134 int clientSocket = pair.first; in sendToClientById()
/system/bt/btif/src/
Dbtif_sock_sco.cc135 int pair[2] = {INVALID_FD, INVALID_FD}; in sco_socket_establish_locked() local
140 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, pair) == -1) { in sco_socket_establish_locked()
161 socket = socket_new_from_fd(pair[1]); in sco_socket_establish_locked()
164 pair[1]); in sco_socket_establish_locked()
168 *sock_fd = pair[0]; // Transfer ownership of one end to caller. in sco_socket_establish_locked()
177 if (pair[0] != INVALID_FD) close(pair[0]); in sco_socket_establish_locked()
178 if (pair[1] != INVALID_FD) close(pair[1]); in sco_socket_establish_locked()
/system/update_engine/
Ddynamic_partition_test_utils.h71 for (const auto& pair : param) { variable
74 os << pair.first << ":" << pair.second;
149 for (const auto& pair : partition_sizes) { in PartitionSuffixSizesToManifest() local
151 if (base::EndsWith(pair.first, in PartitionSuffixSizesToManifest()
158 pair.first, in PartitionSuffixSizesToManifest()
159 pair.second); in PartitionSuffixSizesToManifest()
171 for (const auto& pair : partition_sizes) { in PartitionSizesToManifest() local
172 AddPartition(&manifest, g, pair.first, pair.second); in PartitionSizesToManifest()
/system/libvintf/
DCompatibilityMatrix.cpp41 for (auto& pair : other->mHals) { in addAllHals() local
42 CHECK(add(std::move(pair.second), &internalError)) << internalError; in addAllHals()
199 for (auto& pair : other->mHals) { in addAllHalsAsOptional() local
200 const std::string& name = pair.first; in addAllHalsAsOptional()
201 MatrixHal& halToAdd = pair.second; in addAllHalsAsOptional()
203 std::set<std::pair<std::string, std::string>> insertedInstances; in addAllHalsAsOptional()
204 std::set<std::pair<std::string, std::string>> insertedRegex; in addAllHalsAsOptional()
231 for (const auto& pair : insertedInstances) { in addAllHalsAsOptional() local
232 halToAdd.removeInstance(pair.first, pair.second, false /* isRegex */); in addAllHalsAsOptional()
234 for (const auto& pair : insertedRegex) { in addAllHalsAsOptional() local
[all …]
/system/incremental_delivery/incfs/include/
DMountRegistry.h39 using BindMap = std::map<std::string, std::pair<std::string, int>, std::less<>>;
60 std::vector<std::pair<std::string_view, std::string_view>> binds() const;
83 std::pair<std::string_view, std::string> rootAndSubpathFor(std::string_view path) const;
95 std::pair<int, BindMap::const_iterator> rootIndex(std::string_view path) const;
105 std::pair<std::string, std::string> rootAndSubpathFor(std::string_view path);
/system/update_engine/payload_consumer/
Dfake_file_descriptor.h100 std::vector<std::pair<uint64_t, uint64_t>> GetReadOps() const { in GetReadOps()
116 std::vector<std::pair<uint64_t, uint64_t>> failure_ranges_;
119 std::vector<std::pair<uint64_t, uint64_t>> read_ops_;
/system/core/adb/client/
Dincremental_utils.h46 std::pair<std::vector<char>, int32_t> read_id_sig_headers(borrowed_fd fd);
47 std::pair<off64_t, ssize_t> skip_id_sig_headers(borrowed_fd fd);
/system/core/fs_mgr/
Dfs_mgr_vendor_overlay.cpp48 std::vector<std::pair<std::string, std::string>> fs_mgr_get_vendor_overlay_dirs( in fs_mgr_get_vendor_overlay_dirs()
50 std::vector<std::pair<std::string, std::string>> vendor_overlay_dirs; in fs_mgr_get_vendor_overlay_dirs()
71 bool fs_mgr_vendor_overlay_mount(const std::pair<std::string, std::string>& mount_point) { in fs_mgr_vendor_overlay_mount()
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.h103 std::pair<std::string, extension::Configuration::GetVar>> {};
113 std::pair<std::string, extension::Configuration::PackedInfoTest>> {};
118 std::pair<std::string, extension::Configuration::PackedInfoTest>> {};
124 std::pair<std::string, extension::Configuration::PartitionInfo>> {

1234567891011