Searched refs:dstFile (Results 1 – 4 of 4) sorted by relevance
/packages/apps/Nfc/src/com/android/nfc/beam/ |
D | BeamTransferManager.java | 416 File dstFile = generateUniqueDestination(beamPath.getAbsolutePath(), in processFiles() local 419 if (!srcFile.renameTo(dstFile)) { in processFiles() 420 if (DBG) Log.d(TAG, "Failed to rename from " + srcFile + " to " + dstFile); in processFiles() 424 mPaths.add(dstFile.getAbsolutePath()); in processFiles() 425 mMimeTypes.put(dstFile.getAbsolutePath(), mimeType); in processFiles() 426 if (DBG) Log.d(TAG, "Did successful rename from " + srcFile + " to " + dstFile); in processFiles() 529 File dstFile = new File(path + File.separator + fileName); in generateUniqueDestination() local 531 while (dstFile.exists()) { in generateUniqueDestination() 532 dstFile = new File(path + File.separator + fileNameWithoutExtension + "-" + in generateUniqueDestination() 536 return dstFile; in generateUniqueDestination()
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/ |
D | XmpPresets.java | 61 Context context, Uri srcUri, File dstFile, ImagePreset preset) { in writeFilterXMP() argument 82 Log.v(LOGTAG, "Write XMP meta to file failed:" + dstFile.getAbsolutePath()); in writeFilterXMP() 86 if (!XmpUtilHelper.writeXMPMeta(dstFile.getAbsolutePath(), xmpMeta)) { in writeFilterXMP() 87 Log.v(LOGTAG, "Write XMP meta to file failed:" + dstFile.getAbsolutePath()); in writeFilterXMP()
|
D | SaveImage.java | 467 private Uri moveSrcToAuxIfNeeded(Uri srcUri, File dstFile) { in moveSrcToAuxIfNeeded() argument 476 File auxDiretory = getLocalAuxDirectory(dstFile); in moveSrcToAuxIfNeeded() 497 File newSrcFile = new File(auxDiretory, dstFile.getName()); in moveSrcToAuxIfNeeded() 505 String name = dstFile.getName(); in moveSrcToAuxIfNeeded() 521 private static File getLocalAuxDirectory(File dstFile) { in getLocalAuxDirectory() argument 522 File dstDirectory = dstFile.getParentFile(); in getLocalAuxDirectory()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
D | CopyJob.java | 507 ParcelFileDescriptor dstFile = null; in copyFileHelper() local 551 dstFile = getClient(dest).openFile(dest.derivedUri, "w", mSignal); in copyFileHelper() 558 out = new ParcelFileDescriptor.AutoCloseOutputStream(dstFile); in copyFileHelper() 567 final FileDescriptor dstFd = dstFile.getFileDescriptor(); in copyFileHelper() 588 Os.fsync(dstFile.getFileDescriptor()); in copyFileHelper() 599 Os.close(dstFile.getFileDescriptor()); in copyFileHelper() 621 if (dstFile != null) { in copyFileHelper() 623 dstFile.closeWithError("Error copying bytes."); in copyFileHelper()
|