Home
last modified time | relevance | path

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

/frameworks/multidex/library/src/android/support/multidex/
DMultiDexExtractor.java268 for (File oldFile : files) { in prepareDexDir()
269 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " + in prepareDexDir()
270 oldFile.length()); in prepareDexDir()
271 if (!oldFile.delete()) { in prepareDexDir()
272 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in prepareDexDir()
274 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in prepareDexDir()
DMultiDex.java350 for (File oldFile : files) { in clearOldDexDir()
351 Log.i(TAG, "Trying to delete old file " + oldFile.getPath() + " of size " in clearOldDexDir()
352 + oldFile.length()); in clearOldDexDir()
353 if (!oldFile.delete()) { in clearOldDexDir()
354 Log.w(TAG, "Failed to delete old file " + oldFile.getPath()); in clearOldDexDir()
356 Log.i(TAG, "Deleted old file " + oldFile.getPath()); in clearOldDexDir()
/frameworks/base/tools/aapt2/link/
DTableMerger.cpp68 FileReference* newFile, FileReference* oldFile) -> bool { in mergeImpl() argument
70 io::IFile* f = collection->findFile(util::utf16ToUtf8(*oldFile->path)); in mergeImpl()
73 << *oldFile->path in mergeImpl()
113 FileReference* newFile, FileReference* oldFile) -> bool { in mergeAndMangle() argument
115 io::IFile* f = collection->findFile(util::utf16ToUtf8(*oldFile->path)); in mergeAndMangle()
117 mContext->getDiagnostics()->error(DiagMessage(src) << "file '" << *oldFile->path in mergeAndMangle()
/frameworks/base/media/java/android/media/
DMiniThumbFile.java90 File oldFile = new File(oldPath); in removeOldFile() local
91 if (oldFile.exists()) { in removeOldFile()
93 oldFile.delete(); in removeOldFile()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java779 File oldFile = new File(path); in renameFile() local
786 boolean success = oldFile.renameTo(newFile); in renameFile()
806 newFile.renameTo(oldFile); in renameFile()
813 if (oldFile.getName().startsWith(".") && !newPath.startsWith(".")) { in renameFile()
823 if (oldFile.getName().toLowerCase(Locale.US).equals(".nomedia") in renameFile()
826 mMediaProvider.call(MediaStore.UNHIDE_CALL, oldFile.getParent(), null); in renameFile()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java159 String oldFile = "<?xml version='1.0' encoding='utf-8' standalone='yes' ?>\n" in testMigration() local
166 FileUtils.copyToFile(new ByteArrayInputStream(oldFile.getBytes()), file); in testMigration()
/frameworks/base/core/java/android/content/pm/
DRegisteredServicesCache.java621 AtomicFile oldFile = new AtomicFile(new File(syncDir, mInterfaceName + ".xml")); in migrateIfNecessaryLocked() local
622 boolean oldFileExists = oldFile.getBaseFile().exists(); in migrateIfNecessaryLocked()
633 is = oldFile.openRead(); in migrateIfNecessaryLocked()
/frameworks/base/packages/Shell/src/com/android/shell/
DBugreportProgressService.java1692 for (File oldFile : screenshotFiles) { in renameScreenshots()
1693 final String oldName = oldFile.getName(); in renameScreenshots()
1698 Log.d(TAG, "Renaming screenshot file " + oldFile + " to " + renamedFile); in renameScreenshots()
1699 newFile = oldFile.renameTo(renamedFile) ? renamedFile : oldFile; in renameScreenshots()
1702 newFile = oldFile; in renameScreenshots()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java4169 File oldFile = new File(systemDir, PRE_N_DATABASE_NAME); in getPreNDatabaseName() local
4170 if (oldFile.exists() && !databaseFile.exists()) { in getPreNDatabaseName()
4178 if (!oldFile.renameTo(databaseFile)) { in getPreNDatabaseName()
/frameworks/base/services/appwidget/java/com/android/server/appwidget/
DAppWidgetServiceImpl.java3060 File oldFile = new File("/data/system/" + STATE_FILENAME); in getSavedStateFile() local
3063 oldFile.renameTo(settingsFile); in getSavedStateFile()