Home
last modified time | relevance | path

Searched refs:renameTo (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/core/java/com/android/internal/util/
DJournaledFile.java61 mTemp.renameTo(mReal); in chooseForRead()
110 mTemp.renameTo(mReal); in commit()
DFileRotator.java120 backupFile.renameTo(file); in FileRotator()
250 file.renameTo(backupFile); in rewriteSingle()
260 backupFile.renameTo(file); in rewriteSingle()
357 file.renameTo(destFile); in maybeRotate()
/frameworks/base/services/core/java/com/android/server/integrity/
DIntegrityFileManager.java185 if (!(mRulesDir.renameTo(tmpDir) in switchStagingRulesDir()
186 && mStagingDir.renameTo(mRulesDir) in switchStagingRulesDir()
187 && tmpDir.renameTo(mStagingDir))) { in switchStagingRulesDir()
/frameworks/av/media/mtp/
DMtpUtils.h37 int renameTo(const char *oldPath, const char *newPath);
DMtpUtils.cpp254 int renameTo(const char *oldPath, const char *newPath) { in renameTo() function
/frameworks/base/core/java/com/android/internal/os/
DAtomicDirectory.java259 if (!mBaseDirectory.renameTo(mBackupDirectory)) { in backup()
273 if (!mBackupDirectory.renameTo(mBaseDirectory)) { in restore()
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerFilePersistedSettings.java71 boolean renamed = stage.renameTo(enableFile); in writeBackupEnableState()
/frameworks/base/services/core/java/com/android/server/
DCertBlacklister.java95 tmp.renameTo(new File(mPath)); in writeBlacklist()
DDropBoxManagerService.java816 if (!temp.renameTo(file)) { in EntryFile()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestResultPrinter.java121 swapFile.renameTo(txtFile); in writeToFile()
/frameworks/base/media/tests/MtpTests/src/android/mtp/
DMtpStorageManagerTest.java582 Assert.assertTrue(newFile.renameTo(toFile)); in testObjectMoved()
1088 Assert.assertTrue(newFile.renameTo(renamed)); in testRenameObjectSuccess()
1110 Assert.assertTrue(newDir.renameTo(renamed)); in testRenameObjectDirSuccess()
1140 Assert.assertTrue(newDir.renameTo(renamed)); in testRenameObjectDirVisitedSuccess()
1169 Assert.assertTrue(newFile.renameTo(renamed)); in testRenameObjectDelayed()
1192 Assert.assertTrue(newDir.renameTo(renamed)); in testRenameObjectDirVisitedDelayed()
1284 Assert.assertTrue(newFile.renameTo(moved)); in testMoveObjectSuccess()
1313 Assert.assertTrue(movedDir.renameTo(renamed)); in testMoveObjectDirSuccess()
1350 Assert.assertTrue(movedDir.renameTo(renamed)); in testMoveObjectDirVisitedSuccess()
1389 Assert.assertTrue(newFile.renameTo(moved)); in testMoveObjectDelayed()
[all …]
/frameworks/base/services/core/java/com/android/server/updates/
DCertificateTransparencyLogInstallReceiver.java121 tempSymlink.renameTo(currentSymlink.getAbsoluteFile()); in install()
DConfigUpdateInstallReceiver.java202 if (!tmp.renameTo(file)) { in writeUpdate()
/frameworks/base/core/java/android/util/
DAtomicFile.java319 if (!source.renameTo(target)) { in rename()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java152 mBackupFile.renameTo(mFile); in loadFromDisk()
778 if (!mFile.renameTo(mBackupFile)) { in writeToFile()
DDownloadManager.java1348 if (!before.renameTo(after)) { in rename()
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java280 if (!before.renameTo(after)) { in renameDocument()
309 if (!before.renameTo(after)) { in moveDocument()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java412 if (!tmp.renameTo(extractTo)) { in extract()
/frameworks/base/services/core/java/com/android/server/wm/
DInputManagerCallback.java164 tracesFile.renameTo(new File(tracesFile.getParent(), tracesFile.getName() + "_pre")); in preDumpIfLockTooSlow()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java249 if (!file.getBaseFile().renameTo(checkedInFile)) { in checkinDailyFiles()
713 file.getBaseFile().renameTo(newFile); in onTimeChanged()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1398 if (!tmpZip.renameTo(info.bugreportFile)) { in addDetailsToZipFileLocked()
2017 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
2038 if (bugreportFile.renameTo(newBugreportFile)) { in renameBugreportFile()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java1043 if (!testFile.renameTo(testFileDestination)) { in checkDownloadRequestDestination()
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java711 tmp.renameTo(new File(METRICS_FILE_BASENAME + ".txt")); in saveMetrics()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java568 boolean success = oldPath.toFile().renameTo(newPath.toFile()); in renameFile()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java1276 mNewStateFile.renameTo(mSavedStateFile); in applyStateTransaction()

12