Home
last modified time | relevance | path

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

/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()
DOtaDexoptService.java254 File codePath = new File(pkg.codePath); in getOatDir() local
255 if (codePath.isDirectory()) { in getOatDir()
256 return PackageDexOptimizer.getOatDir(codePath).getAbsolutePath(); in getOatDir()
263 for (String codePath : pkg.getAllCodePaths()) { in deleteOatArtifactsOfPackage()
266 mPackageManagerService.mInstaller.deleteOdex(codePath, isa, getOatDir(pkg)); in deleteOatArtifactsOfPackage()
268 Log.e(TAG, "Failed deleting oat files for " + codePath, e); in deleteOatArtifactsOfPackage()
322 if (pkg.codePath == null) { in moveAbArtifacts()
329 if (pkg.codePath.startsWith("/system") || pkg.codePath.startsWith("/vendor")) { in moveAbArtifacts()
338 String oatDir = PackageDexOptimizer.getOatDir(new File(pkg.codePath)). in moveAbArtifacts()
DPackageSettingBase.java63 File codePath; field in PackageSettingBase
135 PackageSettingBase(String name, String realName, File codePath, File resourcePath, in PackageSettingBase() argument
146 init(codePath, resourcePath, legacyNativeLibraryPathString, primaryCpuAbiString, in PackageSettingBase()
159 codePath = base.codePath; in PackageSettingBase()
197 void init(File codePath, File resourcePath, String legacyNativeLibraryPathString, in init() argument
200 this.codePath = codePath; in init()
201 this.codePathString = codePath.toString(); in init()
DPendingPackage.java25 PendingPackage(String name, String realName, File codePath, File resourcePath, in PendingPackage() argument
30 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PendingPackage()
DPackageDexOptimizer.java304 File codePath = new File(pkg.codePath); in createOatDirIfSupported() local
305 if (codePath.isDirectory()) { in createOatDirIfSupported()
306 File oatDir = getOatDir(codePath); in createOatDirIfSupported()
318 static File getOatDir(File codePath) { in getOatDir() argument
319 return new File(codePath, OAT_DIR_NAME); in getOatDir()
DPackageSetting.java34 PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() argument
39 super(name, realName, codePath, resourcePath, legacyNativeLibraryPathString, in PackageSetting()
DInstaller.java120 String codePath, PackageStats stats) throws InstallerException { in getAppSize() argument
122 ceDataInode, codePath); in getAppSize()
173 public void rmdex(String codePath, String instructionSet) throws InstallerException { in rmdex() argument
175 mInstaller.execute("rmdex", codePath, instructionSet); in rmdex()
DSettings.java429 String realName, SharedUserSetting sharedUser, File codePath, File resourcePath, in getPackageLPw() argument
446 PackageSetting p = getPackageLPw(name, origPackage, realName, sharedUser, codePath, in getPackageLPw()
574 PackageSetting ret = addPackageLPw(name, p.realName, p.codePath, p.resourcePath, in enableSystemPackageLPw()
591 PackageSetting addPackageLPw(String name, String realName, File codePath, File resourcePath, in addPackageLPw() argument
605 p = new PackageSetting(name, realName, codePath, resourcePath, in addPackageLPw()
686 String realName, SharedUserSetting sharedUser, File codePath, File resourcePath, in getPackageLPw() argument
700 if (!p.codePath.equals(codePath)) { in getPackageLPw()
707 + p.codePathString + " to " + codePath.toString()); in getPackageLPw()
712 + p.codePath + " to " + codePath + "; Retaining data and using new"); in getPackageLPw()
756 p = new PackageSetting(origPackage.name, name, codePath, resourcePath, in getPackageLPw()
[all …]
DPackageManagerService.java2181 if (!isExternal(ps) && (ps.codePath == null || !ps.codePath.exists()) in PackageManagerService()
2378 mExpectingBetter.put(ps.name, ps.codePath); in PackageManagerService()
2392 if (disabledPs.codePath == null || !disabledPs.codePath.exists()) { in PackageManagerService()
6753 ? new File(pkg.codePath).lastModified() : getLastModifiedTime(pkg, srcFile); in collectCertificatesLI()
6755 && ps.codePath.equals(srcFile) in collectCertificatesLI()
6942 if (ps != null && !ps.codePath.equals(scanFile)) { in scanPackageInternalLI()
6946 if (DEBUG_INSTALL) Slog.d(TAG, "Path changing from " + ps.codePath); in scanPackageInternalLI()
6953 if (!updatedPkg.codePath.equals(scanFile)) { in scanPackageInternalLI()
6957 updatedPkg.codePath = scanFile; in scanPackageInternalLI()
7082 if (ps != null && !ps.codePath.equals(ps.resourcePath)) { in scanPackageInternalLI()
[all …]
/frameworks/base/core/java/android/content/pm/
DPackageParser.java332 public final String codePath; field in PackageParser.PackageLite
349 public PackageLite(String codePath, ApkLite baseApk, String[] splitNames, in PackageLite() argument
356 this.codePath = codePath; in PackageLite()
357 this.baseCodePath = baseApk.codePath; in PackageLite()
381 public final String codePath; field in PackageParser.ApkLite
395 public ApkLite(String codePath, String packageName, String splitName, int versionCode, in ApkLite() argument
399 this.codePath = codePath; in ApkLite()
773 splitCodePaths[i] = apks.get(splitNames[i]).codePath; in parseClusterPackageLite()
778 final String codePath = packageDir.getAbsolutePath(); in parseClusterPackageLite() local
779 return new PackageLite(codePath, baseApk, splitNames, splitCodePaths, in parseClusterPackageLite()
[all …]
DApplicationInfo.java1211 /** {@hide} */ public void setCodePath(String codePath) { scanSourceDir = codePath; } in setCodePath() argument
/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java540 for (String codePath : pkg.getAllCodePaths()) { in calculateInstalledSize()
541 final File codeFile = new File(codePath); in calculateInstalledSize()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java581 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams()
585 this.packageURI = Uri.fromFile(new File(pkg.codePath)); in InstallParams()
590 File file = new File(pkg.codePath); in getApkSize()
1339 File outFile = new File(ip.pkg.codePath); in cleanUpInstall()