/frameworks/base/drm/java/android/drm/ |
H A D | DrmOutputStream.java | 54 * @param pfd Opened with "rw" mode. 56 public DrmOutputStream(DrmManagerClient client, ParcelFileDescriptor pfd, String mimeType) argument 59 mPfd = pfd; 60 mFd = pfd.getFileDescriptor();
|
/frameworks/base/core/java/android/hardware/ |
H A D | SerialPort.java | 54 public void open(ParcelFileDescriptor pfd, int speed) throws IOException { argument 55 native_open(pfd.getFileDescriptor(), speed); 56 mFileDescriptor = pfd; 122 private native void native_open(FileDescriptor pfd, int speed) throws IOException; argument
|
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbDeviceConnection.java | 45 /* package */ boolean open(String name, ParcelFileDescriptor pfd) { argument 46 return native_open(name, pfd.getFileDescriptor()); 252 private native boolean native_open(String deviceName, FileDescriptor pfd); argument
|
/frameworks/base/media/java/android/media/ |
H A D | ThumbnailUtils.java | 296 * The image data will be read from specified pfd if it's not null, otherwise 303 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(); 330 closeSilently(pfd); 302 makeBitmap(int minSideLength, int maxNumOfPixels, Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, BitmapFactory.Options options) argument
|
/frameworks/base/native/android/ |
H A D | sensor.cpp | 120 struct pollfd pfd; local 121 pfd.fd = static_cast<SensorEventQueue*>(queue)->getFd(); 122 pfd.events = POLLIN; 123 pfd.revents = 0; 125 int nfd = poll(&pfd, 1, 0); 130 if (pfd.revents != POLLIN)
|
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 250 * @param pfd The input file to compare the size of 253 protected void verifyFileSize(ParcelFileDescriptor pfd, long size) { argument 254 assertEquals(pfd.getStatSize(), size);
|
/frameworks/base/core/java/android/os/ |
H A D | ParcelFileDescriptor.java | 236 final ParcelFileDescriptor pfd = new ParcelFileDescriptor(fd, comm[0]); 243 return pfd; 802 public AutoCloseInputStream(ParcelFileDescriptor pfd) { argument 803 super(pfd.getFileDescriptor()); 804 mPfd = pfd; 825 public AutoCloseOutputStream(ParcelFileDescriptor pfd) { argument 826 super(pfd.getFileDescriptor()); 827 mPfd = pfd;
|
/frameworks/native/cmds/dumpstate/ |
H A D | utils.c | 608 struct pollfd pfd = { ifd, POLLIN, 0 }; local 609 int ret = poll(&pfd, 1, 5000); /* 5 sec timeout */
|
/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/java/android/content/ |
H A D | ContentResolver.java | 916 ParcelFileDescriptor pfd = ParcelFileDescriptor.open( 918 return new AssetFileDescriptor(pfd, 0, -1); 966 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner( 973 return new AssetFileDescriptor(pfd, fd.getStartOffset(), 1107 ParcelFileDescriptor pfd = new ParcelFileDescriptorInner( 1114 return new AssetFileDescriptor(pfd, fd.getStartOffset(), 2484 ParcelFileDescriptorInner(ParcelFileDescriptor pfd, IContentProvider icp) { argument 2485 super(pfd);
|