Searched defs:fds (Results 1 - 25 of 30) sorted by relevance

12

/hardware/interfaces/dumpstate/1.0/vts/functional/
H A DVtsHalDumpstateV1_0TargetTest.cpp79 int fds[2]; local
80 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno;
84 handle->data[0] = fds[1];
91 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "dumped nothing";
/hardware/interfaces/bluetooth/1.0/default/
H A Dmct_protocol.cc31 MctProtocol::MctProtocol(int* fds, PacketReadCallback event_cb, argument
38 uart_fds_[i] = fds[i];
/hardware/intel/img/hwcomposer/merrifield/common/observers/
H A DUeventObserver.cpp159 struct pollfd fds[2]; local
162 fds[0].fd = mUeventFd;
163 fds[0].events = POLLIN;
164 fds[0].revents = 0;
165 fds[1].fd = mExitRDFd;
166 fds[1].events = POLLIN;
167 fds[1].revents = 0;
168 nr = poll(fds, 2, -1);
170 if (nr > 0 && fds[0].revents == POLLIN) {
175 } else if (fds[
[all...]
/hardware/intel/img/hwcomposer/moorefield_hdmi/common/observers/
H A DUeventObserver.cpp159 struct pollfd fds[2]; local
162 fds[0].fd = mUeventFd;
163 fds[0].events = POLLIN;
164 fds[0].revents = 0;
165 fds[1].fd = mExitRDFd;
166 fds[1].events = POLLIN;
167 fds[1].revents = 0;
168 nr = poll(fds, 2, -1);
170 if (nr > 0 && fds[0].revents == POLLIN) {
175 } else if (fds[
[all...]
/hardware/libhardware_legacy/
H A Duevent.c77 struct pollfd fds; local
80 fds.fd = fd;
81 fds.events = POLLIN;
82 fds.revents = 0;
83 nr = poll(&fds, 1, -1);
85 if(nr > 0 && (fds.revents & POLLIN)) {
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
H A Domx_video_encoder.cpp101 int fds[2]; local
420 if(pipe(fds))
427 if(fds[0] == 0 || fds[1] == 0)
429 if(pipe(fds))
437 m_pipe_in = fds[0];
438 m_pipe_out = fds[1];
/hardware/qcom/gps/msm8909/utils/
H A DLocTimer.cpp130 // This class implements the polling thread that epolls imer / alarm fds.
133 // fds the kernel, while the polling is blocked on epoll_wait() call.
135 // timers; one for all the alarms, we will poll at most on 2 fds. But it
137 // allow dynamically add / remove fds we poll on. The design decision of
452 int fds = epoll_wait(mFd, ev, 2, -1); local
455 bool rerun = (fds > 0) || (errno == EINTR);
457 if (fds > 0) {
459 for (int i = 0; i < fds; i++) {
/hardware/qcom/gps/msm8909w_3100/utils/
H A DLocTimer.cpp130 // This class implements the polling thread that epolls imer / alarm fds.
133 // fds the kernel, while the polling is blocked on epoll_wait() call.
135 // timers; one for all the alarms, we will poll at most on 2 fds. But it
137 // allow dynamically add / remove fds we poll on. The design decision of
452 int fds = epoll_wait(mFd, ev, 2, -1); local
455 bool rerun = (fds > 0) || (errno == EINTR);
457 if (fds > 0) {
459 for (int i = 0; i < fds; i++) {
/hardware/qcom/gps/msm8996/utils/
H A DLocTimer.cpp131 // This class implements the polling thread that epolls imer / alarm fds.
134 // fds the kernel, while the polling is blocked on epoll_wait() call.
136 // timers; one for all the alarms, we will poll at most on 2 fds. But it
138 // allow dynamically add / remove fds we poll on. The design decision of
451 int fds = epoll_wait(mFd, ev, 2, -1); local
454 bool rerun = (fds > 0) || (errno == EINTR);
456 if (fds > 0) {
458 for (int i = 0; i < fds; i++) {
/hardware/qcom/gps/msm8998/utils/
H A DLocTimer.cpp131 // This class implements the polling thread that epolls imer / alarm fds.
134 // fds the kernel, while the polling is blocked on epoll_wait() call.
136 // timers; one for all the alarms, we will poll at most on 2 fds. But it
138 // allow dynamically add / remove fds we poll on. The design decision of
451 int fds = epoll_wait(mFd, ev, 2, -1); local
454 bool rerun = (fds > 0) || (errno == EINTR);
456 if (fds > 0) {
458 for (int i = 0; i < fds; i++) {
/hardware/interfaces/audio/core/2.0/vts/functional/
H A DAudioPrimaryHidlHalTest.cpp464 // File descriptors to our pipe. fds[0] corresponds to the read end and
465 // fds[1] to the write end.
466 int fds[2]; local
467 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno;
471 fcntl(fds[0], F_SETPIPE_SZ, 1 << 20);
476 nativeHandle->data[0] = fds[1];
489 if (read(fds[0], &buff, 1) != 1) {
492 EXPECT_EQ(0, close(fds[0])) << errno;
493 EXPECT_EQ(0, close(fds[1])) << errno;
/hardware/interfaces/audio/core/4.0/vts/functional/
H A DAudioPrimaryHidlHalTest.cpp505 // File descriptors to our pipe. fds[0] corresponds to the read end and
506 // fds[1] to the write end.
507 int fds[2]; local
508 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno;
512 fcntl(fds[0], F_SETPIPE_SZ, 1 << 20);
517 nativeHandle->data[0] = fds[1];
530 if (read(fds[0], &buff, 1) != 1) {
533 EXPECT_EQ(0, close(fds[0])) << errno;
534 EXPECT_EQ(0, close(fds[1])) << errno;
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
H A Domx_video_encoder.cpp123 int fds[2]; local
484 if (pipe(fds)) {
488 if (fds[0] == 0 || fds[1] == 0) {
489 if (pipe(fds)) {
495 m_pipe_in = fds[0];
496 m_pipe_out = fds[1];
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
H A Domx_swvenc_hevc.cpp101 int fds[2]; local
327 if (pipe(fds)) {
331 if (fds[0] == 0 || fds[1] == 0) {
332 if (pipe(fds)) {
338 m_pipe_in = fds[0];
339 m_pipe_out = fds[1];
H A Domx_swvenc_mpeg4.cpp119 int fds[2]; local
421 if (pipe(fds))
428 if ((fds[0] == 0) || (fds[1] == 0))
430 if (pipe(fds))
438 m_pipe_in = fds[0];
439 m_pipe_out = fds[1];
H A Domx_video_encoder.cpp196 int fds[2]; local
566 if (pipe(fds)) {
570 if (fds[0] == 0 || fds[1] == 0) {
571 if (pipe(fds)) {
577 m_pipe_in = fds[0];
578 m_pipe_out = fds[1];
/hardware/qcom/media/msm8998/mm-video-v4l2/vidc/venc/src/
H A Domx_swvenc_mpeg4.cpp119 int fds[2]; local
421 if (pipe(fds))
428 if ((fds[0] == 0) || (fds[1] == 0))
430 if (pipe(fds))
438 m_pipe_in = fds[0];
439 m_pipe_out = fds[1];
H A Domx_video_encoder.cpp191 int fds[2]; local
584 if (pipe(fds)) {
589 if (fds[0] == 0 || fds[1] == 0) {
590 if (pipe(fds)) {
597 m_pipe_in = fds[0];
598 m_pipe_out = fds[1];
/hardware/qcom/camera/msm8998/usbcamcore/src/
H A DQualcommUsbCamera.cpp2050 fd_set fds; local
2054 FD_ZERO(&fds);
2056 FD_SET(camHal->fd, &fds);
2067 r = select(camHal->fd + 1, &fds, NULL, NULL, &tv);
2518 fd_set fds; local
2522 FD_ZERO(&fds);
2523 FD_SET(camHal->fd, &fds);
2530 r = select(camHal->fd + 1, &fds, NULL, NULL, &tv);
/hardware/qcom/media/msm8996/videopp/src/
H A Domx_vdpp.cpp1449 int fds[2]; local
1714 if(pipe(fds))
1722 if(fds[0] == 0 || fds[1] == 0)
1729 fds[0] = temp1 [0];
1730 fds[1] = temp1 [1];
1732 m_pipe_in = fds[0];
1733 m_pipe_out = fds[1];
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/vdec/src/
H A Domx_vdec.cpp1193 int fds[2]; local
1578 if(pipe(fds))
1586 if(fds[0] == 0 || fds[1] == 0)
1593 //close (fds[0]);
1594 //close (fds[1]);
1595 fds[0] = temp1 [0];
1596 fds[1] = temp1 [1];
1598 m_pipe_in = fds[0];
1599 m_pipe_out = fds[
[all...]
H A Domx_vdec_copper.cpp1193 int fds[2]; local
1494 if(pipe(fds))
1502 if(fds[0] == 0 || fds[1] == 0)
1509 //close (fds[0]);
1510 //close (fds[1]);
1511 fds[0] = temp1 [0];
1512 fds[1] = temp1 [1];
1514 m_pipe_in = fds[0];
1515 m_pipe_out = fds[
[all...]
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec.cpp1157 int fds[2]; local
1544 if (pipe(fds)) {
1550 if (fds[0] == 0 || fds[1] == 0) {
1556 //close (fds[0]);
1557 //close (fds[1]);
1558 fds[0] = temp1 [0];
1559 fds[1] = temp1 [1];
1562 m_pipe_in = fds[0];
1563 m_pipe_out = fds[
[all...]
H A Domx_vdec_hevc.cpp1241 int fds[2]; local
1586 if (pipe(fds)) {
1591 if (fds[0] == 0 || fds[1] == 0) {
1596 //close (fds[0]);
1597 //close (fds[1]);
1598 fds[0] = temp1 [0];
1599 fds[1] = temp1 [1];
1601 m_pipe_in = fds[0];
1602 m_pipe_out = fds[
[all...]
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/vdec/src/
H A Domx_vdec_hevc.cpp1236 int fds[2]; local
1565 if (pipe(fds)) {
1570 if (fds[0] == 0 || fds[1] == 0) {
1575 //close (fds[0]);
1576 //close (fds[1]);
1577 fds[0] = temp1 [0];
1578 fds[1] = temp1 [1];
1580 m_pipe_in = fds[0];
1581 m_pipe_out = fds[
[all...]

Completed in 3570 milliseconds

12