Home
last modified time | relevance | path

Searched refs:client_fd (Results 1 – 8 of 8) sorted by relevance

/packages/modules/adb/
Dsocket_spec_test.cpp214 unique_fd server_fd, client_fd; in TEST() local
215 EXPECT_FALSE(socket_spec_connect(&client_fd, "tcp:localhost:7777", &port, &serial, &error)); in TEST()
218 EXPECT_TRUE(socket_spec_connect(&client_fd, "tcp:localhost:7777", &port, &serial, &error)); in TEST()
219 EXPECT_NE(client_fd.get(), -1); in TEST()
225 unique_fd client_fd; in TEST() local
226 EXPECT_FALSE(socket_spec_connect(&client_fd, "tcp:", &port, &serial, &error)); in TEST()
227 EXPECT_FALSE(socket_spec_connect(&client_fd, "acceptfd:", &port, &serial, &error)); in TEST()
228 EXPECT_FALSE(socket_spec_connect(&client_fd, "vsock:", &port, &serial, &error)); in TEST()
229 EXPECT_FALSE(socket_spec_connect(&client_fd, "vsock:x", &port, &serial, &error)); in TEST()
230 EXPECT_FALSE(socket_spec_connect(&client_fd, "vsock:5", &port, &serial, &error)); in TEST()
[all …]
/packages/modules/Bluetooth/system/gd/hal/
Dsnoop_logger_socket_test.cc195 int client_fd = 33; in TEST_F() local
198 EXPECT_CALL(mock, Send(client_fd, _, _, _)).Times(1); in TEST_F()
200 sls.Write(client_fd, data, sizeof(data)); in TEST_F()
210 int client_fd = 33; in TEST_F() local
213 EXPECT_CALL(mock, Send(client_fd, _, _, _)).Times(1); in TEST_F()
214 EXPECT_CALL(mock, Close(client_fd)).Times(1); in TEST_F()
216 sls.ClientSocketConnected(client_fd); in TEST_F()
219 EXPECT_CALL(mock, FDClr(Eq(client_fd), _)); in TEST_F()
274 int client_fd = 10; in TEST_F() local
276 EXPECT_CALL(mock, Send(client_fd, _, _, _)).Times(1); in TEST_F()
[all …]
/packages/modules/Virtualization/virtualizationmanager/
Dfuzzer.cpp42 unique_fd server_fd, client_fd; in get_service_fd() local
43 if (!Socketpair(SOCK_STREAM, &server_fd, &client_fd)) { in get_service_fd()
53 client_fd.reset(); in get_service_fd()
75 return client_fd; in get_service_fd()
/packages/modules/Virtualization/tests/benchmark/src/native/
Dio_vsock.cpp55 unique_fd client_fd(TEMP_FAILURE_RETRY( in run_vsock_server_and_receive_data() local
57 if (client_fd < 0) { in run_vsock_server_and_receive_data()
66 ssize_t n = TEMP_FAILURE_RETRY(read(client_fd.get(), buf, sizeof(buf))); in run_vsock_server_and_receive_data()
/packages/modules/Bluetooth/system/stack/mmc/daemon/
Dservice.cc56 int client_fd = accept(fd, (struct sockaddr*)&addr, &addr_size); in StartSocketListener() local
60 if (client_fd < 0) { in StartSocketListener()
71 pfd.fd = client_fd; in StartSocketListener()
89 recv(client_fd, i_buf.data(), kMaximumBufferSize, MSG_NOSIGNAL); in StartSocketListener()
103 int sent_rc = send(client_fd, o_buf.data(), o_data_len, MSG_NOSIGNAL); in StartSocketListener()
110 close(client_fd); in StartSocketListener()
/packages/modules/Bluetooth/system/btif/src/
Dbtif_sock_sco.cc228 int client_fd = INVALID_FD; in connection_request_cb() local
244 new_sco_socket = sco_socket_establish_locked(true, NULL, &client_fd); in connection_request_cb()
263 client_fd) != sizeof(connect_signal)) { in connection_request_cb()
279 if (client_fd != INVALID_FD) close(client_fd); in connection_request_cb()
/packages/modules/Virtualization/vmclient/src/
Dlib.rs82 client_fd: OwnedFd, field
90 let (client_fd, server_fd) = posix_socketpair()?; in new()
107 Ok(VirtualizationService { client_fd }) in new()
116 .setup_unix_domain_bootstrap_client(self.client_fd.as_fd()) in connect()
/packages/modules/Virtualization/demo_native/
Dmain.cpp81 unique_fd server_fd, client_fd; in get_service_fd() local
82 if (!Socketpair(SOCK_STREAM, &server_fd, &client_fd)) { in get_service_fd()
92 client_fd.reset(); in get_service_fd()
112 return client_fd; in get_service_fd()