/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageAbiHelperImpl.java | 56 final File codePath = new File(codePathString); in calculateBundledApkRoot() local 58 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 60 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot() 62 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot() 64 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 66 } else if (FileUtils.contains(Environment.getProductDirectory(), codePath)) { in calculateBundledApkRoot() 68 } else if (FileUtils.contains(Environment.getSystemExtDirectory(), codePath)) { in calculateBundledApkRoot() 70 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 72 } else if (FileUtils.contains(Environment.getApexDirectory(), codePath)) { in calculateBundledApkRoot() 73 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 | Installer.java | 399 for (String codePath : codePaths) { in getAppSize() 400 BlockGuard.getVmPolicy().onPathAccess(codePath); in getAppSize() 529 public boolean dumpProfiles(int uid, String packageName, String profileName, String codePath) in dumpProfiles() argument 532 BlockGuard.getVmPolicy().onPathAccess(codePath); in dumpProfiles() 534 return mInstalld.dumpProfiles(uid, packageName, profileName, codePath); in dumpProfiles() 550 public void rmdex(String codePath, String instructionSet) throws InstallerException { in rmdex() argument 553 BlockGuard.getVmPolicy().onPathAccess(codePath); in rmdex() 555 mInstalld.rmdex(codePath, instructionSet); in rmdex() 795 String profileName, String codePath, String dexMetadataPath) throws InstallerException { in prepareAppProfile() argument 797 BlockGuard.getVmPolicy().onPathAccess(codePath); in prepareAppProfile() [all …]
|
D | ApkChecksums.java | 173 public static String buildDigestsPathForApk(String codePath) { in buildDigestsPathForApk() argument 174 if (!ApkLiteParseUtils.isApkPath(codePath)) { in buildDigestsPathForApk() 175 throw new IllegalStateException("Code path is not an apk " + codePath); in buildDigestsPathForApk() 177 return codePath.substring(0, codePath.length() - APK_FILE_EXTENSION.length()) in buildDigestsPathForApk()
|
D | PackageManagerServiceUtils.java | 781 public static File[] getCompressedFiles(String codePath) { in getCompressedFiles() argument 782 final File stubCodePath = new File(codePath); in getCompressedFiles() 805 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath); in getCompressedFiles() 818 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files)); in getCompressedFiles() 824 public static boolean compressedFileExists(String codePath) { in compressedFileExists() argument 825 final File[] compressedFiles = getCompressedFiles(codePath); in compressedFileExists()
|
D | PackageDexOptimizer.java | 838 File codePath = new File(pkg.getPath()); in getPackageOatDirIfSupported() local 839 if (!codePath.isDirectory()) { in getPackageOatDirIfSupported() 842 return getOatDir(codePath).getAbsolutePath(); in getPackageOatDirIfSupported() 846 public static File getOatDir(File codePath) { in getOatDir() argument 847 return new File(codePath, OAT_DIR_NAME); in getOatDir()
|
D | PackageSetting.java | 122 public PackageSetting(String name, String realName, @NonNull File codePath, 129 super(name, realName, codePath, legacyNativeLibraryPathString,
|
/frameworks/base/core/java/android/content/pm/dex/ |
D | DexMetadataHelper.java | 137 String codePath = codePaths.get(i); in buildPackageApkToDexMetadataMap() local 138 String dexMetadataPath = buildDexMetadataPathForFile(new File(codePath)); in buildPackageApkToDexMetadataMap() 141 result.put(codePath, dexMetadataPath); in buildPackageApkToDexMetadataMap() 154 public static String buildDexMetadataPathForApk(String codePath) { in buildDexMetadataPathForApk() argument 155 if (!ApkLiteParseUtils.isApkPath(codePath)) { in buildDexMetadataPathForApk() 157 "Corrupted package. Code path is not an apk " + codePath); in buildDexMetadataPathForApk() 159 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/core/java/android/os/incremental/ |
D | IncrementalManager.java | 291 final String codePath = codeFile.getAbsolutePath(); in rmPackageDir() local 292 final IncrementalStorage storage = openStorage(codePath); in rmPackageDir() 297 storage.unBind(codePath); in rmPackageDir() 311 public boolean registerLoadingProgressCallback(@NonNull String codePath, in registerLoadingProgressCallback() argument 313 final IncrementalStorage storage = openStorage(codePath); in registerLoadingProgressCallback() 325 public void unregisterLoadingProgressCallbacks(@NonNull String codePath) { in unregisterLoadingProgressCallbacks() argument 326 final IncrementalStorage storage = openStorage(codePath); in unregisterLoadingProgressCallbacks() 401 public IncrementalMetrics getMetrics(@NonNull String codePath) { in getMetrics() argument 402 final IncrementalStorage storage = openStorage(codePath); in getMetrics()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtUtils.java | 57 File codePath = new File(pkg.getPath()); in getOatDir() local 58 if (codePath.isDirectory()) { in getOatDir() 59 return PackageDexOptimizer.getOatDir(codePath).getAbsolutePath(); in getOatDir()
|
D | ArtManagerService.java | 176 @Nullable String codePath, @NonNull ISnapshotRuntimeProfileCallback callback, in snapshotRuntimeProfile() argument 193 Preconditions.checkStringNotEmpty(codePath); in snapshotRuntimeProfile() 203 Slog.d(TAG, "Requested snapshot for " + packageName + ":" + codePath); in snapshotRuntimeProfile() 209 snapshotAppProfile(packageName, codePath, callback); in snapshotRuntimeProfile() 213 private void snapshotAppProfile(String packageName, String codePath, in snapshotAppProfile() argument 233 boolean pathFound = info.applicationInfo.getBaseCodePath().equals(codePath); in snapshotAppProfile() 238 if (splitCodePaths[i].equals(codePath)) { in snapshotAppProfile() 258 createProfileSnapshot(packageName, ArtManager.getProfileName(splitName), codePath, in snapshotAppProfile() 414 String codePath = codePathsProfileNames.keyAt(i); in prepareAppProfiles() local 421 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 | 188 val codePath = HostUtils.getCodePaths(device, pkgName).first() in movePackage() constant 189 device.executeShellCommand("mkdir $codePath/oat") in movePackage() 238 val codePath = HostUtils.getCodePaths(device, pkgName).first() in remount() constant 239 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/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 70 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument 74 @utf8InCpp String codePath); in dumpProfiles() argument 111 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 73 public PackageSettingBuilder setCodePath(String codePath) { in setCodePath() argument 74 this.mCodePath = codePath; in setCodePath()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ProcessErrorStateRecord.java | 421 final String codePath = mApp.info.getCodePath(); in appNotResponding() local 422 if (codePath != null && !codePath.isEmpty() in appNotResponding() 423 && IncrementalManager.isIncrementalPath(codePath)) { in appNotResponding() 432 incrementalMetrics = incrementalManager.getMetrics(codePath); in appNotResponding()
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/ |
D | PackageParser2.java | 202 @NonNull String baseCodePath, @NonNull String codePath, 204 return PackageImpl.forParsing(packageName, baseCodePath, codePath, manifestArray,
|
/frameworks/base/core/java/android/content/pm/parsing/ |
D | ApkLiteParseUtils.java | 239 final String codePath = packageDir.getAbsolutePath(); in composePackageLiteFromApks() local 243 new PackageLite(codePath, baseCodePath, baseApk, splitNames, isFeatureSplits, in composePackageLiteFromApks() 342 private static ParseResult<ApkLite> parseApkLite(ParseInput input, String codePath, in parseApkLite() argument 512 + codePath + ": overlay ignored due to required system property: " in parseApkLite() 520 new ApkLite(codePath, packageSplit.first, packageSplit.second, isFeatureSplit, in parseApkLite()
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 125 binder::Status rmdex(const std::string& codePath, const std::string& instructionSet); 130 const std::string& profileName, const std::string& codePath, bool* _aidl_return); 173 const std::string& codePath, const std::optional<std::string>& dexMetadata,
|
D | InstalldNativeService.cpp | 1517 binder::Status InstalldNativeService::rmdex(const std::string& codePath, in rmdex() argument 1520 CHECK_ARGUMENT_PATH(codePath); in rmdex() 1525 const char* path = codePath.c_str(); in rmdex() 1529 return error("Invalid path " + codePath); in rmdex() 1533 return error("Failed to create cache path for " + codePath); in rmdex() 1761 for (const auto& codePath : codePaths) { in getAppSize() local 1762 CHECK_ARGUMENT_PATH(codePath); in getAppSize() 1809 for (const auto& codePath : codePaths) { in getAppSize() local 1810 calculate_tree_size(codePath, &stats.codeSize, -1, in getAppSize() 1820 for (const auto& codePath : codePaths) { in getAppSize() local [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | ParsedPackage.java | 48 ParsedPackage setCodePath(String codePath); in setCodePath() argument
|