/system/core/base/ |
H A D | parsenetaddress_test.cpp | 25 int port = 123; local 28 ParseNetAddress("www.google.com", &host, &port, &canonical, &error)); 31 EXPECT_EQ(123, port); 34 ParseNetAddress("www.google.com:666", &host, &port, &canonical, &error)); 37 EXPECT_EQ(666, port); 42 int port = 123; local 44 EXPECT_TRUE(ParseNetAddress("1.2.3.4", &host, &port, &canonical, &error)); 47 EXPECT_EQ(123, port); 49 EXPECT_TRUE(ParseNetAddress("1.2.3.4:666", &host, &port, &canonical, &error)); 52 EXPECT_EQ(666, port); 57 int port = 123; local 84 int port; local 122 int port = 42; local [all...] |
H A D | parsenetaddress.cpp | 27 bool ParseNetAddress(const std::string& address, std::string* host, int* port, argument 65 if (sscanf(port_str.c_str(), "%d", port) != 1 || *port <= 0 || 66 *port > 65535) { 67 *error = StringPrintf("bad port number '%s' in '%s'", port_str.c_str(), 75 StringPrintf(ipv6 ? "[%s]:%d" : "%s:%d", host->c_str(), *port);
|
/system/bt/udrv/ulinux/ |
H A D | uipc_linux.h | 28 unsigned int port; member in struct:__anon1308
|
/system/connectivity/apmanager/ |
H A D | firewall_proxy_interface.h | 29 uint16_t port) = 0; 31 uint16_t port) = 0;
|
/system/core/adb/ |
H A D | console.cpp | 55 // Return the console port of the currently connected emulator (if any) or -1 if 60 int port; local 61 return (sscanf(serial, "emulator-%d", &port) == 1) ? port : -1; 74 int port; local 77 if (sscanf(device.c_str(), "emulator-%d", &port) == 1) { 91 return port; 95 int port = adb_get_emulator_console_port(serial); local 96 if (port == -1) { 101 int fd = network_loopback_client(port, SOCK_STREA [all...] |
H A D | transport_local.cpp | 41 // Android Wear has been using port 5601 in all of its documentation/tooling, 43 // Avoid stomping on their port by limiting the number of emulators that can be 93 void local_connect(int port) { argument 95 local_connect_arbitrary_ports(port-1, port, &dummy); 133 int port = DEFAULT_ADB_LOCAL_TRANSPORT_PORT; local 137 for ( ; count > 0; count--, port += 2 ) { 138 local_connect(port); 151 int port = (int) (uintptr_t) arg; local 159 serverfd = network_inaddr_any_server(port, SOCK_STREA 232 const int port = (int) (uintptr_t) arg; local 291 local_init(int port) argument [all...] |
/system/connectivity/apmanager/dbus/ |
H A D | firewalld_dbus_proxy.cc | 52 uint16_t port) { 60 if (!proxy_->PunchUdpHole(port, interface, &success, &error)) { 61 LOG(ERROR) << "Failed to request UDP port access: " 66 LOG(ERROR) << "Access request for UDP port " << port 70 LOG(INFO) << "Access granted for UDP port " << port 76 uint16_t port) { 84 if (!proxy_->PlugUdpHole(port, interface, &success, &error)) { 85 LOG(ERROR) << "Failed to release UDP port acces 51 RequestUdpPortAccess(const string& interface, uint16_t port) argument 75 ReleaseUdpPortAccess(const string& interface, uint16_t port) argument [all...] |
H A D | permission_broker_dbus_proxy.cc | 63 uint16_t port) { 75 if (!proxy_->RequestUdpPortAccess(port, interface, fd, &allowed, &error)) { 76 LOG(ERROR) << "Failed to request UDP port access: " 81 LOG(ERROR) << "Access request for UDP port " << port 85 LOG(INFO) << "Access granted for UDP port " << port 91 uint16_t port) { 99 if (!proxy_->ReleaseUdpPort(port, interface, &success, &error)) { 100 LOG(ERROR) << "Failed to release UDP port acces 62 RequestUdpPortAccess(const string& interface, uint16_t port) argument 90 ReleaseUdpPortAccess(const string& interface, uint16_t port) argument [all...] |
/system/core/include/cutils/ |
H A D | sockets.h | 106 int socket_loopback_client(int port, int type); 107 cutils_socket_t socket_network_client(const char* host, int port, int type); 108 int socket_network_client_timeout(const char* host, int port, int type, 110 int socket_loopback_server(int port, int type); 116 cutils_socket_t socket_inaddr_any_server(int port, int type); 135 * Returns the local port the socket is bound to or -1 on error.
|
/system/connectivity/shill/ |
H A D | connection_info_reader_unittest.cc | 225 uint16_t port = 0; local 228 EXPECT_FALSE(reader_.ParsePort("", &port, &is_source)); 229 EXPECT_FALSE(reader_.ParsePort("a", &port, &is_source)); 230 EXPECT_FALSE(reader_.ParsePort("0", &port, &is_source)); 231 EXPECT_FALSE(reader_.ParsePort("sport=", &port, &is_source)); 232 EXPECT_FALSE(reader_.ParsePort("sport=a", &port, &is_source)); 233 EXPECT_FALSE(reader_.ParsePort("sport=-1", &port, &is_source)); 234 EXPECT_FALSE(reader_.ParsePort("sport=65536", &port, &is_source)); 235 EXPECT_FALSE(reader_.ParsePort("dport=", &port, &is_source)); 236 EXPECT_FALSE(reader_.ParsePort("dport=a", &port, [all...] |
H A D | mock_async_connection.h | 32 MOCK_METHOD2(Start, bool(const IPAddress& address, int port));
|
H A D | http_url.cc | 47 int port = 0; local 52 port = kDefaultHTTPPort; 57 port = kDefaultHTTPSPort; 74 if (!base::StringToInt(host_parts[1], &port)) { 81 port_ = port;
|
H A D | async_connection.h | 36 // port, and it will notify the caller when the connection 49 // Open a connection given an IP address and port (in host order). 63 virtual bool Start(const IPAddress& address, int port); 77 // Initiate a socket connection to given IP address and port (in host order). 78 int ConnectTo(const IPAddress& address, int port);
|
H A D | http_url_unittest.cc | 41 port(in_port), 47 int port; member in struct:shill::StringAndResult 63 EXPECT_EQ(GetParam().port, url_.port()); 76 StringAndResult("http://www.foo.com:", false), // Colon but no port 77 StringAndResult("http://www.foo.com:x", false), // Non-numeric port
|
/system/core/base/include/android-base/ |
H A D | parsenetaddress.h | 25 // Parses |address| into |host| and |port|. 27 // If |address| doesn't contain a port number, the default value is taken from 28 // |port|. If |canonical_address| is non-null it will be set to "host:port" or 29 // "[host]:port" as appropriate. 32 bool ParseNetAddress(const std::string& address, std::string* host, int* port,
|
/system/bt/stack/rfcomm/ |
H A D | port_api.c | 86 ** to establish serial port connection to the peer device, 144 /* For the server side always allocate a new port. On the client side */ 148 /* if existing port is also a client port */ 208 /* server doesn't need to release port when closing */ 257 p_port = &rfc_cb.port.port[handle - 1]; 276 ** Description This function is called to close the server port. 293 p_port = &rfc_cb.port.port[handl [all...] |
/system/webservd/webservd/ |
H A D | config.cc | 38 const char kPortKey[] = "port"; 47 "port": 80, 52 "port": 443, 61 int port = 0; local 62 if (!handler_value->GetInteger(kPortKey, &port)) { 70 if (port < 1 || port > 0xFFFF) { 75 "Invalid port value: %d", port); 78 handler_config->port [all...] |
H A D | firewalld_firewall.cc | 33 uint16_t port, 37 proxy_->PunchTcpHoleAsync(port, interface_name, success_cb, failure_cb); 32 PunchTcpHoleAsync( uint16_t port, const std::string& interface_name, const base::Callback<void(bool)>& success_cb, const base::Callback<void(brillo::Error*)>& failure_cb) argument
|
/system/extras/multinetwork/ |
H A D | common.cpp | 125 char port[sizeof("65535")]; local 128 port, sizeof(port), 131 if (port[0] == '0' || port[0] == '\0') { 134 return (is_ipv6 ? "[" : "") + std::string(host) + (is_ipv6 ? "]:" : ":") + std::string(port);
|
/system/core/libcutils/ |
H A D | socket_inaddr_any_server_unix.c | 32 /* open listen() port on any interface */ 33 int socket_inaddr_any_server(int port, int type) argument 40 addr.sin6_port = htons(port);
|
H A D | socket_inaddr_any_server_windows.c | 37 SOCKET socket_inaddr_any_server(int port, int type) { argument 47 // Enforce exclusive addresses so nobody can steal the port from us (1), 61 // Bind the socket to our local port. 65 addr.sin6_port = htons(port);
|
H A D | socket_loopback_client_unix.c | 32 /* Connect to port on the loopback IP interface. type is 36 int socket_loopback_client(int port, int type) argument 43 addr.sin_port = htons(port);
|
H A D | socket_loopback_server_unix.c | 34 /* open listen() port on loopback interface */ 35 int socket_loopback_server(int port, int type) argument 42 addr.sin_port = htons(port);
|
H A D | socket_network_client_windows.c | 33 SOCKET socket_network_client(const char* host, int port, int type) { argument 38 // First resolve the host and port parameters into a usable network address. 45 snprintf(port_str, sizeof(port_str), "%d", port);
|
/system/tpm/trunks/ftdi/ |
H A D | support.h | 37 int set_bits_high(struct mpsse_context* mpsse, int port); 38 int set_bits_low(struct mpsse_context* mpsse, int port);
|