Searched refs:sock_fd (Results 1 - 12 of 12) sorted by relevance

/system/bt/btif/include/
H A Dbtif_sock_util.h32 int sock_send_fd(int sock_fd, const uint8_t* buffer, int len, int send_fd);
33 int sock_send_all(int sock_fd, const uint8_t* buf, int len);
34 int sock_recv_all(int sock_fd, uint8_t* buf, int len);
H A Dbtif_sock_sco.h27 bt_status_t btsock_sco_listen(int* sock_fd, int flags);
28 bt_status_t btsock_sco_connect(const RawAddress* bd_addr, int* sock_fd,
H A Dbtif_sock_l2cap.h16 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd,
19 int* sock_fd, int flags, int app_uid);
H A Dbtif_sock_rfc.h35 int channel, int* sock_fd, int flags,
39 int* sock_fd, int flags, int app_uid);
/system/bt/btif/src/
H A Dbtif_sock_util.cc63 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { argument
68 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0));
70 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret);
78 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { argument
83 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL));
85 BTIF_TRACE_ERROR("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret);
94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { argument
102 if (sock_fd == -1 || send_fd == -1) return -1;
126 OSI_NO_INTR(ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL));
129 sock_fd, send_f
[all...]
H A Dbtif_sock.cc43 const Uuid* uuid, int channel, int* sock_fd,
46 const Uuid* uuid, int channel, int* sock_fd,
132 int* sock_fd, int flags, int app_uid) {
134 CHECK(sock_fd != NULL);
137 *sock_fd = INVALID_FD;
143 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd,
148 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid);
165 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid);
168 status = btsock_sco_listen(sock_fd, flags);
181 const Uuid* uuid, int channel, int* sock_fd,
130 btsock_listen(btsock_type_t type, const char* service_name, const Uuid* service_uuid, int channel, int* sock_fd, int flags, int app_uid) argument
180 btsock_connect(const RawAddress* bd_addr, btsock_type_t type, const Uuid* uuid, int channel, int* sock_fd, int flags, int app_uid) argument
[all...]
H A Dbtif_sock_sco.cc69 int* sock_fd);
105 bt_status_t btsock_sco_listen(int* sock_fd, UNUSED_ATTR int flags) { argument
106 CHECK(sock_fd != NULL);
110 sco_socket_t* sco_socket = sco_socket_establish_locked(true, NULL, sock_fd);
119 bt_status_t btsock_sco_connect(const RawAddress* bd_addr, int* sock_fd, argument
122 CHECK(sock_fd != NULL);
126 sco_socket_establish_locked(false, bd_addr, sock_fd);
134 int* sock_fd) {
168 *sock_fd = pair[0]; // Transfer ownership of one end to caller.
132 sco_socket_establish_locked(bool is_listening, const RawAddress* bd_addr, int* sock_fd) argument
H A Dbtif_sock_rfc.cc271 int* sock_fd, int flags, int app_uid) {
272 CHECK(sock_fd != NULL);
277 *sock_fd = INVALID_FD;
313 *sock_fd = slot->app_fd; // Transfer ownership of fd to caller.
332 int* sock_fd, int flags, int app_uid) {
333 CHECK(sock_fd != NULL);
336 *sock_fd = INVALID_FD;
380 *sock_fd = slot->app_fd; // Transfer ownership of fd to caller.
269 btsock_rfc_listen(const char* service_name, const Uuid* service_uuid, int channel, int* sock_fd, int flags, int app_uid) argument
330 btsock_rfc_connect(const RawAddress* bd_addr, const Uuid* service_uuid, int channel, int* sock_fd, int flags, int app_uid) argument
H A Dbtif_sock_l2cap.cc809 int channel, int* sock_fd,
815 if (!sock_fd) return BT_STATUS_PARM_INVALID;
867 *sock_fd = sock->app_fd;
880 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, argument
882 return btsock_l2cap_listen_or_connect(name, NULL, channel, sock_fd, flags, 1,
887 int* sock_fd, int flags, int app_uid) {
888 return btsock_l2cap_listen_or_connect(NULL, bd_addr, channel, sock_fd, flags,
807 btsock_l2cap_listen_or_connect(const char* name, const RawAddress* addr, int channel, int* sock_fd, int flags, char listen, int app_uid) argument
886 btsock_l2cap_connect(const RawAddress* bd_addr, int channel, int* sock_fd, int flags, int app_uid) argument
/system/bt/include/hardware/
H A Dbt_sock.h66 int* sock_fd, int flags, int callingUid);
76 const bluetooth::Uuid* uuid, int channel, int* sock_fd,
/system/connectivity/wifilogd/
H A Dos.cpp44 int sock_fd = raw_os_->GetControlSocket(socket_name.c_str()); local
45 if (sock_fd < 0) {
48 return {sock_fd, 0};
/system/bt/tools/bdtool/
H A Dbdtool.c224 int sock_fd = INVALID_FD; local
225 error = sock->listen(BTSOCK_SCO, NULL, NULL, 5, &sock_fd, 0, app_uid);
261 int sock_fd = INVALID_FD; local
262 error = sock->connect(&bt_remote_bdaddr, BTSOCK_SCO, NULL, 5, &sock_fd, 0,

Completed in 965 milliseconds