Home
last modified time | relevance | path

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

12

/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.java61 ParcelFileDescriptor pfd = mWallpaperManagerCompat.getWallpaperFile(mWallpaperManagerFlag); in openInputStream() local
63 if (pfd == null) { in openInputStream()
69 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/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpCoverArtProvider.java137 ParcelFileDescriptor pfd = null; in openFile() local
139 pfd = getImageDescriptor(device, imageUuid); in openFile()
144 return pfd; in openFile()
/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/providers/MediaProvider/tests/src/com/android/providers/media/
DIdleServiceTest.java131 ParcelFileDescriptor pfd = InstrumentationRegistry.getInstrumentation().getUiAutomation() in executeShellCommand() local
134 try (InputStream in = new FileInputStream(pfd.getFileDescriptor());) { in executeShellCommand()
/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/tests/android_car_api_test/src/android/car/apitest/
DCarBugreportManagerTest.java167 private static void assertFdIsClosed(ParcelFileDescriptor pfd) { in assertFdIsClosed() argument
169 int fd = pfd.getFd(); in assertFdIsClosed()
/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/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java306 ParcelFileDescriptor pfd, String remoteSocket, ICarBugreportCallback callback) { in copySocketToPfd() argument
316 new DataOutputStream(new ParcelFileDescriptor.AutoCloseOutputStream(pfd)) in copySocketToPfd()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DStubProvider.java415 ParcelFileDescriptor pfd = ParcelFileDescriptor.open( in openTypedDocument() local
418 pfd = new ParcelFileDescriptor(pfd) { in openTypedDocument()
425 return new AssetFileDescriptor(pfd, 0, document.file.length()); in openTypedDocument()
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
DDialogUiTest.java361 ParcelFileDescriptor pfd = automation.executeShellCommand(cmd); in runShellCommand() local
364 FileInputStream fis = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in runShellCommand()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DFileUtilsTest.java246 private static void assertTranslate(String string, int posix, int pfd) { in assertTranslate() argument
249 assertEquals(pfd, translateModePosixToPfd(posix)); in assertTranslate()
250 assertEquals(posix, translateModePfdToPosix(pfd)); in assertTranslate()
/packages/providers/MediaProvider/tests/src/com/android/providers/media/scan/
DDrmTest.java154 ParcelFileDescriptor pfd = mResolver.openFile(uri, "rw", null)) { in testForwardLock_130680734() argument
155 convertDmToFl(mContext, dmStream, pfd.getFileDescriptor()); in testForwardLock_130680734()
DModernMediaScannerTest.java696 try (ParcelFileDescriptor pfd = mIsolatedResolver.openFile(uri, "wt", null)) { in testScan_Common() argument
699 new FileOutputStream(pfd.getFileDescriptor())); in testScan_Common()
/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/client/src/com/android/providers/media/client/
DLegacyProviderMigrationTest.java381 ParcelFileDescriptor pfd = uiAutomation.executeShellCommand(command.toString()); in executeShellCommandInternal() local
383 try (InputStream in = new FileInputStream(pfd.getFileDescriptor());) { in executeShellCommandInternal()
/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/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/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()

12