/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/services/BuiltInPrintService/src/com/android/bips/render/ |
D | PdfRenderService.java | 65 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/ |
D | UriUtil.java | 153 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/ |
D | CurrentWallpaperAssetVNLoader.java | 82 ParcelFileDescriptor pfd = mAsset.getWallpaperPfd(); in loadData() local 84 if (pfd == null) { in loadData() 90 callback.onDataReady(new AutoCloseInputStream(pfd)); in loadData()
|
D | CurrentWallpaperAssetVN.java | 61 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/ |
D | DefaultWallpaperRefresher.java | 243 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/ |
D | RulesCheckReceiver.java | 269 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/ |
D | AvrcpCoverArtProvider.java | 137 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/ |
D | PdfRender.java | 112 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/ |
D | IdleServiceTest.java | 131 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/ |
D | DictionaryProvider.java | 320 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/ |
D | CarBugreportManagerTest.java | 167 private static void assertFdIsClosed(ParcelFileDescriptor pfd) { in assertFdIsClosed() argument 169 int fd = pfd.getFd(); in assertFdIsClosed()
|
/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/services/Car/service/src/com/android/car/ |
D | CarBugreportManagerService.java | 306 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/ |
D | StubProvider.java | 415 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/ |
D | DialogUiTest.java | 361 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/ |
D | FileUtilsTest.java | 246 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/ |
D | DrmTest.java | 154 ParcelFileDescriptor pfd = mResolver.openFile(uri, "rw", null)) { in testForwardLock_130680734() argument 155 convertDmToFl(mContext, dmStream, pfd.getFileDescriptor()); in testForwardLock_130680734()
|
D | ModernMediaScannerTest.java | 696 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/ |
D | DownloadService.java | 304 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/ |
D | LegacyProviderMigrationTest.java | 381 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/ |
D | BluetoothOppUtility.java | 260 ParcelFileDescriptor pfd = null; in fileExists() local 262 pfd = resolver.openFileDescriptor(uri, readOnlyMode); in fileExists()
|
/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/apps/Settings/src/com/android/settings/applications/ |
D | ProcStatsData.java | 346 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/ |
D | ProcStatsData.java | 346 ParcelFileDescriptor pfd = mProcessStats.getStatsOverTime(mDuration); in load() local 348 InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(pfd); in load()
|