/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptorPeer.java | 60 ParcelFileDescriptor[] pfds = ParcelFileDescriptor.createReliablePipe(); local 61 mLocal = pfds[0]; 62 mRemote = pfds[1]; 71 ParcelFileDescriptor[] pfds = ParcelFileDescriptor.createReliablePipe(); local 72 mLocal = pfds[1]; 73 mRemote = pfds[0]; 82 ParcelFileDescriptor[] pfds = ParcelFileDescriptor.createReliableSocketPair(); local 83 mLocal = pfds[0]; 84 mRemote = pfds[1];
|
/device/moto/shamu/camera/QCamera/stack/mm-camera-interface/src/ |
mm_camera_thread.c | 79 len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 115 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); 117 __func__, poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); 122 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; 221 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; 305 poll_cb->pfds[0] = 0; 306 poll_cb->pfds[1] = 0; 307 rc = pipe(poll_cb->pfds); 317 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms) [all...] |
/device/huawei/angler/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_thread.c | 97 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 143 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 215 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); 217 __func__, poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); 223 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; 350 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; 512 poll_cb->pfds[0] = -1; 513 poll_cb->pfds[1] = -1; 514 rc = pipe(poll_cb->pfds); 524 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms) [all...] |
/device/lge/bullhead/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_thread.c | 97 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 143 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 215 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); 217 __func__, poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); 223 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; 350 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; 512 poll_cb->pfds[0] = -1; 513 poll_cb->pfds[1] = -1; 514 rc = pipe(poll_cb->pfds); 524 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms) [all...] |
/device/moto/shamu/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_thread.c | 98 len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 143 len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 213 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); 215 __func__, poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); 221 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; 348 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; 498 poll_cb->pfds[0] = -1; 499 poll_cb->pfds[1] = -1; 500 rc = pipe(poll_cb->pfds); 510 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms) [all...] |
/hardware/qcom/camera/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_thread.c | 98 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 144 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 216 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); 218 poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); 224 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; 351 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; 518 poll_cb->pfds[0] = -1; 519 poll_cb->pfds[1] = -1; 520 rc = pipe(poll_cb->pfds); 530 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms) [all...] |
/hardware/qcom/camera/msmcobalt/QCamera2/stack/mm-camera-interface/src/ |
mm_camera_thread.c | 98 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 144 ssize_t len = write(poll_cb->pfds[1], &cmd_evt, sizeof(cmd_evt)); 216 read_len = read(poll_cb->pfds[0], &cmd_evt, sizeof(cmd_evt)); 218 poll_cb->pfds[0], (int)read_len, (int)sizeof(cmd_evt), cmd_evt.cmd); 224 poll_cb->poll_fds[poll_cb->num_fds].fd = poll_cb->pfds[0]; 351 poll_cb->poll_fds[poll_cb->num_fds++].fd = poll_cb->pfds[0]; 498 poll_cb->pfds[0] = -1; 499 poll_cb->pfds[1] = -1; 500 rc = pipe(poll_cb->pfds); 510 poll_cb->pfds[0], poll_cb->pfds[1],poll_cb->timeoutms) [all...] |
/system/bt/btif/src/ |
btif_sock_thread.c | 503 static void process_data_sock(int h, struct pollfd *pfds, int count) 509 if(pfds[i].revents) 512 asrt(pfds[i].fd == ts[h].ps[ps_i].pfd.fd); 516 print_events(pfds[i].revents); 517 if(IS_READ(pfds[i].revents)) 521 if(IS_WRITE(pfds[i].revents)) 525 if(IS_EXCEPTION(pfds[i].revents)) 534 ts[h].callback(pfds[i].fd, type, flags, user_id); 539 static void prepare_poll_fds(int h, struct pollfd* pfds) 545 memset(pfds, 0, sizeof(pfds[0])*ts[h].poll_count) 566 struct pollfd pfds[MAX_POLL]; local [all...] |
/external/toybox/toys/pending/ |
telnet.c | 291 struct pollfd pfds[2]; local 313 pfds[0].fd = STDIN_FILENO; 314 pfds[0].events = POLLIN; 315 pfds[1].fd = TT.sfd; 316 pfds[1].events = POLLIN; 321 if(poll(pfds, 2, -1) < 0) { 327 if(pfds[0].revents) { 332 if(pfds[1].revents) {
|
/external/fio/engines/ |
binject.c | 25 struct pollfd *pfds; member in struct:binject_data 51 static int pollin_events(struct pollfd *pfds, int fds) 56 if (pfds[i].revents & POLLIN) 117 bd->pfds[i].fd = bf->fd; 118 bd->pfds[i].events = POLLIN; 123 ret = poll(bd->pfds, td->o.nr_files, -1); 132 if (pollin_events(bd->pfds, td->o.nr_files)) 385 free(bd->pfds); 403 bd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); 404 memset(bd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files) [all...] |
sg.c | 26 struct pollfd *pfds; member in struct:sgio_data 53 static int pollin_events(struct pollfd *pfds, int fds) 58 if (pfds[i].revents & POLLIN) 86 sd->pfds[i].fd = f->fd; 87 sd->pfds[i].events = POLLIN; 97 ret = poll(sd->pfds, td->o.nr_files, -1); 106 if (pollin_events(sd->pfds, td->o.nr_files)) 317 free(sd->pfds); 333 sd->pfds = malloc(sizeof(struct pollfd) * td->o.nr_files); 334 memset(sd->pfds, 0, sizeof(struct pollfd) * td->o.nr_files) [all...] |
/device/google/contexthub/util/nanotool/ |
androidcontexthub.cpp | 369 int AndroidContextHub::ResetPollFds(struct pollfd *pfds, size_t count) { 370 memset(pfds, 0, sizeof(struct pollfd) * count); 371 pfds[0].fd = sensor_fd_; 372 pfds[0].events = POLLIN; 376 pfds[1].fd = comms_fd_; 377 pfds[1].events = POLLIN;
|
androidcontexthub.h | 63 int ResetPollFds(struct pollfd *pfds, size_t count);
|
/system/core/adb/ |
sysdeps_test.cpp | 223 std::vector<adb_pollfd> pfds; local 231 pfds.push_back(pfd); 234 ASSERT_EQ(num_sockets, adb_poll(pfds.data(), pfds.size(), 0)); 236 ASSERT_NE(0, pfds[i].revents & POLLIN); 239 ASSERT_EQ(adb_read(pfds[i].fd, buf, sizeof(buf)), static_cast<ssize_t>(sizeof(int32_t)));
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/alsa/ |
hwdep.h | 99 int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space); 100 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
control_external.h | 233 int (*poll_descriptors)(snd_ctl_ext_t *ext, struct pollfd *pfds, unsigned int space); 237 int (*poll_revents)(snd_ctl_ext_t *ext, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
rawmidi.h | 88 int snd_rawmidi_poll_descriptors(snd_rawmidi_t *rmidi, struct pollfd *pfds, unsigned int space); 89 int snd_rawmidi_poll_descriptors_revents(snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int nfds, unsigned short *revent);
|
timer.h | 157 int snd_timer_poll_descriptors(snd_timer_t *handle, struct pollfd *pfds, unsigned int space); 158 int snd_timer_poll_descriptors_revents(snd_timer_t *timer, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/alsa/ |
hwdep.h | 99 int snd_hwdep_poll_descriptors(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int space); 100 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
control_external.h | 233 int (*poll_descriptors)(snd_ctl_ext_t *ext, struct pollfd *pfds, unsigned int space); 237 int (*poll_revents)(snd_ctl_ext_t *ext, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
rawmidi.h | 88 int snd_rawmidi_poll_descriptors(snd_rawmidi_t *rmidi, struct pollfd *pfds, unsigned int space); 89 int snd_rawmidi_poll_descriptors_revents(snd_rawmidi_t *rawmidi, struct pollfd *pfds, unsigned int nfds, unsigned short *revent);
|
/external/dbus/dbus/ |
dbus-spawn.c | 1082 DBusPollFD pfds[2]; local 1084 pfds[0].fd = parent_pipe; 1085 pfds[0].events = _DBUS_POLLIN; 1086 pfds[0].revents = 0; 1088 pfds[1].fd = sigchld_pipe[READ_END]; 1089 pfds[1].events = _DBUS_POLLIN; 1090 pfds[1].revents = 0; 1092 if (_dbus_poll (pfds, _DBUS_N_ELEMENTS (pfds), -1) < 0 && errno != EINTR) 1098 if (pfds[0].revents != 0 [all...] |
/system/bt/btif/co/ |
bta_hh_co.c | 201 struct pollfd pfds[1]; local 203 pfds[0].fd = p_dev->fd; 204 pfds[0].events = POLLIN; 211 OSI_NO_INTR(ret = poll(pfds, 1, 50)); 216 if (pfds[0].revents & POLLIN) {
|
/frameworks/base/libs/common_time/ |
common_time_server.cpp | 208 struct pollfd pfds[2]; local 216 pfds[eventCnt].fd = mWakeupThreadFD; 217 pfds[eventCnt].events = POLLIN; 218 pfds[eventCnt].revents = 0; 224 pfds[eventCnt].fd = mSocket; 225 pfds[eventCnt].events = POLLIN; 226 pfds[eventCnt].revents = 0; 237 rc = poll(pfds, eventCnt, timeout); 258 if (pfds[0].revents) 363 if ((mSocket >= 0) && (eventCnt > 1) && (pfds[1].revents)) [all...] |
/external/blktrace/ |
blktrace.c | 159 * of these. The ios array contains input/output information, pfds holds 166 struct pollfd *pfds; member in struct:tracer 231 struct pollfd *pfds; member in struct:net_server_s [all...] |