Home
last modified time | relevance | path

Searched refs:server_port (Results 1 – 22 of 22) sorted by relevance

/packages/modules/adb/
Dtest_adb.py294 server_port = find_open_port()
297 ["adb", "-L", "tcp:[::1]:{}".format(server_port), "server"],
306 ["adb", "-P", str(server_port), "kill-server"],
388 with adb_server() as server_port:
393 subprocess.check_output(["adb", "-P", str(server_port),
405 sock.connect(("localhost", server_port))
410 subprocess.check_call(["adb", "-P", str(server_port),
412 output = subprocess.check_output(["adb", "-P", str(server_port),
500 with adb_server() as server_port:
503 output = subprocess.check_output(["adb", "-P", str(server_port),
[all …]
/packages/modules/Connectivity/service-t/native/libs/libnetworkstats/
DNetworkTracePollerTest.cpp134 __be16 server_port = 0; in TEST_F() local
142 if ((pkt.sport == server_port || pkt.dport == server_port) && in TEST_F()
168 server_port = bindAndListen(serversocket); in TEST_F()
169 ASSERT_NE(0, server_port) << "Can't bind to server port"; in TEST_F()
171 sockaddr_in addr = {.sin_family = AF_INET, .sin_port = server_port}; in TEST_F()
214 EXPECT_EQ(packets[0].dport, server_port) << PacketPrinter{packets}; in TEST_F()
221 EXPECT_EQ(packets[1].dport, server_port) << PacketPrinter{packets}; in TEST_F()
228 EXPECT_EQ(packets[2].sport, server_port) << PacketPrinter{packets}; in TEST_F()
234 EXPECT_EQ(packets[3].sport, server_port) << PacketPrinter{packets}; in TEST_F()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_logging.cc57 int state, int role, int uid, int server_port, in btif_sock_connection_logger() argument
67 .channel = server_port, in btif_sock_connection_logger()
79 tx_bytes, rx_bytes, uid, server_port, in btif_sock_connection_logger()
Dbtif_metrics_logging.cc86 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, in log_socket_connection_state() argument
90 server_port, socket_role); in log_socket_connection_state()
/packages/modules/Bluetooth/system/blueberry/tests/sl4a_sl4a/lib/
Dsl4a_sl4a_base_test.py66 server_port = int(self.controller_configs[ANDROID_DEVICE_CONFIG_NAME][0]['server_port'])
68 setup_sl4a(self.dut, server_port, forwarded_port)
72 server_port = int(self.controller_configs[ANDROID_DEVICE_CONFIG_NAME][1]['server_port'])
74 setup_sl4a(self.cert, server_port, forwarded_port)
/packages/modules/adb/daemon/
Dmain.cpp95 static void drop_privileges(int server_port) { in drop_privileges() argument
204 int adbd_main(int server_port) { in adbd_main() argument
240 drop_privileges(server_port); in adbd_main()
/packages/modules/Bluetooth/system/blueberry/utils/
Dmobly_sl4a_utils.py35 def setup_sl4a(device: AndroidDevice, server_port: int, forwarded_port: int):
44 sl4a_client._DEVICE_SIDE_PORT = server_port
/packages/modules/Bluetooth/system/blueberry/tests/gd_sl4a/lib/
Dgd_sl4a_base_test.py57 server_port = int(self.controller_configs[ANDROID_DEVICE_COFNIG_NAME][0]['server_port'])
60 setup_sl4a(self.dut, server_port, forwarded_port)
/packages/modules/Bluetooth/system/test/mock/
Dmock_main_shim_metrics_api.h293 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port,
305 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, in operator()
308 server_port, socket_role); in operator()
Dmock_main_shim_metrics_api.cc178 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, in LogMetricSocketConnectionState() argument
183 server_port, socket_role); in LogMetricSocketConnectionState()
/packages/modules/Bluetooth/system/btif/include/
Dbtif_sock_logging.h22 int state, int role, int uid, int server_port,
Dbtif_metrics_logging.h63 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port,
/packages/modules/Bluetooth/system/main/shim/
Dmetrics_api.cc151 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, in LogMetricSocketConnectionState() argument
156 server_port, socket_role); in LogMetricSocketConnectionState()
Dmetrics_api.h239 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port,
/packages/modules/Bluetooth/system/gd/os/android/
Dmetrics.cc375 int server_port, in LogMetricSocketConnectionState() argument
390 server_port, in LogMetricSocketConnectionState()
404 server_port, in LogMetricSocketConnectionState()
/packages/modules/Bluetooth/system/gd/os/linux/
Dmetrics.cc44 int server_port, in LogMetricSocketConnectionState() argument
/packages/modules/Bluetooth/system/common/
Dmetrics_linux.cc99 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, in LogSocketConnectionState() argument
Dmetrics.h478 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port,
Dmetrics.cc855 int64_t tx_bytes, int64_t rx_bytes, int uid, int server_port, in LogSocketConnectionState() argument
870 rx_bytes, uid, server_port, socket_role, metric_id); in LogSocketConnectionState()
876 server_port, socket_role, ret); in LogSocketConnectionState()
/packages/modules/Bluetooth/system/gd/os/
Dmetrics.h297 int server_port,
/packages/modules/Bluetooth/system/gd/os/chromeos/
Dmetrics.cc49 int server_port, in LogMetricSocketConnectionState() argument
/packages/modules/adb/client/
Dcommandline.cpp1642 int server_port = DEFAULT_ADB_PORT; in adb_commandline() local
1645 if (!android::base::ParseInt(server_port_str, &server_port, 1, 65535)) { in adb_commandline()
1656 rc = asprintf(&temp, "tcp:%s:%d", server_host_str, server_port); in adb_commandline()
1658 rc = asprintf(&temp, "tcp:%d", server_port); in adb_commandline()