/packages/modules/Bluetooth/system/btif/src/ |
D | btif_sock_util.cc | 47 int sock_send_all(int sock_fd, const uint8_t* buf, int len) { in sock_send_all() argument 52 OSI_NO_INTR(ret = send(sock_fd, buf, s, 0)); in sock_send_all() 54 log::error("sock fd:{} send errno:{}, ret:{}", sock_fd, errno, ret); in sock_send_all() 62 int sock_recv_all(int sock_fd, uint8_t* buf, int len) { in sock_recv_all() argument 67 OSI_NO_INTR(ret = recv(sock_fd, buf, r, MSG_WAITALL)); in sock_recv_all() 69 log::error("sock fd:{} recv errno:{}, ret:{}", sock_fd, errno, ret); in sock_recv_all() 78 int sock_send_fd(int sock_fd, const uint8_t* buf, int len, int send_fd) { in sock_send_fd() argument 86 if (sock_fd == -1 || send_fd == -1) return -1; in sock_send_fd() 110 OSI_NO_INTR(ret = sendmsg(sock_fd, &msg, MSG_NOSIGNAL)); in sock_send_fd() 112 log::error("fd:{}, send_fd:{}, sendmsg ret:{}, errno:{}, {}", sock_fd, in sock_send_fd()
|
D | btif_sock.cc | 49 const Uuid* uuid, int channel, int* sock_fd, 52 const Uuid* uuid, int channel, int* sock_fd, 156 int* sock_fd, int flags, int app_uid) { in btsock_listen() argument 158 log::assert_that(sock_fd != NULL, "assert failed: sock_fd != NULL"); in btsock_listen() 161 *sock_fd = INVALID_FD; in btsock_listen() 173 status = btsock_rfc_listen(service_name, service_uuid, channel, sock_fd, in btsock_listen() 178 btsock_l2cap_listen(service_name, channel, sock_fd, flags, app_uid); in btsock_listen() 181 status = btsock_l2cap_listen(service_name, channel, sock_fd, in btsock_listen() 185 status = btsock_sco_listen(sock_fd, flags); in btsock_listen() 206 const Uuid* uuid, int channel, int* sock_fd, in btsock_connect() argument [all …]
|
D | btif_sock_sco.cc | 67 int* sock_fd); 105 bt_status_t btsock_sco_listen(int* sock_fd, int /* flags */) { in btsock_sco_listen() argument 106 log::assert_that(sock_fd != NULL, "assert failed: 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() 122 bt_status_t btsock_sco_connect(const RawAddress* bd_addr, int* sock_fd, in btsock_sco_connect() argument 125 log::assert_that(sock_fd != NULL, "assert failed: sock_fd != NULL"); in btsock_sco_connect() 129 sco_socket_establish_locked(false, bd_addr, sock_fd); in btsock_sco_connect() 137 int* sock_fd) { in sco_socket_establish_locked() argument 169 *sock_fd = pair[0]; // Transfer ownership of one end to caller. in sco_socket_establish_locked()
|
D | btif_sock_rfc.cc | 296 int* sock_fd, int flags, int app_uid) { in btsock_rfc_listen() argument 297 log::assert_that(sock_fd != NULL, "assert failed: sock_fd != NULL"); in btsock_rfc_listen() 304 *sock_fd = INVALID_FD; in btsock_rfc_listen() 339 *sock_fd = slot->app_fd; // Transfer ownership of fd to caller. in btsock_rfc_listen() 358 int* sock_fd, int flags, int app_uid) { in btsock_rfc_connect() argument 359 log::assert_that(sock_fd != NULL, "assert failed: sock_fd != NULL"); in btsock_rfc_connect() 365 *sock_fd = INVALID_FD; in btsock_rfc_connect() 414 *sock_fd = slot->app_fd; // Transfer ownership of fd to caller. in btsock_rfc_connect()
|
D | btif_sock_l2cap.cc | 829 int channel, int* sock_fd, in btsock_l2cap_listen_or_connect() argument 851 if (!sock_fd) { in btsock_l2cap_listen_or_connect() 891 *sock_fd = sock->app_fd; in btsock_l2cap_listen_or_connect() 904 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, in btsock_l2cap_listen() argument 906 return btsock_l2cap_listen_or_connect(name, NULL, channel, sock_fd, flags, 1, in btsock_l2cap_listen() 911 int* sock_fd, int flags, int app_uid) { in btsock_l2cap_connect() argument 912 return btsock_l2cap_listen_or_connect(NULL, bd_addr, channel, sock_fd, flags, in btsock_l2cap_connect()
|
/packages/modules/Bluetooth/system/gd/rust/linux/utils/src/ |
D | socket.rs | 255 sock_fd: i32, field 267 close_fd(self.sock_fd); in drop() 274 BtSocket { sock_fd: -1, channel_type: HciChannels::Unbound } in new() 279 self.sock_fd >= 0 in has_valid_fd() 285 return self.sock_fd; in open() 296 self.sock_fd = sockfd; in open() 314 self.sock_fd, in bind_channel() 325 let fd = self.sock_fd; in take_fd() 326 self.sock_fd = -1; in take_fd() 341 self.sock_fd, in read_mgmt_packet() [all …]
|
/packages/modules/Bluetooth/system/test/mock/ |
D | mock_btif_sock_rfc.h | 99 int channel, int* sock_fd, int flags, int app_uid)> 104 int channel, int* sock_fd, int flags, int app_uid) { in operator() 105 return body(bd_addr, service_uuid, channel, sock_fd, flags, app_uid); in operator() 166 int channel, int* sock_fd, int flags, int app_uid)> 171 int channel, int* sock_fd, int flags, int app_uid) { in operator() 172 return body(service_name, service_uuid, channel, sock_fd, flags, app_uid); in operator()
|
D | mock_btif_sock_rfc.cc | 91 int* sock_fd, int flags, int app_uid) { in btsock_rfc_connect() argument 94 bd_addr, service_uuid, channel, sock_fd, flags, app_uid); in btsock_rfc_connect() 115 int* sock_fd, int flags, int app_uid) { in btsock_rfc_listen() argument 118 service_name, service_uuid, channel, sock_fd, flags, app_uid); in btsock_rfc_listen()
|
/packages/modules/Bluetooth/system/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 | 29 bt_status_t btsock_sco_listen(int* sock_fd, int flags); 30 bt_status_t btsock_sco_connect(const RawAddress* bd_addr, int* sock_fd,
|
D | btif_sock_l2cap.h | 15 bt_status_t btsock_l2cap_listen(const char* name, int channel, int* sock_fd, 18 int* sock_fd, int flags, int app_uid);
|
D | btif_sock_rfc.h | 40 int channel, int* sock_fd, int flags, 44 int* sock_fd, int flags, int app_uid);
|
/packages/modules/Bluetooth/system/include/hardware/ |
D | bt_sock.h | 76 int* sock_fd, int flags, int callingUid); 86 const bluetooth::Uuid* uuid, int channel, int* sock_fd,
|
/packages/modules/Virtualization/demo_native/ |
D | main.cpp | 335 ScopedFileDescriptor sock_fd; in connect_to_vm_payload() local 336 ScopedAStatus ret = vm->connectVsock(ITestService::PORT, &sock_fd); in connect_to_vm_payload() 340 return sock_fd.release(); in connect_to_vm_payload()
|