Searched refs:oldFile (Results 1 – 11 of 11) sorted by relevance
/frameworks/multidex/library/src/androidx/multidex/ |
D | MultiDexExtractor.java | 369 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()
|
D | MultiDex.java | 459 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()
|
/frameworks/av/media/mtp/tests/MtpFuzzer/ |
D | mtp_fuzzer.cpp | 99 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()
|
/frameworks/av/media/mtp/ |
D | MtpUtils.cpp | 143 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()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | RegisteredServicesCacheTest.java | 162 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()
|
/frameworks/base/core/java/android/content/pm/ |
D | RegisteredServicesCache.java | 712 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()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackStore.java | 231 private static boolean isLinkPossible(File oldFile, File newFile) { in isLinkPossible() argument 233 return Os.stat(oldFile.getAbsolutePath()).st_dev in isLinkPossible()
|
/frameworks/base/packages/Shell/src/com/android/shell/ |
D | BugreportProgressService.java | 2067 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()
|
/frameworks/base/services/core/java/com/android/server/appop/ |
D | HistoricalRegistry.java | 1067 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()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 6369 File oldFile = new File(systemDir, PRE_N_DATABASE_NAME); 6370 if (oldFile.exists() && !databaseFile.exists()) { 6379 if (!oldFile.renameTo(databaseFile)) {
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 3211 File oldFile = new File("/data/system/" + STATE_FILENAME); in getSavedStateFile() local 3214 oldFile.renameTo(settingsFile); in getSavedStateFile()
|