| /frameworks/base/services/core/java/com/android/server/pm/ |
| D | PackageAbiHelperImpl.java | 57 final File codePath = new File(codePathString); in calculateBundledApkRoot() local 59 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 61 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot() 63 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot() 65 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 67 } else if (FileUtils.contains(Environment.getProductDirectory(), codePath)) { in calculateBundledApkRoot() 69 } else if (FileUtils.contains(Environment.getSystemExtDirectory(), codePath)) { in calculateBundledApkRoot() 71 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 73 } else if (FileUtils.contains(Environment.getApexDirectory(), codePath)) { in calculateBundledApkRoot() 74 String fullPath = codePath.getAbsolutePath(); in calculateBundledApkRoot() [all …]
|
| 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()
|
| 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() 101 final File codePathParent = codePath.getParentFile(); in removeCodePathLI() 105 codePath.getAbsolutePath())); in removeCodePathLI() 110 mIncrementalManager.rmPackageDir(codePath); in removeCodePathLI() 114 final String packageName = codePath.getName(); in removeCodePathLI() 115 mInstaller.rmPackageDir(packageName, codePath.getAbsolutePath()); in removeCodePathLI() [all …]
|
| D | InstallArgs.java | 107 InstallArgs(String codePath, String[] instructionSets) { in InstallArgs() argument 113 mCodeFile = (codePath != null) ? new File(codePath) : null; in InstallArgs()
|
| 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 …]
|
| 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 …]
|
| 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()
|
| 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()
|
| /frameworks/base/core/java/android/os/incremental/ |
| 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()
|
| /frameworks/base/core/java/android/content/pm/dex/ |
| 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()
|
| 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()
|
| D | IArtManager.aidl | 48 in String codePath, in ISnapshotRuntimeProfileCallback callback, String callingPackage); in snapshotRuntimeProfile() argument
|
| /frameworks/base/services/core/java/com/android/server/pm/dex/ |
| 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()
|
| 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() 293 createProfileSnapshot(packageName, ArtManager.getProfileName(splitName), codePath, in snapshotAppProfile() 474 String codePath = codePathsProfileNames.keyAt(i); in prepareAppProfiles() local 481 File dexMetadata = DexMetadataHelper.findDexMetadataForFile(new File(codePath)); in prepareAppProfiles() [all …]
|
| 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() 721 private boolean mergePrimaryCodePaths(String codePath, String loadingPackage) { in mergePrimaryCodePaths() argument 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() [all …]
|
| /frameworks/base/core/java/com/android/internal/content/ |
| 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()
|
| /frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/ |
| D | SdCardEjectionTests.kt | 191 val codePath = HostUtils.getCodePaths(device, pkgName).first() in movePackage() constant 192 device.executeShellCommand("mkdir $codePath/oat") in movePackage() 232 val codePath = HostUtils.getCodePaths(device, pkgName).first() in remount() constant 233 device.pushFile(hostApkFile, "$codePath/base.apk") in remount()
|
| D | SystemStubMultiUserDisableUninstallTest.kt | 163 val codePath = HostUtils.getCodePaths(device, TEST_PKG_NAME).first() in <lambda>() constant 164 assertThat(codePath).contains("/data/app") in <lambda>() 165 assertThat(codePath).contains(TEST_PKG_NAME) in <lambda>() 168 previousCodePaths += codePath in <lambda>()
|
| /frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
| D | PackageSettingBuilder.java | 72 public PackageSettingBuilder setCodePath(String codePath) { in setCodePath() argument 73 this.mCodePath = codePath; in setCodePath()
|
| /frameworks/native/cmds/installd/binder/android/os/ |
| D | IInstalld.aidl | 76 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument 80 @utf8InCpp String codePath, boolean dumpClassesAndMethods); in dumpProfiles() argument 115 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument
|
| /frameworks/base/services/core/java/com/android/server/pm/parsing/ |
| D | PackageParser2.java | 203 @NonNull String baseCodePath, @NonNull String codePath, 205 return PackageImpl.forParsing(packageName, baseCodePath, codePath, manifestArray,
|
| /frameworks/base/services/core/java/com/android/server/am/ |
| 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()
|
| /frameworks/base/core/java/android/content/pm/parsing/ |
| 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()
|
| /frameworks/native/cmds/installd/ |
| D | InstalldNativeService.h | 132 binder::Status rmdex(const std::string& codePath, const std::string& instructionSet); 137 const std::string& profileName, const std::string& codePath, 182 const std::string& codePath, const std::optional<std::string>& dexMetadata,
|
| D | InstalldNativeService.cpp | 2122 binder::Status InstalldNativeService::rmdex(const std::string& codePath, in rmdex() argument 2125 CHECK_ARGUMENT_PATH(codePath); in rmdex() 2129 const char* path = codePath.c_str(); in rmdex() 2133 return error("Invalid path " + codePath); in rmdex() 2137 return error("Failed to create cache path for " + codePath); in rmdex() 2410 for (const auto& codePath : codePaths) { in getAppSize() local 2411 CHECK_ARGUMENT_PATH(codePath); in getAppSize() 2460 for (const auto& codePath : codePaths) { in getAppSize() local 2461 calculate_tree_size(codePath, &stats.codeSize, -1, in getAppSize() 2471 for (const auto& codePath : codePaths) { in getAppSize() local [all …]
|