/frameworks/base/services/core/java/com/android/server/pm/ |
D | ComponentResolver.java | 35 import android.content.pm.PackageParser; 36 import android.content.pm.PackageParser.ActivityIntentInfo; 37 import android.content.pm.PackageParser.ServiceIntentInfo; 169 private final ArrayMap<String, PackageParser.Provider> mProvidersByAuthority = new ArrayMap<>(); 184 private List<PackageParser.ActivityIntentInfo> mProtectedFilters; 195 PackageParser.Activity getActivity(ComponentName component) { in getActivity() 202 PackageParser.Provider getProvider(ComponentName component) { in getProvider() 209 PackageParser.Activity getReceiver(ComponentName component) { in getReceiver() 216 PackageParser.Service getService(ComponentName component) { in getService() 229 List<PackageParser.Activity> activities, int userId) { in queryActivities() [all …]
|
D | PackageManagerServiceUtils.java | 38 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 …]
|
D | ParallelPackageParser.java | 19 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()
|
D | PackageUsage.java | 23 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()
|
D | PackageSignatures.java | 20 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 …]
|
D | OtaDexoptService.java | 25 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 …]
|
D | SharedUserSetting.java | 21 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/core/java/com/android/server/pm/permission/ |
D | PermissionManagerServiceInternal.java | 24 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 …]
|
D | PermissionManagerService.java | 55 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/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageParserTest.java | 31 import android.content.pm.PackageParser; 76 PackageParser pp = new CachePackageNameParser(); in testParse_noCache() 77 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_noCache() 93 PackageParser pp = new CachePackageNameParser(); in testParse_withCache() 101 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in testParse_withCache() 122 PackageParser pp = new PackageParser(); in test_serializePackage() 125 PackageParser.Package pkg = pp.parsePackage(FRAMEWORK, 0 /* parseFlags */, in test_serializePackage() 132 PackageParser.Package deserialized = new PackageParser.Package(p); in test_serializePackage() 141 PackageParser.Package pkg = new PackageParser.Package("foo"); in test_roundTripKnownFields() 148 PackageParser.Package deserialized = new PackageParser.Package(p); in test_roundTripKnownFields() [all …]
|
D | KeySetManagerServiceTest.java | 20 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 …]
|
D | ParallelPackageParserTest.java | 19 import android.content.pm.PackageParser; 77 protected PackageParser.Package parsePackage(PackageParser packageParser, File scanFile, in parsePackage() 78 int parseFlags) throws PackageParser.PackageParserException { in parsePackage()
|
D | PackageSignaturesTest.java | 25 import android.content.pm.PackageParser; 108 {PackageParser.SigningDetails.CertCapabilities.INSTALLED_DATA, 109 PackageParser.SigningDetails.CertCapabilities.SHARED_USER_ID, 110 PackageParser.SigningDetails.CertCapabilities.PERMISSION, 111 PackageParser.SigningDetails.CertCapabilities.ROLLBACK}; 174 PackageParser.SigningDetails.UNKNOWN, mPackageSetting.signatures.mSigningDetails); in testReadXmlWithInvalidPublicKeyInCertKey() 182 PackageParser.SigningDetails.SignatureSchemeVersion.UNKNOWN); in testReadXmlWithMissingSigsCount() 189 PackageParser.SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithMissingSchemeVersion() 199 PackageParser.SigningDetails.SignatureSchemeVersion.UNKNOWN, in testReadXmlWithSigningLineageWithMissingSchemeVersion()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/dex/ |
D | DexMetadataHelperTest.java | 26 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; 105 Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageWithDmFileValid() 121 Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageSplitsWithDmFileValid() 140 Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageSplitsNoBaseWithDmFileValid() 156 PackageParser.Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageWithDmFileInvalid() 173 PackageParser.Package pkg = new PackageParser().parsePackage(mTmpDir, 0 /* flags */); in testParsePackageSplitsWithDmFileInvalid() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 28 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/ |
D | SigningInfo.java | 30 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/ |
D | DexMetadataHelper.java | 20 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/java/android/content/pm/split/ |
D | DefaultSplitAssetLoader.java | 21 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()
|
D | SplitAssetDependencyLoader.java | 22 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()
|
D | SplitAssetLoader.java | 18 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/ |
D | ApkSignatureVerifier.java | 26 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/core/tests/coretests/src/android/content/pm/ |
D | PackageParserTest.java | 26 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 …]
|
D | PackageBuilder.java | 44 public PackageParser.Package build() { in build() 45 PackageParser.Package pkg = new PackageParser.Package("org.package.name"); in build() 83 public void check(PackageParser.Package pkg) { in check()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageUtil.java | 26 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()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/utils/ |
D | AppBackupUtilsTest.java | 29 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 …]
|