Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/pm/
DComponentResolver.java35 import android.content.pm.PackageParser;
36 import android.content.pm.PackageParser.ActivityIntentInfo;
37 import android.content.pm.PackageParser.ServiceIntentInfo;
170 private final ArrayMap<String, PackageParser.Provider> mProvidersByAuthority = new ArrayMap<>();
185 private List<PackageParser.ActivityIntentInfo> mProtectedFilters;
196 PackageParser.Activity getActivity(ComponentName component) { in getActivity()
203 PackageParser.Provider getProvider(ComponentName component) { in getProvider()
210 PackageParser.Activity getReceiver(ComponentName component) { in getReceiver()
217 PackageParser.Service getService(ComponentName component) { in getService()
230 List<PackageParser.Activity> activities, int userId) { in queryActivities()
[all …]
DPackageManagerServiceUtils.java38 import android.content.pm.PackageParser;
39 import android.content.pm.PackageParser.PackageParserException;
121 public static void sortPackagesByUsageDate(List<PackageParser.Package> pkgs, in sortPackagesByUsageDate()
136 private static void applyPackageFilter(Predicate<PackageParser.Package> filter, in applyPackageFilter()
137 Collection<PackageParser.Package> result, in applyPackageFilter()
138 Collection<PackageParser.Package> packages, in applyPackageFilter()
139 @NonNull List<PackageParser.Package> sortTemp, in applyPackageFilter()
141 for (PackageParser.Package pkg : packages) { in applyPackageFilter()
150 for (PackageParser.Package pkg : sortTemp) { in applyPackageFilter()
153 Collection<PackageParser.Package> deps = in applyPackageFilter()
[all …]
DPackageAbiHelper.java20 import android.content.pm.PackageParser;
35 PackageParser.Package pkg, File appLib32InstallDir); in getNativeLibraryPaths()
42 Abis getBundledAppAbis(PackageParser.Package pkg); in getBundledAppAbis()
51 PackageParser.Package pkg, String cpuAbiOverride, boolean extractLibs) in derivePackageAbi()
72 Set<PackageSetting> packagesForUser, PackageParser.Package scannedPackage); in getAdjustedAbiForSharedUser()
94 public void applyTo(PackageParser.Package pkg) { in applyTo()
115 Abis(PackageParser.Package pkg) { in Abis()
119 public void applyTo(PackageParser.Package pkg) { in applyTo()
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()
DPackageSignatures.java20 import android.content.pm.PackageParser;
21 import android.content.pm.PackageParser.SigningDetails.SignatureSchemeVersion;
37 @NonNull PackageParser.SigningDetails mSigningDetails;
40 if (orig != null && orig.mSigningDetails != PackageParser.SigningDetails.UNKNOWN) { in PackageSignatures()
41 mSigningDetails = new PackageParser.SigningDetails(orig.mSigningDetails); in PackageSignatures()
43 mSigningDetails = PackageParser.SigningDetails.UNKNOWN; in PackageSignatures()
47 PackageSignatures(PackageParser.SigningDetails signingDetails) { in PackageSignatures()
52 mSigningDetails = PackageParser.SigningDetails.UNKNOWN; in PackageSignatures()
109 PackageParser.SigningDetails.Builder builder = in readXml()
110 new PackageParser.SigningDetails.Builder(); in readXml()
[all …]
DOtaDexoptService.java25 import android.content.pm.PackageParser;
121 final List<PackageParser.Package> important; in prepare()
122 final List<PackageParser.Package> others; in prepare()
136 for (PackageParser.Package p : important) { in prepare()
139 for (PackageParser.Package p : others) { in prepare()
153 for (PackageParser.Package pkg : others) { in prepare()
164 PackageParser.Package lastUsed = Collections.max(important, in prepare()
171 for (PackageParser.Package pkg : others) { in prepare()
265 private synchronized List<String> generatePackageDexopts(PackageParser.Package pkg, in generatePackageDexopts()
362 Collection<PackageParser.Package> pkgs = mPackageManagerService.getPackages(); in moveAbArtifacts()
[all …]
DSharedUserSetting.java21 import android.content.pm.PackageParser;
109 public @Nullable List<PackageParser.Package> getPackages() { in getPackages()
113 final ArrayList<PackageParser.Package> pkgList = new ArrayList<>(packages.size()); in getPackages()
134 final List<PackageParser.Package> pkgList = getPackages(); in fixSeInfoLocked()
139 for (PackageParser.Package pkg : pkgList) { in fixSeInfoLocked()
144 for (PackageParser.Package pkg : pkgList) { in fixSeInfoLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java31 import android.content.pm.PackageParser;
80 PackageParser pp = new CachePackageNameParser(); in testParse_noCache()
81 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_noCache()
97 PackageParser pp = new CachePackageNameParser(); in testParse_withCache()
105 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_withCache()
126 PackageParser pp = new PackageParser(); in test_serializePackage()
129 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in test_serializePackage()
136 PackageParser.Package deserialized = new PackageParser.Package(p); in test_serializePackage()
145 PackageParser.Package pkg = new PackageParser.Package("foo"); in test_roundTripKnownFields()
152 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 …]
DScanRequestBuilder.java19 import android.content.pm.PackageParser;
23 private final PackageParser.Package mPkg;
24 private PackageParser.Package mOldPkg;
35 ScanRequestBuilder(PackageParser.Package pkg) { in ScanRequestBuilder()
39 public ScanRequestBuilder setOldPkg(PackageParser.Package oldPkg) { in setOldPkg()
DParallelPackageParserTest.java19 import android.content.pm.PackageParser;
77 protected PackageParser.Package parsePackage(PackageParser packageParser, File scanFile, in parsePackage()
78 int parseFlags) throws PackageParser.PackageParserException { in parsePackage()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceInternal.java24 import android.content.pm.PackageParser;
69 public abstract boolean isPermissionsReviewRequired(@NonNull PackageParser.Package pkg, in isPermissionsReviewRequired()
76 @NonNull PackageParser.Package pkg, int callingUid, in grantRuntimePermissionsGrantedToDisabledPackage()
79 @NonNull PackageParser.Package pkg, @NonNull int[] userIds, in grantRequestedRuntimePermissions()
83 @NonNull PackageParser.Package pkg, in getWhitelistedRestrictedPermissions()
86 @NonNull PackageParser.Package pkg, @NonNull int[] userIds, in setWhitelistedRestrictedPermissions()
95 @Nullable PackageParser.Package pkg, boolean replaceGrant, in updatePermissions()
96 @NonNull Collection<PackageParser.Package> allPacakges, PermissionCallback callback); in updatePermissions()
98 @NonNull Collection<PackageParser.Package> allPacakges, PermissionCallback callback); in updateAllPermissions()
111 @NonNull PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged()
[all …]
DPermissionManagerService.java55 import android.content.pm.PackageParser;
56 import android.content.pm.PackageParser.Package;
301 final PackageParser.Package pkg = mPackageManagerInt.getPackage(pkgName); in checkPermission()
329 private int checkUidPermission(String permName, PackageParser.Package pkg, int uid, in checkUidPermission()
500 return PackageParser.generatePermissionGroupInfo( in getPermissionGroupInfo()
513 for (PackageParser.PermissionGroup pg : mSettings.mPermissionGroups.values()) { in getAllPermissionGroups()
514 out.add(PackageParser.generatePermissionGroupInfo(pg, flags)); in getAllPermissionGroups()
574 final PackageParser.Package pkg = mPackageManagerInt.getPackage(packageName); in adjustPermissionProtectionFlagsLocked()
603 @NonNull PackageParser.Package newPackage, in revokeRuntimePermissionsIfGroupChanged()
604 @NonNull PackageParser.Package oldPackage, in revokeRuntimePermissionsIfGroupChanged()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/
DDexMetadataHelperTest.java26 import android.content.pm.PackageParser;
27 import android.content.pm.PackageParser.ApkLite;
28 import android.content.pm.PackageParser.Package;
29 import android.content.pm.PackageParser.PackageLite;
30 import android.content.pm.PackageParser.PackageParserException;
98 Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageWithDmFileValid()
114 Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageSplitsWithDmFileValid()
133 Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageSplitsNoBaseWithDmFileValid()
149 PackageParser.Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageWithDmFileInvalid()
166 PackageParser.Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageSplitsWithDmFileInvalid()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/
DBackupUtilsTest.java28 import android.content.pm.PackageParser;
98 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
100 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
117 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
119 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
200 new PackageParser.SigningDetails( in signaturesMatch_equalSignatures_returnsTrue()
202 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_equalSignatures_returnsTrue()
222 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInTarget_returnsTrue()
224 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInTarget_returnsTrue()
243 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInStored_returnsFalse()
[all …]
/frameworks/base/core/java/android/content/pm/
DSigningInfo.java30 private final PackageParser.SigningDetails mSigningDetails;
33 mSigningDetails = PackageParser.SigningDetails.UNKNOWN; in SigningInfo()
39 public SigningInfo(PackageParser.SigningDetails signingDetails) { in SigningInfo()
40 mSigningDetails = new PackageParser.SigningDetails(signingDetails); in SigningInfo()
44 mSigningDetails = new PackageParser.SigningDetails(orig.mSigningDetails); in SigningInfo()
48 mSigningDetails = PackageParser.SigningDetails.CREATOR.createFromParcel(source); in SigningInfo()
/frameworks/base/core/java/android/content/pm/dex/
DDexMetadataHelper.java20 import static android.content.pm.PackageParser.APK_FILE_EXTENSION;
22 import android.content.pm.PackageParser;
23 import android.content.pm.PackageParser.PackageLite;
24 import android.content.pm.PackageParser.PackageParserException;
89 public static Map<String, String> getPackageDexMetadata(PackageParser.Package pkg) { in getPackageDexMetadata()
138 if (!PackageParser.isApkPath(codePath)) { in buildDexMetadataPathForApk()
153 return PackageParser.isApkFile(targetFile) in buildDexMetadataPathForFile()
163 public static void validatePackageDexMetadata(PackageParser.Package pkg) in validatePackageDexMetadata()
205 if (PackageParser.isApkPath(paths[i])) { in validateDexPaths()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageParserTest.java26 import android.content.pm.PackageParser.Component;
27 import android.content.pm.PackageParser.Package;
28 import android.content.pm.PackageParser.Permission;
72 final int result = PackageParser.computeMinSdkVersion( in verifyComputeMinSdkVersion()
168 final int result = PackageParser.computeTargetSdkVersion( in verifyComputeTargetSdkVersion()
273 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
280 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
287 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
292 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
299 PackageParser.getActivityConfigChanges(configChanges, recreateOnConfigChanges); in testGetActivityConfigChanges()
[all …]
/frameworks/base/core/java/android/content/pm/split/
DDefaultSplitAssetLoader.java21 import android.content.pm.PackageParser;
22 import android.content.pm.PackageParser.PackageParserException;
23 import android.content.pm.PackageParser.ParseFlags;
44 public DefaultSplitAssetLoader(PackageParser.PackageLite pkg, @ParseFlags int flags) { in DefaultSplitAssetLoader()
52 if ((flags & PackageParser.PARSE_MUST_BE_APK) != 0 && !PackageParser.isApkPath(path)) { in loadApkAssets()
DSplitAssetDependencyLoader.java22 import android.content.pm.PackageParser;
23 import android.content.pm.PackageParser.PackageParserException;
24 import android.content.pm.PackageParser.ParseFlags;
48 public SplitAssetDependencyLoader(PackageParser.PackageLite pkg, in SplitAssetDependencyLoader()
69 if ((flags & PackageParser.PARSE_MUST_BE_APK) != 0 && !PackageParser.isApkPath(path)) { in loadApkAssets()
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()
/frameworks/base/core/java/android/util/apk/
DApkSignatureVerifier.java26 import android.content.pm.PackageParser;
27 import android.content.pm.PackageParser.PackageParserException;
28 import android.content.pm.PackageParser.SigningDetails.SignatureSchemeVersion;
65 public static PackageParser.SigningDetails verify(String apkPath, in verify()
92 return new PackageParser.SigningDetails( in verify()
124 return new PackageParser.SigningDetails( in verify()
160 private static PackageParser.SigningDetails verifyV1Signature( in verifyV1Signature()
182 PackageParser.ANDROID_MANIFEST_FILENAME); in verifyV1Signature()
191 + PackageParser.ANDROID_MANIFEST_FILENAME); in verifyV1Signature()
204 if (entryName.equals(PackageParser.ANDROID_MANIFEST_FILENAME)) continue; in verifyV1Signature()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/
DAppBackupUtilsTest.java29 import android.content.pm.PackageParser;
435 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
437 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureNull_returnsFalse()
454 new PackageParser.SigningDetails( in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
456 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_disallowsUnsignedApps_storedSignatureEmpty_returnsFalse()
534 new PackageParser.SigningDetails( in signaturesMatch_equalSignatures_returnsTrue()
536 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_equalSignatures_returnsTrue()
556 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInTarget_returnsTrue()
558 PackageParser.SigningDetails.SignatureSchemeVersion.SIGNING_BLOCK_V3, in signaturesMatch_extraSignatureInTarget_returnsTrue()
578 new PackageParser.SigningDetails( in signaturesMatch_extraSignatureInStored_returnsFalse()
[all …]
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageUtil.java26 import android.content.pm.PackageParser;
27 import android.content.pm.PackageParser.PackageParserException;
56 public static PackageParser.Package getPackageInfo(Context context, File sourceFile) { in getPackageInfo()
57 final PackageParser parser = new PackageParser(); in getPackageInfo()
58 parser.setCallback(new PackageParser.CallbackImpl(context.getPackageManager())); in getPackageInfo()

1234