/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/parsing/parcelling/ |
D | AndroidPackageTest.kt | 47 import com.android.server.pm.pkg.AndroidPackage in <lambda>() 56 class AndroidPackageTest : ParcelableComponentTest(AndroidPackage::class, PackageImpl::class) { in <lambda>() 155 AndroidPackage::getApplicationClassName, in <lambda>() 156 AndroidPackage::getAppComponentFactory, in <lambda>() 157 AndroidPackage::getAutoRevokePermissions, in <lambda>() 158 AndroidPackage::getBackupAgentName, in <lambda>() 159 AndroidPackage::getBannerResourceId, in <lambda>() 160 AndroidPackage::getBaseApkPath, in <lambda>() 161 AndroidPackage::getBaseRevisionCode, in <lambda>() 162 AndroidPackage::getCategory, in <lambda>() [all …]
|
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/ |
D | AndroidPackageLegacyUtils.java | 25 import com.android.server.pm.pkg.AndroidPackage; 37 public static String getRawPrimaryCpuAbi(AndroidPackage pkg) { in getRawPrimaryCpuAbi() 45 public static String getRawSecondaryCpuAbi(@NonNull AndroidPackage pkg) { in getRawSecondaryCpuAbi() 51 public static ApplicationInfo generateAppInfoWithoutState(AndroidPackage pkg) { in generateAppInfoWithoutState() 60 public static String getRealPackageOrNull(@NonNull AndroidPackage pkg, boolean isSystem) { in getRealPackageOrNull() 68 public static void fillVersionCodes(@NonNull AndroidPackage pkg, @NonNull PackageInfo info) { in fillVersionCodes() 77 public static boolean isSystem(@NonNull AndroidPackage pkg) { in isSystem() 85 public static boolean isSystemExt(@NonNull AndroidPackage pkg) { in isSystemExt() 93 public static boolean isPrivileged(@NonNull AndroidPackage pkg) { in isPrivileged() 101 public static boolean isOem(@NonNull AndroidPackage pkg) { in isOem() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/parsing/pkg/ |
D | AndroidPackageUtils.java | 42 import com.android.server.pm.pkg.AndroidPackage; 61 AndroidPackage aPkg) { in getAllCodePathsExcludingResourceOnly() 81 public static List<String> getAllCodePaths(AndroidPackage aPkg) { in getAllCodePaths() 93 public static SharedLibraryInfo createSharedLibraryForSdk(AndroidPackage pkg) { in createSharedLibraryForSdk() 104 public static SharedLibraryInfo createSharedLibraryForStatic(AndroidPackage pkg) { in createSharedLibraryForStatic() 115 public static SharedLibraryInfo createSharedLibraryForDynamic(AndroidPackage pkg, String name) { in createSharedLibraryForDynamic() 130 public static Map<String, String> getPackageDexMetadata(AndroidPackage pkg) { in getPackageDexMetadata() 140 public static void validatePackageDexMetadata(AndroidPackage pkg) in validatePackageDexMetadata() 156 public static NativeLibraryHelper.Handle createNativeLibraryHandle(AndroidPackage pkg) in createNativeLibraryHandle() 167 @NonNull AndroidPackage pkg) { in canHaveOatDir() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/library/ |
D | ApexSharedLibraryUpdaterTest.java | 28 import com.android.server.pm.pkg.AndroidPackage; 95 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in checkNoChanges() 110 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSince30Applied() 127 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithoutLibrary() 145 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpSinceFutureNotAppliedWithLibrary() 163 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpBefore30NotApplied() 178 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpBefore30Applied() 201 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpRemovedThenAddedPast() 226 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpRemovedThenAddedMiddle_targetQ() 253 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in testBcpRemovedThenAddedMiddle_targetR() [all …]
|
D | RemoveUnnecessaryAndroidTestBaseLibraryTest.java | 29 import com.android.server.pm.pkg.AndroidPackage; 52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 120 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 136 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 154 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_bothLibraries() 162 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | RemoveUnnecessaryOrgApacheHttpLegacyLibraryTest.java | 29 import com.android.server.pm.pkg.AndroidPackage; 52 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 87 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 121 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 138 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 156 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_bothLibraries() 164 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | AndroidHidlUpdaterTest.java | 29 import com.android.server.pm.pkg.AndroidPackage; 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P() 68 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_system() 86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries() 106 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_not_empty_usesLibraries_system() 126 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries() 144 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_P_in_usesLibraries_system() 165 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 182 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 191 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | OrgApacheHttpLegacyUpdaterTest.java | 28 import com.android.server.pm.pkg.AndroidPackage; 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O() 69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_not_empty_usesLibraries() 86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_O_in_usesOptionalLibraries() 122 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 140 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 151 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | AndroidTestBaseUpdaterTest.java | 28 import com.android.server.pm.pkg.AndroidPackage; 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q() 69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_not_empty_usesLibraries() 86 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesLibraries() 104 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in targeted_at_Q_in_usesOptionalLibraries() 122 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 140 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 151 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | PackageSharedLibraryUpdaterTest.java | 22 import com.android.server.pm.pkg.AndroidPackage; 33 static void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility() 39 private static void check(AndroidPackage before, AndroidPackage after) { in check()
|
D | ComGoogleAndroidMapsUpdaterTest.java | 26 import com.android.server.pm.pkg.AndroidPackage; 48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries() 64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 81 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 91 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | AndroidNetIpSecIkeUpdaterTest.java | 26 import com.android.server.pm.pkg.AndroidPackage; 48 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in otherUsesLibraries() 64 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesLibraries() 79 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in in_usesOptionalLibraries() 87 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
D | AndroidTestRunnerSplitUpdaterTest.java | 30 import com.android.server.pm.pkg.AndroidPackage; 51 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesOptionalLibraries() 69 AndroidPackage after = ((ParsedPackage) PackageImpl.forTesting(PACKAGE_NAME) in android_test_runner_in_usesLibraries_android_test_mock_in_usesOptionalLibraries() 79 private void checkBackwardsCompatibility(ParsedPackage before, AndroidPackage after, in checkBackwardsCompatibility()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | AppsFilterUtils.java | 37 import com.android.server.pm.pkg.AndroidPackage; 51 public static boolean requestsQueryAllPackages(@NonNull AndroidPackage pkg) { in requestsQueryAllPackages() 59 public static boolean canQueryViaComponents(AndroidPackage querying, in canQueryViaComponents() 60 AndroidPackage potentialTarget, WatchedArraySet<String> protectedBroadcasts) { in canQueryViaComponents() 75 public static boolean canQueryViaPackage(AndroidPackage querying, in canQueryViaPackage() 76 AndroidPackage potentialTarget) { in canQueryViaPackage() 82 AndroidPackage potentialTarget) { in canQueryAsInstaller() 95 AndroidPackage potentialTarget) { in canQueryAsUpdateOwner() 103 public static boolean canQueryViaUsesLibrary(AndroidPackage querying, in canQueryViaUsesLibrary() 104 AndroidPackage potentialTarget) { in canQueryViaUsesLibrary() [all …]
|
D | ReconciledPackage.java | 24 import com.android.server.pm.pkg.AndroidPackage; 36 private final Map<String, AndroidPackage> mAllPackages; 46 Map<String, AndroidPackage> allPackages, in ReconciledPackage() 68 @NonNull Map<String, AndroidPackage> getCombinedAvailablePackages() { in getCombinedAvailablePackages() 69 final ArrayMap<String, AndroidPackage> combined = in getCombinedAvailablePackages()
|
D | PackageAbiHelper.java | 26 import com.android.server.pm.pkg.AndroidPackage; 41 NativeLibraryPaths deriveNativeLibraryPaths(AndroidPackage pkg, boolean isSystemApp, in deriveNativeLibraryPaths() 49 Abis getBundledAppAbis(AndroidPackage pkg); in getBundledAppAbis() 57 Pair<Abis, NativeLibraryPaths> derivePackageAbi(AndroidPackage pkg, boolean isSystemApp, in derivePackageAbi() 79 AndroidPackage scannedPackage); in getAdjustedAbiForSharedUser()
|
D | SharedLibrariesImpl.java | 54 import com.android.server.pm.pkg.AndroidPackage; 391 @Nullable SharedLibraryInfo getLatestStaticSharedLibraVersion(@NonNull AndroidPackage pkg) { 405 private SharedLibraryInfo getLatestStaticSharedLibraVersionLPr(@NonNull AndroidPackage pkg) { 458 @NonNull AndroidPackage pkg, @Nullable SharedLibraryInfo libInfo, 503 private void addSharedLibraryLPr(@NonNull AndroidPackage pkg, 505 @Nullable AndroidPackage changingLib, @Nullable PackageSetting changingLibSetting) { 510 AndroidPackage pkgForCodePaths = mPm.mPackages.get(libInfo.getPackageName()); 543 void updateSharedLibraries(@NonNull AndroidPackage pkg, @NonNull PackageSetting pkgSetting, 544 @Nullable AndroidPackage changingLib, @Nullable PackageSetting changingLibSetting, 545 @NonNull Map<String, AndroidPackage> availablePackages) [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationCollector.java | 34 import com.android.server.pm.pkg.AndroidPackage; 95 public ArraySet<String> collectAllWebDomains(@NonNull AndroidPackage pkg) { in collectAllWebDomains() 104 public ArraySet<String> collectValidAutoVerifyDomains(@NonNull AndroidPackage pkg) { in collectValidAutoVerifyDomains() 113 public ArraySet<String> collectInvalidAutoVerifyDomains(@NonNull AndroidPackage pkg) { in collectInvalidAutoVerifyDomains() 117 public boolean containsWebDomain(@NonNull AndroidPackage pkg, @NonNull String targetDomain) { in containsWebDomain() 127 public boolean containsAutoVerifyDomain(@NonNull AndroidPackage pkg, 139 private ArraySet<String> collectDomains(@NonNull AndroidPackage pkg, 147 private <InitialValue, ReturnValue> ReturnValue collectDomains(@NonNull AndroidPackage pkg, 166 @NonNull AndroidPackage pkg, boolean checkAutoVerify, boolean valid, 237 @NonNull AndroidPackage pkg, boolean checkAutoVerify, boolean valid,
|
/frameworks/base/services/core/java/com/android/server/om/ |
D | IdmapManager.java | 35 import com.android.server.pm.pkg.AndroidPackage; 103 @IdmapStatus int createIdmap(@NonNull final AndroidPackage targetPackage, in createIdmap() 104 @NonNull PackageState overlayPackageState, @NonNull final AndroidPackage overlayPackage, in createIdmap() 181 @NonNull final AndroidPackage overlayPackage) { in enforceOverlayable() 202 private int calculateFulfilledPolicies(@NonNull final AndroidPackage targetPackage, in calculateFulfilledPolicies() 203 @NonNull PackageState overlayPackageState, @NonNull final AndroidPackage overlayPackage, in calculateFulfilledPolicies() 257 private boolean matchesActorSignature(@NonNull AndroidPackage targetPackage, in matchesActorSignature() 258 @NonNull AndroidPackage overlayPackage, int userId) { in matchesActorSignature()
|
D | OverlayReferenceMapper.java | 31 import com.android.server.pm.pkg.AndroidPackage; 126 public Map<String, Set<String>> getTargetToOverlayables(@NonNull AndroidPackage pkg) { in OverlayReferenceMapper() 168 public ArraySet<String> addPkg(AndroidPackage pkg, Map<String, AndroidPackage> otherPkgs) { in addPkg() 242 private void addTarget(AndroidPackage targetPkg, Map<String, AndroidPackage> otherPkgs, in addTarget() 253 for (AndroidPackage overlayPkg : otherPkgs.values()) { in addTarget() 307 private void addOverlay(AndroidPackage overlayPkg, Map<String, AndroidPackage> otherPkgs, in addOverlay() 318 AndroidPackage targetPkg = otherPkgs.get(target); in addOverlay() 438 Map<String, Set<String>> getTargetToOverlayables(@NonNull AndroidPackage pkg); in getTargetToOverlayables()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/ |
D | PackageUtilsTest.java | 35 import com.android.server.pm.pkg.AndroidPackage; 69 AndroidPackage ap = mock(AndroidPackage.class); in isAllowlisted_true() 93 AndroidPackage ap = mock(AndroidPackage.class); in isAllowlisted_package_disallowed() 117 AndroidPackage ap = mock(AndroidPackage.class); in isAllowlisted_signature_mismatch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/om/ |
D | OverlayReferenceMapperTests.kt | 20 import com.android.server.pm.pkg.AndroidPackage in <lambda>() 178 vararg pkgs: AndroidPackage, in <lambda>() 179 existing: MutableMap<String, AndroidPackage> = mutableMapOf(), in <lambda>() 181 ): MutableMap<String, AndroidPackage> { in <lambda>() 192 pkg: AndroidPackage, in <lambda>() 196 private fun assertMapping(vararg pairs: Pair<String, Set<AndroidPackage>>) { in <lambda>() 231 override fun getTargetToOverlayables(pkg: AndroidPackage) = in <lambda>() 235 private fun mockTarget(increment: Int = 0) = mockThrowOnUnmocked<AndroidPackage> { in <lambda>() 242 private fun mockOverlay(increment: Int = 0) = mockThrowOnUnmocked<AndroidPackage> { in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | PermissionManagerServiceInternal.java | 30 import com.android.server.pm.pkg.AndroidPackage; 91 void resetRuntimePermissions(@NonNull AndroidPackage pkg, @UserIdInt int userId); in resetRuntimePermissions() 289 boolean isInstantApp, @Nullable AndroidPackage oldPkg); in onPackageAdded() 301 void onPackageInstalled(@NonNull AndroidPackage pkg, int previousAppId, in onPackageInstalled() 311 void onPackageRemoved(@NonNull AndroidPackage pkg); in onPackageRemoved() 327 @Nullable PackageState packageState, @Nullable AndroidPackage pkg, in onPackageUninstalled() 328 @NonNull List<AndroidPackage> sharedUserPkgs, @UserIdInt int userId); in onPackageUninstalled()
|
D | PermissionManagerServiceInterface.java | 31 import com.android.server.pm.pkg.AndroidPackage; 447 void resetRuntimePermissions(@NonNull AndroidPackage pkg, @UserIdInt int userId); in resetRuntimePermissions() 617 @Nullable AndroidPackage oldPkg); in onPackageAdded() 628 void onPackageInstalled(@NonNull AndroidPackage pkg, int previousAppId, in onPackageInstalled() 637 void onPackageRemoved(@NonNull AndroidPackage pkg); in onPackageRemoved() 653 @NonNull PackageState packageState, @Nullable AndroidPackage pkg, in onPackageUninstalled() 654 @NonNull List<AndroidPackage> sharedUserPkgs, @UserIdInt int userId); in onPackageUninstalled()
|
/frameworks/base/services/core/java/com/android/server/pm/dex/ |
D | ArtUtils.java | 25 import com.android.server.pm.pkg.AndroidPackage; 42 AndroidPackage pkg, PackageState packageState) { in createArtPackageInfo() 51 private static String getOatDir(AndroidPackage pkg, @NonNull PackageState packageState) { in getOatDir()
|