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 | 465 for (File oldFile : files) { in clearOldDexDir() 466 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " in clearOldDexDir() 467 + oldFile.length()); in clearOldDexDir() 468 if (!oldFile.delete()) { in clearOldDexDir() 469 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearOldDexDir() 471 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 | 164 String oldFile = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testMigration() local 171 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 | 2226 for (File oldFile : screenshotFiles) { in renameScreenshots() 2227 final String oldName = oldFile.getName(); in renameScreenshots() 2231 final File renamedFile = new File(oldFile.getParentFile(), newName); in renameScreenshots() 2232 Log.d(TAG, "Renaming screenshot file " + oldFile + " to " + renamedFile); in renameScreenshots() 2233 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots() 2236 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 | 6432 File oldFile = new File(systemDir, PRE_N_DATABASE_NAME); 6433 if (oldFile.exists() && !databaseFile.exists()) { 6442 if (!oldFile.renameTo(databaseFile)) {
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 3382 File oldFile = new File("/data/system/" + STATE_FILENAME); in getSavedStateFile() local 3385 oldFile.renameTo(settingsFile); in getSavedStateFile()
|