Home
last modified time | relevance | path

Searched refs:oldFile (Results 1 – 13 of 13) sorted by relevance

/aosp12/build/soong/ui/build/
H A Dcleanbuild.go210 oldFile := newFile + ".previous"
216 if _, err := os.Stat(oldFile); os.IsNotExist(err) {
217 if err := os.Rename(newFile, oldFile); err != nil {
218 ctx.Fatalf("Failed to rename file list (%q->%q): %v", newFile, oldFile, err)
229 if data, err := ioutil.ReadFile(oldFile); err == nil {
232 ctx.Fatalf("Failed to read list of installable files (%q): %v", oldFile, err)
266 if oldFile, err := os.Stat(oldPath); err == nil {
267 if oldFile.IsDir() {
288 os.Rename(newFile, oldFile)
/aosp12/frameworks/multidex/library/src/androidx/multidex/
H A DMultiDexExtractor.java369 for (File oldFile : files) { in clearDexDir()
370 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " + in clearDexDir()
371 oldFile.length()); in clearDexDir()
372 if (!oldFile.delete()) { in clearDexDir()
373 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearDexDir()
375 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearDexDir()
H A DMultiDex.java459 for (File oldFile : files) { in clearOldDexDir()
460 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " in clearOldDexDir()
461 + oldFile.length()); in clearOldDexDir()
462 if (!oldFile.delete()) { in clearOldDexDir()
463 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearOldDexDir()
465 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearOldDexDir()
/aosp12/frameworks/av/media/mtp/tests/MtpFuzzer/
H A Dmtp_fuzzer.cpp99 std::string oldFile = fromPathStr + name; in createDatabaseFromSourceDir() local
114 ret += createDatabaseFromSourceDir(oldFile.c_str(), newFile.c_str(), in createDatabaseFromSourceDir()
117 ret += copyFile(oldFile.c_str(), newFile.c_str()); in createDatabaseFromSourceDir()
/aosp12/frameworks/av/media/mtp/
H A DMtpUtils.cpp143 string oldFile = fromPathStr + name; in copyRecursive() local
148 ret += copyRecursive(oldFile.c_str(), newFile.c_str()); in copyRecursive()
150 ret += copyFile(oldFile.c_str(), newFile.c_str()); in copyRecursive()
/aosp12/system/apex/tests/src/com/android/tests/apex/
H A DApexdHostTest.java124 final File oldFile = getDevice().pullFile(SHIM_APEX_PATH); in testRemountApex() local
145 getDevice().pushFile(oldFile, SHIM_APEX_PATH); in testRemountApex()
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DRegisteredServicesCacheTest.java162 String oldFile = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testMigration() local
169 FileUtils.copyToFile(new ByteArrayInputStream(oldFile.getBytes()), file); in testMigration()
/aosp12/frameworks/base/core/java/android/content/pm/
H A DRegisteredServicesCache.java712 AtomicFile oldFile = new AtomicFile(new File(syncDir, mInterfaceName + ".xml")); in migrateIfNecessaryLocked() local
713 boolean oldFileExists = oldFile.getBaseFile().exists(); in migrateIfNecessaryLocked()
724 is = oldFile.openRead(); in migrateIfNecessaryLocked()
/aosp12/frameworks/base/packages/Shell/src/com/android/shell/
H A DBugreportProgressService.java2067 for (File oldFile : screenshotFiles) { in renameScreenshots()
2068 final String oldName = oldFile.getName(); in renameScreenshots()
2072 final File renamedFile = new File(oldFile.getParentFile(), newName); in renameScreenshots()
2073 Log.d(TAG, "Renaming screenshot file " + oldFile + " to " + renamedFile); in renameScreenshots()
2074 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
2077 newFile = oldFile; in renameScreenshots()
/aosp12/frameworks/base/services/core/java/com/android/server/rollback/
H A DRollbackStore.java231 private static boolean isLinkPossible(File oldFile, File newFile) { in isLinkPossible() argument
233 return Os.stat(oldFile.getAbsolutePath()).st_dev in isLinkPossible()
/aosp12/frameworks/base/services/core/java/com/android/server/appop/
H A DHistoricalRegistry.java1067 final File oldFile = generateFile(oldBaseDir, depth); in handlePersistHistoricalOpsRecursiveDLocked() local
1068 if (oldFileNames.remove(oldFile.getName())) { in handlePersistHistoricalOpsRecursiveDLocked()
1070 Files.createLink(newFile.toPath(), oldFile.toPath()); in handlePersistHistoricalOpsRecursiveDLocked()
/aosp12/frameworks/base/services/core/java/com/android/server/accounts/
H A DAccountManagerService.java6374 File oldFile = new File(systemDir, PRE_N_DATABASE_NAME);
6375 if (oldFile.exists() && !databaseFile.exists()) {
6384 if (!oldFile.renameTo(databaseFile)) {
/aosp12/frameworks/base/services/appwidget/java/com/android/server/appwidget/
H A DAppWidgetServiceImpl.java3211 File oldFile = new File("/data/system/" + STATE_FILENAME); in getSavedStateFile() local
3214 oldFile.renameTo(settingsFile); in getSavedStateFile()