Searched refs:ctrl_fd (Results 1 – 4 of 4) sorted by relevance
/system/extras/tests/iptables/qtaguid/ |
D | socketTag.cpp | 187 ctrl_fd = -1; in SetUp() 208 ctrl_fd = openCtrl(); in SetUp() 209 ASSERT_GE(ctrl_fd, 0) << "qtaguid ctrl open failed"; in SetUp() 210 close(ctrl_fd); in SetUp() 230 if (ctrl_fd >= 0) { in TearDown() 231 close(ctrl_fd); in TearDown() 237 int ctrl_fd; member in android::SocketTaggingTest
|
/system/bt/audio_hearing_aid_hw/src/ |
D | audio_hearing_aid_hw.cc | 110 int ctrl_fd; member 341 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in ha_ctrl_receive() 360 skt_disconnect(common->ctrl_fd); in ha_ctrl_receive() 361 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in ha_ctrl_receive() 378 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in ha_ctrl_send() 401 skt_disconnect(common->ctrl_fd); in ha_ctrl_send() 402 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in ha_ctrl_send() 414 if (common->ctrl_fd == AUDIO_SKT_DISCONNECTED) { in ha_command() 417 if (common->ctrl_fd == AUDIO_SKT_DISCONNECTED) { in ha_command() 425 OSI_NO_INTR(sent = send(common->ctrl_fd, &cmd, 1, MSG_NOSIGNAL)); in ha_command() [all …]
|
/system/bt/audio_a2dp_hw/src/ |
D | audio_a2dp_hw.cc | 123 int ctrl_fd; member 357 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in a2dp_ctrl_receive() 376 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_receive() 377 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_receive() 394 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in a2dp_ctrl_send() 417 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_send() 418 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_send() 429 if (common->ctrl_fd == AUDIO_SKT_DISCONNECTED) { in a2dp_command() 433 if (common->ctrl_fd == AUDIO_SKT_DISCONNECTED) { in a2dp_command() 442 OSI_NO_INTR(sent = send(common->ctrl_fd, &cmd, 1, MSG_NOSIGNAL)); in a2dp_command() [all …]
|
/system/bt/hci/src/ |
D | hci_layer_linux.cc | 109 void monitor_socket(int ctrl_fd, int fd) { in monitor_socket() argument 154 FD_SET(ctrl_fd, &fds); in monitor_socket() 156 int res = select(std::max(fd, ctrl_fd) + 1, &fds, NULL, NULL, NULL); in monitor_socket() 159 if (FD_ISSET(ctrl_fd, &fds)) { in monitor_socket()
|