Home
last modified time | relevance | path

Searched refs:send_fd (Results 1 – 5 of 5) sorted by relevance

/system/bt/btif/src/
Dbtif_sock_util.cc94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { in sock_send_fd() argument
101 asrt(send_fd != -1); in sock_send_fd()
102 if (sock_fd == -1 || send_fd == -1) return -1; in sock_send_fd()
110 cmsg->cmsg_len = CMSG_LEN(sizeof send_fd); in sock_send_fd()
111 memcpy(CMSG_DATA(cmsg), &send_fd, sizeof send_fd); in sock_send_fd()
129 sock_fd, send_fd, (int)ret, errno, strerror(errno)); in sock_send_fd()
140 BTIF_TRACE_DEBUG("close fd:%d after sent", send_fd); in sock_send_fd()
145 close(send_fd); in sock_send_fd()
Dbtif_sock_l2cap.cc381 int status, int send_fd, uint16_t rx_mtu, in send_app_connect_signal() argument
390 if (send_fd != -1) { in send_app_connect_signal()
391 if (sock_send_fd(fd, (const uint8_t*)&cs, sizeof(cs), send_fd) == in send_app_connect_signal()
396 << ", send_fd:" << send_fd; in send_app_connect_signal()
Dbtif_sock_rfc.cc468 int status, int send_fd) { in send_app_connect_signal() argument
476 if (send_fd == INVALID_FD) in send_app_connect_signal()
479 return sock_send_fd(fd, (const uint8_t*)&cs, sizeof(cs), send_fd) == in send_app_connect_signal()
/system/connectivity/wificond/tests/
Dlooper_backed_event_loop_unittest.cpp36 android::base::unique_fd send_fd; member in __anonbd9bf3d90111::Pipe
44 send_fd = android::base::unique_fd(fds[1]); in Pipe()
48 ssize_t n_written = ::write(send_fd, "*", 1); in writeSignal()
129 pipe.send_fd, in TEST_F()
137 EXPECT_TRUE(event_loop_->StopWatchFileDescriptor(pipe.send_fd)); in TEST_F()
/system/bt/btif/include/
Dbtif_sock_util.h32 int sock_send_fd(int sock_fd, const uint8_t* buffer, int len, int send_fd);