Searched defs:pfd (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/native/android/
H A Dsensor.cpp107 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/core/java/android/hardware/usb/
H A DUsbDeviceConnection.java46 /* package */ boolean open(String name, ParcelFileDescriptor pfd) { argument
47 return native_open(name, pfd.getFileDescriptor());
171 private native boolean native_open(String deviceName, FileDescriptor pfd); argument
/frameworks/base/media/java/android/media/
H A DThumbnailUtils.java291 * The image data will be read from specified pfd if it's not null, otherwise
298 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd,
302 if (pfd == null) pfd = makeInputStream(uri, cr);
303 if (pfd == null) return null;
306 FileDescriptor fd = pfd.getFileDescriptor();
325 closeSilently(pfd);
297 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument
/frameworks/base/cmds/dumpstate/
H A Dutils.c413 struct pollfd pfd = { ifd, POLLIN, 0 }; local
414 int ret = poll(&pfd, 1, 200); /* 200 msec timeout */
/frameworks/base/core/jni/
H A Dandroid_bluetooth_HeadsetBase.cpp111 struct pollfd pfd; local
115 pfd.fd = fd;
116 pfd.events = POLLIN;
118 int ret = poll(&pfd, 1, timeout_ms);
128 if (pfd.revents & (POLLHUP | POLLERR | POLLNVAL)) {
130 "but with an unexpected revents bitmask: %#x\n", ret, pfd.revents);
H A Dandroid_app_NativeActivity.cpp145 struct pollfd pfd[2]; local
147 pfd[0].fd = mConsumer.getChannel()->getReceivePipeFd();
148 pfd[0].events = POLLIN;
149 pfd[0].revents = 0;
150 pfd[1].fd = mDispatchKeyRead;
151 pfd[1].events = POLLIN;
152 pfd[1].revents = 0;
154 int nfd = poll(pfd, 2, 0);
156 return ((pfd[0].revents & POLLIN) || (pfd[
[all...]
/frameworks/base/core/tests/coretests/src/android/app/
H A DDownloadManagerBaseTest.java337 * @param pfd The input file to compare the size of
340 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument
341 assertEquals(pfd.getStatSize(), size);
384 * @param pfd The file whose data we want to verify
388 protected void verifyFileContents(ParcelFileDescriptor pfd, File file) throws IOException { argument
392 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(pfd);
394 assertEquals(file.length(), pfd.getStatSize());
488 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId);
497 verifyFileSize(pfd, fileSize);
498 verifyFileContents(pfd, fileDat
[all...]
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
H A DDownloadManagerBaseTest.java319 * @param pfd The input file to compare the size of
322 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument
323 assertEquals(pfd.getStatSize(), size);
/frameworks/base/core/java/android/content/
H A DContentResolver.java531 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(
533 return new AssetFileDescriptor(pfd, 0, -1);
548 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner(
555 return new AssetFileDescriptor(pfd, fd.getStartOffset(),
612 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner(
619 return new AssetFileDescriptor(pfd, fd.getStartOffset(),
1620 ParcelFileDescriptorInner(ParcelFileDescriptor pfd, IContentProvider icp) { argument
1621 super(pfd);

Completed in 292 milliseconds