Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/pm/parsing/
DPackageCacher.java59 private String getCacheKey(File packageFile, int flags) { in getCacheKey() argument
60 StringBuilder sb = new StringBuilder(packageFile.getName()); in getCacheKey()
118 private static boolean isCacheUpToDate(File packageFile, File cacheFile) { in isCacheUpToDate() argument
123 final StructStat pkg = Os.stat(packageFile.getAbsolutePath()); in isCacheUpToDate()
149 public ParsedPackage getCachedResult(File packageFile, int flags) { in getCachedResult() argument
150 final String cacheKey = getCacheKey(packageFile, flags); in getCachedResult()
155 if (!isCacheUpToDate(packageFile, cacheFile)) { in getCachedResult()
174 public void cacheResult(File packageFile, int flags, ParsedPackage parsed) { in cacheResult() argument
176 final String cacheKey = getCacheKey(packageFile, flags); in cacheResult()
205 public void cleanCachedResult(@NonNull File packageFile) { in cleanCachedResult() argument
[all …]
DPackageParser2.java141 public ParsedPackage parsePackage(File packageFile, int flags, boolean useCaches)
144 ParsedPackage parsed = mCacher.getCachedResult(packageFile, flags);
152 ParseResult<ParsingPackage> result = parsingUtils.parsePackage(input, packageFile, flags);
162 mCacher.cacheResult(packageFile, flags, parsed);
168 Slog.i(TAG, "Parse times for '" + packageFile + "': parse=" + parseTime
/frameworks/base/packages/EncryptedLocalTransport/src/com/android/encryptedlocaltransport/
DEncryptedLocalTransport.java53 File packageFile; in performBackup() local
69 packageFile = new File(mCurrentSetIncrementalDir, packageInfo.packageName); in performBackup()
70 Files.copy(in, packageFile.toPath(), StandardCopyOption.REPLACE_EXISTING); in performBackup()
92 File packageFile = new File(mRestoreSetIncrementalDir, in getRestoreData() local
94 Files.copy(packageFile.toPath(), out); in getRestoreData()
/frameworks/base/core/java/android/os/
DRecoverySystem.java224 public static void verifyPackage(File packageFile, in verifyPackage() argument
228 final long fileLen = packageFile.length(); in verifyPackage()
230 final RandomAccessFile raf = new RandomAccessFile(packageFile, "r"); in verifyPackage()
366 if (!readAndVerifyPackageCompatibilityEntry(packageFile)) { in verifyPackage()
403 private static boolean readAndVerifyPackageCompatibilityEntry(File packageFile) in readAndVerifyPackageCompatibilityEntry() argument
405 try (ZipFile zip = new ZipFile(packageFile)) { in readAndVerifyPackageCompatibilityEntry()
450 File packageFile, in processPackage() argument
454 String filename = packageFile.getCanonicalPath(); in processPackage()
511 File packageFile, in processPackage() argument
514 processPackage(context, packageFile, listener, null); in processPackage()
[all …]
DIRecoverySystem.aidl26 boolean uncrypt(in String packageFile, IRecoverySystemProgressListener listener); in uncrypt() argument
/frameworks/base/core/java/android/content/pm/parsing/
DApkLiteParseUtils.java77 File packageFile, int flags) { in parsePackageLite() argument
78 if (packageFile.isDirectory()) { in parsePackageLite()
79 return parseClusterPackageLite(input, packageFile, flags); in parsePackageLite()
81 return parseMonolithicPackageLite(input, packageFile, flags); in parsePackageLite()
86 ParseInput input, File packageFile, int flags) { in parseMonolithicPackageLite() argument
89 ParseResult<PackageParser.ApkLite> result = parseApkLite(input, packageFile, flags); in parseMonolithicPackageLite()
95 final String packagePath = packageFile.getAbsolutePath(); in parseMonolithicPackageLite()
DParsingPackageUtils.java228 public ParseResult<ParsingPackage> parsePackage(ParseInput input, File packageFile, in parsePackage() argument
231 if (packageFile.isDirectory()) { in parsePackage()
232 return parseClusterPackage(input, packageFile, flags); in parsePackage()
234 return parseMonolithicPackage(input, packageFile, flags); in parsePackage()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java816 final File packageFile = new File(packagePath); in getMinimalPackageInfo() local
820 pkg = PackageParser.parsePackageLite(packageFile, 0); in getMinimalPackageInfo()
825 if (!packageFile.exists()) { in getMinimalPackageInfo()
859 final File packageFile = new File(packagePath); in calculateInstalledSize() local
862 pkg = PackageParser.parsePackageLite(packageFile, 0); in calculateInstalledSize()
922 final File packageFile = new File(packagePath); in copyPackage() local
923 final PackageParser.PackageLite pkg = PackageParser.parsePackageLite(packageFile, 0); in copyPackage()
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java88 public static Handle create(File packageFile) throws IOException { in create() argument
90 final PackageLite lite = PackageParser.parsePackageLite(packageFile, 0); in create()
93 throw new IOException("Failed to parse package: " + packageFile, e); in create()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DTelephonyTester.java302 File packageFile = new File(context.getFilesDir(), fileName); in handleTestConferenceEventPackage() local
305 is = new FileInputStream(packageFile); in handleTestConferenceEventPackage()
307 log("Test conference event package file not found: " + packageFile.getAbsolutePath()); in handleTestConferenceEventPackage()
/frameworks/base/core/java/android/content/pm/
DPackageParser.java923 public static PackageLite parsePackageLite(File packageFile, int flags) in parsePackageLite() argument
925 if (packageFile.isDirectory()) { in parsePackageLite()
926 return parseClusterPackageLite(packageFile, flags); in parsePackageLite()
928 return parseMonolithicPackageLite(packageFile, flags); in parsePackageLite()
932 private static PackageLite parseMonolithicPackageLite(File packageFile, int flags) in parseMonolithicPackageLite() argument
935 final ApkLite baseApk = parseApkLite(packageFile, flags); in parseMonolithicPackageLite()
936 final String packagePath = packageFile.getAbsolutePath(); in parseMonolithicPackageLite()
1052 public Package parsePackage(File packageFile, int flags, boolean useCaches) in parsePackage() argument
1054 if (packageFile.isDirectory()) { in parsePackage()
1055 return parseClusterPackage(packageFile, flags); in parsePackage()
[all …]
/frameworks/base/services/java/com/android/server/
DSystemServer.java654 File packageFile = new File(UNCRYPT_PACKAGE_FILE); in performPendingShutdown() local
655 if (packageFile.exists()) { in performPendingShutdown()
658 filename = FileUtils.readTextFile(packageFile, 0, null); in performPendingShutdown()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...