Searched defs:pfd (Results 1 - 8 of 8) sorted by relevance
/frameworks/base/native/android/ |
H A D | 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)
|
/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 275 * The image data will be read from specified pfd if it's not null, otherwise 282 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, 286 if (pfd == null) pfd = makeInputStream(uri, cr); 287 if (pfd == null) return null; 290 FileDescriptor fd = pfd.getFileDescriptor(); 309 closeSilently(pfd); 281 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument
|
/frameworks/base/cmds/dumpstate/ |
H A D | utils.c | 403 struct pollfd pfd = { ifd, POLLIN, 0 }; local 404 int ret = poll(&pfd, 1, 200); /* 200 msec timeout */
|
/frameworks/base/core/jni/ |
H A D | android_bluetooth_HeadsetBase.cpp | 110 struct pollfd pfd; local 114 pfd.fd = fd; 115 pfd.events = POLLIN; 117 int ret = poll(&pfd, 1, timeout_ms); 127 if (pfd.revents & (POLLHUP | POLLERR | POLLNVAL)) { 129 "but with an unexpected revents bitmask: %#x\n", ret, pfd.revents);
|
H A D | android_app_NativeActivity.cpp | 147 struct pollfd pfd[2]; local 149 pfd[0].fd = mConsumer.getChannel()->getReceivePipeFd(); 150 pfd[0].events = POLLIN; 151 pfd[0].revents = 0; 152 pfd[1].fd = mDispatchKeyRead; 153 pfd[0].events = POLLIN; 154 pfd[0].revents = 0; 156 int nfd = poll(pfd, 2, 0); 158 return (pfd[0].revents == POLLIN || pfd[ [all...] |
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 338 * @param pfd The input file to compare the size of 341 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 342 assertEquals(pfd.getStatSize(), size); 385 * @param pfd The file whose data we want to verify 389 protected void verifyFileContents(ParcelFileDescriptor pfd, File file) throws IOException { argument 393 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(pfd); 395 assertEquals(file.length(), pfd.getStatSize()); 489 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); 498 verifyFileSize(pfd, fileSize); 499 verifyFileContents(pfd, fileDat [all...] |
/frameworks/base/core/java/android/content/ |
H A D | ContentResolver.java | 475 ParcelFileDescriptor pfd = ParcelFileDescriptor.open( 477 return new AssetFileDescriptor(pfd, 0, -1); 489 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner( 491 return new AssetFileDescriptor(pfd, fd.getStartOffset(), 1412 ParcelFileDescriptorInner(ParcelFileDescriptor pfd, IContentProvider icp) { argument 1413 super(pfd);
|
/frameworks/base/libs/ui/ |
H A D | EventHub.cpp | 448 const struct pollfd& pfd = mFDs[mInputDeviceIndex]; local 449 if (pfd.revents & POLLIN) { 450 int32_t readSize = read(pfd.fd, mInputBufferData,
|
Completed in 201 milliseconds