Home
last modified time | relevance | path

Searched refs:PackageSetting (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DScanRequestBuilder.java26 private PackageSetting mPkgSetting;
27 private PackageSetting mDisabledPkgSetting;
28 private PackageSetting mOriginalPkgSetting;
49 public ScanRequestBuilder setPkgSetting(PackageSetting pkgSetting) { in setPkgSetting()
54 public ScanRequestBuilder setDisabledPkgSetting(PackageSetting disabledPkgSetting) { in setDisabledPkgSetting()
59 public ScanRequestBuilder setOriginalPkgSetting(PackageSetting originalPkgSetting) { in setOriginalPkgSetting()
DPackageManagerSettingsTests.java130 PackageSetting ps = settings.getPackageLPr(PACKAGE_NAME_1); in testSettingsReadOld()
157 PackageSetting ps = settings.getPackageLPr(PACKAGE_NAME_2); in testNewPackageRestrictionsFile()
182 final PackageSetting ps1 = settingsUnderTest.mPackages.get(PACKAGE_NAME_1); in testReadPackageRestrictions_oldSuspendInfo()
187 final PackageSetting ps2 = settingsUnderTest.mPackages.get(PACKAGE_NAME_2); in testReadPackageRestrictions_oldSuspendInfo()
197 final PackageSetting ps1 = createPackageSetting(PACKAGE_NAME_1); in testReadWritePackageRestrictions_newSuspendInfo()
198 final PackageSetting ps2 = createPackageSetting(PACKAGE_NAME_2); in testReadWritePackageRestrictions_newSuspendInfo()
199 final PackageSetting ps3 = createPackageSetting(PACKAGE_NAME_3); in testReadWritePackageRestrictions_newSuspendInfo()
258 final PackageSetting defaultSetting = createPackageSetting(PACKAGE_NAME_1); in testPackageRestrictionsSuspendedDefault()
266 final PackageSetting ps1 = createPackageSetting(PACKAGE_NAME_1); in testReadWritePackageRestrictions_distractionFlags()
267 final PackageSetting ps2 = createPackageSetting(PACKAGE_NAME_2); in testReadWritePackageRestrictions_distractionFlags()
[all …]
DKeySetManagerServiceTest.java36 private ArrayMap<String, PackageSetting> mPackagesMap;
39 public PackageSetting generateFakePackageSetting(String name) { in generateFakePackageSetting()
40 return new PackageSetting(name, name, new File(mContext.getCacheDir(), "fakeCodePath"), in generateFakePackageSetting()
49 mPackagesMap = new ArrayMap<String, PackageSetting>(); in setUp()
97 ArrayMap<String, PackageSetting> packagesMap = new ArrayMap<String, PackageSetting>(); in testEncodePublicKey()
115 PackageSetting ps = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageEmpty()
142 PackageSetting ps = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageUpgradeSame()
172 PackageSetting ps = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageUpgradeDiff()
207 PackageSetting ps1 = generateFakePackageSetting("packageA"); in testAddSigningKSToPackageUpgradeDiff2()
209 PackageSetting ps2 = generateFakePackageSetting("packageB"); in testAddSigningKSToPackageUpgradeDiff2()
[all …]
DScanTests.java155 final PackageSetting pkgSetting = createBasicPackageSettingBuilder(DUMMY_PACKAGE_NAME) in updateSimpleNominal()
186 final PackageSetting existingPkgSetting = in updateInstantSimpleNominal()
280 final PackageSetting pkgSetting = in volumeUuidChangesOnUpdate()
298 final PackageSetting pkgSetting = in scanFirstBoot_derivesAbis()
318 final PackageSetting originalPkgSetting = in scanWithOriginalPkgSetting_packageNameChanges()
338 final PackageSetting existingPkgSetting = in updateInstant_changeToFull()
359 final PackageSetting existingPkgSetting = in updateFull_changeToInstant()
378 final PackageSetting existingPkgSetting = in updateSystemApp_applicationInfoFlagSet()
495 final PackageSetting pkgSetting = scanResult.pkgSetting;
504 String packageName, boolean isInstant, PackageSetting pkgSetting) {
DPackageSettingBuilder.java140 public PackageSetting build() { in build()
141 final PackageSetting packageSetting = new PackageSetting(mName, mRealName, in build()
DPackageSignaturesTest.java54 private PackageSetting mPackageSetting;
464 private static PackageSetting createPackageSetting() { in createPackageSetting()
468 PackageSetting result = new PackageSetting("test.app", null, appPath, appPath, in createPackageSetting()
DPackageManagerServiceTest.java73 PackageSetting setting = null; in testPackageRemoval()
87 setting = new PackageSetting("name", "realName", new File("codePath"), in testPackageRemoval()
/frameworks/base/services/core/java/com/android/server/pm/
DSharedUserSetting.java49 final ArraySet<PackageSetting> packages = new ArraySet<PackageSetting>();
75 boolean removePackage(PackageSetting packageSetting) { in removePackage()
82 for (PackageSetting ps : packages) { in removePackage()
89 for (PackageSetting ps : packages) { in removePackage()
97 void addPackage(PackageSetting packageSetting) { in addPackage()
114 for (PackageSetting ps : packages) { in getPackages()
154 for (PackageSetting ps : packages) { in getNotInstalledUserIds()
DPackageSetting.java34 public final class PackageSetting extends PackageSettingBase { class
50 PackageSetting(String name, String realName, File codePath, File resourcePath, in PackageSetting() method in PackageSetting
67 PackageSetting(PackageSetting orig) { in PackageSetting() method in PackageSetting
77 PackageSetting(PackageSetting orig, String realPkgName) { in PackageSetting() method in PackageSetting
100 public void copyFrom(PackageSetting orig) { in copyFrom()
105 private void doCopy(PackageSetting orig) { in doCopy()
214 public void updateFrom(PackageSetting other) { in updateFrom()
DKeySetManagerService.java64 private final ArrayMap<String, PackageSetting> mPackages;
113 public KeySetManagerService(ArrayMap<String, PackageSetting> packages) { in KeySetManagerService()
132 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByLPr()
158 PackageSetting pkg = mPackages.get(packageName); in packageIsSignedByExactlyLPr()
223 PackageSetting ps = mPackages.get(pkg.packageName); in addScannedPackageLPw()
238 void addSigningKeySetToPackageLPw(PackageSetting pkg, in addSigningKeySetToPackageLPw()
282 void addDefinedKeySetsToPackageLPw(PackageSetting pkg, in addDefinedKeySetsToPackageLPw()
315 void addUpgradeKeySetsToPackageLPw(PackageSetting pkg, in addUpgradeKeySetsToPackageLPw()
330 PackageSetting p = mPackages.get(packageName); in getKeySetByAliasAndPackageNameLPr()
409 PackageSetting p = mPackages.get(packageName); in getSigningKeySetByPackageNameLPr()
[all …]
DSettings.java263 final ArrayMap<String, PackageSetting> mPackages = new ArrayMap<>();
272 private final ArrayMap<String, PackageSetting> mDisabledSysPackages =
273 new ArrayMap<String, PackageSetting>();
377 private final ArrayList<PackageSetting> mPendingPackages = new ArrayList<>();
410 PackageSetting getPackageLPr(String pkgName) { in getPackageLPr()
427 PackageSetting p = mPackages.get(pkgName); in setInstallerPackageName()
459 final PackageSetting p = mPackages.get(name); in disableSystemPackageLPw()
464 final PackageSetting dp = mDisabledSysPackages.get(name); in disableSystemPackageLPw()
470 final PackageSetting disabled; in disableSystemPackageLPw()
476 disabled = new PackageSetting(p); in disableSystemPackageLPw()
[all …]
DPackageManagerService.java1515 PackageSetting ps = mSettings.mPackages.get(ent.getKey()); in doHandleMessage()
1936 final PackageSetting ps = (PackageSetting) res.pkg.mExtras; in handlePackagePostInstall()
2093 final PackageSetting pkgSetting = mSettings.mPackages.get(packageName); in handlePackagePostInstall()
2171 PackageSetting setting = mSettings.mPackages.get(packageName); in notifyPackagesReplacedReceived()
2280 final List<PackageSetting> packages = mSettings.getVolumePackagesLPr(fsUuid);
2281 for (PackageSetting ps : packages) {
2419 PackageSetting pkgSetting = mSettings.mPackages.get(pName); in enableSystemUserPackages()
2693 PackageSetting ps = mSettings.mPackages.valueAt(i); in PackageManagerService()
2753 Iterator<PackageSetting> pkgSettingIter = mSettings.mPackages.values().iterator(); in PackageManagerService()
2755 PackageSetting ps = pkgSettingIter.next(); in PackageManagerService()
[all …]
DInstantAppRegistry.java268 PackageSetting ps = (PackageSetting) pkg.mExtras; in onPackageInstalledLPw()
340 PackageSetting ps = (PackageSetting) pkg.mExtras; in onPackageUninstalledLPw()
697 if (!(pkg.mExtras instanceof PackageSetting)) { in pruneInstantApps()
700 final PackageSetting ps = (PackageSetting) pkg.mExtras; in pruneInstantApps()
738 if (lhsPkg.mExtras instanceof PackageSetting in pruneInstantApps()
739 && rhsPkg.mExtras instanceof PackageSetting) { in pruneInstantApps()
740 final PackageSetting lhsPs = (PackageSetting) lhsPkg.mExtras; in pruneInstantApps()
741 final PackageSetting rhsPs = (PackageSetting) rhsPkg.mExtras; in pruneInstantApps()
822 final PackageSetting ps = (PackageSetting) pkg.mExtras; in getInstalledInstantApplicationsLPr()
844 PackageSetting ps = (PackageSetting) pkg.mExtras; in createInstantAppInfoForPackage()
DPackageAbiHelper.java72 Set<PackageSetting> packagesForUser, PackageParser.Package scannedPackage); in getAdjustedAbiForSharedUser()
123 public void applyTo(PackageSetting pkgSetting) { in applyTo()
DComponentResolver.java259 final PackageSetting ps = (PackageSetting) p.owner.mExtras; in queryProviders()
295 final PackageSetting ps = (PackageSetting) p.owner.mExtras; in queryProvider()
308 final PackageSetting ps = (PackageSetting) p.owner.mExtras; in querySyncProviders()
1192 PackageSetting ps = (PackageSetting) p.mExtras; in isFilterStopped()
1237 PackageSetting ps = (PackageSetting) activity.owner.mExtras; in newResult()
1478 PackageSetting ps = (PackageSetting) p.mExtras; in isFilterStopped()
1507 PackageSetting ps = (PackageSetting) provider.owner.mExtras; in newResult()
1697 PackageSetting ps = (PackageSetting) p.mExtras; in isFilterStopped()
1724 PackageSetting ps = (PackageSetting) service.owner.mExtras; in newResult()
DPackageManagerServiceUtils.java395 public static String deriveAbiOverride(String abiOverride, PackageSetting settings) { in deriveAbiOverride()
524 private static boolean matchSignatureInSystem(PackageSetting pkgSetting, in matchSignatureInSystem()
525 PackageSetting disabledPkgSetting) { in matchSignatureInSystem()
569 static boolean isApkVerificationForced(@Nullable PackageSetting disabledPs) { in isApkVerificationForced()
579 public static boolean verifySignatures(PackageSetting pkgSetting, in verifySignatures()
580 PackageSetting disabledPkgSetting, PackageParser.SigningDetails parsedSignatures, in verifySignatures()
DPackageAbiHelperImpl.java482 Set<PackageSetting> packagesForUser, PackageParser.Package scannedPackage) { in getAdjustedAbiForSharedUser()
489 PackageSetting requirer = null; in getAdjustedAbiForSharedUser()
490 for (PackageSetting ps : packagesForUser) { in getAdjustedAbiForSharedUser()
DInstructionSets.java53 public static String[] getAppDexInstructionSets(PackageSetting ps) { in getAppDexInstructionSets()
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerService.java96 import com.android.server.pm.PackageSetting;
306 final PackageSetting ps = (PackageSetting) pkg.mExtras; in checkPermission()
350 ((PackageSetting) pkg.mExtras).getPermissionsState(); in checkUidPermission()
582 final PackageSetting ps = (PackageSetting) pkg.mExtras; in adjustPermissionProtectionFlagsLocked()
888 final PackageSetting ps = (PackageSetting) pkg.mExtras; in restorePermissionState()
1744 final PackageSetting disabledPs = in grantSignaturePermission()
1745 (disabledPkg != null) ? (PackageSetting) disabledPkg.mExtras : null; in grantSignaturePermission()
1776 final PackageSetting disabledParentPs = (disabledParentPkg != null) in grantSignaturePermission()
1777 ? (PackageSetting) disabledParentPkg.mExtras : null; in grantSignaturePermission()
1787 final PackageSetting disabledChildPs = in grantSignaturePermission()
[all …]
DBasePermission.java42 import com.android.server.pm.PackageSetting;
424 final PackageSetting pkgSetting = (PackageSetting) pkg.mExtras; in enforceDeclaredUsedAndRuntimeOrDevelopment()
/frameworks/base/services/
Dart-profile10399 …pm/InstructionSets;->getAppDexInstructionSets(Lcom/android/server/pm/PackageSetting;)[Ljava/lang/S…
10425 …ManagerService;->addSigningKeySetToPackageLPw(Lcom/android/server/pm/PackageSetting;Landroid/util/…
10754 …PackageManagerService$PackageRemovedInfo;->populateUsers([ILcom/android/server/pm/PackageSetting;)V
10771 …Freezer;Lcom/android/server/pm/PackageSetting;Lcom/android/server/pm/PackageSetting;[Lcom/android/…
10772 …Freezer;Lcom/android/server/pm/PackageSetting;Lcom/android/server/pm/PackageSetting;[Lcom/android/…
10775 …d/server/pm/PackageManagerService$InstallArgs;Lcom/android/server/pm/PackageSetting;Lcom/android/s…
10777 …Package;Lcom/android/server/pm/PackageSetting;Lcom/android/server/pm/PackageSetting;Lcom/android/s…
10778 …/server/pm/PackageManagerService$ScanRequest;ZLcom/android/server/pm/PackageSetting;Ljava/util/Lis…
10794 …ackageHoldingPermissions(Ljava/util/ArrayList;Lcom/android/server/pm/PackageSetting;[Ljava/lang/St…
10801 …Service;->adjustScanFlags(ILcom/android/server/pm/PackageSetting;Lcom/android/server/pm/PackageSet…
[all …]