Home
last modified time | relevance | path

Searched refs:newFilePath (Results 1 – 2 of 2) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DEmlAttachmentProvider.java313 final String newFilePath = getFilePath(uri); in copyAttachment() local
326 outputStream = new FileOutputStream(newFilePath); in copyAttachment()
328 LogUtils.e(LOG_TAG, "File not found for file %s", newFilePath); in copyAttachment()
351 attachment.contentUri = Uri.parse("file://" + newFilePath); in copyAttachment()
361 newFilePath, size, false); in copyAttachment() local
369 intent.setData(Uri.parse("file://" + newFilePath)); in copyAttachment()
376 LogUtils.e(LOG_TAG, e, "Cannot write to file %s", newFilePath); in copyAttachment()
377 new File(newFilePath).delete(); in copyAttachment()
/packages/apps/Camera2/src/com/android/camera/
DStorage.java328 public static boolean renameFile(File inputPath, File newFilePath) { in renameFile() argument
329 if (newFilePath.exists()) { in renameFile()
330 Log.e(TAG, "File path already exists: " + newFilePath.getAbsolutePath()); in renameFile()
337 if (!createDirectoryIfNeeded(newFilePath.getAbsolutePath())) { in renameFile()
339 newFilePath.getAbsolutePath()); in renameFile()
342 return inputPath.renameTo(newFilePath); in renameFile()