Searched refs:ctrl_fd (Results 1 – 2 of 2) sorted by relevance
/system/extras/tests/iptables/qtaguid/ |
D | socketTag.cpp | 134 int ctrl_fd; in checkTag() local 135 ctrl_fd = openCtrl(); in checkTag() 148 read_size = read(ctrl_fd, ctrl_data, sizeof(ctrl_data)); in checkTag() 186 close(ctrl_fd); in checkTag() 194 ctrl_fd = -1; in SetUp() 215 ctrl_fd = openCtrl(); in SetUp() 216 ASSERT_GE(ctrl_fd, 0) << "qtaguid ctrl open failed"; in SetUp() 217 close(ctrl_fd); in SetUp() 237 if (ctrl_fd >= 0) { in TearDown() 238 close(ctrl_fd); in TearDown() [all …]
|
/system/bt/audio_a2dp_hw/ |
D | audio_a2dp_hw.c | 107 int ctrl_fd; member 339 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in a2dp_ctrl_receive() 358 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_receive() 359 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_receive() 370 if (common->ctrl_fd == AUDIO_SKT_DISCONNECTED) { in a2dp_command() 373 if (common->ctrl_fd == AUDIO_SKT_DISCONNECTED) { in a2dp_command() 381 OSI_NO_INTR(sent = send(common->ctrl_fd, &cmd, 1, MSG_NOSIGNAL)); in a2dp_command() 385 skt_disconnect(common->ctrl_fd); in a2dp_command() 386 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_command() 451 if ((common->ctrl_fd = skt_connect(A2DP_CTRL_PATH, common->buffer_sz)) > 0) in a2dp_open_ctrl_path() [all …]
|