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

/frameworks/base/core/java/android/content/pm/dex/
H A DIArtManager.aidl32 * The apk is identified by {@code codePath}.
35 * the profile for the boot image. In this case {@code codePath can be null}. The parameters
36 * {@code packageName} and {@code codePath} are ignored.
48 in String codePath, in ISnapshotRuntimeProfileCallback callback, String callingPackage);
H A DDexMetadataHelper.java120 String codePath = codePaths.get(i);
121 String dexMetadataPath = buildDexMetadataPathForFile(new File(codePath));
124 result.put(codePath, dexMetadataPath);
137 public static String buildDexMetadataPathForApk(String codePath) { argument
138 if (!PackageParser.isApkPath(codePath)) {
140 "Corrupted package. Code path is not an apk " + codePath);
142 return codePath.substring(0, codePath.length() - APK_FILE_EXTENSION.length())
H A DArtManager.java85 * The apk is identified by {@code codePath}.
88 * the profile for the boot image. In this case {@code codePath can be null}. The parameters
89 * {@code packageName} and {@code codePath} are ignored.
102 * @param codePath the code path for which the profile should be retrieved or null if
109 @Nullable String codePath, @NonNull @CallbackExecutor Executor executor,
111 Slog.d(TAG, "Requesting profile snapshot for " + packageName + ":" + codePath);
116 mArtManager.snapshotRuntimeProfile(profileType, packageName, codePath, delegate,
108 snapshotRuntimeProfile(@rofileType int profileType, @Nullable String packageName, @Nullable String codePath, @NonNull @CallbackExecutor Executor executor, @NonNull SnapshotRuntimeProfileCallback callback) argument
/frameworks/base/services/core/java/com/android/server/pm/
H A DCompilerStats.java81 public long getCompileTime(String codePath) { argument
82 String storagePath = getStoredPathFromCodePath(codePath);
92 public void setCompileTime(String codePath, long compileTimeInMs) { argument
93 String storagePath = getStoredPathFromCodePath(codePath);
103 private static String getStoredPathFromCodePath(String codePath) { argument
104 int lastSlash = codePath.lastIndexOf(File.separatorChar);
105 return codePath.substring(lastSlash + 1);
236 String codePath = s.substring(1, colonIndex);
238 currentPackage.setCompileTime(codePath, time);
H A DPackageSettingBase.java62 File codePath; field in class:PackageSettingBase
136 PackageSettingBase(String name, String realName, File codePath, File resourcePath, argument
150 init(codePath, resourcePath, legacyNativeLibraryPathString, primaryCpuAbiString,
168 void init(File codePath, File resourcePath, String legacyNativeLibraryPathString, argument
171 this.codePath = codePath;
172 this.codePathString = codePath.toString();
237 codePath = orig.codePath;
H A DPackageSetting.java50 PackageSetting(String name, String realName, File codePath, File resourcePath, argument
56 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString,
H A DOtaDexoptService.java363 if (pkg.codePath == null) {
364 Slog.w(TAG, "Package " + pkg + " can be optimized but has null codePath");
370 if (pkg.codePath.startsWith("/system") || pkg.codePath.startsWith("/vendor")
371 || pkg.codePath.startsWith("/product")) {
380 String oatDir = PackageDexOptimizer.getOatDir(new File(pkg.codePath)).
H A DPackageManagerServiceUtils.java301 final File srcFile = new File(pkg.codePath);
659 public static File[] getCompressedFiles(String codePath) { argument
660 final File stubCodePath = new File(codePath);
683 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath);
696 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files));
702 public static boolean compressedFileExists(String codePath) { argument
703 final File[] compressedFiles = getCompressedFiles(codePath);
H A DInstaller.java319 public boolean dumpProfiles(int uid, String packageName, String profileName, String codePath) argument
323 return mInstalld.dumpProfiles(uid, packageName, profileName, codePath);
358 public void rmdex(String codePath, String instructionSet) throws InstallerException { argument
362 mInstalld.rmdex(codePath, instructionSet);
572 String profileName, String codePath, String dexMetadataPath) throws InstallerException {
575 return mInstalld.prepareAppProfile(pkg, userId, appId, profileName, codePath,
571 prepareAppProfile(String pkg, @UserIdInt int userId, @AppIdInt int appId, String profileName, String codePath, String dexMetadataPath) argument
H A DPackageDexOptimizer.java632 File codePath = new File(pkg.codePath);
633 if (codePath.isDirectory()) {
634 // TODO(calin): why do we create this only if the codePath is a directory? (i.e for
637 File oatDir = getOatDir(codePath);
649 static File getOatDir(File codePath) { argument
650 return new File(codePath, OAT_DIR_NAME);
H A DPackageManagerService.java937 // Mapping from provider base names (first directory in content URI codePath)
2529 if (!isExternal(ps) && (ps.codePath == null || !ps.codePath.exists())
2804 + " codePath=" + ps.codePathString
2808 mExpectingBetter.put(ps.name, ps.codePath);
2827 if (disabledPs.codePath == null || !disabledPs.codePath.exists()
3345 final File[] compressedFiles = getCompressedFiles(pkg.codePath);
8488 ? new File(pkg.codePath).lastModified() : getLastModifiedTime(pkg);
8490 && ps.codePathString.equals(pkg.codePath)
9576 removeCodePathLI(File codePath) argument
15668 createInstallArgsForExisting(int installFlags, String codePath, String resourcePath, String[] instructionSets) argument
15820 FileInstallArgs(String codePath, String resourcePath, String[] instructionSets) argument
16201 deriveCodePathName(String codePath) argument
[all...]
H A DPackageManagerShellCommand.java1319 String codePath = null;
1328 codePath = getNextArg();
1346 if (codePath == null) {
1347 codePath = baseCodePath;
1363 codePath, callback, callingPackage);
1371 final String outputFileSuffix = isBootImage || Objects.equals(baseCodePath, codePath)
1372 ? "" : ("-" + new File(codePath).getName());
H A DSettings.java574 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath,
592 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath, argument
607 p = new PackageSetting(name, realName, codePath, resourcePath,
673 File codePath, File resourcePath, String legacyNativeLibraryPath, String primaryCpuAbi,
686 pkgSetting.codePath = codePath;
701 pkgSetting.setTimeStamp(codePath.lastModified());
703 pkgSetting = new PackageSetting(pkgName, realPkgName, codePath, resourcePath,
708 pkgSetting.setTimeStamp(codePath.lastModified());
789 @NonNull File codePath, Fil
671 createNewSetting(String pkgName, PackageSetting originalPkg, PackageSetting disabledPkg, String realPkgName, SharedUserSetting sharedUser, File codePath, File resourcePath, String legacyNativeLibraryPath, String primaryCpuAbi, String secondaryCpuAbi, long versionCode, int pkgFlags, int pkgPrivateFlags, UserHandle installUser, boolean allowInstall, boolean instantApp, boolean virtualPreload, String parentPkgName, List<String> childPkgNames, UserManagerService userManager, String[] usesStaticLibraries, long[] usesStaticLibrariesVersions) argument
787 updatePackageSetting(@onNull PackageSetting pkgSetting, @Nullable PackageSetting disabledPkg, @Nullable SharedUserSetting sharedUser, @NonNull File codePath, File resourcePath, @Nullable String legacyNativeLibraryPath, @Nullable String primaryCpuAbi, @Nullable String secondaryCpuAbi, int pkgFlags, int pkgPrivateFlags, @Nullable List<String> childPkgNames, @NonNull UserManagerService userManager, @Nullable String[] usesStaticLibraries, @Nullable long[] usesStaticLibrariesVersions) argument
[all...]
/frameworks/base/services/core/java/com/android/server/pm/dex/
H A DArtManagerService.java170 @Nullable String codePath, @NonNull ISnapshotRuntimeProfileCallback callback,
187 Preconditions.checkStringNotEmpty(codePath);
197 Slog.d(TAG, "Requested snapshot for " + packageName + ":" + codePath);
203 snapshotAppProfile(packageName, codePath, callback);
207 private void snapshotAppProfile(String packageName, String codePath, argument
227 boolean pathFound = info.applicationInfo.getBaseCodePath().equals(codePath);
232 if (splitCodePaths[i].equals(codePath)) {
252 createProfileSnapshot(packageName, ArtManager.getProfileName(splitName), codePath,
405 String codePath = codePathsProfileNames.keyAt(i);
407 File dexMetadata = DexMetadataHelper.findDexMetadataForFile(new File(codePath));
169 snapshotRuntimeProfile(@rofileType int profileType, @Nullable String packageName, @Nullable String codePath, @NonNull ISnapshotRuntimeProfileCallback callback, String callingPackage) argument
[all...]
H A DPackageDexUsage.java269 String codePath = codeEntry.getKey();
271 fpw.println(CODE_PATH_LINE_CHAR + codePath);
400 String codePath = line.substring(CODE_PATH_LINE_CHAR.length());
402 currentPackageData.mCodePathsUsedByOtherApps.put(codePath, loadingPackages);
529 for (String codePath : codePaths) {
530 packageUseInfo.mergeCodePathUsedByOtherApps(codePath, true, null, null);
729 private boolean mergeCodePathUsedByOtherApps(String codePath, boolean isUsedByOtherApps, argument
737 Set<String> loadingPackages = mCodePathsUsedByOtherApps.get(codePath);
740 mCodePathsUsedByOtherApps.put(codePath, loadingPackages);
749 public boolean isUsedByOtherApps(String codePath) { argument
757 getLoadingPackages(String codePath) argument
[all...]
/frameworks/native/cmds/installd/binder/android/os/
H A DIInstalld.aidl59 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet);
63 @utf8InCpp String codePath);
103 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath,
/frameworks/native/cmds/installd/
H A 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,
H A DInstalldNativeService.cpp1177 binder::Status InstalldNativeService::rmdex(const std::string& codePath, argument
1180 CHECK_ARGUMENT_PATH(codePath);
1185 const char* path = codePath.c_str();
1189 return error("Invalid path " + codePath);
1193 return error("Failed to create cache path for " + codePath);
1440 for (const auto& codePath : codePaths) {
1441 CHECK_ARGUMENT_PATH(codePath);
1487 for (const auto& codePath : codePaths) {
1488 calculate_tree_size(codePath, &stats.codeSize, -1,
1498 for (const auto& codePath
1884 dumpProfiles(int32_t uid, const std::string& packageName, const std::string& profileName, const std::string& codePath, bool* _aidl_return) argument
2664 prepareAppProfile(const std::string& packageName, int32_t userId, int32_t appId, const std::string& profileName, const std::string& codePath, const std::unique_ptr<std::string>& dexMetadata, bool* _aidl_return) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DPackageManagerSettingsTests.java313 INITIAL_CODE_PATH /*codePath*/,
340 INITIAL_CODE_PATH /*codePath*/,
357 UPDATED_CODE_PATH /*codePath*/,
388 UPDATED_CODE_PATH /*codePath*/,
422 UPDATED_CODE_PATH /*codePath*/,
463 UPDATED_CODE_PATH /*codePath*/,
491 UPDATED_CODE_PATH /*codePath*/,
508 assertThat(testPkgSetting01.codePath, is(UPDATED_CODE_PATH));
532 INITIAL_CODE_PATH /*codePath*/,
550 assertThat(testPkgSetting01.codePath, i
[all...]
H A DPackageParserTest.java208 assertEquals(a.codePath, b.codePath);
442 pkg.codePath = "foo4";
/frameworks/base/core/java/com/android/internal/content/
H A DPackageHelper.java408 for (String codePath : pkg.getAllCodePaths()) {
409 final File codeFile = new File(codePath);
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/dex/
H A DDexManagerTests.java512 for (String codePath : codePaths) {
513 assertEquals(codePath, isUsedByOtherApps, pui.isUsedByOtherApps(codePath));
/frameworks/base/core/java/android/content/pm/
H A DPackageParser.java164 // TODO: refactor "codePath" to "apkPath"
406 public final String codePath; field in class:PackageParser.PackageLite
425 public PackageLite(String codePath, ApkLite baseApk, String[] splitNames, argument
437 this.codePath = codePath;
438 this.baseCodePath = baseApk.codePath;
464 public final String codePath; field in class:PackageParser.ApkLite
483 public ApkLite(String codePath, String packageName, String splitName, argument
490 this.codePath = codePath;
1691 parseApkLite(String codePath, XmlPullParser parser, AttributeSet attrs, SigningDetails signingDetails) argument
6213 public String codePath; field in class:PackageParser.Package
6393 setApplicationInfoCodePath(String codePath) argument
6476 setCodePath(String codePath) argument
[all...]
H A DApplicationInfo.java1888 /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; } argument
/frameworks/base/core/tests/coretests/src/android/content/pm/
H A DPackageManagerTests.java578 this.packageURI = Uri.fromFile(new File(pkg.codePath));
582 this.packageURI = Uri.fromFile(new File(pkg.codePath));
587 File file = new File(pkg.codePath);
1051 File outFile = new File(ip.pkg.codePath);

Completed in 358 milliseconds