/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | PackageAbiHelperImpl.java | 57 final File codePath = new File(codePathString); in calculateBundledApkRoot() local 59 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 74 String fullPath = codePath.getAbsolutePath(); in calculateBundledApkRoot() 86 File f = codePath.getCanonicalFile(); in calculateBundledApkRoot() 95 + codePath + " - using " + codeRoot); in calculateBundledApkRoot() 108 private static String deriveCodePathName(String codePath) { in deriveCodePathName() argument 109 if (codePath == null) { in deriveCodePathName() 112 final File codeFile = new File(codePath); in deriveCodePathName() 148 final File codeFile = new File(codePath); in deriveNativeLibraryPaths() 168 final String apkName = deriveCodePathName(codePath); in deriveNativeLibraryPaths() [all …]
|
H A D | CompilerStats.java | 81 public long getCompileTime(String codePath) { in getCompileTime() argument 82 String storagePath = getStoredPathFromCodePath(codePath); in getCompileTime() 92 public void setCompileTime(String codePath, long compileTimeInMs) { in setCompileTime() argument 93 String storagePath = getStoredPathFromCodePath(codePath); in setCompileTime() 103 private static String getStoredPathFromCodePath(String codePath) { in getStoredPathFromCodePath() argument 104 int lastSlash = codePath.lastIndexOf(File.separatorChar); in getStoredPathFromCodePath() 105 return codePath.substring(lastSlash + 1); in getStoredPathFromCodePath() 236 String codePath = s.substring(1, colonIndex); in read() local 238 currentPackage.setCompileTime(codePath, time); in read()
|
H A D | RemovePackageHelper.java | 89 public void removeCodePath(File codePath) { in removeCodePath() argument 91 removeCodePathLI(codePath); in removeCodePath() 96 private void removeCodePathLI(File codePath) { in removeCodePathLI() argument 97 if (codePath == null || !codePath.exists()) { in removeCodePathLI() 100 if (codePath.isDirectory()) { in removeCodePathLI() 105 codePath.getAbsolutePath())); in removeCodePathLI() 114 final String packageName = codePath.getName(); in removeCodePathLI() 124 codePath.delete(); in removeCodePathLI() 128 private void removeCachedResult(@NonNull File codePath) { in removeCachedResult() argument 135 cacher.cleanCachedResult(codePath); in removeCachedResult() [all …]
|
H A D | InstallArgs.java | 107 InstallArgs(String codePath, String[] instructionSets) { in InstallArgs() argument 113 mCodeFile = (codePath != null) ? new File(codePath) : null; in InstallArgs()
|
H A D | Installer.java | 496 for (String codePath : codePaths) { in getAppSize() 497 BlockGuard.getVmPolicy().onPathAccess(codePath); in getAppSize() 683 public boolean dumpProfiles(int uid, String packageName, String profileName, String codePath, in dumpProfiles() argument 688 BlockGuard.getVmPolicy().onPathAccess(codePath); in dumpProfiles() 690 return mInstalld.dumpProfiles(uid, packageName, profileName, codePath, in dumpProfiles() 708 public void rmdex(String codePath, String instructionSet) in rmdex() argument 713 BlockGuard.getVmPolicy().onPathAccess(codePath); in rmdex() 715 mInstalld.rmdex(codePath, instructionSet); in rmdex() 985 String profileName, String codePath, String dexMetadataPath) in prepareAppProfile() argument 989 BlockGuard.getVmPolicy().onPathAccess(codePath); in prepareAppProfile() [all …]
|
H A D | PackageManagerServiceUtils.java | 807 public static int decompressFiles(String codePath, File dstCodePath, String packageName) { in decompressFiles() argument 808 final File[] compressedFiles = getCompressedFiles(codePath); in decompressFiles() 860 public static File[] getCompressedFiles(String codePath) { in getCompressedFiles() argument 861 final File stubCodePath = new File(codePath); in getCompressedFiles() 884 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath); in getCompressedFiles() 897 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files)); in getCompressedFiles() 903 public static boolean compressedFileExists(String codePath) { in compressedFileExists() argument 904 final File[] compressedFiles = getCompressedFiles(codePath); in compressedFileExists() 1314 static String tryParsePackageName(@NonNull String codePath) throws IllegalArgumentException { in tryParsePackageName() argument 1315 int packageNameEnds = codePath.indexOf(RANDOM_CODEPATH_PREFIX); in tryParsePackageName() [all …]
|
H A D | ApkChecksums.java | 176 public static String buildDigestsPathForApk(String codePath) { in buildDigestsPathForApk() argument 177 if (!ApkLiteParseUtils.isApkPath(codePath)) { in buildDigestsPathForApk() 178 throw new IllegalStateException("Code path is not an apk " + codePath); in buildDigestsPathForApk() 180 return codePath.substring(0, codePath.length() - APK_FILE_EXTENSION.length()) in buildDigestsPathForApk()
|
H A D | PackageDexOptimizer.java | 1015 File codePath = new File(pkg.getPath()); in getPackageOatDirIfSupported() local 1016 if (!codePath.isDirectory()) { in getPackageOatDirIfSupported() 1019 return getOatDir(codePath).getAbsolutePath(); in getPackageOatDirIfSupported() 1023 public static File getOatDir(File codePath) { in getOatDir() argument 1024 return new File(codePath, OAT_DIR_NAME); in getOatDir()
|
/aosp14/frameworks/base/core/java/android/os/incremental/ |
H A D | IncrementalManager.java | 308 final String codePath = codeFile.getAbsolutePath(); in rmPackageDir() local 309 final IncrementalStorage storage = openStorage(codePath); in rmPackageDir() 314 storage.unBind(codePath); in rmPackageDir() 328 public boolean registerLoadingProgressCallback(@NonNull String codePath, in registerLoadingProgressCallback() argument 330 final IncrementalStorage storage = openStorage(codePath); in registerLoadingProgressCallback() 342 public void unregisterLoadingProgressCallbacks(@NonNull String codePath) { in unregisterLoadingProgressCallbacks() argument 343 final IncrementalStorage storage = openStorage(codePath); in unregisterLoadingProgressCallbacks() 418 public IncrementalMetrics getMetrics(@NonNull String codePath) { in getMetrics() argument 419 final IncrementalStorage storage = openStorage(codePath); in getMetrics()
|
/aosp14/frameworks/base/core/java/android/content/pm/dex/ |
H A D | DexMetadataHelper.java | 138 String codePath = codePaths.get(i); in buildPackageApkToDexMetadataMap() local 139 String dexMetadataPath = buildDexMetadataPathForFile(new File(codePath)); in buildPackageApkToDexMetadataMap() 142 result.put(codePath, dexMetadataPath); in buildPackageApkToDexMetadataMap() 155 public static String buildDexMetadataPathForApk(String codePath) { in buildDexMetadataPathForApk() argument 156 if (!ApkLiteParseUtils.isApkPath(codePath)) { in buildDexMetadataPathForApk() 158 "Corrupted package. Code path is not an apk " + codePath); in buildDexMetadataPathForApk() 160 return codePath.substring(0, codePath.length() - APK_FILE_EXTENSION.length()) in buildDexMetadataPathForApk()
|
H A D | ArtManager.java | 109 @Nullable String codePath, @NonNull @CallbackExecutor Executor executor, in snapshotRuntimeProfile() argument 111 Slog.d(TAG, "Requesting profile snapshot for " + packageName + ":" + codePath); in snapshotRuntimeProfile() 116 mArtManager.snapshotRuntimeProfile(profileType, packageName, codePath, delegate, in snapshotRuntimeProfile()
|
H A D | IArtManager.aidl | 48 in String codePath, in ISnapshotRuntimeProfileCallback callback, String callingPackage); in snapshotRuntimeProfile() argument
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/dex/ |
H A D | ArtUtils.java | 55 File codePath = new File(pkg.getPath()); in getOatDir() local 56 if (codePath.isDirectory()) { in getOatDir() 57 return PackageDexOptimizer.getOatDir(codePath).getAbsolutePath(); in getOatDir()
|
H A D | ArtManagerService.java | 187 @Nullable String codePath, @NonNull ISnapshotRuntimeProfileCallback callback, in snapshotRuntimeProfile() argument 204 Preconditions.checkStringNotEmpty(codePath); in snapshotRuntimeProfile() 214 Slog.d(TAG, "Requested snapshot for " + packageName + ":" + codePath); in snapshotRuntimeProfile() 220 snapshotAppProfile(packageName, codePath, callback); in snapshotRuntimeProfile() 225 String packageName, String codePath, ISnapshotRuntimeProfileCallback callback) { in snapshotAppProfile() argument 244 boolean pathFound = info.applicationInfo.getBaseCodePath().equals(codePath); in snapshotAppProfile() 249 if (splitCodePaths[i].equals(codePath)) { in snapshotAppProfile() 474 String codePath = codePathsProfileNames.keyAt(i); in prepareAppProfiles() local 486 profileName, codePath, dexMetadataPath); in prepareAppProfiles() 489 pkg.getPackageName() + ":" + codePath); in prepareAppProfiles() [all …]
|
H A D | PackageDexUsage.java | 281 String codePath = codeEntry.getKey(); in write() local 283 fpw.println(CODE_PATH_LINE_CHAR + codePath); in write() 413 String codePath = line.substring(CODE_PATH_LINE_CHAR.length()); in read() local 415 currentPackageData.mPrimaryCodePaths.put(codePath, loadingPackages); in read() 722 Set<String> loadingPackages = mPrimaryCodePaths.get(codePath); in mergePrimaryCodePaths() 725 mPrimaryCodePaths.put(codePath, loadingPackages); in mergePrimaryCodePaths() 730 public boolean isUsedByOtherApps(String codePath) { in isUsedByOtherApps() argument 731 if (mPrimaryCodePaths.containsKey(codePath)) { in isUsedByOtherApps() 732 Set<String> loadingPackages = mPrimaryCodePaths.get(codePath); in isUsedByOtherApps() 750 public Set<String> getLoadingPackages(String codePath) { in getLoadingPackages() argument [all …]
|
H A D | DexManager.java | 868 for (String codePath : packageInfo.getCodePaths()) { in deleteOptimizedFiles() 871 freedBytes += mInstaller.deleteOdex(packageName, codePath, isa, in deleteOptimizedFiles() 874 Log.e(TAG, "Failed deleting oat files for " + codePath, e); in deleteOptimizedFiles()
|
/aosp14/frameworks/base/core/java/com/android/internal/content/ |
H A D | F2fsUtils.java | 280 private static File[] getFilesToRelease(@NonNull File codePath) { in getFilesToRelease() argument 281 final List<File> files = getFilesRecursive(codePath); in getFilesToRelease() 283 if (codePath.isFile()) { in getFilesToRelease() 284 return new File[] { codePath }; in getFilesToRelease()
|
H A D | InstallLocationUtils.java | 449 for (String codePath : pkg.getAllApkPaths()) { in calculateInstalledSize() 450 final File codeFile = new File(codePath); in calculateInstalledSize()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
H A D | SdCardEjectionTests.kt | 191 val codePath = HostUtils.getCodePaths(device, pkgName).first() regex 192 device.executeShellCommand("mkdir $codePath/oat") 232 val codePath = HostUtils.getCodePaths(device, pkgName).first() regex 233 device.pushFile(hostApkFile, "$codePath/base.apk")
|
H A D | SystemStubMultiUserDisableUninstallTest.kt | 163 val codePath = HostUtils.getCodePaths(device, TEST_PKG_NAME).first() regex 164 assertThat(codePath).contains("/data/app") 165 assertThat(codePath).contains(TEST_PKG_NAME) 168 previousCodePaths += codePath
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
H A D | PackageSettingBuilder.java | 72 public PackageSettingBuilder setCodePath(String codePath) { in setCodePath() argument 73 this.mCodePath = codePath; in setCodePath()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
H A D | PackageParser2.java | 203 @NonNull String baseCodePath, @NonNull String codePath, 205 return PackageImpl.forParsing(packageName, baseCodePath, codePath, manifestArray,
|
/aosp14/frameworks/base/services/core/java/com/android/server/am/ |
H A D | ProcessErrorStateRecord.java | 565 final String codePath = mApp.info.getCodePath(); in appNotResponding() local 566 if (codePath != null && !codePath.isEmpty() in appNotResponding() 567 && IncrementalManager.isIncrementalPath(codePath)) { in appNotResponding() 576 incrementalMetrics = incrementalManager.getMetrics(codePath); in appNotResponding()
|
/aosp14/frameworks/base/core/java/android/content/pm/parsing/ |
H A D | ApkLiteParseUtils.java | 300 final String codePath = packageDir.getAbsolutePath(); in composePackageLiteFromApks() local 304 new PackageLite(codePath, baseCodePath, baseApk, splitNames, isFeatureSplits, in composePackageLiteFromApks() 403 private static ParseResult<ApkLite> parseApkLite(ParseInput input, String codePath, in parseApkLite() argument 601 + codePath + ": overlay ignored due to required system property: " in parseApkLite() 608 new ApkLite(codePath, packageSplit.first, packageSplit.second, isFeatureSplit, in parseApkLite()
|
/aosp14/frameworks/base/services/core/java/com/android/server/rollback/ |
H A D | RollbackStore.java | 245 static void backupPackageCodePath(Rollback rollback, String packageName, String codePath) in backupPackageCodePath() argument 247 File sourceFile = new File(codePath); in backupPackageCodePath()
|