/system/bt/btif/include/ |
H A D | btif_sock_util.h | 32 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 D | btif_sock_sco.h | 27 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 D | btif_sock_l2cap.h | 16 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 D | btif_sock_rfc.h | 35 int channel, int* sock_fd, int flags, 39 int* sock_fd, int flags, int app_uid);
|
/system/bt/btif/src/ |
H A D | btif_sock_util.cc | 63 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 D | btif_sock.cc | 43 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 D | btif_sock_sco.cc | 69 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 D | btif_sock_rfc.cc | 271 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 D | btif_sock_l2cap.cc | 809 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 D | bt_sock.h | 66 int* sock_fd, int flags, int callingUid); 76 const bluetooth::Uuid* uuid, int channel, int* sock_fd,
|
/system/connectivity/wifilogd/ |
H A D | os.cpp | 44 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 D | bdtool.c | 224 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,
|