Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java65 if (!mBaseName.renameTo(mBackupName)) { in startWrite()
114 mBackupName.renameTo(mBaseName); in failWrite()
155 mBackupName.renameTo(mBaseName); in openRead()
DAtomicDirectory.java254 if (!mBaseDirectory.renameTo(mBackupDirectory)) { in backup()
273 if (!mBackupDirectory.renameTo(mBaseDirectory)) { in restore()
/frameworks/base/core/java/com/android/internal/util/
DJournaledFile.java61 mTemp.renameTo(mReal); in chooseForRead()
110 mTemp.renameTo(mReal); in commit()
DFileRotator.java119 backupFile.renameTo(file); in FileRotator()
249 file.renameTo(backupFile); in rewriteSingle()
259 backupFile.renameTo(file); in rewriteSingle()
356 file.renameTo(destFile); in maybeRotate()
/frameworks/base/core/java/android/util/
DAtomicFile.java118 if (!mBaseName.renameTo(mBackupName)) { in startWrite()
180 mBackupName.renameTo(mBaseName); in failWrite()
227 mBackupName.renameTo(mBaseName); in openRead()
/frameworks/av/media/mtp/
DMtpUtils.h37 int renameTo(const char *oldPath, const char *newPath);
DMtpUtils.cpp253 int renameTo(const char *oldPath, const char *newPath) { in renameTo() function
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerFilePersistedSettings.java67 stage.renameTo(enableFile); in writeBackupEnableState()
/frameworks/base/services/core/java/com/android/server/
DCertBlacklister.java95 tmp.renameTo(new File(mPath)); in writeBlacklist()
DDropBoxManagerService.java749 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.java115 tempSymlink.renameTo(currentSymlink.getAbsoluteFile()); in install()
DConfigUpdateInstallReceiver.java199 if (!tmp.renameTo(file)) { in writeUpdate()
/frameworks/base/core/java/android/app/
DSharedPreferencesImpl.java138 mBackupFile.renameTo(mFile); in loadFromDisk()
753 if (!mFile.renameTo(mBackupFile)) { in writeToFile()
DDownloadManager.java1308 if (!before.renameTo(after)) {
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java275 if (!before.renameTo(after)) { in renameDocument()
304 if (!before.renameTo(after)) { in moveDocument()
/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java407 if (!tmp.renameTo(extractTo)) { in extract()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java237 if (!file.getBaseFile().renameTo(checkedInFile)) { in checkinDailyFiles()
541 file.getBaseFile().renameTo(newFile); in onTimeChanged()
/frameworks/base/telephony/java/android/telephony/
DMbmsDownloadSession.java1030 if (!testFile.renameTo(testFileDestination)) {
/frameworks/base/services/core/java/com/android/server/power/
DShutdownThread.java708 tmp.renameTo(new File(METRICS_FILE_BASENAME + ".txt")); in saveMetrics()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java1074 mNewStateFile.renameTo(mSavedStateFile); in applyStateTransaction()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1198 if (!tmpZip.renameTo(info.bugreportFile)) { in addDetailsToZipFileLocked()
1773 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java556 boolean success = oldPath.toFile().renameTo(newPath.toFile()); in renameFile()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1451 if (!from.renameTo(to)) { in maybeRenameFile()
1940 if (!tmpFile.renameTo(toFile)) { in copyFiles()

12