Home
last modified time | relevance | path

Searched refs:codePath (Results 1 – 25 of 28) 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()
DInstaller.java249 for (String codePath : codePaths) { in getAppSize()
250 BlockGuard.getVmPolicy().onPathAccess(codePath); in getAppSize()
333 public boolean dumpProfiles(int uid, String packageName, String profileName, String codePath) in dumpProfiles() argument
336 BlockGuard.getVmPolicy().onPathAccess(codePath); in dumpProfiles()
338 return mInstalld.dumpProfiles(uid, packageName, profileName, codePath); in dumpProfiles()
376 public void rmdex(String codePath, String instructionSet) throws InstallerException { in rmdex() argument
379 BlockGuard.getVmPolicy().onPathAccess(codePath); in rmdex()
381 mInstalld.rmdex(codePath, instructionSet); in rmdex()
603 String profileName, String codePath, String dexMetadataPath) throws InstallerException { in prepareAppProfile() argument
605 BlockGuard.getVmPolicy().onPathAccess(codePath); in prepareAppProfile()
[all …]
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()
649 this.codePath = other.codePath; in updateFrom()
DOtaDexoptService.java374 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("/product_services")) { in moveAbArtifacts()
393 String oatDir = PackageDexOptimizer.getOatDir(new File(pkg.codePath)). in moveAbArtifacts()
DPackageDexOptimizer.java657 File codePath = new File(pkg.codePath); in createOatDirIfSupported() local
658 if (codePath.isDirectory()) { in createOatDirIfSupported()
662 File oatDir = getOatDir(codePath); in createOatDirIfSupported()
674 static File getOatDir(File codePath) { in getOatDir() argument
675 return new File(codePath, OAT_DIR_NAME); in getOatDir()
DPackageManagerServiceUtils.java311 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()
DPackageSetting.java50 PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() argument
56 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PackageSetting()
DPackageManagerService.java2522 if (!isExternal(ps) && (ps.codePath == null || !ps.codePath.exists()) in PackageManagerService()
2861 mExpectingBetter.put(ps.name, ps.codePath); in PackageManagerService()
2880 if (disabledPs.codePath == null || !disabledPs.codePath.exists() in PackageManagerService()
2887 mExpectingBetter.put(disabledPs.name, disabledPs.codePath); in PackageManagerService()
2947 final File codePath = new File(pkg.applicationInfo.getCodePath()); in PackageManagerService()
2948 scanPackageTracedLI(codePath, 0, scanFlags, 0, null); in PackageManagerService()
3468 installPackageFromSystemLIF(stubPkg.codePath, in enableCompressedPackage()
3502 final File scanFile = decompressPackage(stubPkg.packageName, stubPkg.codePath); in installStubPackageLI()
3504 throw new PackageManagerException("Unable to decompress stub at " + stubPkg.codePath); in installStubPackageLI()
3525 private File decompressPackage(String packageName, String codePath) { in decompressPackage() argument
[all …]
DSettings.java497 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 …]
DPackageManagerShellCommand.java1529 String codePath = null; in runSnapshotProfile() local
1538 codePath = getNextArg(); in runSnapshotProfile()
1556 if (codePath == null) { in runSnapshotProfile()
1557 codePath = baseCodePath; in runSnapshotProfile()
1573 codePath, callback, callingPackage); in runSnapshotProfile()
1581 final String outputFileSuffix = isBootImage || Objects.equals(baseCodePath, codePath) in runSnapshotProfile()
1582 ? "" : ("-" + new File(codePath).getName()); in runSnapshotProfile()
/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()
406 String codePath = codePathsProfileNames.keyAt(i); in prepareAppProfiles() local
413 File dexMetadata = DexMetadataHelper.findDexMetadataForFile(new File(codePath)); in prepareAppProfiles()
[all …]
DPackageDexUsage.java281 String codePath = codeEntry.getKey(); in write() local
283 fpw.println(CODE_PATH_LINE_CHAR + codePath); in write()
418 String codePath = line.substring(CODE_PATH_LINE_CHAR.length()); in read() local
420 currentPackageData.mCodePathsUsedByOtherApps.put(codePath, loadingPackages); in read()
547 for (String codePath : codePaths) { in syncData()
548 packageUseInfo.mergeCodePathUsedByOtherApps(codePath, true, null, null); in syncData()
748 private boolean mergeCodePathUsedByOtherApps(String codePath, boolean isUsedByOtherApps, in mergeCodePathUsedByOtherApps() argument
756 Set<String> loadingPackages = mCodePathsUsedByOtherApps.get(codePath); in mergeCodePathUsedByOtherApps()
759 mCodePathsUsedByOtherApps.put(codePath, loadingPackages); in mergeCodePathUsedByOtherApps()
768 public boolean isUsedByOtherApps(String codePath) { in isUsedByOtherApps() argument
[all …]
/frameworks/native/cmds/installd/binder/android/os/
DIInstalld.aidl61 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument
65 @utf8InCpp String codePath); in dumpProfiles() argument
105 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument
/frameworks/native/cmds/installd/
DInstalldNativeService.h105 binder::Status rmdex(const std::string& codePath, const std::string& instructionSet);
110 const std::string& profileName, const std::string& codePath, bool* _aidl_return);
155 const std::string& codePath, const std::unique_ptr<std::string>& dexMetadata,
DInstalldNativeService.cpp1403 binder::Status InstalldNativeService::rmdex(const std::string& codePath, in rmdex() argument
1406 CHECK_ARGUMENT_PATH(codePath); in rmdex()
1411 const char* path = codePath.c_str(); in rmdex()
1415 return error("Invalid path " + codePath); in rmdex()
1419 return error("Failed to create cache path for " + codePath); in rmdex()
1623 for (const auto& codePath : codePaths) { in getAppSize() local
1624 CHECK_ARGUMENT_PATH(codePath); in getAppSize()
1671 for (const auto& codePath : codePaths) { in getAppSize() local
1672 calculate_tree_size(codePath, &stats.codeSize, -1, in getAppSize()
1682 for (const auto& codePath : codePaths) { in getAppSize() local
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerSettingsTests.java567 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()
DPackageParserTest.java215 assertEquals(a.codePath, b.codePath); in assertPackagesEqual()
450 pkg.codePath = "foo4"; in setKnownFields()
/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackStore.java216 static void backupPackageCodePath(RollbackData data, String packageName, String codePath) in backupPackageCodePath() argument
218 File sourceFile = new File(codePath); in backupPackageCodePath()
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java407 for (String codePath : pkg.getAllCodePaths()) { in calculateInstalledSize()
408 final File codeFile = new File(codePath); in calculateInstalledSize()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
DDexManagerTests.java542 for (String codePath : codePaths) { in assertIsUsedByOtherApps()
543 assertEquals(codePath, isUsedByOtherApps, pui.isUsedByOtherApps(codePath)); in assertIsUsedByOtherApps()
/frameworks/base/services/tests/servicestests/assets/PackageSignaturesTest/xml/
DREADME20 <package name="android.appsecurity.cts.tinyapp" codePath="/data/app/android.appsecurity.cts.tiny
/frameworks/base/core/java/android/content/pm/
DPackageParser.java393 public final String codePath; field in PackageParser.PackageLite
412 public PackageLite(String codePath, ApkLite baseApk, String[] splitNames, in PackageLite() argument
424 this.codePath = codePath; in PackageLite()
425 this.baseCodePath = baseApk.codePath; in PackageLite()
451 public final String codePath; field in PackageParser.ApkLite
474 public ApkLite(String codePath, String packageName, String splitName, in ApkLite() argument
483 this.codePath = codePath; in ApkLite()
982 splitCodePaths[i] = apk.codePath; in parseClusterPackageLite()
987 final String codePath = packageDir.getAbsolutePath(); in parseClusterPackageLite() local
988 return new PackageLite(codePath, baseApk, splitNames, isFeatureSplits, usesSplitNames, in parseClusterPackageLite()
[all …]

12