/frameworks/base/core/java/android/hardware/ |
H A D | SerialPort.java | 59 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { argument 60 native_open(pfd.getFileDescriptor(), speed); 61 mFileDescriptor = pfd; 123 private native void native_open(FileDescriptor pfd, int speed) throws IOException; argument
|
/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/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 46 /* 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 D | ThumbnailUtils.java | 302 * The image data will be read from specified pfd if it's not null, otherwise 309 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, 313 if (pfd == null) pfd = makeInputStream(uri, cr); 314 if (pfd == null) return null; 317 FileDescriptor fd = pfd.getFileDescriptor(); 336 closeSilently(pfd); 308 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 187 * @param pfd The input file to compare the size of 190 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 191 assertEquals(pfd.getStatSize(), size);
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 476 struct pollfd pfd = { ifd, POLLIN, 0 }; local 477 int ret = poll(&pfd, 1, 200); /* 200 msec timeout */
|
/frameworks/base/core/java/android/content/ |
H A D | ContentResolver.java | 609 ParcelFileDescriptor pfd = ParcelFileDescriptor.open( 611 return new AssetFileDescriptor(pfd, 0, -1); 650 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner( 657 return new AssetFileDescriptor(pfd, fd.getStartOffset(), 742 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner( 749 return new AssetFileDescriptor(pfd, fd.getStartOffset(), 1892 ParcelFileDescriptorInner(ParcelFileDescriptor pfd, IContentProvider icp) { argument 1893 super(pfd);
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 334 * @param pfd The input file to compare the size of 337 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 338 assertEquals(pfd.getStatSize(), size); 381 * @param pfd The file whose data we want to verify 385 protected void verifyFileContents(ParcelFileDescriptor pfd, File file) throws IOException { argument 389 AutoCloseInputStream input = new ParcelFileDescriptor.AutoCloseInputStream(pfd); 391 assertEquals(file.length(), pfd.getStatSize()); 485 ParcelFileDescriptor pfd = mDownloadManager.openDownloadedFile(requestId); 492 verifyFileSize(pfd, fileSize); 493 verifyFileContents(pfd, fileDat [all...] |
/frameworks/base/core/jni/ |
H A D | android_app_NativeActivity.cpp | 148 struct pollfd pfd[2]; local 150 pfd[0].fd = mConsumer.getChannel()->getFd(); 151 pfd[0].events = POLLIN; 152 pfd[0].revents = 0; 153 pfd[1].fd = mDispatchKeyRead; 154 pfd[1].events = POLLIN; 155 pfd[1].revents = 0; 157 int nfd = poll(pfd, 2, 0); 159 return ((pfd[0].revents & POLLIN) || (pfd[ [all...] |