/system/bt/btif/src/ |
D | btif_sock_util.cc | 63 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { in sock_send_all() argument 68 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0)); in sock_send_all() 70 BTIF_TRACE_ERROR("sock fd:%d send errno:%d, ret:%d", sock_fd, errno, ret); in sock_send_all() 78 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { in sock_recv_all() argument 83 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL)); in sock_recv_all() 85 BTIF_TRACE_ERROR("sock fd:%d recv errno:%d, ret:%d", sock_fd, errno, ret); in sock_recv_all() 94 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { in sock_send_fd() argument 102 if (sock_fd == -1 || send_fd == -1) return -1; in sock_send_fd() 126 OSI_NO_INTR(ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL)); in sock_send_fd() 129 sock_fd, send_fd, (int)ret, errno, strerror(errno)); in sock_send_fd()
|
D | btif_sock.cc | 45 const Uuid* uuid, int channel, int* sock_fd, 48 const Uuid* uuid, int channel, int* sock_fd, 134 int* sock_fd, int flags, int app_uid) { in btsock_listen() argument 136 CHECK(sock_fd != NULL); in btsock_listen() 139 *sock_fd = INVALID_FD; in btsock_listen() 150 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen() 155 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen() 172 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen() 175 status = btsock_sco_listen(sock_fd, flags); in btsock_listen() 195 const Uuid* uuid, int channel, int* sock_fd, in btsock_connect() argument [all …]
|
D | btif_sock_sco.cc | 69 int* sock_fd); 105 bt_status_t btsock_sco_listen(int* sock_fd, UNUSED_ATTR int flags) { in btsock_sco_listen() argument 106 CHECK(sock_fd != NULL); in btsock_sco_listen() 110 sco_socket_t* sco_socket = sco_socket_establish_locked(true, NULL, sock_fd); in btsock_sco_listen() 119 bt_status_t btsock_sco_connect(const RawAddress* bd_addr, int* sock_fd, in btsock_sco_connect() argument 122 CHECK(sock_fd != NULL); in btsock_sco_connect() 126 sco_socket_establish_locked(false, bd_addr, sock_fd); in btsock_sco_connect() 134 int* sock_fd) { in sco_socket_establish_locked() argument 168 *sock_fd = pair[0]; // Transfer ownership of one end to caller. in sco_socket_establish_locked()
|
D | btif_sock_rfc.cc | 281 int* sock_fd, int flags, int app_uid) { in btsock_rfc_listen() argument 282 CHECK(sock_fd != NULL); in btsock_rfc_listen() 287 *sock_fd = INVALID_FD; in btsock_rfc_listen() 323 *sock_fd = slot->app_fd; // Transfer ownership of fd to caller. in btsock_rfc_listen() 342 int* sock_fd, int flags, int app_uid) { in btsock_rfc_connect() argument 343 CHECK(sock_fd != NULL); in btsock_rfc_connect() 346 *sock_fd = INVALID_FD; in btsock_rfc_connect() 390 *sock_fd = slot->app_fd; // Transfer ownership of fd to caller. in btsock_rfc_connect()
|
D | btif_sock_l2cap.cc | 875 int channel, int* sock_fd, in btsock_l2cap_listen_or_connect() argument 881 if (!sock_fd) return BT_STATUS_PARM_INVALID; in btsock_l2cap_listen_or_connect() 933 *sock_fd = sock->app_fd; in btsock_l2cap_listen_or_connect() 946 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, in btsock_l2cap_listen() argument 948 return btsock_l2cap_listen_or_connect(name, NULL, channel, sock_fd, flags, 1, in btsock_l2cap_listen() 953 int* sock_fd, int flags, int app_uid) { in btsock_l2cap_connect() argument 954 return btsock_l2cap_listen_or_connect(NULL, bd_addr, channel, sock_fd, flags, in btsock_l2cap_connect()
|
/system/bt/btif/include/ |
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);
|
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,
|
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);
|
D | btif_sock_rfc.h | 35 int channel, int* sock_fd, int flags, 39 int* sock_fd, int flags, int app_uid);
|
/system/bt/include/hardware/ |
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/ |
D | os.cpp | 44 int sock_fd = raw_os_->GetControlSocket(socket_name.c_str()); in GetControlSocket() local 45 if (sock_fd < 0) { in GetControlSocket() 48 return {sock_fd, 0}; in GetControlSocket()
|
/system/bt/tools/bdtool/ |
D | bdtool.c | 224 int sock_fd = INVALID_FD; in main() local 225 error = sock->listen(BTSOCK_SCO, NULL, NULL, 5, &sock_fd, 0, app_uid); in main() 261 int sock_fd = INVALID_FD; in main() local 262 error = sock->connect(&bt_remote_bdaddr, BTSOCK_SCO, NULL, 5, &sock_fd, 0, in main()
|