Home
last modified time | relevance | path

Searched refs:pfd (Results 1 – 24 of 24) 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/services/BuiltInPrintService/src/com/android/bips/render/
DPdfRenderService.java65 public int openDocument(ParcelFileDescriptor pfd) throws RemoteException {
66 if (!open(pfd)) {
113 private boolean open(ParcelFileDescriptor pfd) {
117 mRenderer = new PdfRenderer(pfd);
/packages/apps/Messaging/src/com/android/messaging/util/
DUriUtil.java153 ParcelFileDescriptor pfd = null; in getContentSize() local
155 pfd = Factory.get().getApplicationContext() in getContentSize()
157 return Math.max(pfd.getStatSize(), 0); in getContentSize()
161 if (pfd != null) { in getContentSize()
163 pfd.close(); in getContentSize()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/asset/
DCurrentWallpaperAssetVNLoader.java82 ParcelFileDescriptor pfd = mAsset.getWallpaperPfd(); in loadData() local
84 if (pfd == null) { in loadData()
90 callback.onDataReady(new AutoCloseInputStream(pfd)); in loadData()
DCurrentWallpaperAssetVN.java57 ParcelFileDescriptor pfd = mWallpaperManagerCompat.getWallpaperFile(mWallpaperManagerFlag); in openInputStream() local
59 if (pfd == null) { in openInputStream()
65 return new AutoCloseInputStream(pfd); in openInputStream()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperRefresher.java243 ParcelFileDescriptor pfd = mWallpaperManagerCompat.getWallpaperFile( in getLockWallpaperBitmap() local
247 if (pfd != null) { in getLockWallpaperBitmap()
250 fileStream = new FileInputStream(pfd.getFileDescriptor()); in getLockWallpaperBitmap()
252 pfd.close(); in getLockWallpaperBitmap()
/packages/apps/TimeZoneUpdater/src/main/com/android/timezone/updater/
DRulesCheckReceiver.java269 try (ParcelFileDescriptor pfd = inputFileDescriptor) { in copyDataToLocalFile() argument
278 InputStream fis = new FileInputStream(pfd.getFileDescriptor(), false /* isFdOwner */); in copyDataToLocalFile()
318 try (ParcelFileDescriptor pfd = distroFileDescriptor) { in handleInstall() argument
321 int requestStatus = mRulesManager.requestInstall(pfd, checkToken, callback); in handleInstall()
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
DDefaultLayoutProviderTest.java118 ParcelFileDescriptor pfd = mTargetContext.getContentResolver().openFileDescriptor( in writeLayout() local
121 try (OutputStreamWriter writer = new OutputStreamWriter(new AutoCloseOutputStream(pfd))) { in writeLayout()
/packages/services/BuiltInPrintService/src/com/android/bips/jni/
DPdfRender.java112 ParcelFileDescriptor pfd = ParcelFileDescriptor.open(new File(fileName), in openDocument() local
114 return mService.openDocument(pfd); in openDocument()
/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/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java263 ParcelFileDescriptor pfd, String remoteSocket, ICarBugreportCallback callback) { in copySocketToPfd() argument
273 new DataOutputStream(new ParcelFileDescriptor.AutoCloseOutputStream(pfd)) in copySocketToPfd()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DDialogFragmentTest.java309 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommand() local
312 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
DStubProvider.java395 ParcelFileDescriptor pfd = ParcelFileDescriptor.open( in openTypedDocument() local
398 pfd = new ParcelFileDescriptor(pfd) { in openTypedDocument()
405 return new AssetFileDescriptor(pfd, 0, document.file.length()); in openTypedDocument()
/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/modules/CaptivePortalLogin/src/com/android/captiveportallogin/
DDownloadService.java304 try (ParcelFileDescriptor pfd = getContentResolver().openFileDescriptor( in processDownload() argument
306 FileOutputStream fop = new FileOutputStream(pfd.getFileDescriptor())) { in processDownload()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DModernMediaScannerTest.java322 try (ParcelFileDescriptor pfd = mIsolatedResolver.openFile(uri, "wt", null)) { in testScan_Common() argument
325 new FileOutputStream(pfd.getFileDescriptor())); in testScan_Common()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppUtility.java260 ParcelFileDescriptor pfd = null; in fileExists() local
262 pfd = resolver.openFileDescriptor(uri, readOnlyMode); in fileExists()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DProcStatsData.java346 ParcelFileDescriptor pfd = mProcessStats.getStatsOverTime(mDuration); in load() local
348 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in load()
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsData.java346 ParcelFileDescriptor pfd = mProcessStats.getStatsOverTime(mDuration); in load() local
348 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in load()
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java1268 final ParcelFileDescriptor pfd = resolver.openFileDescriptor(fullUri, "r", signal); in openOrCreateImageThumbnailCleared() local
1279 return new AssetFileDescriptor(pfd, 0, AssetFileDescriptor.UNKNOWN_LENGTH, extras); in openOrCreateImageThumbnailCleared()
DMediaProvider.java5421 final ParcelFileDescriptor pfd; in openFileAndEnforcePathPermissionsHelper() local
5423 pfd = RedactingFileDescriptor.open( in openFileAndEnforcePathPermissionsHelper()
5430 pfd = ParcelFileDescriptor.open(file, modeBits); in openFileAndEnforcePathPermissionsHelper()
5435 return ParcelFileDescriptor.fromPfd(pfd, BackgroundThread.getHandler(), listener); in openFileAndEnforcePathPermissionsHelper()
5437 return pfd; in openFileAndEnforcePathPermissionsHelper()
/packages/apps/TV/tests/common/src/com/android/tv/testing/fakes/
DFakeTvProvider.java2416 private PipeMonitor(ParcelFileDescriptor pfd, long channelId, SqlParams params) { in PipeMonitor() argument
2417 mPfd = pfd; in PipeMonitor()
/packages/providers/TvProvider/src/com/android/providers/tv/
DTvProvider.java2214 private PipeMonitor(ParcelFileDescriptor pfd, long channelId, SqlParams params) { in PipeMonitor() argument
2215 mPfd = pfd; in PipeMonitor()