Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 25 of 46) sorted by relevance

12

/hardware/interfaces/dumpstate/1.1/vts/functional/
DVtsHalDumpstateV1_1TargetTest.cpp161 int fds[2]; in TEST_P() local
162 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in TEST_P()
166 handle->data[0] = fds[1]; in TEST_P()
171 AssertStatusForMode(status, DumpstateStatus::OK, [&fds]() { in TEST_P()
174 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "Dumped nothing"; in TEST_P()
215 int fds[2]; in TEST_P() local
216 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in TEST_P()
220 handle->data[0] = fds[1]; in TEST_P()
237 int fds[2]; in TEST_P() local
238 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in TEST_P()
[all …]
/hardware/libhardware_legacy/
Duevent.c77 struct pollfd fds; in uevent_next_event() local
80 fds.fd = fd; in uevent_next_event()
81 fds.events = POLLIN; in uevent_next_event()
82 fds.revents = 0; in uevent_next_event()
83 nr = poll(&fds, 1, -1); in uevent_next_event()
85 if(nr > 0 && (fds.revents & POLLIN)) { in uevent_next_event()
/hardware/interfaces/dumpstate/1.0/vts/functional/
DVtsHalDumpstateV1_0TargetTest.cpp66 int fds[2]; in TEST_P() local
67 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in TEST_P()
71 handle->data[0] = fds[1]; in TEST_P()
78 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "dumped nothing"; in TEST_P()
/hardware/knowles/athletico/sound_trigger_hal/tests/
Dcrash_event_logger.c592 struct pollfd fds[2]; in main() local
619 fds[0].events = POLLIN; in main()
620 fds[0].fd = uevent_open_socket(64*1024, true); in main()
621 if (fds[0].fd == -1) { in main()
626 fds[1].events = POLLIN; in main()
627 fds[1].fd = g_exit_socket[1]; in main()
630 err = poll (fds, 2, timeout); in main()
632 if (fds[0].revents & POLLIN) { in main()
633 n = uevent_kernel_multicast_recv(fds[0].fd, msg, UEVENT_MSG_LEN); in main()
651 } else if (fds[1].revents & POLLIN) { in main()
[all …]
/hardware/interfaces/bluetooth/1.0/default/
Dmct_protocol.cc31 MctProtocol::MctProtocol(int* fds, PacketReadCallback event_cb, in MctProtocol() argument
38 uart_fds_[i] = fds[i];
Dmct_protocol.h33 MctProtocol(int* fds, PacketReadCallback event_cb, PacketReadCallback acl_cb);
/hardware/interfaces/common/aidl/android/hardware/common/
DNativeHandle.aidl24 ParcelFileDescriptor[] fds;
/hardware/interfaces/common/aidl/aidl_api/android.hardware.common/current/android/hardware/common/
DNativeHandle.aidl21 ParcelFileDescriptor[] fds;
/hardware/qcom/gps/msm8996/utils/
DLocTimer.cpp451 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
454 bool rerun = (fds > 0) || (errno == EINTR); in run()
456 if (fds > 0) { in run()
458 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8998/utils/
DLocTimer.cpp451 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
454 bool rerun = (fds > 0) || (errno == EINTR); in run()
456 if (fds > 0) { in run()
458 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8909w_3100/utils/
DLocTimer.cpp452 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
455 bool rerun = (fds > 0) || (errno == EINTR); in run()
457 if (fds > 0) { in run()
459 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/sdm845/gps/msm8996/utils/
DLocTimer.cpp450 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
453 bool rerun = (fds > 0) || (errno == EINTR); in run()
455 if (fds > 0) { in run()
457 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/sdm845/gps/msm8998/utils/
DLocTimer.cpp451 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
454 bool rerun = (fds > 0) || (errno == EINTR); in run()
456 if (fds > 0) { in run()
458 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/sdm845/gps/sdm845/utils/
DLocTimer.cpp454 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
457 bool rerun = (fds > 0) || (errno == EINTR); in run()
459 if (fds > 0) { in run()
461 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/sm8150/gps/utils/
DLocTimer.cpp454 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
457 bool rerun = (fds > 0) || (errno == EINTR); in run()
459 if (fds > 0) { in run()
461 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/sdm845/gps/msm8909/utils/
DLocTimer.cpp452 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
455 bool rerun = (fds > 0) || (errno == EINTR); in run()
457 if (fds > 0) { in run()
459 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/gps/msm8909/utils/
DLocTimer.cpp452 int fds = epoll_wait(mFd, ev, 2, -1); in run() local
455 bool rerun = (fds > 0) || (errno == EINTR); in run()
457 if (fds > 0) { in run()
459 for (int i = 0; i < fds; i++) { in run()
/hardware/qcom/media/msm8996/mm-video-v4l2/vidc/venc/src/
Domx_swvenc_hevc.cpp101 int fds[2]; in component_init() local
327 if (pipe(fds)) { in component_init()
331 if (fds[0] == 0 || fds[1] == 0) { in component_init()
332 if (pipe(fds)) { in component_init()
338 m_pipe_in = fds[0]; in component_init()
339 m_pipe_out = fds[1]; in component_init()
Domx_swvenc_mpeg4.cpp119 int fds[2]; in component_init() local
421 if (pipe(fds)) in component_init()
428 if ((fds[0] == 0) || (fds[1] == 0)) in component_init()
430 if (pipe(fds)) in component_init()
438 m_pipe_in = fds[0]; in component_init()
439 m_pipe_out = fds[1]; in component_init()
/hardware/qcom/media/msm8974/mm-video-legacy/vidc/venc/src/
Domx_video_encoder.cpp101 int fds[2]; in component_init() local
420 if(pipe(fds)) in component_init()
427 if(fds[0] == 0 || fds[1] == 0) in component_init()
429 if(pipe(fds)) in component_init()
437 m_pipe_in = fds[0]; in component_init()
438 m_pipe_out = fds[1]; in component_init()
/hardware/interfaces/audio/core/all-versions/vts/functional/
DAudioPrimaryHidlHalTest.h777 int fds[2]; in testDebugDump() local
778 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; in testDebugDump()
782 fcntl(fds[0], F_SETPIPE_SZ, 1 << 20); in testDebugDump()
787 nativeHandle->data[0] = fds[1]; in testDebugDump()
800 if (read(fds[0], &buff, 1) != 1) { in testDebugDump()
803 EXPECT_EQ(0, close(fds[0])) << errno; in testDebugDump()
804 EXPECT_EQ(0, close(fds[1])) << errno; in testDebugDump()
/hardware/qcom/camera/msm8998/usbcamcore/src/
DQualcommUsbCamera.cpp2050 fd_set fds; in previewloop() local
2054 FD_ZERO(&fds); in previewloop()
2056 FD_SET(camHal->fd, &fds); in previewloop()
2067 r = select(camHal->fd + 1, &fds, NULL, NULL, &tv); in previewloop()
2518 fd_set fds; in takePictureThread() local
2522 FD_ZERO(&fds); in takePictureThread()
2523 FD_SET(camHal->fd, &fds); in takePictureThread()
2530 r = select(camHal->fd + 1, &fds, NULL, NULL, &tv); in takePictureThread()
/hardware/knowles/athletico/sound_trigger_hal/
Dsound_trigger_hw_iaxxx.c2197 struct pollfd fds[2]; in callback_thread_loop() local
2222 memset(fds, 0, 2 * sizeof(struct pollfd)); in callback_thread_loop()
2224 fds[0].events = POLLIN; in callback_thread_loop()
2225 fds[0].fd = uevent_open_socket(64*1024, true); in callback_thread_loop()
2226 if (fds[0].fd == -1) { in callback_thread_loop()
2231 fds[1].events = POLLIN; in callback_thread_loop()
2232 fds[1].fd = stdev->recv_sock; in callback_thread_loop()
2281 err = poll(fds, 2, timeout); in callback_thread_loop()
2290 if (fds[0].revents & POLLIN) { in callback_thread_loop()
2291 n = uevent_kernel_multicast_recv(fds[0].fd, msg, UEVENT_MSG_LEN); in callback_thread_loop()
[all …]
/hardware/interfaces/graphics/bufferqueue/2.0/
Dtypes.hal80 * An "empty" fence can be an empty handle (containing no fds and no ints) or a
/hardware/qcom/media/msm8974/mm-video-v4l2/vidc/venc/src/
Domx_video_encoder.cpp123 int fds[2]; in component_init() local
484 if (pipe(fds)) { in component_init()
488 if (fds[0] == 0 || fds[1] == 0) { in component_init()
489 if (pipe(fds)) { in component_init()
495 m_pipe_in = fds[0]; in component_init()
496 m_pipe_out = fds[1]; in component_init()

12