/frameworks/base/services/core/java/com/android/server/pm/ |
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 | PackageSettingBase.java | 73 File codePath; field in PackageSettingBase 150 PackageSettingBase(String name, String realName, File codePath, File resourcePath, in PackageSettingBase() argument 164 init(codePath, resourcePath, legacyNativeLibraryPathString, primaryCpuAbiString, in PackageSettingBase() 182 void init(File codePath, File resourcePath, String legacyNativeLibraryPathString, in init() argument 185 this.codePath = codePath; in init() 186 this.codePathString = codePath.toString(); in init() 247 codePath = orig.codePath; in doCopy()
|
D | PackageDexOptimizer.java | 551 File codePath = new File(pkg.codePath); in createOatDirIfSupported() local 552 if (codePath.isDirectory()) { in createOatDirIfSupported() 556 File oatDir = getOatDir(codePath); in createOatDirIfSupported() 568 static File getOatDir(File codePath) { in getOatDir() argument 569 return new File(codePath, OAT_DIR_NAME); in getOatDir()
|
D | OtaDexoptService.java | 357 if (pkg.codePath == null) { in moveAbArtifacts() 364 if (pkg.codePath.startsWith("/system") || pkg.codePath.startsWith("/vendor")) { in moveAbArtifacts() 373 String oatDir = PackageDexOptimizer.getOatDir(new File(pkg.codePath)). in moveAbArtifacts()
|
D | PackageSetting.java | 48 PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() argument 54 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PackageSetting()
|
D | PackageManagerService.java | 2569 if (!isExternal(ps) && (ps.codePath == null || !ps.codePath.exists()) in PackageManagerService() 2739 mExpectingBetter.put(ps.name, ps.codePath); in PackageManagerService() 2758 if (disabledPs.codePath == null || !disabledPs.codePath.exists() in PackageManagerService() 3245 private File[] getCompressedFiles(String codePath) { in getCompressedFiles() argument 3246 final File stubCodePath = new File(codePath); in getCompressedFiles() 3269 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath); in getCompressedFiles() 3282 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files)); in getCompressedFiles() 3288 private boolean compressedFileExists(String codePath) { in compressedFileExists() argument 3289 final File[] compressedFiles = getCompressedFiles(codePath); in compressedFileExists() 3299 final File[] compressedFiles = getCompressedFiles(pkg.codePath); in decompressPackage() [all …]
|
D | Installer.java | 342 public void rmdex(String codePath, String instructionSet) throws InstallerException { in rmdex() argument 346 mInstalld.rmdex(codePath, instructionSet); in rmdex()
|
D | Settings.java | 579 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath, in enableSystemPackageLPw() 597 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath, in addPackageLPw() argument 612 p = new PackageSetting(name, realName, codePath, resourcePath, in addPackageLPw() 699 File codePath, File resourcePath, String legacyNativeLibraryPath, String primaryCpuAbi, in createNewSetting() argument 712 pkgSetting.codePath = codePath; in createNewSetting() 728 pkgSetting.setTimeStamp(codePath.lastModified()); in createNewSetting() 730 pkgSetting = new PackageSetting(pkgName, realPkgName, codePath, resourcePath, in createNewSetting() 735 pkgSetting.setTimeStamp(codePath.lastModified()); in createNewSetting() 811 @NonNull File codePath, @Nullable String legacyNativeLibraryPath, in updatePackageSetting() argument 826 if (!pkgSetting.codePath.equals(codePath)) { in updatePackageSetting() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | PackageDexUsage.java | 269 String codePath = codeEntry.getKey(); in write() local 271 fpw.println(CODE_PATH_LINE_CHAR + codePath); in write() 400 String codePath = line.substring(CODE_PATH_LINE_CHAR.length()); in read() local 402 currentPackageData.mCodePathsUsedByOtherApps.put(codePath, loadingPackages); in read() 529 for (String codePath : codePaths) { in syncData() 530 packageUseInfo.mergeCodePathUsedByOtherApps(codePath, true, null, null); in syncData() 729 private boolean mergeCodePathUsedByOtherApps(String codePath, boolean isUsedByOtherApps, in mergeCodePathUsedByOtherApps() argument 737 Set<String> loadingPackages = mCodePathsUsedByOtherApps.get(codePath); in mergeCodePathUsedByOtherApps() 740 mCodePathsUsedByOtherApps.put(codePath, loadingPackages); in mergeCodePathUsedByOtherApps() 749 public boolean isUsedByOtherApps(String codePath) { in isUsedByOtherApps() argument [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageManagerSettingsTests.java | 391 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting01() 434 assertThat(testPkgSetting01.codePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting02() 479 assertThat(testPkgSetting01.codePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting03() 524 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting04() 599 assertSame(origPkgSetting.codePath, testPkgSetting.codePath); in verifySettingCopy() 600 assertThat(origPkgSetting.codePath, is(testPkgSetting.codePath)); in verifySettingCopy()
|
D | PackageParserTest.java | 204 assertEquals(a.codePath, b.codePath); in assertPackagesEqual() 437 pkg.codePath = "foo4"; in setKnownFields()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/ |
D | DexManagerTests.java | 476 for (String codePath : codePaths) { in assertIsUsedByOtherApps() 477 assertEquals(codePath, isUsedByOtherApps, pui.isUsedByOtherApps(codePath)); in assertIsUsedByOtherApps()
|
/frameworks/native/cmds/installd/binder/android/os/ |
D | IInstalld.aidl | 56 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument
|
/frameworks/base/core/java/android/content/pm/ |
D | PackageParser.java | 413 public final String codePath; field in PackageParser.PackageLite 432 public PackageLite(String codePath, ApkLite baseApk, String[] splitNames, in PackageLite() argument 443 this.codePath = codePath; in PackageLite() 444 this.baseCodePath = baseApk.codePath; in PackageLite() 470 public final String codePath; field in PackageParser.ApkLite 489 … public ApkLite(String codePath, String packageName, String splitName, boolean isFeatureSplit, in ApkLite() argument 495 this.codePath = codePath; in ApkLite() 969 splitCodePaths[i] = apk.codePath; in parseClusterPackageLite() 974 final String codePath = packageDir.getAbsolutePath(); in parseClusterPackageLite() local 975 return new PackageLite(codePath, baseApk, splitNames, isFeatureSplits, usesSplitNames, in parseClusterPackageLite() [all …]
|
D | ApplicationInfo.java | 1564 /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; } in setCodePath() argument
|
/frameworks/native/cmds/installd/ |
D | InstalldNativeService.cpp | 1093 binder::Status InstalldNativeService::rmdex(const std::string& codePath, in rmdex() argument 1100 const char* path = codePath.c_str(); in rmdex() 1104 return error("Invalid path " + codePath); in rmdex() 1108 return error("Failed to create cache path for " + codePath); in rmdex() 1399 for (auto codePath : codePaths) { in getAppSize() local 1400 calculate_tree_size(codePath, &stats.codeSize, -1, in getAppSize() 1410 for (auto codePath : codePaths) { in getAppSize() local 1411 calculate_tree_size(codePath, &stats.codeSize); in getAppSize()
|
D | InstalldNativeService.h | 89 binder::Status rmdex(const std::string& codePath, const std::string& instructionSet);
|
/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 657 for (String codePath : pkg.getAllCodePaths()) { in calculateInstalledSize() 658 final File codeFile = new File(codePath); in calculateInstalledSize()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 608 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams() 612 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams() 617 File file = new File(pkg.codePath); in getApkSize() 1326 File outFile = new File(ip.pkg.codePath); in cleanUpInstall()
|