Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 14 of 14) sorted by relevance

/packages/apps/Gallery/src/com/android/camera/
DUtil.java294 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/
DUriUtil.java140 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/
DMediaThumbRequest.java149 ParcelFileDescriptor pfd = null;
156 pfd = mCr.openFileDescriptor(
164 if (pfd != null) {
165 pfd.close();
DMediaDocumentsProvider.java817 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()
DMediaProvider.java4539 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/
DMusicUtils.java1060 … 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/
DDictionaryProvider.java320 final ParcelFileDescriptor pfd = in openAssetFile() local
322 return new AssetFileDescriptor(pfd, 0, pfd.getStatSize()); in openAssetFile()
/packages/apps/LegacyCamera/src/com/android/camera/
DUtil.java535 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/
DUtil.java599 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/
DCameraUtil.java696 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/
DDownloadStorageProvider.java274 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/
DProcStatsData.java342 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/
DHealthService.java495 int channelId, int state, FileDescriptor pfd) { in onChannelStateChanged() argument
498 channelId, state, pfd); in onChannelStateChanged()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java1013 private PipeMonitor(ParcelFileDescriptor pfd, long channelId, SqlParams params) { in PipeMonitor() argument
1014 mPfd = pfd; in PipeMonitor()