Home
last modified time | relevance | path

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

/system/core/fastbootd/
Dsocket_client.c49 struct pollfd fds[2]; in run_socket_client() local
60 fds[0].fd = STDIN_FD; in run_socket_client()
61 fds[0].events = POLLIN; in run_socket_client()
62 fds[1].fd = fd; in run_socket_client()
63 fds[1].events = POLLIN; in run_socket_client()
66 if (poll(fds, 2, -1) <= 0) { in run_socket_client()
71 if (fds[0].revents & POLLIN) { in run_socket_client()
81 if (fds[1].revents & POLLIN) { in run_socket_client()
/system/extras/tests/storage/
Dopentest.c30 int *fds; in main() local
64 fds = malloc(nfiles * sizeof(int)); in main()
65 if (fds == 0) { in main()
84 fds[i] = open(name, O_WRONLY | O_CREAT, 0666); in main()
85 if (fds[i] < 0) { in main()
/system/core/libutils/tests/
DTestHelpers.h30 int fds[2]; in Pipe() local
31 ::pipe(fds); in Pipe()
33 receiveFd = fds[0]; in Pipe()
34 sendFd = fds[1]; in Pipe()
/system/core/adb/
Dframebuffer_service.c62 int fds[2]; in framebuffer_service() local
64 if (pipe2(fds, O_CLOEXEC) < 0) goto pipefail; in framebuffer_service()
70 dup2(fds[1], STDOUT_FILENO); in framebuffer_service()
71 close(fds[0]); in framebuffer_service()
72 close(fds[1]); in framebuffer_service()
79 fd_screencap = fds[0]; in framebuffer_service()
178 close(fds[0]); in framebuffer_service()
179 close(fds[1]); in framebuffer_service()
Djdwp_service.c405 int fds[2]; in create_jdwp_connection_fd() local
413 if (adb_socketpair(fds) < 0) { in create_jdwp_connection_fd()
419 proc->out_fds[ proc->out_count ] = fds[1]; in create_jdwp_connection_fd()
423 return fds[0]; in create_jdwp_connection_fd()
Dcommandline.c359 int *fds = (int*) x; in stdin_read_thread() local
360 fd = fds[0]; in stdin_read_thread()
361 fdi = fds[1]; in stdin_read_thread()
362 free(fds); in stdin_read_thread()
409 int *fds; in interactive_shell() local
418 fds = malloc(sizeof(int) * 2); in interactive_shell()
419 fds[0] = fd; in interactive_shell()
420 fds[1] = fdi; in interactive_shell()
425 adb_thread_create(&thr, stdin_read_thread, fds); in interactive_shell()
Dfdevent.c296 static int fdevent_fd_check(fd_set *fds) in fdevent_fd_check() argument
305 FD_SET(i, fds); in fdevent_fd_check()
/system/core/include/utils/
DFlattenable.h96 inline status_t flatten(void*& buffer, size_t& size, int*& fds, size_t& count) const;
105 inline status_t unflatten(void const*& buffer, size_t& size, int const*& fds, size_t& count);
118 void*& buffer, size_t& size, int*& fds, size_t& count) const { in flatten() argument
119 return static_cast<T const*>(this)->T::flatten(buffer, size, fds, count); in flatten()
123 void const*& buffer, size_t& size, int const*& fds, size_t& count) { in unflatten() argument
124 return static_cast<T*>(this)->T::unflatten(buffer, size, fds, count); in unflatten()
/system/core/adf/libadfhwc/
Dadfhwc.cpp210 pollfd *fds = new pollfd[dev->intf_fds.size()]; in adf_event_thread() local
212 fds[i].fd = dev->intf_fds[i]; in adf_event_thread()
213 fds[i].events = POLLIN | POLLPRI; in adf_event_thread()
217 int err = poll(fds, dev->intf_fds.size(), -1); in adf_event_thread()
221 if (fds[i].revents & (POLLIN | POLLPRI)) in adf_event_thread()
231 delete [] fds; in adf_event_thread()
/system/core/libion/tests/
Dallocate_test.cpp97 int fds[16]; in TEST_F() local
111 fds[i] = map_fd; in TEST_F()
115 ASSERT_EQ(0, close(fds[i])); in TEST_F()
/system/core/libsync/tests/
Dsync_test.cpp391 struct pollfd fds; in TEST() local
392 fds.fd = fenceKill.getFd(); in TEST()
393 fds.events = POLLIN | POLLERR; in TEST()
394 ASSERT_EQ(poll(&fds, 1, -1), 1); in TEST()
395 ASSERT_TRUE(fds.revents & POLLERR); in TEST()