/packages/apps/Gallery/src/com/android/camera/ |
D | Util.java | 294 ParcelFileDescriptor pfd, boolean useNative) { in makeBitmap() argument 299 return makeBitmap(minSideLength, maxNumOfPixels, null, null, pfd, in makeBitmap() 304 Uri uri, ContentResolver cr, ParcelFileDescriptor pfd, in makeBitmap() argument 307 if (pfd == null) pfd = makeInputStream(uri, cr); in makeBitmap() 308 if (pfd == null) return null; in makeBitmap() 311 FileDescriptor fd = pfd.getFileDescriptor(); in makeBitmap() 329 closeSilently(pfd); in makeBitmap()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | UriUtil.java | 140 ParcelFileDescriptor pfd = null; in getContentSize() local 142 pfd = Factory.get().getApplicationContext() in getContentSize() 144 return Math.max(pfd.getStatSize(), 0); in getContentSize() 148 if (pfd != null) { in getContentSize() 150 pfd.close(); in getContentSize()
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
D | MediaThumbRequest.java | 149 ParcelFileDescriptor pfd = null; 156 pfd = mCr.openFileDescriptor( 164 if (pfd != null) { 165 pfd.close();
|
D | MediaDocumentsProvider.java | 817 ParcelFileDescriptor pfd = openImageThumbnailCleared(id, signal); in openOrCreateImageThumbnailCleared() local 818 if (pfd == null) { in openOrCreateImageThumbnailCleared() 825 pfd = openImageThumbnailCleared(id, signal); in openOrCreateImageThumbnailCleared() 828 if (pfd == null) { in openOrCreateImageThumbnailCleared() 831 pfd = resolver.openFileDescriptor(fullUri, "r", signal); in openOrCreateImageThumbnailCleared() 843 return new AssetFileDescriptor(pfd, 0, AssetFileDescriptor.UNKNOWN_LENGTH, extras); in openOrCreateImageThumbnailCleared()
|
D | MediaProvider.java | 4539 ParcelFileDescriptor pfd = null; in openFile() local 4569 pfd = openFileAndEnforcePathPermissionsHelper(newUri, mode); in openFile() 4572 pfd = getThumb(database, db, audiopath, albumid, null); in openFile() 4578 return pfd; in openFile() 4582 pfd = openFileAndEnforcePathPermissionsHelper(uri, mode); in openFile() 4610 pfd = getThumb(database, db, audiopath, albumid, uri); in openFile() 4616 if (pfd == null) { in openFile() 4620 return pfd; in openFile() 4865 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(f, in getCompressedAlbumArt() local 4869 compressed = scanner.extractAlbumArt(pfd.getFileDescriptor()); in getCompressedAlbumArt() [all …]
|
/packages/apps/Music/src/com/android/music/ |
D | MusicUtils.java | 1060 … ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r"); in getArtworkFromFile() local 1061 if (pfd != null) { in getArtworkFromFile() 1062 FileDescriptor fd = pfd.getFileDescriptor(); in getArtworkFromFile() 1067 … ParcelFileDescriptor pfd = context.getContentResolver().openFileDescriptor(uri, "r"); in getArtworkFromFile() local 1068 if (pfd != null) { in getArtworkFromFile() 1069 FileDescriptor fd = pfd.getFileDescriptor(); in getArtworkFromFile()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DictionaryProvider.java | 320 final ParcelFileDescriptor pfd = in openAssetFile() local 322 return new AssetFileDescriptor(pfd, 0, pfd.getStatSize()); in openAssetFile()
|
/packages/apps/LegacyCamera/src/com/android/camera/ |
D | Util.java | 535 ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "r"); in isUriValid() local 536 if (pfd == null) { in isUriValid() 540 pfd.close(); in isUriValid()
|
/packages/apps/Camera/src/com/android/camera/ |
D | Util.java | 599 ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "r"); in isUriValid() local 600 if (pfd == null) { in isUriValid() 604 pfd.close(); in isUriValid()
|
/packages/apps/Camera2/src/com/android/camera/util/ |
D | CameraUtil.java | 696 ParcelFileDescriptor pfd = resolver.openFileDescriptor(uri, "r"); in isUriValid() local 697 if (pfd == null) { in isUriValid() 701 pfd.close(); in isUriValid()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 274 final ParcelFileDescriptor pfd = openDocument(docId, "r", signal); in openDocumentThumbnail() local 275 return new AssetFileDescriptor(pfd, 0, AssetFileDescriptor.UNKNOWN_LENGTH); in openDocumentThumbnail()
|
/packages/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsData.java | 342 ParcelFileDescriptor pfd = mProcessStats.getStatsOverTime(mDuration); in load() local 344 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in load()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/ |
D | HealthService.java | 495 int channelId, int state, FileDescriptor pfd) { in onChannelStateChanged() argument 498 channelId, state, pfd); in onChannelStateChanged()
|
/packages/providers/TvProvider/src/com/android/providers/tv/ |
D | TvProvider.java | 1013 private PipeMonitor(ParcelFileDescriptor pfd, long channelId, SqlParams params) { in PipeMonitor() argument 1014 mPfd = pfd; in PipeMonitor()
|