/frameworks/opt/telephony/src/java/com/android/internal/telephony/configupdate/ |
D | TelephonyConfigUpdateInstallReceiver.java | 274 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/ |
D | DexMetadataHelper.java | 105 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/ |
D | PackageManagerServiceUtils.java | 1061 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 …]
|
D | PackageInstallerSession.java | 3379 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 …]
|
D | ApkChecksums.java | 206 public static File findDigestsForFile(File targetFile) { in findDigestsForFile() argument 207 String digestsPath = buildDigestsPathForApk(targetFile.getAbsolutePath()); in findDigestsForFile()
|
/frameworks/base/core/java/android/os/incremental/ |
D | IncrementalFileStorages.java | 154 final File targetFile = new File(mStageDir, apkName); in addApkFile() local 155 if (!targetFile.exists()) { in addApkFile()
|
/frameworks/base/core/tests/coretests/src/android/provider/ |
D | MockFontProvider.java | 220 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/ |
D | RollbackStore.java | 262 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/ |
D | ContextImpl.java | 703 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()
|