Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/configupdate/
DTelephonyConfigUpdateInstallReceiver.java274 File targetFile = new File(UPDATE_DIR, targetFileName); in copySourceFileToTargetFile() local
275 Log.d(TAG, "copy " + sourceFile.getName() + " >> " + targetFile.getName()); in copySourceFileToTargetFile()
278 if (targetFile.exists()) { in copySourceFileToTargetFile()
279 targetFile.delete(); in copySourceFileToTargetFile()
281 FileUtils.copy(sourceFile, targetFile); in copySourceFileToTargetFile()
282 FileUtils.copyPermissions(sourceFile, targetFile); in copySourceFileToTargetFile()
284 + targetFile.getName()); in copySourceFileToTargetFile()
/frameworks/base/core/java/android/content/pm/dex/
DDexMetadataHelper.java105 public static File findDexMetadataForFile(File targetFile) { in findDexMetadataForFile() argument
106 String dexMetadataPath = buildDexMetadataPathForFile(targetFile); in findDexMetadataForFile()
170 private static String buildDexMetadataPathForFile(File targetFile) { in buildDexMetadataPathForFile() argument
171 return ApkLiteParseUtils.isApkFile(targetFile) in buildDexMetadataPathForFile()
172 ? buildDexMetadataPathForApk(targetFile.getPath()) in buildDexMetadataPathForFile()
173 : targetFile.getPath() + DEX_METADATA_FILE_EXTENSION; in buildDexMetadataPathForFile()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java1061 final File targetFile = new File(targetDir, targetName); in copyFile() local
1062 final FileDescriptor targetFd = Os.open(targetFile.getAbsolutePath(), in copyFile()
1064 Os.chmod(targetFile.getAbsolutePath(), DEFAULT_FILE_ACCESS_MODE); in copyFile()
1618 final File targetFile = new File(targetPath, fileName); in linkFilesAndSetModes() local
1619 if (targetFile.exists()) { in linkFilesAndSetModes()
1622 + targetFile + ">"); in linkFilesAndSetModes()
1631 + sourceFile + "> to <" + targetFile + ">"); in linkFilesAndSetModes()
1635 + sourceFile + "> to <" + targetFile + ">", e); in linkFilesAndSetModes()
1639 Os.chmod(targetFile.getAbsolutePath(), mode); in linkFilesAndSetModes()
1642 + targetFile + ">", e); in linkFilesAndSetModes()
[all …]
DPackageInstallerSession.java3379 final File targetFile = new File(stageDir, targetName);
3380 resolveAndStageFileLocked(addedFile, targetFile, null);
3381 mResolvedBaseFile = targetFile;
3526 final File targetFile = new File(stageDir, targetName);
3529 resolveAndStageFileLocked(sourceFile, targetFile, apk.getSplitName());
3534 mResolvedBaseFile = targetFile;
3838 private void stageFileLocked(File origFile, File targetFile)
3840 mResolvedStagedFiles.add(targetFile);
3841 maybeRenameFile(origFile, targetFile);
3845 private void maybeStageFsveritySignatureLocked(File origFile, File targetFile,
[all …]
DApkChecksums.java206 public static File findDigestsForFile(File targetFile) { in findDigestsForFile() argument
207 String digestsPath = buildDigestsPathForApk(targetFile.getAbsolutePath()); in findDigestsForFile()
/frameworks/base/core/java/android/os/incremental/
DIncrementalFileStorages.java154 final File targetFile = new File(mStageDir, apkName); in addApkFile() local
155 if (!targetFile.exists()) { in addApkFile()
/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/rollback/
DRollbackStore.java262 File targetFile = new File(targetDir, sourceFile.getName()); in backupPackageCodePath() local
274 Os.link(sourceFile.getAbsolutePath(), targetFile.getAbsolutePath()); in backupPackageCodePath()
288 Files.copy(sourceFile.toPath(), targetFile.toPath()); in backupPackageCodePath()
/frameworks/base/core/java/android/app/
DContextImpl.java703 final File targetFile = new File(targetDir, sourceFile.getName()); in moveFiles() local
704 Log.d(TAG, "Migrating " + sourceFile + " to " + targetFile); in moveFiles()
706 FileUtils.copyFileOrThrow(sourceFile, targetFile); in moveFiles()
707 FileUtils.copyPermissions(sourceFile, targetFile); in moveFiles()