Home
last modified time | relevance | path

Searched refs:ip_addr (Results 1 – 13 of 13) sorted by relevance

/packages/modules/DnsResolver/doh/
Dffi.rs41 ip_addr: *const c_char,
57 let (ip_addr, domain) = match ( in wrap_validation_callback()
61 (Ok(ip_addr), Ok(domain)) => (ip_addr, domain), in wrap_validation_callback()
71 validation_fn(netd_id, success, ip_addr.as_ptr(), domain.as_ptr()) in wrap_validation_callback()
198 ip_addr: *const c_char, in doh_net_new()
206 let (url, domain, ip_addr, cert_path) = match unsafe { in doh_net_new()
210 std::ffi::CStr::from_ptr(ip_addr).to_str(), in doh_net_new()
214 (Ok(url), Ok(domain), Ok(ip_addr), Ok(cert_path)) => { in doh_net_new()
216 (url, None, ip_addr.to_string(), None) in doh_net_new()
218 (url, Some(domain.to_string()), ip_addr.to_string(), Some(cert_path.to_string())) in doh_net_new()
[all …]
/packages/modules/adb/client/
Dmdnsresponder_client.cpp170 char ip_addr[INET6_ADDRSTRLEN] = {}; in RegisterIpAddress() local
171 if (!inet_ntop(sa_family_, const_cast<void*>(ip_addr_data), ip_addr, sizeof(ip_addr))) { in RegisterIpAddress()
175 ip_addr_ = ip_addr; in RegisterIpAddress()
214 auto ip_addr = s->ip_address(); in AddToServiceRegistry() local
219 service_name.c_str(), reg_type.c_str(), ip_addr.c_str(), port); in AddToServiceRegistry()
228 ip_addr.c_str(), port, response.c_str()); in AddToServiceRegistry()
232 service_name.c_str(), reg_type.c_str(), ip_addr.c_str(), port); in AddToServiceRegistry()
582 const std::string& ip_addr, uint16_t port) { in mdns_list_discovered_services() argument
584 reg_type.c_str(), ip_addr.c_str(), port); in mdns_list_discovered_services()
611 const std::string& ip_addr, in mdns_get_connect_service_info()
[all …]
Dtransport_mdns.cpp258 const std::string& ip_addr, in adb_secure_connect_by_service_name()
259 uint16_t port) { info.emplace(instance_name, service_name, ip_addr, port); }; in adb_secure_connect_by_service_name() argument
290 const std::string& ip_addr, uint16_t port) { in mdns_list_discovered_services() argument
292 service_name.data(), ip_addr.data(), port); in mdns_list_discovered_services()
320 const std::string& ip_addr, in mdns_get_connect_service_info()
321 uint16_t port) { info.emplace(instance_name, service_name, ip_addr, port); }; in mdns_get_connect_service_info() argument
373 const std::string& ip_addr, in mdns_get_pairing_service_info()
374 uint16_t port) { info.emplace(instance_name, service_name, ip_addr, port); }; in mdns_get_pairing_service_info() argument
/packages/modules/adb/client/pairing/
Dpairing_client.cpp59 virtual bool Start(std::string_view ip_addr, pairing_client_result_cb cb,
103 bool PairingClientImpl::Start(std::string_view ip_addr, pairing_client_result_cb cb, void* opaque) { in Start() argument
104 CHECK(!ip_addr.empty()); in Start()
115 CHECK(android::base::ParseNetAddress(std::string(ip_addr), &host_, &port_, nullptr, &err)); in Start()
Dpairing_client.h54 virtual bool Start(std::string_view ip_addr, pairing_client_result_cb cb, void* opaque) = 0;
/packages/modules/adb/pairing_connection/tests/
Dpairing_client.cpp59 virtual bool Start(std::string_view ip_addr, pairing_client_result_cb cb,
111 bool PairingClientImpl::Start(std::string_view ip_addr, pairing_client_result_cb cb, void* opaque) { in Start() argument
112 CHECK(!ip_addr.empty()); in Start()
123 CHECK(android::base::ParseNetAddress(std::string(ip_addr), &host_, &port_, nullptr, &err)); in Start()
Dpairing_client.h54 virtual bool Start(std::string_view ip_addr, pairing_client_result_cb cb, void* opaque) = 0;
/packages/modules/DnsResolver/
Ddoh.h60 using ValidationCallback = void (*)(uint32_t net_id, bool success, const char* ip_addr,
94 const char* ip_addr, uint32_t sk_mark, const char* cert_path,
DDnsProxyListener.cpp443 char ip_addr[INET6_ADDRSTRLEN]; in logDnsQueryResult() local
444 if (inet_ntop(hp->h_addrtype, hp->h_addr_list[i], ip_addr, sizeof(ip_addr)) != nullptr) { in logDnsQueryResult()
464 char ip_addr[INET6_ADDRSTRLEN]; in logDnsQueryResult() local
465 const int ret = getnameinfo(ai_addr, ai->ai_addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, in logDnsQueryResult()
469 << " " << ai->ai_socktype << " " << ai->ai_protocol << " " << ip_addr; in logDnsQueryResult()
984 char ip_addr[INET6_ADDRSTRLEN]; in addIpAddrWithinLimit() local
985 if (getnameinfo(addr, addrlen, ip_addr, sizeof(ip_addr), nullptr, 0, NI_NUMERICHOST) == 0) { in addIpAddrWithinLimit()
986 ip_addrs->push_back(std::string(ip_addr)); in addIpAddrWithinLimit()
DPrivateDnsConfiguration.cpp588 [](uint32_t net_id, bool success, const char* ip_addr, const char* host) { in initDohLocked() argument
590 net_id, success, ip_addr, host); in initDohLocked()
/packages/modules/DnsResolver/tests/
Ddoh_ffi_test.cpp89 auto validation_cb = [](uint32_t netId, bool success, const char* ip_addr, const char* host) { in TEST_F() argument
92 EXPECT_STREQ(ip_addr, server_ip); in TEST_F()
/packages/modules/Bluetooth/system/stack/pan/
Dpan_int.h69 uint32_t ip_addr; member
/packages/apps/Settings/src/com/android/settings/development/
DAdbWirelessDialogController.java58 mIpAddr = mView.findViewById(R.id.ip_addr); in AdbWirelessDialogController()