Home
last modified time | relevance | path

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

/frameworks/multidex/library/src/androidx/multidex/
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()
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()
/frameworks/av/media/mtp/
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()
/frameworks/base/core/tests/coretests/src/android/content/pm/
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()
/frameworks/base/core/java/android/content/pm/
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()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1764 for (File oldFile : screenshotFiles) { in renameScreenshots()
1765 final String oldName = oldFile.getName(); in renameScreenshots()
1770 Log.d(TAG, "Renaming screenshot file " + oldFile + " to " + renamedFile); in renameScreenshots()
1771 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
1774 newFile = oldFile; in renameScreenshots()
/frameworks/base/services/core/java/com/android/server/appop/
DHistoricalRegistry.java941 final File oldFile = generateFile(oldBaseDir, depth); in handlePersistHistoricalOpsRecursiveDLocked() local
942 if (oldFileNames.remove(oldFile.getName())) { in handlePersistHistoricalOpsRecursiveDLocked()
944 Files.createLink(newFile.toPath(), oldFile.toPath()); in handlePersistHistoricalOpsRecursiveDLocked()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java6276 File oldFile = new File(systemDir, PRE_N_DATABASE_NAME);
6277 if (oldFile.exists() && !databaseFile.exists()) {
6286 if (!oldFile.renameTo(databaseFile)) {
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java3256 File oldFile = new File("/data/system/" + STATE_FILENAME); in getSavedStateFile() local
3259 oldFile.renameTo(settingsFile); in getSavedStateFile()