Home
last modified time | relevance | path

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

/frameworks/multidex/library/src/androidx/multidex/
DMultiDexExtractor.java364 for (File oldFile : files) { in clearDexDir()
365 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " + in clearDexDir()
366 oldFile.length()); in clearDexDir()
367 if (!oldFile.delete()) { in clearDexDir()
368 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearDexDir()
370 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearDexDir()
DMultiDex.java441 for (File oldFile : files) { in clearOldDexDir()
442 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " in clearOldDexDir()
443 + oldFile.length()); in clearOldDexDir()
444 if (!oldFile.delete()) { in clearOldDexDir()
445 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearOldDexDir()
447 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/media/java/android/media/
DMiniThumbFile.java91 File oldFile = new File(oldPath); in removeOldFile() local
92 if (oldFile.exists()) { in removeOldFile()
94 oldFile.delete(); in removeOldFile()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java161 String oldFile = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testMigration() local
168 FileUtils.copyToFile(new ByteArrayInputStream(oldFile.getBytes()), file); in testMigration()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java705 AtomicFile oldFile = new AtomicFile(new File(syncDir, mInterfaceName + ".xml")); in migrateIfNecessaryLocked() local
706 boolean oldFileExists = oldFile.getBaseFile().exists(); in migrateIfNecessaryLocked()
717 is = oldFile.openRead(); in migrateIfNecessaryLocked()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1744 for (File oldFile : screenshotFiles) { in renameScreenshots()
1745 final String oldName = oldFile.getName(); in renameScreenshots()
1750 Log.d(TAG, "Renaming screenshot file " + oldFile + " to " + renamedFile); in renameScreenshots()
1751 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
1754 newFile = oldFile; in renameScreenshots()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java6245 File oldFile = new File(systemDir, PRE_N_DATABASE_NAME);
6246 if (oldFile.exists() && !databaseFile.exists()) {
6255 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()