Home
last modified time | relevance | path

Searched refs:codePath (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/java/android/content/pm/dex/
DDexMetadataHelper.java120 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()
DArtManager.java109 @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()
DIArtManager.aidl48 in String codePath, in ISnapshotRuntimeProfileCallback callback, String callingPackage); in snapshotRuntimeProfile() argument
/frameworks/base/services/core/java/com/android/server/pm/
DCompilerStats.java81 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()
DPackageSettingBase.java62 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()
DOtaDexoptService.java363 if (pkg.codePath == null) { in moveAbArtifacts()
370 if (pkg.codePath.startsWith("/system") || pkg.codePath.startsWith("/vendor") in moveAbArtifacts()
371 || pkg.codePath.startsWith("/product")) { in moveAbArtifacts()
380 String oatDir = PackageDexOptimizer.getOatDir(new File(pkg.codePath)). in moveAbArtifacts()
DPackageManagerServiceUtils.java301 final File srcFile = new File(pkg.codePath);
659 public static File[] getCompressedFiles(String codePath) { in getCompressedFiles() argument
660 final File stubCodePath = new File(codePath); in getCompressedFiles()
683 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath); in getCompressedFiles()
696 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files)); in getCompressedFiles()
702 public static boolean compressedFileExists(String codePath) { in compressedFileExists() argument
703 final File[] compressedFiles = getCompressedFiles(codePath); in compressedFileExists()
DInstaller.java319 public boolean dumpProfiles(int uid, String packageName, String profileName, String codePath) in dumpProfiles() argument
323 return mInstalld.dumpProfiles(uid, packageName, profileName, codePath); in dumpProfiles()
358 public void rmdex(String codePath, String instructionSet) throws InstallerException { in rmdex() argument
362 mInstalld.rmdex(codePath, instructionSet); in rmdex()
572 String profileName, String codePath, String dexMetadataPath) throws InstallerException { in prepareAppProfile() argument
575 return mInstalld.prepareAppProfile(pkg, userId, appId, profileName, codePath, in prepareAppProfile()
DPackageDexOptimizer.java632 File codePath = new File(pkg.codePath); in createOatDirIfSupported() local
633 if (codePath.isDirectory()) { in createOatDirIfSupported()
637 File oatDir = getOatDir(codePath); in createOatDirIfSupported()
649 static File getOatDir(File codePath) { in getOatDir() argument
650 return new File(codePath, OAT_DIR_NAME); in getOatDir()
DPackageSetting.java50 PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() argument
56 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PackageSetting()
DPackageManagerService.java2529 if (!isExternal(ps) && (ps.codePath == null || !ps.codePath.exists()) in PackageManagerService()
2808 mExpectingBetter.put(ps.name, ps.codePath); in PackageManagerService()
2827 if (disabledPs.codePath == null || !disabledPs.codePath.exists() in PackageManagerService()
3345 final File[] compressedFiles = getCompressedFiles(pkg.codePath); in decompressPackage()
8488 ? new File(pkg.codePath).lastModified() : getLastModifiedTime(pkg);
8490 && ps.codePathString.equals(pkg.codePath)
8508 Slog.i(TAG, pkg.codePath + " changed; collecting certs" +
8703 pkg.setApplicationInfoCodePath(pkg.codePath);
8706 pkg.setApplicationInfoResourcePath(pkg.codePath);
8777 pkgAlreadyExists && !pkgSetting.codePathString.equals(pkg.codePath);
[all …]
DPackageManagerShellCommand.java1319 String codePath = null; in runSnapshotProfile() local
1328 codePath = getNextArg(); in runSnapshotProfile()
1346 if (codePath == null) { in runSnapshotProfile()
1347 codePath = baseCodePath; in runSnapshotProfile()
1363 codePath, callback, callingPackage); in runSnapshotProfile()
1371 final String outputFileSuffix = isBootImage || Objects.equals(baseCodePath, codePath) in runSnapshotProfile()
1372 ? "" : ("-" + new File(codePath).getName()); in runSnapshotProfile()
DSettings.java574 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath, in enableSystemPackageLPw()
592 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath, in addPackageLPw() argument
607 p = new PackageSetting(name, realName, codePath, resourcePath, in addPackageLPw()
673 File codePath, File resourcePath, String legacyNativeLibraryPath, String primaryCpuAbi, in createNewSetting() argument
686 pkgSetting.codePath = codePath; in createNewSetting()
701 pkgSetting.setTimeStamp(codePath.lastModified()); in createNewSetting()
703 pkgSetting = new PackageSetting(pkgName, realPkgName, codePath, resourcePath, in createNewSetting()
708 pkgSetting.setTimeStamp(codePath.lastModified()); in createNewSetting()
789 @NonNull File codePath, File resourcePath, in updatePackageSetting() argument
805 if (!pkgSetting.codePath.equals(codePath)) { in updatePackageSetting()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/dex/
DArtManagerService.java170 @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()
405 String codePath = codePathsProfileNames.keyAt(i); in prepareAppProfiles() local
407 File dexMetadata = DexMetadataHelper.findDexMetadataForFile(new File(codePath)); in prepareAppProfiles()
[all …]
DPackageDexUsage.java269 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/native/cmds/installd/binder/android/os/
DIInstalld.aidl59 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument
63 @utf8InCpp String codePath); in dumpProfiles() argument
103 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java508 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting01()
550 assertThat(testPkgSetting01.codePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting02()
598 assertThat(testPkgSetting01.codePath, is(INITIAL_CODE_PATH)); in testCreateNewSetting03()
642 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH)); in testCreateNewSetting04()
696 assertSame(origPkgSetting.codePath, testPkgSetting.codePath); in verifySettingCopy()
697 assertThat(origPkgSetting.codePath, is(testPkgSetting.codePath)); in verifySettingCopy()
DPackageParserTest.java208 assertEquals(a.codePath, b.codePath); in assertPackagesEqual()
442 pkg.codePath = "foo4"; in setKnownFields()
/frameworks/native/cmds/installd/
DInstalldNativeService.h92 binder::Status rmdex(const std::string& codePath, const std::string& instructionSet);
97 const std::string& profileName, const std::string& codePath, bool* _aidl_return);
142 const std::string& codePath, const std::unique_ptr<std::string>& dexMetadata,
DInstalldNativeService.cpp1177 binder::Status InstalldNativeService::rmdex(const std::string& codePath, in rmdex() argument
1180 CHECK_ARGUMENT_PATH(codePath); in rmdex()
1185 const char* path = codePath.c_str(); in rmdex()
1189 return error("Invalid path " + codePath); in rmdex()
1193 return error("Failed to create cache path for " + codePath); in rmdex()
1440 for (const auto& codePath : codePaths) { in getAppSize() local
1441 CHECK_ARGUMENT_PATH(codePath); in getAppSize()
1487 for (const auto& codePath : codePaths) { in getAppSize() local
1488 calculate_tree_size(codePath, &stats.codeSize, -1, in getAppSize()
1498 for (const auto& codePath : codePaths) { in getAppSize() local
[all …]
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java408 for (String codePath : pkg.getAllCodePaths()) { in calculateInstalledSize()
409 final File codeFile = new File(codePath); in calculateInstalledSize()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java512 for (String codePath : codePaths) { in assertIsUsedByOtherApps()
513 assertEquals(codePath, isUsedByOtherApps, pui.isUsedByOtherApps(codePath)); in assertIsUsedByOtherApps()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java406 public final String codePath; field in PackageParser.PackageLite
425 public PackageLite(String codePath, ApkLite baseApk, String[] splitNames, in PackageLite() argument
437 this.codePath = codePath; in PackageLite()
438 this.baseCodePath = baseApk.codePath; in PackageLite()
464 public final String codePath; field in PackageParser.ApkLite
483 public ApkLite(String codePath, String packageName, String splitName, in ApkLite() argument
490 this.codePath = codePath; in ApkLite()
974 splitCodePaths[i] = apk.codePath; in parseClusterPackageLite()
979 final String codePath = packageDir.getAbsolutePath(); in parseClusterPackageLite() local
980 return new PackageLite(codePath, baseApk, splitNames, isFeatureSplits, usesSplitNames, in parseClusterPackageLite()
[all …]
DApplicationInfo.java1888 /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; } in setCodePath() argument
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java578 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams()
582 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams()
587 File file = new File(pkg.codePath); in getApkSize()
1051 File outFile = new File(ip.pkg.codePath); in cleanUpInstall()

12