Home
last modified time | relevance | path

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

123456789

/aosp_15_r20/frameworks/base/services/core/java/com/android/server/pm/
H A DPackageAbiHelperImpl.java68 final File codePath = new File(codePathString); in calculateBundledApkRoot() local
70 if (FileUtils.contains(Environment.getRootDirectory(), codePath)) { in calculateBundledApkRoot()
72 } else if (FileUtils.contains(Environment.getOemDirectory(), codePath)) { in calculateBundledApkRoot()
74 } else if (FileUtils.contains(Environment.getVendorDirectory(), codePath)) { in calculateBundledApkRoot()
76 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot()
78 } else if (FileUtils.contains(Environment.getProductDirectory(), codePath)) { in calculateBundledApkRoot()
80 } else if (FileUtils.contains(Environment.getSystemExtDirectory(), codePath)) { in calculateBundledApkRoot()
82 } else if (FileUtils.contains(Environment.getOdmDirectory(), codePath)) { in calculateBundledApkRoot()
84 } else if (FileUtils.contains(Environment.getApexDirectory(), codePath)) { in calculateBundledApkRoot()
85 String fullPath = codePath.getAbsolutePath(); in calculateBundledApkRoot()
[all …]
H A 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()
H A DRemovePackageHelper.java85 public void removeCodePath(File codePath) { in removeCodePath() argument
87 removeCodePathLI(codePath); in removeCodePath()
92 private void removeCodePathLI(File codePath) { in removeCodePathLI() argument
93 if (codePath == null || !codePath.exists()) { in removeCodePathLI()
96 if (codePath.isDirectory()) { in removeCodePathLI()
97 final File codePathParent = codePath.getParentFile(); in removeCodePathLI()
101 codePath.getAbsolutePath())); in removeCodePathLI()
106 mIncrementalManager.rmPackageDir(codePath); in removeCodePathLI()
110 final String packageName = codePath.getName(); in removeCodePathLI()
111 mInstaller.rmPackageDir(packageName, codePath.getAbsolutePath()); in removeCodePathLI()
[all …]
H A DPackageManagerServiceUtils.java795 public static int decompressFiles(String codePath, File dstCodePath, String packageName) { in decompressFiles() argument
796 final File[] compressedFiles = getCompressedFiles(codePath); in decompressFiles()
848 public static File[] getCompressedFiles(String codePath) { in getCompressedFiles() argument
849 final File stubCodePath = new File(codePath); in getCompressedFiles()
872 Slog.e(TAG, "Unable to determine stub parent dir for codePath: " + codePath); in getCompressedFiles()
885 Slog.i(TAG, "getCompressedFiles[" + codePath + "]: " + Arrays.toString(files)); in getCompressedFiles()
891 public static boolean compressedFileExists(String codePath) { in compressedFileExists() argument
892 final File[] compressedFiles = getCompressedFiles(codePath); in compressedFileExists()
1239 static String tryParsePackageName(@NonNull String codePath) throws IllegalArgumentException { in tryParsePackageName() argument
1240 int packageNameEnds = codePath.indexOf(RANDOM_CODEPATH_PREFIX); in tryParsePackageName()
[all …]
H A DCleanUpArgs.java35 CleanUpArgs(@NonNull String packageName, @NonNull String codePath, in CleanUpArgs() argument
38 mCodeFile = new File(codePath); in CleanUpArgs()
H A DPackageDexOptimizer.java812 File codePath = new File(pkg.getPath()); in getPackageOatDirIfSupported() local
813 if (!codePath.isDirectory()) { in getPackageOatDirIfSupported()
816 return getOatDir(codePath).getAbsolutePath(); in getPackageOatDirIfSupported()
820 public static File getOatDir(File codePath) { in getOatDir() argument
821 return new File(codePath, OAT_DIR_NAME); in getOatDir()
H A DApkChecksums.java179 public static String buildDigestsPathForApk(String codePath) { in buildDigestsPathForApk() argument
180 if (!ApkLiteParseUtils.isApkPath(codePath)) { in buildDigestsPathForApk()
181 throw new IllegalStateException("Code path is not an apk " + codePath); in buildDigestsPathForApk()
183 return codePath.substring(0, codePath.length() - APK_FILE_EXTENSION.length()) in buildDigestsPathForApk()
/aosp_15_r20/external/nullaway/nullaway/src/main/java/com/uber/nullaway/dataflow/
H A DDataFlow.java105 final TreePath codePath = key.codePath();
109 if (codePath.getLeaf() instanceof LambdaExpressionTree) {
111 (LambdaExpressionTree) codePath.getLeaf();
113 ASTHelpers.findEnclosingNode(codePath, MethodTree.class);
115 castToNonNull(ASTHelpers.findEnclosingNode(codePath, ClassTree.class));
117 bodyPath = new TreePath(codePath, lambdaExpressionTree.getBody());
118 } else if (codePath.getLeaf() instanceof MethodTree) {
119 MethodTree method = (MethodTree) codePath.getLeaf();
121 castToNonNull(ASTHelpers.findEnclosingNode(codePath, ClassTree.class));
128 bodyPath = new TreePath(codePath, body);
[all …]
/aosp_15_r20/frameworks/base/core/java/android/os/incremental/
H A DIncrementalManager.java308 final String codePath = codeFile.getAbsolutePath(); in rmPackageDir() local
309 final IncrementalStorage storage = openStorage(codePath); in rmPackageDir()
314 storage.unBind(codePath); in rmPackageDir()
328 public boolean registerLoadingProgressCallback(@NonNull String codePath, in registerLoadingProgressCallback() argument
330 final IncrementalStorage storage = openStorage(codePath); in registerLoadingProgressCallback()
342 public void unregisterLoadingProgressCallbacks(@NonNull String codePath) { in unregisterLoadingProgressCallbacks() argument
343 final IncrementalStorage storage = openStorage(codePath); in unregisterLoadingProgressCallbacks()
418 public IncrementalMetrics getMetrics(@NonNull String codePath) { in getMetrics() argument
419 final IncrementalStorage storage = openStorage(codePath); in getMetrics()
/aosp_15_r20/frameworks/base/core/java/android/content/pm/dex/
H A DDexMetadataHelper.java138 String codePath = codePaths.get(i); in buildPackageApkToDexMetadataMap() local
139 String dexMetadataPath = buildDexMetadataPathForFile(new File(codePath)); in buildPackageApkToDexMetadataMap()
142 result.put(codePath, dexMetadataPath); in buildPackageApkToDexMetadataMap()
155 public static String buildDexMetadataPathForApk(String codePath) { in buildDexMetadataPathForApk() argument
156 if (!ApkLiteParseUtils.isApkPath(codePath)) { in buildDexMetadataPathForApk()
158 "Corrupted package. Code path is not an apk " + codePath); in buildDexMetadataPathForApk()
160 return codePath.substring(0, codePath.length() - APK_FILE_EXTENSION.length()) in buildDexMetadataPathForApk()
H A 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()
/aosp_15_r20/cts/hostsidetests/dexmetadata/app/src/com/android/cts/dexmetadata/
H A DInstallDexMetadataTest.java149 private static String getDexMetadataFromApk(String codePath) { in getDexMetadataFromApk() argument
150 return codePath.substring(0, codePath.length() - sApkFileExtension.length()) in getDexMetadataFromApk()
161 for (String codePath : codePaths) { in buildPackageApkToDexMetadataMap()
162 String dexMetadataPath = getDexMetadataFromApk(codePath); in buildPackageApkToDexMetadataMap()
165 result.put(codePath, dexMetadataPath); in buildPackageApkToDexMetadataMap()
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/pm/dex/
H A DPackageDexUsage.java281 String codePath = codeEntry.getKey(); in write() local
283 fpw.println(CODE_PATH_LINE_CHAR + codePath); in write()
413 String codePath = line.substring(CODE_PATH_LINE_CHAR.length()); in read() local
415 currentPackageData.mPrimaryCodePaths.put(codePath, loadingPackages); in read()
721 private boolean mergePrimaryCodePaths(String codePath, String loadingPackage) { in mergePrimaryCodePaths() argument
722 Set<String> loadingPackages = mPrimaryCodePaths.get(codePath); in mergePrimaryCodePaths()
725 mPrimaryCodePaths.put(codePath, loadingPackages); in mergePrimaryCodePaths()
730 public boolean isUsedByOtherApps(String codePath) { in isUsedByOtherApps() argument
731 if (mPrimaryCodePaths.containsKey(codePath)) { in isUsedByOtherApps()
732 Set<String> loadingPackages = mPrimaryCodePaths.get(codePath); in isUsedByOtherApps()
[all …]
H A DArtManagerService.java178 @Nullable String codePath, @NonNull ISnapshotRuntimeProfileCallback callback, in snapshotRuntimeProfile() argument
195 Preconditions.checkStringNotEmpty(codePath); in snapshotRuntimeProfile()
205 Slog.d(TAG, "Requested snapshot for " + packageName + ":" + codePath); in snapshotRuntimeProfile()
211 snapshotAppProfile(packageName, codePath, callback); in snapshotRuntimeProfile()
216 String packageName, String codePath, ISnapshotRuntimeProfileCallback callback) { in snapshotAppProfile() argument
235 boolean pathFound = info.applicationInfo.getBaseCodePath().equals(codePath); in snapshotAppProfile()
240 if (splitCodePaths[i].equals(codePath)) { in snapshotAppProfile()
H A DArtUtils.java55 File codePath = new File(pkg.getPath()); in getOatDir() local
56 if (codePath.isDirectory()) { in getOatDir()
57 return PackageDexOptimizer.getOatDir(codePath).getAbsolutePath(); in getOatDir()
/aosp_15_r20/frameworks/base/core/java/com/android/internal/content/
H A DF2fsUtils.java280 private static File[] getFilesToRelease(@NonNull File codePath) { in getFilesToRelease() argument
281 final List<File> files = getFilesRecursive(codePath); in getFilesToRelease()
283 if (codePath.isFile()) { in getFilesToRelease()
284 return new File[] { codePath }; in getFilesToRelease()
/aosp_15_r20/frameworks/base/services/tests/PackageManagerServiceTests/host/src/com/android/server/pm/test/
H A DSdCardEjectionTests.kt191 val codePath = HostUtils.getCodePaths(device, pkgName).first() in movePackage() constant
192 device.executeShellCommand("mkdir $codePath/oat") in movePackage()
232 val codePath = HostUtils.getCodePaths(device, pkgName).first() in remount() constant
233 device.pushFile(hostApkFile, "$codePath/base.apk") in remount()
H A DSystemStubMultiUserDisableUninstallTest.kt163 val codePath = HostUtils.getCodePaths(device, TEST_PKG_NAME).first() in <lambda>() constant
164 assertThat(codePath).contains("/data/app") in <lambda>()
165 assertThat(codePath).contains(TEST_PKG_NAME) in <lambda>()
168 previousCodePaths += codePath in <lambda>()
/aosp_15_r20/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/
H A DIncrementalAppErrorStatsTestsHelper.java74 final String codePath = appInfo.sourceDir; in loadingApks() local
75 final String apkDir = codePath.substring(0, codePath.lastIndexOf('/')); in loadingApks()
/aosp_15_r20/cts/hostsidetests/packagemanager/installedloadingprogess/deviceside/src/com/android/tests/loadingprogress/device/
H A DLoadingProgressTest.java104 final String codePath = appInfo.sourceDir; in testReadAllBytes() local
105 final String apkDir = codePath.substring(0, codePath.lastIndexOf('/')); in testReadAllBytes()
/aosp_15_r20/out/soong/.intermediates/frameworks/native/cmds/installd/installd/android_arm64_armv8-2a_cortex-a55/gen/aidl/android/os/
DBnInstalld.h143 …::android::binder::Status rmdex(const ::std::string& codePath, const ::std::string& instructionSet… in rmdex() argument
144 return _aidl_delegate->rmdex(codePath, instructionSet); in rmdex()
149 …ng& packageName, const ::std::string& profileName, const ::std::string& codePath, bool dumpClasses… in dumpProfiles() argument
150 …return _aidl_delegate->dumpProfiles(uid, packageName, profileName, codePath, dumpClassesAndMethods… in dumpProfiles()
203 …, int32_t appId, const ::std::string& profileName, const ::std::string& codePath, const ::std::opt… in prepareAppProfile() argument
204 …return _aidl_delegate->prepareAppProfile(packageName, userId, appId, profileName, codePath, dexMet… in prepareAppProfile()
/aosp_15_r20/art/test/846-multidex-data-image/src-art/
H A DMain.java31 String codePath = DEX_LOCATION + "/846-multidex-data-image.jar"; in main() local
36 new String[] {codePath}, in main()
/aosp_15_r20/frameworks/native/cmds/installd/binder/android/os/
H A DIInstalld.aidl74 void rmdex(@utf8InCpp String codePath, @utf8InCpp String instructionSet); in rmdex() argument
78 @utf8InCpp String codePath, boolean dumpClassesAndMethods); in dumpProfiles() argument
113 int userId, int appId, @utf8InCpp String profileName, @utf8InCpp String codePath, in prepareAppProfile() argument
/aosp_15_r20/art/test/2230-profile-save-hotness/src-art/
H A DMain.java42 String codePath = System.getenv("DEX_LOCATION") + "/2230-profile-save-hotness.jar"; in main() local
47 new String[] {codePath}, in main()
/aosp_15_r20/frameworks/base/services/core/java/com/android/server/am/
H A DProcessErrorStateRecord.java588 final String codePath = mApp.info.getCodePath(); in appNotResponding() local
589 if (codePath != null && !codePath.isEmpty() in appNotResponding()
590 && IncrementalManager.isIncrementalPath(codePath)) { in appNotResponding()
599 incrementalMetrics = incrementalManager.getMetrics(codePath); in appNotResponding()

123456789