/system/extras/fatblock/ |
fdpool.h | 26 void fdpool_init(struct pooled_fd *pfd); 27 int fdpool_open(struct pooled_fd *pfd, const char *pathname, int flags); 28 void fdpool_close(struct pooled_fd *pfd);
|
fdpool.c | 75 static void fdpool_clear(struct pooled_fd *pfd) 77 assert(pfd); 79 pfd->fd = INVALID_FD; 80 pfd->prev = pfd->next = NULL; 83 static void fdpool_unpool(struct pooled_fd *pfd) 85 close(pfd->fd); 86 fdpool_clear(pfd); 97 static void fdpool_pool(struct pooled_fd *pfd, int fd) 102 fdpool_insert_head(pfd); [all...] |
/system/core/libcutils/ |
abort_socket.c | 71 struct pollfd pfd[2]; local 73 pfd[0].fd = s->fd; 74 pfd[0].events = POLLOUT; 75 pfd[0].revents = 0; 76 pfd[1].fd = s->abort_fd[0]; 77 pfd[1].events = POLLIN; 78 pfd[1].revents = 0; 81 ret = poll(pfd, 2, timeout); 92 if (pfd[1].revents) { 98 if (pfd[0].revents) 123 struct pollfd pfd[2]; local 168 struct pollfd pfd[2]; local 214 struct pollfd pfd[2]; local [all...] |
/hardware/ti/omap4xxx/libtiutils/ |
MessageQueue.cpp | 245 struct pollfd pfd; local 247 pfd.fd = this->fd_read; 248 pfd.events = POLLIN; 249 pfd.revents = 0; 259 if( -1 == poll(&pfd,1,0) ) 266 if(pfd.revents & POLLIN) 325 struct pollfd pfd[3]; local 334 pfd[0].fd = queue1->getInFd(); 335 if(!pfd[0].fd) 341 pfd[0].events = POLLIN [all...] |
/external/skia/src/gpu/gl/win/ |
SkNativeGLContext_win.cpp | 88 PIXELFORMATDESCRIPTOR pfd; local 89 ZeroMemory(&pfd, sizeof(pfd)); 90 pfd.nSize = sizeof(pfd); 91 pfd.nVersion = 1; 92 pfd.dwFlags = PFD_SUPPORT_OPENGL; 93 pfd.iPixelType = PFD_TYPE_RGBA; 94 pfd.cColorBits = 32; 95 pfd.cDepthBits = 0 [all...] |
/external/netcat/ |
atomicio.c | 46 struct pollfd pfd; local 48 pfd.fd = fd; 49 pfd.events = f == read ? POLLIN : POLLOUT; 57 (void)poll(&pfd, 1, -1);
|
netcat.c | 654 struct pollfd pfd; local 666 pfd.fd = s; 667 pfd.events = POLLOUT; 668 if ((ret = poll(&pfd, 1, timeout)) == 1) { 762 struct pollfd pfd[2]; local 771 pfd[0].fd = nfd; 772 pfd[0].events = POLLIN; 775 pfd[1].fd = wfd; 776 pfd[1].events = POLLIN; 778 while (pfd[0].fd != -1) [all...] |
/external/valgrind/main/memcheck/tests/linux/ |
syscalls-2007.c | 41 struct pollfd pfd[2]; local 50 pfd[0].fd = fd; 51 pfd[0].events = POLLIN|POLLOUT; 52 pfd[1].fd = fd2; 53 pfd[1].events = POLLIN|POLLOUT; 54 ppoll (pfd, 2, &ts, &mask);
|
/cts/tests/tests/os/src/android/os/cts/ |
ParcelFileDescriptorTest.java | 47 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); local 48 AutoCloseInputStream in = new AutoCloseInputStream(pfd); 84 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); local 85 AutoCloseInputStream in = new AutoCloseInputStream(pfd); 89 pfd.close(); 105 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); local 107 assertFileDescriptorContent(new byte[] { 0, 1, 2, 3 }, pfd); 130 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); local 131 assertNotNull(pfd); 132 FileDescriptor fd = pfd.getFileDescriptor() 150 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); local 160 ParcelFileDescriptor pfd = ParcelFileDescriptor.CREATOR.createFromParcel(pl); local 201 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); local 209 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); local [all...] |
/external/openssh/ |
atomicio.c | 57 struct pollfd pfd; local 59 pfd.fd = fd; 60 pfd.events = f == read ? POLLIN : POLLOUT; 68 (void)poll(&pfd, 1, -1); 103 struct pollfd pfd; local 113 pfd.fd = fd; 114 pfd.events = f == readv ? POLLIN : POLLOUT; 124 (void)poll(&pfd, 1, -1);
|
monitor_fdpass.c | 61 struct pollfd pfd; local 82 pfd.fd = sock; 83 pfd.events = POLLOUT; 87 (void)poll(&pfd, 1, -1); 123 struct pollfd pfd; local 138 pfd.fd = sock; 139 pfd.events = POLLIN; 143 (void)poll(&pfd, 1, -1);
|
/frameworks/base/core/java/android/hardware/ |
SerialPort.java | 59 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { 60 native_open(pfd.getFileDescriptor(), speed); 61 mFileDescriptor = pfd; 127 private native void native_open(FileDescriptor pfd, int speed) throws IOException;
|
SerialManager.java | 75 ParcelFileDescriptor pfd = mService.openSerialPort(name); local 76 if (pfd != null) { 78 port.open(pfd, speed);
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapFactoryTest.java | 37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null); local 38 FileDescriptor fd = pfd.getFileDescriptor();
|
/external/chromium/third_party/libevent/ |
poll.c | 127 struct pollfd *pfd = &pop->event_set[i]; local 128 assert(pop->idxplus1_by_fd[pfd->fd] == i+1); 208 struct pollfd *pfd = NULL; local 281 pfd = &pop->event_set[i]; 284 pfd = &pop->event_set[i]; 285 pfd->events = 0; 286 pfd->fd = ev->ev_fd; 291 pfd->revents = 0; 293 pfd->events |= POLLOUT; 297 pfd->events |= POLLIN 313 struct pollfd *pfd = NULL; local [all...] |
/hardware/invensense/libsensors_iio/software/simple_apps/gesture_test/ |
inv_gesture_test.c | 78 struct pollfd pfd[numDMPFeatures]; variable in typeref:struct:pollfd 423 pfd[i].fd = open(mpu.event_tap, O_RDONLY | O_NONBLOCK); 427 pfd[i].fd = open(mpu.event_flick, O_RDONLY | O_NONBLOCK); 431 pfd[i].fd = open(mpu.event_display_orientation, O_RDONLY | O_NONBLOCK); 435 pfd[i].fd = open(mpu.event_orientation, O_RDONLY | O_NONBLOCK); 439 pfd[i].fd = -1; 442 pfd[i].events = POLLPRI|POLLERR, 443 pfd[i].revents = 0; 445 printf("GT:pfd[%d].fd= %d\n", i, pfd[i].fd) [all...] |
/hardware/ti/omap4xxx/domx/mm_osal/src/ |
timm_osal_pipes.c | 69 int pfd[2]; member in struct:TIMM_OSAL_PIPE 108 pHandle->pfd[0] = -1; 109 pHandle->pfd[1] = -1; 110 if (SUCCESS != pipe(pHandle->pfd)) 155 if (SUCCESS != close(pHandle->pfd[0])) 160 if (SUCCESS != close(pHandle->pfd[1])) 195 lSizeWritten = write(pHandle->pfd[1], pMessage, size); 242 lSizeWritten = write(pHandle->pfd[1], pMessage, size); 269 read(pHandle->pfd[0], tempPtr, pHandle->totalBytesInPipe); 273 write(pHandle->pfd[1], tempPtr [all...] |
/frameworks/base/native/android/ |
sensor.cpp | 107 struct pollfd pfd; local 108 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); 109 pfd.events = POLLIN; 110 pfd.revents = 0; 112 int nfd = poll(&pfd, 1, 0); 117 if (pfd.revents != POLLIN)
|
/system/bluetooth/tools/ |
pipetest.c | 107 struct pollfd pfd; local 109 pfd.fd = fd; 110 pfd.events = 0; 111 _poll(&pfd, 1, -1); 117 struct pollfd pfd; local 119 pfd.fd = fd; 120 pfd.events = POLLIN; 121 _poll(&pfd, 1, -1); 127 struct pollfd pfd; local 130 pfd.fd = fd [all...] |
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
DownloadManagerTestApp.java | 191 ParcelFileDescriptor pfd = null; local 205 pfd = mDownloadManager.openDownloadedFile(dlRequest); 206 verifyFileSize(pfd, filesize); 214 if (pfd != null) { 215 pfd.close(); 244 ParcelFileDescriptor pfd = null; local 248 pfd = mDownloadManager.openDownloadedFile(dlRequest); 249 verifyFileSize(pfd, filesize); 251 if (pfd != null) { 252 pfd.close() 324 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local 392 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local 463 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local [all...] |
/hardware/invensense/libsensors_iio/software/simple_apps/mpu_iio/ |
mpu_iio.c | 311 struct pollfd pfd[4]; local 331 pfd[0].fd = fp_tap; 332 pfd[0].events = POLLPRI|POLLERR, 333 pfd[0].revents = 0; 335 pfd[1].fd = fp_orient; 336 pfd[1].events = POLLPRI|POLLERR, 337 pfd[1].revents = 0; 339 pfd[2].fd = fp_disp; 340 pfd[2].events = POLLPRI|POLLERR, 341 pfd[2].revents = 0 642 struct pollfd pfd = { local [all...] |
/external/strace/ |
strace.c | 138 static struct tcb *pfd2tcb(int pfd); 146 static void proc_poller(int pfd); 1125 tcp->pfd = -1; 1156 if ((tcp->pfd = open(proc, O_WRONLY|O_EXCL)) < 0) { 1160 if (set_cloexec_flag(tcp->pfd) < 0) { 1183 tcp->pfd = open(proc, O_RDWR|O_EXCL); 1186 tcp->pfd = open(proc, O_RDWR); 1188 if (tcp->pfd < 0) { 1192 if (set_cloexec_flag(tcp->pfd) < 0) { 1228 if (IOCTL(tcp->pfd, PIOCSTOP, (char *)NULL) < 0) 2078 int pfd; local [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
UsbDeviceConnection.java | 45 /* package */ boolean open(String name, ParcelFileDescriptor pfd) { 46 return native_open(name, pfd.getFileDescriptor()); 233 private native boolean native_open(String deviceName, FileDescriptor pfd);
|
UsbManager.java | 265 ParcelFileDescriptor pfd = mService.openDevice(deviceName); local 266 if (pfd != null) { 268 boolean result = connection.open(deviceName, pfd); 269 pfd.close();
|
/external/bluetooth/bluedroid/udrv/ulinux/ |
uipc.c | 212 struct pollfd pfd; local 219 pfd.fd = sfd; 220 pfd.events = POLLIN; 222 if (poll(&pfd, 1, 0) == 0) 228 //BTIF_TRACE_EVENT1("poll revents 0x%x", pfd.revents); 416 struct pollfd pfd; local 419 pfd.events = POLLIN|POLLHUP; 420 pfd.fd = uipc_main.ch[ch_id].fd; 427 ret = poll(&pfd, 1, 1); 428 BTIF_TRACE_EVENT3("uipc_flush_ch_locked polling : fd %d, rxev %x, ret %d", pfd.fd, pfd.revents, ret) 773 struct pollfd pfd; local [all...] |