Home
last modified time | relevance | path

Searched refs:targetFile (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/core/java/android/content/pm/dex/
DDexMetadataHelper.java77 public static File findDexMetadataForFile(File targetFile) { in findDexMetadataForFile() argument
78 String dexMetadataPath = buildDexMetadataPathForFile(targetFile); in findDexMetadataForFile()
152 private static String buildDexMetadataPathForFile(File targetFile) { in buildDexMetadataPathForFile() argument
153 return PackageParser.isApkFile(targetFile) in buildDexMetadataPathForFile()
154 ? buildDexMetadataPathForApk(targetFile.getPath()) in buildDexMetadataPathForFile()
155 : targetFile.getPath() + DEX_METADATA_FILE_EXTENSION; in buildDexMetadataPathForFile()
/frameworks/base/core/tests/coretests/src/android/provider/
DMockFontProvider.java220 final File targetFile = getCopiedFile(getContext(), FONT_FILES[id]); in openFile() local
222 return ParcelFileDescriptor.open(targetFile, ParcelFileDescriptor.MODE_READ_ONLY); in openFile()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerSession.java1471 final File targetFile = new File(stageDir, targetName); in validateApexInstallLocked() local
1472 resolveAndStageFile(addedFile, targetFile); in validateApexInstallLocked()
1473 mResolvedBaseFile = targetFile; in validateApexInstallLocked()
1581 final File targetFile = new File(stageDir, targetName); in validateApkInstallLocked() local
1582 resolveAndStageFile(addedFile, targetFile); in validateApkInstallLocked()
1586 mResolvedBaseFile = targetFile; in validateApkInstallLocked()
1760 private void resolveAndStageFile(File origFile, File targetFile) in resolveAndStageFile() argument
1762 mResolvedStagedFiles.add(targetFile); in resolveAndStageFile()
1763 maybeRenameFile(origFile, targetFile); in resolveAndStageFile()
1788 VerityUtils.getFsveritySignatureFilePath(targetFile.getPath())); in resolveAndStageFile()
DPackageManagerServiceUtils.java876 final File targetFile = new File(targetDir, targetName); in copyFile() local
877 final FileDescriptor targetFd = Os.open(targetFile.getAbsolutePath(), in copyFile()
879 Os.chmod(targetFile.getAbsolutePath(), 0644); in copyFile()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackStore.java221 File targetFile = new File(targetDir, sourceFile.getName()); in backupPackageCodePath() local
224 Files.copy(sourceFile.toPath(), targetFile.toPath()); in backupPackageCodePath()
/frameworks/base/core/java/android/app/
DContextImpl.java537 final File targetFile = new File(targetDir, sourceFile.getName()); in moveFiles() local
538 Log.d(TAG, "Migrating " + sourceFile + " to " + targetFile); in moveFiles()
540 FileUtils.copyFileOrThrow(sourceFile, targetFile); in moveFiles()
541 FileUtils.copyPermissions(sourceFile, targetFile); in moveFiles()