Home
last modified time | relevance | path

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

/aosp12/packages/apps/Camera2/src/com/android/camera/
H A DStorage.java317 public boolean renameFile(File inputPath, File newFilePath) { in renameFile() argument
318 if (newFilePath.exists()) { in renameFile()
319 Log.e(TAG, "File path already exists: " + newFilePath.getAbsolutePath()); in renameFile()
326 if (!createDirectoryIfNeeded(newFilePath.getAbsolutePath())) { in renameFile()
328 newFilePath.getAbsolutePath()); in renameFile()
331 return inputPath.renameTo(newFilePath); in renameFile()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DCallLogProvider.java1048 Path newFilePath = getCallComposerPictureDirectory(getContext(), false) in syncCallComposerPics() local
1053 Files.newOutputStream(newFilePath, StandardOpenOption.CREATE_NEW)) { in syncCallComposerPics()
/aosp12/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java2311 final String newFilePath = newPath + "/" + filePath; in renameDirectoryUncheckedForFuse() local
2312 final String mimeType = MimeUtils.resolveMimeType(new File(newFilePath)); in renameDirectoryUncheckedForFuse()
2313 if(!updateDatabaseForFuseRename(helper, oldPath + "/" + filePath, newFilePath, in renameDirectoryUncheckedForFuse()
2314 getContentValuesForFuseRename(newFilePath, mimeType, wasHidden, isHidden, in renameDirectoryUncheckedForFuse()