/aosp14/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | SharedUserSetting.java | 207 if ((mPackages.size() == 0) && (packageSetting.getPkg() != null)) { 215 if (packageSetting.getPkg() != null) { 216 addProcesses(packageSetting.getPkg().getProcesses()); 229 if ((ps == null) || (ps.getPkg() == null)) { 232 pkgList.add(ps.getPkg()); 255 final AndroidPackage pkg = mDisabledPackages.valueAt(0).getPkg(); 273 if ((ps == null) || (ps.getPkg() == null)) { 276 if (ps.getPkg().getTargetSdkVersion() < seInfoTargetSdkVersion) { 277 seInfoTargetSdkVersion = ps.getPkg().getTargetSdkVersion(); 284 if ((ps == null) || (ps.getPkg() == null)) { [all …]
|
H A D | AppsFilterImpl.java | 409 } else if (setting.getPkg() != null) { in updatePackageState() 410 updateEnabledState(setting.getPkg()); in updatePackageState() 668 || existingSetting.getPkg() in addPackageInternal() 726 if (newPkgSetting.getPkg() != null && existingSetting.getPkg() != null in addPackageInternal() 727 && (pkgInstruments(newPkgSetting.getPkg(), existingSetting.getPkg()) in addPackageInternal() 728 || pkgInstruments(existingSetting.getPkg(), newPkgSetting.getPkg()))) { in addPackageInternal() 740 if (pkgSetting.getPkg() != null) { in addPackageInternal() 975 if (setting.getPkg() == null || setting.getPkg().getPackageName().equals( in collectProtectedBroadcasts() 1113 if (setting.getPkg() != null && !setting.getPkg().getPermissions().isEmpty()) { in removePackageInternal() 1124 if (setting.getPkg() != null && !setting.getPkg().getUsesPermissions().isEmpty()) { in removePackageInternal() [all …]
|
H A D | AppsFilterBase.java | 243 if (callingPkgSetting.getPkg() != null in isQueryableViaComponentWhenRequireRecompute() 244 && canQueryViaComponents(callingPkgSetting.getPkg(), targetPkg, in isQueryableViaComponentWhenRequireRecompute() 251 callingSharedPkgSettings.valueAt(i).getPkg(); in isQueryableViaComponentWhenRequireRecompute() 448 if (callingPkgSetting.getPkg() != null in shouldFilterApplicationInternal() 449 && !mFeatureConfig.packageIsEnabled(callingPkgSetting.getPkg())) { in shouldFilterApplicationInternal() 457 final AndroidPackage pkg = callingSharedPkgSettings.valueAt(i).getPkg(); in shouldFilterApplicationInternal() 472 if (callingPkgSetting.getPkg() != null in shouldFilterApplicationInternal() 473 && requestsQueryAllPackages(callingPkgSetting.getPkg())) { in shouldFilterApplicationInternal() 478 AndroidPackage pkg = callingSharedPkgSettings.valueAt(i).getPkg(); in shouldFilterApplicationInternal() 492 final AndroidPackage targetPkg = targetPkgSetting.getPkg(); in shouldFilterApplicationInternal()
|
H A D | AppsFilterUtils.java | 225 final AndroidPackage pkg = setting.getPkg(); in execute() 269 if (otherSetting.getPkg() == null || mForceQueryable.contains( in getVisibleListOfQueryViaComponents() 274 setting.getPkg(), otherSetting.getPkg(), mProtectedBroadcasts); in getVisibleListOfQueryViaComponents()
|
H A D | OtaDexoptService.java | 134 PLATFORM_PACKAGE_NAME.equals(pkgSetting.getPkg().getPackageName()); in prepare() 154 mDexoptCommands.addAll(generatePackageDexopts(pkgSetting.getPkg(), pkgSetting, in prepare() 159 if (pkgSetting.getPkg().isCoreApp()) { in prepare() 162 mDexoptCommands.addAll(generatePackageDexopts(pkgSetting.getPkg(), pkgSetting, in prepare() 412 final AndroidPackage pkg = packageState.getPkg(); in moveAbArtifacts()
|
H A D | ComputerEngine.java | 1476 AndroidPackage p = ps.getPkg(); in generatePackageInfo() 1568 if (!matchApex && ps.getPkg() != null && ps.getPkg().isApex()) { in getPackageInfoInternalBody() 1682 if (!listApex && ps.getPkg() != null && ps.getPkg().isApex()) { in getInstalledPackagesBody() 2049 if (ps == null || ps.getPkg() == null || !ps.getPkg().isStaticSharedLibrary()) { in filterStaticSharedLibPackage() 2105 if (ps == null || ps.getPkg() == null || !ps.getPkg().isSdkLibrary()) { in filterSdkLibPackage() 2110 ps.getPkg().getSdkLibraryName(), ps.getPkg().getSdkLibVersionMajor()); in filterSdkLibPackage() 3652 if (ps.getPkg() != null in getPackageGids() 3918 if (ps.getPkg() != null && ps.getPkg().isStaticSharedLibrary()) { in getPackagesUsingSharedLibrary() 4610 if (ps.getPkg() != null) { in getInstalledApplications() 5647 return List.of(ps.getPkg()); in getPackagesForAppId() [all …]
|
H A D | InstallPackageHelper.java | 718 if (pkgSetting.getPkg() != null) { in installExistingPackageAsUser() 788 boolean doRestore = !update && request.getPkg() != null; in restoreAndPostInstall() 835 if (request.getPkg() == null) { in performBackupManagerRestore() 876 if (request.getPkg() == null) { in performRollbackManagerRestore() 2594 dataOwnerPkg = dataOwnerPs.getPkg(); in verifyReplacingVersionCode() 2637 dataOwnerPkg = disabledPs.getPkg(); in verifyReplacingVersionCode() 2796 request.getPkg().getPath())); in handlePackagePostInstall() 3004 if (request.getPkg().isExternalStorage()) { in handlePackagePostInstall() 3374 if (disabledPs.getPkg().isStub()) { in restoreDisabledSystemPackageLIF() 3549 || disabledPs.getPkg() == null) { in prepareSystemPackageCleanUp() [all …]
|
H A D | AppDataHelper.java | 455 if (ps.getPkg() == null) { 462 if (onlyCoreApps && !ps.getPkg().isCoreApp()) { 468 prepareAppDataAndMigrate(batch, ps, ps.getPkg(), userId, flags, migrateAppData); 498 } else if (packageState.getPkg() != null 499 && !shouldHaveAppStorage(packageState.getPkg())) { 546 AndroidPackage pkg = packageStateInternal.getPkg();
|
H A D | UpdateOwnershipHelper.java | 52 AndroidPackage pkg = pkgSetting.getPkg(); in hasValidOwnershipDenyList() 85 AndroidPackage pkg = pkgSetting.getPkg(); in readUpdateOwnerDenyList()
|
H A D | DeletePackageHelper.java | 288 AndroidPackage aPkg = pkgSetting.getPkg(); in deletePackageX() 315 (disabledSystemPs == null) ? null : disabledSystemPs.getPkg(); in deletePackageX() 392 + ps.getPkg().getPackageName()); in mayDeletePackageLocked() 625 final AndroidPackage deletedPkg = deletedPs.getPkg(); in deleteInstalledSystemPackage() 928 if (ps.getPkg() == null) { in removeUnusedPackagesLPw() 931 final String packageName = ps.getPkg().getPackageName(); in removeUnusedPackagesLPw() 934 || !TextUtils.isEmpty(ps.getPkg().getStaticSharedLibraryName()) in removeUnusedPackagesLPw() 935 || !TextUtils.isEmpty(ps.getPkg().getSdkLibraryName())) { in removeUnusedPackagesLPw()
|
H A D | StorageEventHelper.java | 172 ps.getPkg(), UserHandle.USER_ALL, FLAG_STORAGE_DE | FLAG_STORAGE_CE in loadPrivatePackagesInner() 254 if (ps.getPkg() == null) continue; in unloadPrivatePackagesInner() 256 final AndroidPackage pkg = ps.getPkg(); in unloadPrivatePackagesInner()
|
H A D | DexOptHelper.java | 172 if (disabledPs != null && disabledPs.getPkg().isStub()) { in performDexOptUpgrade() 175 String systemProfilePath = getPrebuildProfilePath(disabledPs.getPkg()) in performDexOptUpgrade() 423 final AndroidPackage pkg = packageState.getPkg(); in getOptimizablePackages() 602 final AndroidPackage pkg = packageState == null ? null : packageState.getPkg(); in forceDexOpt() 658 final AndroidPackage installerPkg = installerPackageState.getPkg(); in isCallerInstallerForPackage() 696 applyPackageFilter(snapshot, pkgSetting -> pkgSetting.getPkg().isCoreApp(), result, in getPackagesForDexopt()
|
H A D | Settings.java | 885 if (dp == null && p.getPkg() != null && p.isSystem() 2609 if (pkg.getPkg() != null && pkg.getPkg().isApex()) { 2618 if (pkg.getPkg() != null && pkg.getPkg().isApex()) { 2829 if (pkg.getPkg().isApex()) { 2867 sb.append(pkg.getPkg().getPackageName()); 2869 sb.append(pkg.getPkg().getUid()); 4330 if (ps.getPkg() == null) { 4669 AndroidPackage pkg = ps.getPkg(); 4802 pw.print(ps.getPkg().isForceQueryable()); 5213 if (ps.getPkg() != null && ps.getPkg().isApex() [all …]
|
H A D | InstantAppRegistry.java | 374 AndroidPackage pkg = ps == null ? null : ps.getPkg(); 620 writeInstantApplicationIconLPw(packageState.getPkg(), userId); 809 final AndroidPackage pkg = ps == null ? null : ps.getPkg(); 843 final AndroidPackage lhsPkg = lhsPkgState == null ? null : lhsPkgState.getPkg(); 844 final AndroidPackage rhsPkg = rhsPkgState == null ? null : rhsPkgState.getPkg(); 969 AndroidPackage pkg = ps.getPkg(); 984 ApplicationInfo appInfo = PackageInfoUtils.generateApplicationInfo(ps.getPkg(), 0,
|
/aosp14/frameworks/base/core/java/android/service/notification/ |
H A D | ConversationChannelWrapper.java | 113 public String getPkg() { in getPkg() method in ConversationChannelWrapper 138 Objects.equals(getPkg(), that.getPkg()) && in equals() 145 getShortcutInfo(), getPkg(), getUid()); in hashCode()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
H A D | DomainVerificationDebug.java | 77 if (pkgSetting == null || pkgSetting.getPkg() == null) { in printState() 81 boolean wasHeaderPrinted = printState(writer, pkgState, pkgSetting.getPkg(), in printState() 83 printState(writer, pkgState, pkgSetting.getPkg(), userId, reusedSet, in printState() 93 if (pkgSetting == null || pkgSetting.getPkg() == null) { in printState() 97 AndroidPackage pkg = pkgSetting.getPkg(); in printState()
|
H A D | DomainVerificationService.java | 387 if (pkgSetting == null || pkgSetting.getPkg() == null) { in setDomainVerificationStatusInternal() 391 AndroidPackage pkg = pkgSetting.getPkg(); in setDomainVerificationStatusInternal() 416 if (pkgSetting == null || pkgSetting.getPkg() == null) { in setDomainVerificationStatusInternal() 420 AndroidPackage pkg = pkgSetting.getPkg(); in setDomainVerificationStatusInternal() 871 AndroidPackage oldPkg = oldPkgSetting.getPkg(); in migrateState() 872 AndroidPackage newPkg = newPkgSetting.getPkg(); in migrateState() 976 AndroidPackage pkg = newPkgSetting.getPkg(); in addPackage() 1352 if (pkgSetting == null || pkgSetting.getPkg() == null) { in getAndValidateAttachedLocked() 1360 AndroidPackage pkg = pkgSetting.getPkg(); in getAndValidateAttachedLocked() 1764 AndroidPackage pkg = pkgSetting.getPkg(); in approvalLevelForDomain() [all …]
|
/aosp14/frameworks/base/services/core/java/com/android/server/slice/ |
H A D | SlicePermissionManager.java | 221 mCachedClients.put(client.getPkg(), client); in readRestore() 225 mHandler.obtainMessage(H.MSG_CLEAR_CLIENT, client.getPkg()), in readRestore() 231 mCachedProviders.put(provider.getPkg(), provider); in readRestore() 235 mHandler.obtainMessage(H.MSG_CLEAR_PROVIDER, provider.getPkg()), in readRestore() 425 public String getPkg() { in getPkg() method in SlicePermissionManager.PkgUser
|
H A D | SliceClientPermissions.java | 64 public PkgUser getPkg() { in getPkg() method in SliceClientPermissions 75 ret = new SliceAuthority(authority.getPkg(), provider, this); in getOrCreateAuthority() 222 public PkgUser getPkg() { in getPkg() method in SliceClientPermissions.SliceAuthority
|
/aosp14/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | ZenModeHelper.java | 413 dispatchOnAutomaticRuleStatusChanged(mConfig.user, rule.getPkg(), ruleId, in updateAutomaticZenRule() 434 if (ruleToRemove.getPkg() != null && !"android".equals(ruleToRemove.getPkg())) { in removeAutomaticZenRule() 436 if (currRule.getPkg() != null in removeAutomaticZenRule() 437 && currRule.getPkg().equals(ruleToRemove.getPkg())) { in removeAutomaticZenRule() 441 mRulesUidCache.remove(getPackageUserKey(ruleToRemove.getPkg(), newConfig.user)); in removeAutomaticZenRule() 449 mConfig.user, ruleToRemove.getPkg(), id, AUTOMATIC_RULE_STATUS_REMOVED); in removeAutomaticZenRule() 566 if (pkg.equals(rule.getPkg())) { in getPackageRuleCount() 586 if (packages[i].equals(rule.getPkg())) { in canManageAutomaticZenRule() 903 if (rule.getPkg() != null) { in cleanUpZenRules() 904 mPm.getPackageInfo(rule.getPkg(), PackageManager.MATCH_ANY_USER); in cleanUpZenRules() [all …]
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/slice/ |
H A D | SliceProviderPermissionsTest.java | 112 assertEquals(o1.getPkg(), o2.getPkg()); in assertEquivalent()
|
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
H A D | ScanTests.java | 529 ((ParsedPackage) result.mPkgSetting.getPkg()).hideAsFinal(); 576 pkgSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, pkgSetting); 582 assertThat(pkgSetting.getPkg().getPackageName(), is(packageName)); 590 assertThat(pkgSetting.getPkg(), is(scanResult.mRequest.mParsedPackage)); 614 pkgSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, pkgSetting); 628 pkgSetting.getPkg(), 0, pkgSetting.getUserStateOrDefault(0), 0, pkgSetting);
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/pkg/ |
H A D | PackageStateInternal.java | 39 AndroidPackageInternal getPkg(); in getPkg() method
|
H A D | PackageStateUtils.java | 70 final AndroidPackage pkg = packageState.getPkg(); in isEnabledAndMatches()
|
/aosp14/frameworks/base/services/core/java/com/android/server/pm/resolution/ |
H A D | ComponentResolverBase.java | 154 final AndroidPackage pkg = packageState.getPkg(); in queryProvider() 205 AndroidPackage pkg = ps.getPkg(); in queryProviders() 288 final AndroidPackage pkg = ps.getPkg(); in querySyncProviders()
|