Home
last modified time | relevance | path

Searched refs:PackageParser (Results 1 – 25 of 36) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/pm/
DPackageManagerServiceUtils.java25 import android.content.pm.PackageParser;
72 public static void sortPackagesByUsageDate(List<PackageParser.Package> pkgs, in sortPackagesByUsageDate()
87 private static void applyPackageFilter(Predicate<PackageParser.Package> filter, in applyPackageFilter()
88 Collection<PackageParser.Package> result, in applyPackageFilter()
89 Collection<PackageParser.Package> packages, in applyPackageFilter()
90 @NonNull List<PackageParser.Package> sortTemp, in applyPackageFilter()
92 for (PackageParser.Package pkg : packages) { in applyPackageFilter()
101 for (PackageParser.Package pkg : sortTemp) { in applyPackageFilter()
104 Collection<PackageParser.Package> deps = in applyPackageFilter()
118 public static List<PackageParser.Package> getPackagesForDexopt( in getPackagesForDexopt()
[all …]
DDefaultPermissionGrantPolicy.java30 import android.content.pm.PackageParser;
220 private void grantRuntimePermissionsForPackageLocked(int userId, PackageParser.Package pkg) { in grantRuntimePermissionsForPackageLocked()
236 for (PackageParser.Package pkg : mService.mPackages.values()) { in grantAllRuntimePermissions()
250 for (PackageParser.Package pkg : mService.mPackages.values()) { in grantPermissionsToSysComponentsAndPrivApps()
297 PackageParser.Package installerPackage = getSystemPackageLPr( in grantDefaultSystemHandlerPermissions()
305 PackageParser.Package verifierPackage = getSystemPackageLPr( in grantDefaultSystemHandlerPermissions()
315 PackageParser.Package setupPackage = getSystemPackageLPr( in grantDefaultSystemHandlerPermissions()
327 PackageParser.Package cameraPackage = getDefaultSystemHandlerActivityPackageLPr( in grantDefaultSystemHandlerPermissions()
337 PackageParser.Package mediaStorePackage = getDefaultProviderAuthorityPackageLPr( in grantDefaultSystemHandlerPermissions()
344 PackageParser.Package downloadsPackage = getDefaultProviderAuthorityPackageLPr( in grantDefaultSystemHandlerPermissions()
[all …]
DParallelPackageParser.java19 import android.content.pm.PackageParser;
49 private final PackageParser.Callback mPackageParserCallback;
58 DisplayMetrics metrics, File cacheDir, PackageParser.Callback callback) { in ParallelPackageParser()
68 PackageParser.Package pkg; // Parsed package
110 PackageParser pp = new PackageParser(); in submit()
136 protected PackageParser.Package parsePackage(PackageParser packageParser, File scanFile, in parsePackage()
137 int parseFlags) throws PackageParser.PackageParserException { in parsePackage()
DPackageUsage.java23 import android.content.pm.PackageParser;
39 class PackageUsage extends AbstractStatsBase<Map<String, PackageParser.Package>> {
55 protected void writeInternal(Map<String, PackageParser.Package> packages) { in writeInternal()
69 for (PackageParser.Package pkg : packages.values()) { in writeInternal()
93 protected void readInternal(Map<String, PackageParser.Package> packages) { in readInternal()
117 private void readVersion0LP(Map<String, PackageParser.Package> packages, InputStream in, in readVersion0LP()
131 PackageParser.Package pkg = packages.get(packageName); in readVersion0LP()
145 private void readVersion1LP(Map<String, PackageParser.Package> packages, InputStream in, in readVersion1LP()
157 PackageParser.Package pkg = packages.get(packageName); in readVersion1LP()
DOtaDexoptService.java26 import android.content.pm.PackageParser;
123 final List<PackageParser.Package> important; in prepare()
124 final List<PackageParser.Package> others; in prepare()
137 for (PackageParser.Package p : important) { in prepare()
140 for (PackageParser.Package p : others) { in prepare()
154 for (PackageParser.Package pkg : others) { in prepare()
245 private static String getOatDir(PackageParser.Package pkg) { in getOatDir()
256 private void deleteOatArtifactsOfPackage(PackageParser.Package pkg) { in deleteOatArtifactsOfPackage()
272 private synchronized List<String> generatePackageDexopts(PackageParser.Package pkg, in generatePackageDexopts()
366 Collection<PackageParser.Package> pkgs = mPackageManagerService.getPackages(); in moveAbArtifacts()
[all …]
DIntentFilterVerificationState.java20 import android.content.pm.PackageParser;
38 private ArrayList<PackageParser.ActivityIntentInfo> mFilters = new ArrayList<>();
69 public ArrayList<PackageParser.ActivityIntentInfo> getFilters() { in getFilters()
126 public void addFilter(PackageParser.ActivityIntentInfo filter) { in addFilter()
DInstantAppRegistry.java25 import android.content.pm.PackageParser;
137 PackageParser.Package pkg = mService.mPackages.get(packageName); in getInstantAppCookieLPw()
170 PackageParser.Package pkg = mService.mPackages.get(packageName); in setInstantAppCookieLPw()
261 public void onPackageInstalledLPw(@NonNull PackageParser.Package pkg, @NonNull int[] userIds) { in onPackageInstalledLPw()
307 public void onPackageUninstalledLPw(@NonNull PackageParser.Package pkg, in onPackageUninstalledLPw()
453 private void addUninstalledInstantAppLPw(@NonNull PackageParser.Package pkg, in addUninstalledInstantAppLPw()
477 private void writeInstantApplicationIconLPw(@NonNull PackageParser.Package pkg, in writeInstantApplicationIconLPw()
620 final PackageParser.Package pkg = mService.mPackages.valueAt(i); in pruneInstantApps()
649 final PackageParser.Package lhsPkg = mService.mPackages.get(lhs); in pruneInstantApps()
650 final PackageParser.Package rhsPkg = mService.mPackages.get(rhs); in pruneInstantApps()
[all …]
DPackageDexOptimizer.java23 import android.content.pm.PackageParser;
103 static boolean canOptimizePackage(PackageParser.Package pkg) { in canOptimizePackage()
114 int performDexOpt(PackageParser.Package pkg, String[] sharedLibraries, in performDexOpt()
136 private int performDexOptLI(PackageParser.Package pkg, String[] sharedLibraries, in performDexOptLI()
198 private int dexOptPath(PackageParser.Package pkg, String path, String isa, in dexOptPath()
352 void dumpDexoptState(IndentingPrintWriter pw, PackageParser.Package pkg) { in dumpDexoptState()
400 private int getDexFlags(PackageParser.Package pkg, String compilerFilter) { in getDexFlags()
456 private String[] getSplitDependencies(PackageParser.Package pkg) { in getSplitDependencies()
523 private boolean isProfileUpdated(PackageParser.Package pkg, int uid, String compilerFilter) { in isProfileUpdated()
550 private String createOatDirIfSupported(PackageParser.Package pkg, String dexInstructionSet) { in createOatDirIfSupported()
DBasePermission.java19 import android.content.pm.PackageParser;
40 PackageParser.Permission perm;
DPackageInstallerSession.java43 import android.content.pm.PackageParser;
44 import android.content.pm.PackageParser.ApkLite;
45 import android.content.pm.PackageParser.PackageLite;
46 import android.content.pm.PackageParser.PackageParserException;
725 int flags = PackageParser.PARSE_COLLECT_CERTIFICATES; in validateInstallLocked()
727 flags |= PackageParser.PARSE_IS_EPHEMERAL; in validateInstallLocked()
729 apk = PackageParser.parseApkLite(addedFile, flags); in validateInstallLocked()
812 existing = PackageParser.parsePackageLite(new File(appInfo.getCodePath()), 0); in validateInstallLocked()
813 existingBase = PackageParser.parseApkLite(new File(appInfo.getBaseCodePath()), in validateInstallLocked()
814 PackageParser.PARSE_COLLECT_CERTIFICATES); in validateInstallLocked()
[all …]
DPackageSetting.java21 import android.content.pm.PackageParser;
34 PackageParser.Package pkg;
DPackageManagerException.java20 import android.content.pm.PackageParser.PackageParserException;
DSELinuxMMAC.java19 import android.content.pm.PackageParser;
281 public static void assignSeInfoValue(PackageParser.Package pkg) { in assignSeInfoValue()
437 public String getMatchedSeInfo(PackageParser.Package pkg) { in getMatchedSeInfo()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java24 import android.content.pm.PackageParser;
68 PackageParser pp = new CachePackageNameParser(); in testParse_noCache()
69 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_noCache()
85 PackageParser pp = new CachePackageNameParser(); in testParse_withCache()
93 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_withCache()
114 PackageParser pp = new PackageParser(); in test_serializePackage()
117 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in test_serializePackage()
124 PackageParser.Package deserialized = new PackageParser.Package(p); in test_serializePackage()
131 PackageParser.Package pkg = new PackageParser.Package("foo"); in test_roundTripKnownFields()
138 PackageParser.Package deserialized = new PackageParser.Package(p); in test_roundTripKnownFields()
[all …]
DKeySetManagerServiceTest.java20 import android.content.pm.PackageParser;
64 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testPublicKeyCertReprEquiv()
65 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testPublicKeyCertReprEquiv()
66 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testPublicKeyCertReprEquiv()
100 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testEncodePublicKey()
101 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in testEncodePublicKey()
102 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in testEncodePublicKey()
120 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageEmpty()
147 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageUpgradeSame()
177 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in testAddSigningKSToPackageUpgradeDiff()
[all …]
DParallelPackageParserTest.java19 import android.content.pm.PackageParser;
76 protected PackageParser.Package parsePackage(PackageParser packageParser, File scanFile, in parsePackage()
77 int parseFlags) throws PackageParser.PackageParserException { in parsePackage()
DPackageManagerSettingsTests.java38 import android.content.pm.PackageParser;
538 final PackageParser.Package pkg = new PackageParser.Package(PACKAGE_NAME); in testInsertPackageSetting()
840 PublicKey keyA = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyA); in verifyKeySetMetaData()
841 PublicKey keyB = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyB); in verifyKeySetMetaData()
842 PublicKey keyC = PackageParser.parsePublicKey(KeySetStrings.ctsKeySetPublicKeyC); in verifyKeySetMetaData()
/frameworks/base/core/java/android/content/pm/split/
DSplitAssetDependencyLoader.java22 import android.content.pm.PackageParser;
38 extends SplitDependencyLoader<PackageParser.PackageParserException>
46 public SplitAssetDependencyLoader(PackageParser.PackageLite pkg, in SplitAssetDependencyLoader()
66 throws PackageParser.PackageParserException { in createAssetManagerWithPaths()
73 if ((flags & PackageParser.PARSE_MUST_BE_APK) != 0 && in createAssetManagerWithPaths()
74 !PackageParser.isApkPath(assetPath)) { in createAssetManagerWithPaths()
75 throw new PackageParser.PackageParserException(INSTALL_PARSE_FAILED_NOT_APK, in createAssetManagerWithPaths()
80 throw new PackageParser.PackageParserException( in createAssetManagerWithPaths()
94 int parentSplitIdx) throws PackageParser.PackageParserException { in constructSplit()
110 public AssetManager getBaseAssetManager() throws PackageParser.PackageParserException { in getBaseAssetManager()
[all …]
DDefaultSplitAssetLoader.java21 import android.content.pm.PackageParser;
40 public DefaultSplitAssetLoader(PackageParser.PackageLite pkg, int flags) { in DefaultSplitAssetLoader()
47 throws PackageParser.PackageParserException { in loadApkIntoAssetManager()
48 if ((flags & PackageParser.PARSE_MUST_BE_APK) != 0 && !PackageParser.isApkPath(apkPath)) { in loadApkIntoAssetManager()
49 throw new PackageParser.PackageParserException(INSTALL_PARSE_FAILED_NOT_APK, in loadApkIntoAssetManager()
54 throw new PackageParser.PackageParserException( in loadApkIntoAssetManager()
61 public AssetManager getBaseAssetManager() throws PackageParser.PackageParserException { in getBaseAssetManager()
90 throws PackageParser.PackageParserException { in getSplitAssetManager()
DSplitAssetLoader.java18 import android.content.pm.PackageParser;
28 AssetManager getBaseAssetManager() throws PackageParser.PackageParserException; in getBaseAssetManager()
29 AssetManager getSplitAssetManager(int splitIdx) throws PackageParser.PackageParserException; in getSplitAssetManager()
DSplitDependencyLoader.java20 import android.content.pm.PackageParser;
153 PackageParser.PackageLite pkg) throws IllegalDependencyException { in createDependenciesFromPackage()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java48 final int result = PackageParser.computeMinSdkVersion( in verifyComputeMinSdkVersion()
135 final int result = PackageParser.computeTargetSdkVersion( in verifyComputeTargetSdkVersion()
231 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
238 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
245 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
250 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
257 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
DPackageManagerTests.java34 import android.content.pm.PackageParser.PackageParserException;
316 private PackageParser.Package parsePackage(Uri packageURI) throws PackageParserException { in parsePackage()
318 PackageParser packageParser = new PackageParser(); in parsePackage()
320 PackageParser.Package pkg = packageParser.parseMonolithicPackage(sourceFile, 0); in parsePackage()
408 private void assertInstall(PackageParser.Package pkg, int flags, int expInstallLocation) { in assertInstall()
577 PackageParser.Package pkg;
584 InstallParams(PackageParser.Package pkg) { in InstallParams()
691 private PackageParser.Package getParsedPackage(String outFileName, int rawResId) in getParsedPackage()
697 PackageParser.Package pkg = parsePackage(packageURI); in getParsedPackage()
709 PackageParser.Package pkg = ip.pkg; in installFromRawResource()
[all …]
/frameworks/base/packages/DefaultContainerService/src/com/android/defcontainer/
DDefaultContainerService.java28 import android.content.pm.PackageParser;
29 import android.content.pm.PackageParser.PackageLite;
30 import android.content.pm.PackageParser.PackageParserException;
107 pkg = PackageParser.parsePackageLite(packageFile, 0);
137 pkg = PackageParser.parsePackageLite(packageFile, 0);
166 final PackageParser.PackageLite pkg;
169 pkg = PackageParser.parsePackageLite(packageFile, 0);
257 final PackageParser.PackageLite pkg;
259 pkg = PackageParser.parsePackageLite(packageFile, 0);
/frameworks/base/core/java/com/android/internal/content/
DNativeLibraryHelper.java30 import android.content.pm.PackageParser;
31 import android.content.pm.PackageParser.Package;
32 import android.content.pm.PackageParser.PackageLite;
33 import android.content.pm.PackageParser.PackageParserException;
83 final PackageLite lite = PackageParser.parsePackageLite(packageFile, 0); in create()

12