/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...] |
fatblock.h | 53 struct pooled_fd pfd; member in struct:file
|
/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/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 | 65 ParcelFileDescriptor pfd = new ParcelFileDescriptor(tempFile); local 66 AutoCloseInputStream in = new AutoCloseInputStream(pfd); 107 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(socket); local 108 AutoCloseInputStream in = new AutoCloseInputStream(pfd); 112 pfd.close(); 133 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); local 135 assertFileDescriptorContent(new byte[] { 0, 1, 2, 3 }, pfd); 164 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(data, null); local 165 assertNotNull(pfd); 166 FileDescriptor fd = pfd.getFileDescriptor() 189 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); local 204 ParcelFileDescriptor pfd = ParcelFileDescriptor.CREATOR.createFromParcel(pl); local 263 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); local 277 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromSocket(new Socket()); local [all...] |
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapFactoryTest.java | 37 ParcelFileDescriptor pfd = ParcelFileDescriptor.fromData(out.toByteArray(), null); local 38 FileDescriptor fd = pfd.getFileDescriptor();
|
/frameworks/base/core/java/android/hardware/usb/ |
UsbDeviceConnection.java | 46 /* package */ boolean open(String name, ParcelFileDescriptor pfd) { 47 return native_open(name, pfd.getFileDescriptor()); 171 private native boolean native_open(String deviceName, FileDescriptor pfd);
|
UsbManager.java | 250 ParcelFileDescriptor pfd = mService.openDevice(deviceName); local 251 if (pfd != null) { 253 boolean result = connection.open(deviceName, pfd); 254 pfd.close();
|
/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...] |
devpoll.c | 107 struct pollfd *pfd; local 118 pfd = &devpollop->changes[devpollop->nchanges++]; 119 pfd->fd = fd; 120 pfd->events = events; 121 pfd->revents = 0;
|
/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/ |
DownloadManagerTestApp.java | 201 ParcelFileDescriptor pfd = null; local 215 pfd = mDownloadManager.openDownloadedFile(dlRequest); 216 verifyFileSize(pfd, filesize); 224 if (pfd != null) { 225 pfd.close(); 254 ParcelFileDescriptor pfd = null; local 258 pfd = mDownloadManager.openDownloadedFile(dlRequest); 259 verifyFileSize(pfd, filesize); 261 if (pfd != null) { 262 pfd.close() 334 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local 402 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local 473 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local [all...] |
/external/strace/ |
strace.c | 108 static struct tcb *pfd2tcb P((int pfd)); 116 static void proc_poller P((int pfd)); 765 tcp->pfd = -1; 794 if ((tcp->pfd = open(proc, O_WRONLY|O_EXCL)) < 0) { 798 if ((arg = fcntl(tcp->pfd, F_GETFD)) < 0) { 802 if (fcntl(tcp->pfd, F_SETFD, arg|FD_CLOEXEC) < 0) { 836 if ((tcp->pfd = open(proc, O_RDWR|O_EXCL)) < 0) { 839 if ((tcp->pfd = open(proc, O_RDWR)) < 0) { 844 if ((arg = fcntl(tcp->pfd, F_GETFD)) < 0) { 848 if (fcntl(tcp->pfd, F_SETFD, arg|FD_CLOEXEC) < 0) 1703 int pfd; local [all...] |
/packages/apps/Mms/src/com/android/mms/ |
TempFileProvider.java | 65 ParcelFileDescriptor pfd = null; local 78 pfd = ParcelFileDescriptor.open(file, 82 Log.e(TAG, "getTempStoreFd: error creating pfd for " + fileName, ex); 85 return pfd;
|
/prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/alsa/ |
pcm_ioplug.h | 178 int (*poll_descriptors)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int space); 182 int (*poll_revents)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int nfds, unsigned short *revents);
|
/external/valgrind/main/memcheck/tests/linux/ |
timerfd-syscall.c | 144 struct pollfd pfd; local 146 pfd.fd = tfd; 147 pfd.events = POLLIN; 148 pfd.revents = 0; 149 if (poll(&pfd, 1, timeo) < 0) 154 if ((pfd.revents & POLLIN) == 0)
|
/frameworks/base/core/tests/coretests/src/android/app/ |
DownloadManagerStressTest.java | 133 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(dlRequest); local 134 verifyFileContents(pfd, largeFile); 135 verifyFileSize(pfd, largeFile.length());
|
/packages/apps/Gallery/src/com/android/camera/ |
Util.java | 294 ParcelFileDescriptor pfd, boolean useNative) { 299 return makeBitmap(minSideLength, maxNumOfPixels, null, null, pfd, 304 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, 307 if (pfd == null) pfd = makeInputStream(uri, cr); 308 if (pfd == null) return null; 311 FileDescriptor fd = pfd.getFileDescriptor(); 329 closeSilently(pfd);
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
DecodeUtils.java | 210 ParcelFileDescriptor pfd = null; local 212 pfd = resolver.openFileDescriptor(uri, "r"); 214 pfd.getFileDescriptor(), shareable); 219 Utils.closeSilently(pfd);
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaThumbRequest.java | 149 ParcelFileDescriptor pfd = null; 154 pfd = mCr.openFileDescriptor( 161 if (pfd != null) { 162 pfd.close();
|
/development/tools/emulator/opengl/host/libs/Translator/EGL/ |
EglWindowsApi.cpp | 248 PIXELFORMATDESCRIPTOR pfd = { local 249 sizeof(PIXELFORMATDESCRIPTOR), // size of this pfd 270 iPixelFormat = ChoosePixelFormat(dpy, &pfd); 275 if(!SetPixelFormat(dpy,iPixelFormat,&pfd)){ 323 PIXELFORMATDESCRIPTOR pfd; local 332 return ChoosePixelFormat(dc,&pfd); 407 PIXELFORMATDESCRIPTOR pfd; local 419 int nFormats = DescribePixelFormat(dpy, iPixelFormat,sizeof(PIXELFORMATDESCRIPTOR), &pfd); 423 DescribePixelFormat(dpy, iPixelFormat,sizeof(PIXELFORMATDESCRIPTOR), &pfd); 424 EglConfig* pConfig = pixelFormatToConfig(display,renderableType,&pfd,iPixelFormat) [all...] |