/system/webservd/libwebserv/ |
D | request.cc | 74 std::vector<std::pair<std::string, const FileInfo*>> Request::GetFiles() const { in GetFiles() 75 std::vector<std::pair<std::string, const FileInfo*>> data; in GetFiles() 77 for (const auto& pair : file_info_) { in GetFiles() local 78 data.emplace_back(pair.first, pair.second.get()); in GetFiles() 85 auto pair = get_data_.equal_range(name); in GetFormField() local 86 while (pair.first != pair.second) { in GetFormField() 87 data.push_back(pair.first->second); in GetFormField() 88 ++pair.first; in GetFormField() 90 pair = post_data_.equal_range(name); in GetFormField() 91 while (pair.first != pair.second) { in GetFormField() [all …]
|
D | dbus_protocol_handler.cc | 85 for (const auto& pair : proxies_) in GetPorts() local 86 ports.insert(pair.second->port()); in GetPorts() 92 for (const auto& pair : proxies_) in GetProtocols() local 93 protocols.insert(pair.second->protocol()); in GetProtocols() 99 for (const auto& pair : proxies_) { in GetCertificateFingerprint() local 100 fingerprint = pair.second->certificate_fingerprint(); in GetCertificateFingerprint() 118 for (const auto& pair : proxies_) { in AddHandler() local 119 pair.second->AddRequestHandlerAsync( in AddHandler() 126 pair.second), in AddHandler() 149 for (const auto& pair : p->second.remote_handler_ids) { in RemoveHandler() local [all …]
|
D | response.cc | 48 const std::vector<std::pair<std::string, std::string>>& headers) { in AddHeaders() 83 for (const auto& pair : json) { in ReplyWithJson() local 84 json_value.SetString(pair.first, pair.second); in ReplyWithJson()
|
/system/webservd/webservd/ |
D | dbus_request_handler.cc | 53 for (const auto& pair : request->GetHeaders()) in HandleRequest() local 54 headers.emplace_back(pair.first, pair.second); in HandleRequest() 65 for (const auto& pair : request->GetDataGet()) in HandleRequest() local 66 params.emplace_back(false, pair.first, pair.second); in HandleRequest() 68 for (const auto& pair : request->GetDataPost()) in HandleRequest() local 69 params.emplace_back(true, pair.first, pair.second); in HandleRequest()
|
D | temp_file_manager.cc | 29 for (const auto& pair : request_files_) in ~TempFileManager() local 30 DeleteFiles(pair.second); in ~TempFileManager()
|
D | protocol_handler.cc | 116 for (const auto& pair : request_handlers_) { in FindRequestHandler() local 117 std::string handler_url = pair.second.url; in FindRequestHandler() 119 bool method_match = (pair.second.method == method); in FindRequestHandler() 123 return pair.first; in FindRequestHandler() 138 if (!method_match && pair.second.method.empty()) { in FindRequestHandler() 148 handler_id = pair.first; in FindRequestHandler()
|
D | log_manager.cc | 146 auto pair = brillo::string_utils::SplitAtFirst(file_name, "."); in ArchiveLogFile() local 151 base::StringPrintf("%s-%c.%s", pair.first.c_str(), in ArchiveLogFile() 152 suffix, pair.second.c_str())); in ArchiveLogFile()
|
D | dbus_protocol_handler.cc | 50 for (const auto& pair : dbus_service_data_) { in ~DBusProtocolHandler() local 52 pair.first, pair.second.on_client_disconnected_callback); in ~DBusProtocolHandler()
|
/system/extras/simpleperf/ |
D | scoped_signal_handler.h | 34 for (auto& pair : saved_signal_handlers_) { in ~ScopedSignalHandler() 35 signal(pair.first, pair.second); in ~ScopedSignalHandler() 40 std::vector<std::pair<int, sig_t>> saved_signal_handlers_;
|
D | cmd_report_test.cpp | 105 std::unordered_map<std::string, std::pair<double, double>> map; in TEST_F() 108 std::pair<double, double> pair; in TEST_F() local 109 if (sscanf(lines[i].c_str(), "%lf%%%lf%%%s", &pair.first, &pair.second, name) == 3) { in TEST_F() 110 map.insert(std::make_pair(name, pair)); in TEST_F() 238 std::set<std::pair<std::string, std::string>> hit_set; in TEST_F()
|
D | thread_tree.cpp | 53 auto pair = thread_tree_.insert(std::make_pair(tid, std::unique_ptr<ThreadEntry>(thread))); in AddThread() local 54 CHECK(pair.second); in AddThread() 55 it = pair.first; in AddThread() 92 auto pair = kernel_map_tree_.insert(map); in AddKernelMap() local 93 CHECK(pair.second); in AddKernelMap() 117 auto pair = thread->maps.insert(map); in AddThreadMap() local 118 CHECK(pair.second); in AddThreadMap()
|
D | command.cpp | 66 for (auto pair : CommandMap()) { in GetAllCommandNames() local 67 names.push_back(pair.first); in GetAllCommandNames()
|
D | event_attr.cpp | 30 const std::vector<std::pair<int, std::string>>& bit_names) { in BitsToString() 48 static std::vector<std::pair<int, std::string>> sample_type_names = { in SampleTypeToString() 68 static std::vector<std::pair<int, std::string>> read_format_names = { in ReadFormatToString()
|
D | dso.cpp | 113 void Dso::SetBuildIds(const std::vector<std::pair<std::string, BuildId>>& build_ids) { in SetBuildIds() 115 for (auto& pair : build_ids) { in SetBuildIds() local 116 LOG(DEBUG) << "build_id_map: " << pair.first << ", " << pair.second.ToString(); in SetBuildIds() 117 map.insert(pair); in SetBuildIds()
|
D | cmd_dumprecord.cpp | 190 for (const auto& pair : section_map) { in DumpFeatureSection() local 191 int feature = pair.first; in DumpFeatureSection() 192 const auto& section = pair.second; in DumpFeatureSection()
|
D | cpu_hotplug_test.cpp | 127 for (const auto& pair : online_map_) { in ~CpuOnlineRestorer() local 128 SetCpuOnline(pair.first, pair.second); in ~CpuOnlineRestorer()
|
/system/bt/btif/src/ |
D | btif_sock_sco.c | 143 int pair[2] = { INVALID_FD, INVALID_FD }; in sco_socket_establish_locked() local 146 if (socketpair(AF_LOCAL, SOCK_STREAM, 0, pair) == -1) { in sco_socket_establish_locked() 163 socket_t *socket = socket_new_from_fd(pair[1]); in sco_socket_establish_locked() 165 LOG_ERROR(LOG_TAG, "%s unable to allocate socket from file descriptor %d.", __func__, pair[1]); in sco_socket_establish_locked() 169 *sock_fd = pair[0]; // Transfer ownership of one end to caller. in sco_socket_establish_locked() 177 if (pair[0] != INVALID_FD) in sco_socket_establish_locked() 178 close(pair[0]); in sco_socket_establish_locked() 179 if (pair[1] != INVALID_FD) in sco_socket_establish_locked() 180 close(pair[1]); in sco_socket_establish_locked()
|
/system/update_engine/ |
D | chrome_browser_proxy_resolver.cc | 37 using std::pair; 101 pair<ProxiesResolvedFn, void*>* callback) { in DeleteUrlState() 134 pair<ProxiesResolvedFn, void*> callback; in OnProxyResolvedSignal() 144 pair<ProxiesResolvedFn, void*> callback; in HandleTimeout()
|
D | chrome_browser_proxy_resolver.h | 53 typedef std::multimap<std::string, std::pair<ProxiesResolvedFn, void*>> 80 std::pair<ProxiesResolvedFn, void*>* callback);
|
/system/core/crash_reporter/ |
D | udev_collector.cc | 63 std::vector<std::pair<std::string, std::string>> udev_event_keyval; in HandleCrash() 65 std::vector<std::pair<std::string, std::string>>::const_iterator iter; in HandleCrash() 232 std::vector<std::pair<std::string, std::string>> uevent_keyval; in GetFailingDeviceDriverName() 234 std::vector<std::pair<std::string, std::string>>::const_iterator iter; in GetFailingDeviceDriverName()
|
/system/update_engine/update_manager/ |
D | update_manager_unittest.cc | 51 using std::pair; 175 static void AccumulateCallsCallback(vector<pair<EvalStatus, T>>* acc, in AccumulateCallsCallback() 250 vector<pair<EvalStatus, UpdateCheckParams>> calls; in TEST_F() 267 vector<pair<EvalStatus, UpdateCheckParams>> calls; in TEST_F() 295 vector<pair<EvalStatus, UpdateCheckParams>> calls; in TEST_F()
|
/system/connectivity/dhcp_client/ |
D | dhcp_options_parser.cc | 132 std::vector<std::pair<uint32_t, uint32_t>>* value_vector = in GetOption() 133 static_cast<std::vector<std::pair<uint32_t, uint32_t>>*>(value); in GetOption() 140 value_vector->push_back(std::pair<uint32_t, uint32_t>(first, second)); in GetOption()
|
/system/netd/tests/dns_responder/ |
D | dns_responder.h | 61 std::vector<std::pair<std::string, ns_type>> queries() const; 122 mutable std::vector<std::pair<std::string, ns_type>> queries_
|
/system/netd/server/ |
D | FirewallControllerTest.cpp | 80 std::vector<std::pair<IptablesTarget, std::string>> expectedRestoreCommands = { in TEST_F() 102 std::vector<std::pair<IptablesTarget, std::string>> expectedRestoreCommands = { in TEST_F()
|
/system/core/adb/ |
D | fdevent.cpp | 150 auto pair = g_poll_node_map.emplace(fde->fd, PollNode(fde)); in fdevent_install() local 151 CHECK(pair.second) << "install existing fd " << fd; in fdevent_install() 237 for (const auto& pair : g_poll_node_map) { in fdevent_process() local 238 pollfds.push_back(pair.second.pollfd); in fdevent_process()
|