/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | AppsFilterImplTest.java | 117 private ArrayMap<String, PackageSetting> mExisting = new ArrayMap<>(); 275 PackageSetting target = simulateAddPackage(appsFilter, in testQueriesAction_FilterMatches() 278 PackageSetting calling = simulateAddPackage(appsFilter, in testQueriesAction_FilterMatches() 308 PackageSetting targetActivity = simulateAddPackage(appsFilter, in testQueriesProtectedAction_FilterDoesNotMatch() 312 PackageSetting targetReceiver = simulateAddPackage(appsFilter, in testQueriesProtectedAction_FilterDoesNotMatch() 317 PackageSetting calling = simulateAddPackage(appsFilter, in testQueriesProtectedAction_FilterDoesNotMatch() 321 PackageSetting callingWildCard = simulateAddPackage(appsFilter, in testQueriesProtectedAction_FilterDoesNotMatch() 349 PackageSetting target = simulateAddPackage(appsFilter, in testQueriesProvider_FilterMatches() 352 PackageSetting calling = simulateAddPackage(appsFilter, in testQueriesProvider_FilterMatches() 371 PackageSetting target = simulateAddPackage(appsFilter, in testOnUserUpdated_FilterMatches() [all …]
|
D | ScanRequestBuilder.java | 31 private PackageSetting mPkgSetting; 32 private PackageSetting mDisabledPkgSetting; 33 private PackageSetting mOriginalPkgSetting; 61 public ScanRequestBuilder setPkgSetting(PackageSetting pkgSetting) { in setPkgSetting() 66 public ScanRequestBuilder setDisabledPkgSetting(PackageSetting disabledPkgSetting) { in setDisabledPkgSetting() 71 public ScanRequestBuilder setOriginalPkgSetting(PackageSetting originalPkgSetting) { in setOriginalPkgSetting()
|
D | PackageManagerSettingsTests.java | 185 final PackageSetting ps1 = createPackageSetting(PACKAGE_NAME_1); in testApplicationInfoForUseSdkOptionalEnabled() 222 final PackageSetting ps2 = createPackageSetting(PACKAGE_NAME_2); in testApplicationInfoForUseSdkOptionalEnabled() 254 final PackageSetting ps1 = createPackageSetting(PACKAGE_NAME_1); in testApplicationInfoForUseSdkOptionalDisabled() 371 PackageSetting ps = settings.getPackageLPr(PACKAGE_NAME_1); in testSettingsReadOld() 393 PackageSetting ps = settings.getPackageLPr(PACKAGE_NAME_2); in testNewPackageRestrictionsFile() 431 PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendingPackage() 454 PackageSetting ps2 = settingsUnderTest.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_noSuspendingPackage() 476 final PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_noSuspendParamsMap() 505 final PackageSetting ps1 = createPackageSetting(PACKAGE_NAME_1); in testReadWritePackageRestrictions_suspendInfo() 506 final PackageSetting ps2 = createPackageSetting(PACKAGE_NAME_2); in testReadWritePackageRestrictions_suspendInfo() [all …]
|
D | KeySetManagerServiceTest.java | 40 private WatchedArrayMap<String, PackageSetting> mPackagesMap; 43 public PackageSetting generateFakePackageSetting(String name) { in generateFakePackageSetting() 53 mPackagesMap = new WatchedArrayMap<String, PackageSetting>(); in setUp() 101 WatchedArrayMap<String, PackageSetting> packagesMap = in testEncodePublicKey() 102 new WatchedArrayMap<String, PackageSetting>(); in testEncodePublicKey() 120 PackageSetting ps = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageEmpty() 147 PackageSetting ps = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageUpgradeSame() 177 PackageSetting ps = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageUpgradeDiff() 212 PackageSetting ps1 = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageUpgradeDiff2() 214 PackageSetting ps2 = generateFakePackageSetting("packageB"); in testAddSigningKSToPackageUpgradeDiff2() [all …]
|
D | ScanTests.java | 195 final PackageSetting pkgSetting = createBasicPackageSettingBuilder(DUMMY_PACKAGE_NAME) in updateSimpleNominal() 226 final PackageSetting existingPkgSetting = in updateInstantSimpleNominal() 352 final PackageSetting pkgSetting = in volumeUuidChangesOnUpdate() 370 final PackageSetting pkgSetting = in scanFirstBoot_apexDontDeriveAbis() 394 final PackageSetting resultSetting = scanResult.mPkgSetting; in scanFirstBoot_apexDontDeriveAbis() 410 final PackageSetting pkgSetting = in scanFirstBoot_derivesAbis() 429 final PackageSetting originalPkgSetting = in scanWithOriginalPkgSetting_packageNameChanges() 449 final PackageSetting existingPkgSetting = in updateInstant_changeToFull() 470 final PackageSetting existingPkgSetting = in updateFull_changeToInstant() 489 final PackageSetting existingPkgSetting = in updateSystemApp_applicationInfoFlagSet() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ScanRequest.java | 42 @Nullable public final PackageSetting mPkgSetting; 46 @Nullable public final PackageSetting mOldPkgSetting; 48 @Nullable public final PackageSetting mDisabledPkgSetting; 50 @Nullable public final PackageSetting mOriginalPkgSetting; 66 @Nullable PackageSetting pkgSetting, in ScanRequest() 68 @Nullable PackageSetting disabledPkgSetting, in ScanRequest() 69 @Nullable PackageSetting originalPkgSetting, in ScanRequest() 81 mOldPkgSetting = pkgSetting == null ? null : new PackageSetting(pkgSetting); in ScanRequest()
|
D | PackageSetting.java | 90 public class PackageSetting extends SettingBase implements PackageStateInternal { class 239 private final SnapshotCache<PackageSetting> mSnapshot; 241 private SnapshotCache<PackageSetting> makeCache() { in makeCache() 242 return new SnapshotCache<PackageSetting>(this, this) { in makeCache() 244 public PackageSetting createSnapshot() { in makeCache() 245 return new PackageSetting(mSource, true); in makeCache() 250 public PackageSetting(@NonNull String name, @Nullable String realName, @NonNull File path, 267 PackageSetting(PackageSetting orig) { 278 PackageSetting(PackageSetting base, String realPkgName) { 284 public PackageSetting(@NonNull PackageSetting original, boolean sealedSnapshot) { [all …]
|
D | DeletePackageAction.java | 23 public final PackageSetting mDeletingPs; 24 public final PackageSetting mDisabledPs; 30 DeletePackageAction(PackageSetting deletingPs, PackageSetting disabledPs, in DeletePackageAction()
|
D | SharedUserSetting.java | 63 private final WatchedArraySet<PackageSetting> mPackages; 64 private final SnapshotCache<WatchedArraySet<PackageSetting>> mPackagesSnapshot; 69 final WatchedArraySet<PackageSetting> mDisabledPackages; 70 private final SnapshotCache<WatchedArraySet<PackageSetting>> mDisabledPackagesSnapshot; 177 boolean removePackage(PackageSetting packageSetting) { 185 PackageSetting ps = mPackages.valueAt(i); 193 PackageSetting ps = mPackages.valueAt(i); 204 void addPackage(PackageSetting packageSetting) { 228 PackageSetting ps = mPackages.valueAt(i); 272 PackageSetting ps = mPackages.valueAt(i); [all …]
|
D | PackageUsage.java | 38 class PackageUsage extends AbstractStatsBase<Map<String, PackageSetting>> { 54 protected void writeInternal(Map<String, PackageSetting> pkgSettings) { in writeInternal() 68 for (PackageSetting pkgSetting : pkgSettings.values()) { in writeInternal() 94 protected void readInternal(Map<String, PackageSetting> pkgSettings) { in readInternal() 118 private void readVersion0LP(Map<String, PackageSetting> pkgSettings, InputStream in, in readVersion0LP() 132 PackageSetting pkgSetting = pkgSettings.get(packageName); in readVersion0LP() 146 private void readVersion1LP(Map<String, PackageSetting> pkgSettings, InputStream in, in readVersion1LP() 158 PackageSetting pkgSetting = pkgSettings.get(packageName); in readVersion1LP()
|
D | KeySetManagerService.java | 72 private final WatchedArrayMap<String, PackageSetting> mPackages; 121 public KeySetManagerService(WatchedArrayMap<String, PackageSetting> packages) { in KeySetManagerService() 129 @NonNull WatchedArrayMap<String, PackageSetting> packages) { in KeySetManagerService() 148 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr() 174 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr() 237 PackageSetting ps = mPackages.get(pkg.getPackageName()); in addScannedPackageLPw() 252 void addSigningKeySetToPackageLPw(PackageSetting pkg, in addSigningKeySetToPackageLPw() 296 void addDefinedKeySetsToPackageLPw(PackageSetting pkg, in addDefinedKeySetsToPackageLPw() 328 void addUpgradeKeySetsToPackageLPw(PackageSetting pkg, in addUpgradeKeySetsToPackageLPw() 341 PackageSetting p = mPackages.get(packageName); in getKeySetByAliasAndPackageNameLPr() [all …]
|
D | SharedLibrariesImpl.java | 433 PackageSetting getStaticSharedLibLatestVersionSetting(@NonNull InstallRequest installRequest) { 437 PackageSetting sharedLibPackage = null; 505 @Nullable AndroidPackage changingLib, @Nullable PackageSetting changingLibSetting) { 511 PackageSetting pkgSetting = mPm.mSettings.getPackageLPr(libInfo.getPackageName()); 543 void updateSharedLibraries(@NonNull AndroidPackage pkg, @NonNull PackageSetting pkgSetting, 544 @Nullable AndroidPackage changingLib, @Nullable PackageSetting changingLibSetting, 556 @NonNull PackageSetting pkgSetting, @Nullable AndroidPackage changingLib, 557 @Nullable PackageSetting changingLibSetting, 578 @NonNull PackageSetting pkgSetting, @Nullable AndroidPackage changingLib, 579 @Nullable PackageSetting changingLibSetting, [all …]
|
D | InstallRequest.java | 92 private PackageSetting mOriginalPs; 94 private PackageSetting mDisabledPs; 214 @Nullable UserHandle user, ScanResult scanResult, PackageSetting disabledPs) { in InstallRequest() 546 public PackageSetting getOriginalPackageSetting() { in getOriginalPackageSetting() 551 public PackageSetting getDisabledPackageSetting() { in getDisabledPackageSetting() 556 public PackageSetting getScanRequestOldPackageSetting() { in getScanRequestOldPackageSetting() 562 public PackageSetting getScanRequestOriginalPackageSetting() { in getScanRequestOriginalPackageSetting() 568 public PackageSetting getScanRequestPackageSetting() { in getScanRequestPackageSetting() 574 public PackageSetting getScanRequestDisabledPackageSetting() { in getScanRequestDisabledPackageSetting() 618 public PackageSetting getScannedPackageSetting() { in getScannedPackageSetting() [all …]
|
D | ScanResult.java | 49 public final PackageSetting mPkgSetting; 64 @Nullable PackageSetting pkgSetting, in ScanResult()
|
D | InstallPackageHelper.java | 272 final PackageSetting oldPkgSetting = request.getScanRequestOldPackageSetting(); in commitReconciledScanResultLocked() 273 final PackageSetting originalPkgSetting = request.getScanRequestOriginalPackageSetting(); in commitReconciledScanResultLocked() 275 final PackageSetting pkgSetting; in commitReconciledScanResultLocked() 338 final PackageSetting ips = mPm.mSettings.getPackageLPr( in commitReconciledScanResultLocked() 469 private void handleUpdateOwnerDenyList(PackageSetting pkgSetting) { in handleUpdateOwnerDenyList() 477 PackageSetting unownedSetting = mPm.mSettings.getPackageLPr(unownedPackage); in handleUpdateOwnerDenyList() 492 @NonNull PackageSetting pkgSetting, @Nullable PackageSetting oldPkgSetting, in commitPackageSettings() 673 PackageSetting pkgSetting; in installExistingPackageAsUser() 817 PackageSetting packageSetting = null; in restoreAndPostInstall() 956 final PackageSetting ps; in performRollbackManagerRestore() [all …]
|
D | DeletePackageHelper.java | 125 final PackageSetting uninstalledPs; in deletePackageX() 126 final PackageSetting disabledSystemPs; in deletePackageX() 293 PackageSetting pkgSetting = mPm.getPackageSettingForMutation(packageName); in deletePackageX() 324 final PackageSetting stubPs; in deletePackageX() 376 final PackageSetting ps = mPm.mSettings.getPackageLPr(packageName); in deletePackageLIF() 383 final PackageSetting disabledPs = mPm.mSettings.getDisabledSystemPkgLPr(ps); in deletePackageLIF() 414 PackageSetting ps, @Nullable PackageSetting disabledPs, in mayDeletePackageLocked() 449 final PackageSetting ps = action.mDeletingPs; in executeDeletePackageLIF() 562 private void deleteInstalledPackageLIF(PackageSetting ps, int userId, in deleteInstalledPackageLIF() 587 private void markPackageUninstalledForUserLPw(PackageSetting ps, UserHandle user, int flags) { in markPackageUninstalledForUserLPw() [all …]
|
D | Settings.java | 416 final WatchedArrayMap<String, PackageSetting> mPackages; 417 private final SnapshotCache<WatchedArrayMap<String, PackageSetting>> mPackagesSnapshot; 435 final WatchedArrayMap<String, PackageSetting> mDisabledSysPackages = new WatchedArrayMap<>(); 554 private final WatchedArrayList<PackageSetting> mPendingPackages; 555 private final SnapshotCache<WatchedArrayList<PackageSetting>> mPendingPackagesSnapshot; 614 public Settings(Map<String, PackageSetting> pkgSettings) { 810 PackageSetting getPackageLPr(String pkgName) { 814 WatchedArrayMap<String, PackageSetting> getPackagesLocked() { 818 WatchedArrayMap<String, PackageSetting> getDisabledSystemPackagesLocked() { 840 PackageSetting ps = mPackages.get(mRenamedPackages.valueAt(i)); [all …]
|
D | ScanPackageUtils.java | 126 PackageSetting pkgSetting = request.mPkgSetting; in scanPackageOnlyLI() 127 final PackageSetting disabledPkgSetting = request.mDisabledPkgSetting; in scanPackageOnlyLI() 128 final PackageSetting originalPkgSetting = request.mOriginalPkgSetting; in scanPackageOnlyLI() 238 pkgSetting = new PackageSetting(pkgSetting); in scanPackageOnlyLI() 524 PackageSetting pkgSetting, PackageSetting disabledPkgSetting, UserHandle user) { in adjustScanFlagsWithPackageSetting() 528 final PackageSetting systemPkgSetting = in adjustScanFlagsWithPackageSetting() 958 final WatchedArraySet<PackageSetting> sharedUserPackageSettings = in applyAdjustedAbiToSharedUser() 961 PackageSetting ps = sharedUserPackageSettings.valueAt(i); in applyAdjustedAbiToSharedUser() 991 public static void collectCertificatesLI(PackageSetting ps, ParsedPackage parsedPackage, in collectCertificatesLI() 1040 PackageSetting pkgSetting, int userId, boolean instantApp, boolean fullApp) { in setInstantAppForUser()
|
D | AppDataHelper.java | 96 final PackageSetting ps; in prepareAppDataAfterInstallLIF() 104 private int[] getInstalledUsersForPackage(PackageSetting ps) { in getInstalledUsersForPackage() 124 public void prepareAppDataPostCommitLIF(PackageSetting ps, int previousAppId, int[] userIds) { in prepareAppDataPostCommitLIF() 185 final PackageSetting ps; in prepareAppDataAndMigrate() 215 @NonNull PackageSetting ps, int previousAppId, int userId, int flags) { in prepareAppData() 318 private boolean maybeMigrateAppDataLIF(@NonNull PackageSetting ps, @UserIdInt int userId) {
|
D | RemovePackageHelper.java | 259 public void clearPackageStateForUserLIF(PackageSetting ps, int userId, int flags) { in clearPackageStateForUserLIF() 358 public void removePackageData(final PackageSetting deletedPs, @NonNull int[] allUserHandles) { in removePackageData() 374 public void removePackageDataLIF(final PackageSetting deletedPs, int targetUserId, in removePackageDataLIF() 470 private static boolean shouldDeletePackageSetting(PackageSetting deletedPs, int userId, in shouldDeletePackageSetting() 498 PackageSetting ps = mPm.mSettings.getPackageLPr(packageName); in cleanUpResources()
|
D | ReconcilePackageUtils.java | 135 final PackageSetting disabledPkgSetting = installRequest.getDisabledPackageSetting(); in reconcilePackages() 136 final PackageSetting lastStaticSharedLibSetting = in reconcilePackages() 140 final PackageSetting signatureCheckPs = in reconcilePackages()
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/mutate/ |
D | PackageStateMutator.java | 28 import com.android.server.pm.PackageSetting; 41 private final Function<String, PackageSetting> mActiveStateFunction; 42 private final Function<String, PackageSetting> mDisabledStateFunction; 44 private final ArraySet<PackageSetting> mChangedStates = new ArraySet<>(); 46 public PackageStateMutator(@NonNull Function<String, PackageSetting> activeStateFunction, in PackageStateMutator() 47 @NonNull Function<String, PackageSetting> disabledStateFunction) { in PackageStateMutator() 63 final PackageSetting packageState = mActiveStateFunction.apply(packageName); in forPackageNullable() 79 final PackageSetting packageState = mDisabledStateFunction.apply(packageName); in forDisabledSystemPackageNullable() 122 private StateWriteWrapper setState(@Nullable PackageSetting state) { in setState() 184 private PackageSetting mState; [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
D | PackageStateUnserialized.java | 29 import com.android.server.pm.PackageSetting; 70 private final PackageSetting mPackageSetting; 75 public PackageStateUnserialized(@NonNull PackageSetting packageSetting) { in PackageStateUnserialized() 289 public @NonNull PackageSetting getPackageSetting() { in getPackageSetting()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageSettingBuilder.java | 159 public PackageSetting build() { in build() 160 final PackageSetting packageSetting = new PackageSetting(mName, mRealName, in build()
|
/frameworks/base/services/tests/PackageManagerComponentOverrideTests/src/com/android/server/pm/test/override/ |
D | PackageManagerComponentLabelIconOverrideTest.kt | 36 import com.android.server.pm.PackageSetting in <lambda>() 183 private lateinit var mockPkgSetting: PackageSetting in <lambda>() 302 PackageSetting(pkgName, null, File("/test"), 0, 0, in <lambda>() 375 any<PackageSetting>(), any<PackageSetting>(), anyInt())) { false } in <lambda>()
|