/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageAbiHelperImpl.java | 54 final File codePath = new File(codePathString); in calculateBundledApkRoot() local 56 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot() 58 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot() 60 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot() 62 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 64 } else if (FileUtils.contains(Environment.getProductDirectory(), codePath)) { in calculateBundledApkRoot() 66 } else if (FileUtils.contains(Environment.getSystemExtDirectory(), codePath)) { in calculateBundledApkRoot() 68 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot() 70 } else if (FileUtils.contains(Environment.getApexDirectory(), codePath)) { in calculateBundledApkRoot() 71 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 | 252 for (String codePath : codePaths) { in getAppSize() 253 BlockGuard.getVmPolicy().onPathAccess(codePath); in getAppSize() 336 public boolean dumpProfiles(int uid, String packageName, String profileName, String codePath) in dumpProfiles() argument 339 BlockGuard.getVmPolicy().onPathAccess(codePath); in dumpProfiles() 341 return mInstalld.dumpProfiles(uid, packageName, profileName, codePath); in dumpProfiles() 379 public void rmdex(String codePath, String instructionSet) throws InstallerException { in rmdex() argument 382 BlockGuard.getVmPolicy().onPathAccess(codePath); in rmdex() 384 mInstalld.rmdex(codePath, instructionSet); in rmdex() 596 String profileName, String codePath, String dexMetadataPath) throws InstallerException { in prepareAppProfile() argument 598 BlockGuard.getVmPolicy().onPathAccess(codePath); in prepareAppProfile() [all …]
|
D | PackageSettingBase.java | 62 File codePath; field in PackageSettingBase 136 PackageSettingBase(String name, String realName, File codePath, File resourcePath, in PackageSettingBase() argument 150 init(codePath, resourcePath, legacyNativeLibraryPathString, primaryCpuAbiString, in PackageSettingBase() 168 void init(File codePath, File resourcePath, String legacyNativeLibraryPathString, in init() argument 171 this.codePath = codePath; in init() 172 this.codePathString = codePath.toString(); in init() 237 codePath = orig.codePath; in doCopy() 662 this.codePath = other.codePath; in updateFrom()
|
D | OtaDexoptService.java | 374 if (pkg.codePath == null) { in moveAbArtifacts() 381 if (pkg.codePath.startsWith("/system") in moveAbArtifacts() 382 || pkg.codePath.startsWith("/vendor") in moveAbArtifacts() 383 || pkg.codePath.startsWith("/product") in moveAbArtifacts() 384 || pkg.codePath.startsWith("/system_ext")) { in moveAbArtifacts() 393 String oatDir = PackageDexOptimizer.getOatDir(new File(pkg.codePath)). in moveAbArtifacts()
|
D | PackageDexOptimizer.java | 652 File codePath = new File(pkg.codePath); in getPackageOatDirIfSupported() local 653 if (!codePath.isDirectory()) { in getPackageOatDirIfSupported() 656 return getOatDir(codePath).getAbsolutePath(); in getPackageOatDirIfSupported() 659 static File getOatDir(File codePath) { in getOatDir() argument 660 return new File(codePath, OAT_DIR_NAME); in getOatDir()
|
D | PackageManagerServiceUtils.java | 311 final File srcFile = new File(pkg.codePath); 686 public static File[] getCompressedFiles(String codePath) { in getCompressedFiles() argument 687 final File stubCodePath = new File(codePath); in getCompressedFiles() 710 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath); in getCompressedFiles() 723 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files)); in getCompressedFiles() 729 public static boolean compressedFileExists(String codePath) { in compressedFileExists() argument 730 final File[] compressedFiles = getCompressedFiles(codePath); in compressedFileExists()
|
D | PackageSetting.java | 50 PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() argument 56 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PackageSetting()
|
D | Settings.java | 497 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath, in enableSystemPackageLPw() 515 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath, in addPackageLPw() argument 530 p = new PackageSetting(name, realName, codePath, resourcePath, in addPackageLPw() 596 File codePath, File resourcePath, String legacyNativeLibraryPath, String primaryCpuAbi, in createNewSetting() argument 609 pkgSetting.codePath = codePath; in createNewSetting() 624 pkgSetting.setTimeStamp(codePath.lastModified()); in createNewSetting() 626 pkgSetting = new PackageSetting(pkgName, realPkgName, codePath, resourcePath, in createNewSetting() 631 pkgSetting.setTimeStamp(codePath.lastModified()); in createNewSetting() 713 @NonNull File codePath, File resourcePath, in updatePackageSetting() argument 729 if (!pkgSetting.codePath.equals(codePath)) { in updatePackageSetting() [all …]
|
/frameworks/base/core/java/android/content/pm/dex/ |
D | DexMetadataHelper.java | 120 String codePath = codePaths.get(i); in buildPackageApkToDexMetadataMap() local 121 String dexMetadataPath = buildDexMetadataPathForFile(new File(codePath)); in buildPackageApkToDexMetadataMap() 124 result.put(codePath, dexMetadataPath); in buildPackageApkToDexMetadataMap() 137 public static String buildDexMetadataPathForApk(String codePath) { in buildDexMetadataPathForApk() argument 138 if (!PackageParser.isApkPath(codePath)) { in buildDexMetadataPathForApk() 140 "Corrupted package. Code path is not an apk " + codePath); in buildDexMetadataPathForApk() 142 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/tests/servicestests/src/com/android/server/pm/ |
D | PackageBuilder.java | 30 PackageBuilder setApplicationInfoCodePath(String codePath) { in setApplicationInfoCodePath() argument 31 mPkg.applicationInfo.setCodePath(codePath); in setApplicationInfoCodePath() 40 PackageBuilder setCodePath(String codePath) { in setCodePath() argument 41 mPkg.codePath = codePath; in setCodePath()
|
D | PackageSettingBuilder.java | 55 public PackageSettingBuilder setCodePath(String codePath) { in setCodePath() argument 56 this.mCodePath = codePath; in setCodePath()
|
D | PackageManagerSettingsTests.java | 567 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting01() 609 assertThat(testPkgSetting01.codePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting02() 657 assertThat(testPkgSetting01.codePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting03() 701 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting04() 756 assertSame(origPkgSetting.codePath, testPkgSetting.codePath); in verifySettingCopy() 757 assertThat(origPkgSetting.codePath, is(testPkgSetting.codePath)); in verifySettingCopy()
|
D | PackageParserTest.java | 219 assertEquals(a.codePath, b.codePath); in assertPackagesEqual() 454 pkg.codePath = "foo4"; in setKnownFields()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtManagerService.java | 170 @Nullable String codePath, @NonNull ISnapshotRuntimeProfileCallback callback, in snapshotRuntimeProfile() argument 187 Preconditions.checkStringNotEmpty(codePath); in snapshotRuntimeProfile() 197 Slog.d(TAG, "Requested snapshot for " + packageName + ":" + codePath); in snapshotRuntimeProfile() 203 snapshotAppProfile(packageName, codePath, callback); in snapshotRuntimeProfile() 207 private void snapshotAppProfile(String packageName, String codePath, in snapshotAppProfile() argument 227 boolean pathFound = info.applicationInfo.getBaseCodePath().equals(codePath); in snapshotAppProfile() 232 if (splitCodePaths[i].equals(codePath)) { in snapshotAppProfile() 252 createProfileSnapshot(packageName, ArtManager.getProfileName(splitName), codePath, in snapshotAppProfile() 410 String codePath = codePathsProfileNames.keyAt(i); in prepareAppProfiles() local 417 File dexMetadata = DexMetadataHelper.findDexMetadataForFile(new File(codePath)); in prepareAppProfiles() [all …]
|
D | PackageDexUsage.java | 285 String codePath = codeEntry.getKey(); in write() local 287 fpw.println(CODE_PATH_LINE_CHAR + codePath); in write() 422 String codePath = line.substring(CODE_PATH_LINE_CHAR.length()); in read() local 424 currentPackageData.mCodePathsUsedByOtherApps.put(codePath, loadingPackages); in read() 551 for (String codePath : codePaths) { in syncData() 552 packageUseInfo.mergeCodePathUsedByOtherApps(codePath, true, null, null); in syncData() 752 private boolean mergeCodePathUsedByOtherApps(String codePath, boolean isUsedByOtherApps, in mergeCodePathUsedByOtherApps() argument 760 Set<String> loadingPackages = mCodePathsUsedByOtherApps.get(codePath); in mergeCodePathUsedByOtherApps() 763 mCodePathsUsedByOtherApps.put(codePath, loadingPackages); in mergeCodePathUsedByOtherApps() 772 public boolean isUsedByOtherApps(String codePath) { in isUsedByOtherApps() argument [all …]
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 64 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument 68 @utf8InCpp String codePath); in dumpProfiles() argument 107 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.h | 112 binder::Status rmdex(const std::string& codePath, const std::string& instructionSet); 117 const std::string& profileName, const std::string& codePath, bool* _aidl_return); 161 const std::string& codePath, const std::optional<std::string>& dexMetadata,
|
D | InstalldNativeService.cpp | 1496 binder::Status InstalldNativeService::rmdex(const std::string& codePath, in rmdex() argument 1499 CHECK_ARGUMENT_PATH(codePath); in rmdex() 1504 const char* path = codePath.c_str(); in rmdex() 1508 return error("Invalid path " + codePath); in rmdex() 1512 return error("Failed to create cache path for " + codePath); in rmdex() 1740 for (const auto& codePath : codePaths) { in getAppSize() local 1741 CHECK_ARGUMENT_PATH(codePath); in getAppSize() 1788 for (const auto& codePath : codePaths) { in getAppSize() local 1789 calculate_tree_size(codePath, &stats.codeSize, -1, in getAppSize() 1799 for (const auto& codePath : codePaths) { in getAppSize() local [all …]
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackStore.java | 216 static void backupPackageCodePath(Rollback rollback, String packageName, String codePath) in backupPackageCodePath() argument 218 File sourceFile = new File(codePath); in backupPackageCodePath()
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 407 for (String codePath : pkg.getAllCodePaths()) { in calculateInstalledSize() 408 final File codeFile = new File(codePath); in calculateInstalledSize()
|
/frameworks/base/services/tests/servicestests/assets/PackageSignaturesTest/xml/ |
D | README | 20 <package name="android.appsecurity.cts.tinyapp" codePath="/data/app/android.appsecurity.cts.tiny
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageParser.java | 396 public final String codePath; field in PackageParser.PackageLite 415 public PackageLite(String codePath, ApkLite baseApk, String[] splitNames, in PackageLite() argument 427 this.codePath = codePath; in PackageLite() 428 this.baseCodePath = baseApk.codePath; in PackageLite() 454 public final String codePath; field in PackageParser.ApkLite 477 public ApkLite(String codePath, String packageName, String splitName, in ApkLite() argument 486 this.codePath = codePath; in ApkLite() 1026 splitCodePaths[i] = apk.codePath; in parseClusterPackageLite() 1031 final String codePath = packageDir.getAbsolutePath(); in parseClusterPackageLite() local 1032 return new PackageLite(codePath, baseApk, splitNames, isFeatureSplits, usesSplitNames, in parseClusterPackageLite() [all …]
|