/frameworks/base/services/core/java/com/android/server/grammaticalinflection/ |
D | GrammaticalInflectionBackupHelper.java | 98 HashMap<String, Integer> pkgInfo = readFromByteArray(payload); in stageAndApplyRestoredPayload() local 99 if (pkgInfo.isEmpty()) { in stageAndApplyRestoredPayload() 104 for (Map.Entry<String, Integer> info : pkgInfo.entrySet()) { in stageAndApplyRestoredPayload() 216 PackageInfo pkgInfo = null; in isPackageInstalledForUser() local 218 pkgInfo = mPackageManager.getPackageInfoAsUser(packageName, /* flags= */ 0, userId); in isPackageInstalledForUser() 222 return pkgInfo != null; in isPackageInstalledForUser()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 262 PackageInfo pkgInfo = PackageUtil.getPackageInfo(this, tempFile, in installPackage() local 264 if (pkgInfo == null) { in installPackage() 269 if (!pkgInfo.packageName.equals(packageName)) { in installPackage() 275 ApplicationInfo appInfo = pkgInfo.applicationInfo; in installPackage() 281 List<String> wearablePerms = Arrays.asList(pkgInfo.requestedPermissions); in installPackage() 285 long longVersionCode = pkgInfo.getLongVersionCode(); in installPackage() 330 for (FeatureInfo feature : pkgInfo.reqFeatures) { in installPackage() 347 if (checkPerms && !checkPermissions(pkgInfo, companionSdkVersion, in installPackage() 389 PackageInfo pkgInfo = pm.getPackageInfo(packageName, 0); in uninstallPackage() local 391 getString(R.string.uninstalling_app, pkgInfo.applicationInfo.loadLabel(pm))); in uninstallPackage() [all …]
|
D | WearPackageIconProvider.java | 187 PackageInfo pkgInfo = context.getPackageManager().getPackageInfo( in isSystemApp() local 189 if (pkgInfo != null && pkgInfo.applicationInfo != null && in isSystemApp() 190 (pkgInfo.applicationInfo.flags & ApplicationInfo.FLAG_SYSTEM) != 0) { in isSystemApp()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | TarBackupReader.java | 424 PackageInfo pkgInfo = packageManager.getPackageInfoAsUser( in chooseRestorePolicy() local 427 final int flags = pkgInfo.applicationInfo.flags; in chooseRestorePolicy() 428 if (eligibilityRules.isAppBackupAllowed(pkgInfo.applicationInfo)) { in chooseRestorePolicy() 431 if (!UserHandle.isCore(pkgInfo.applicationInfo.uid) in chooseRestorePolicy() 432 || (pkgInfo.applicationInfo.backupAgentName != null)) { in chooseRestorePolicy() 440 if (eligibilityRules.signaturesMatch(signatures, pkgInfo)) { in chooseRestorePolicy() 441 if ((pkgInfo.applicationInfo.flags in chooseRestorePolicy() 446 pkgInfo, in chooseRestorePolicy() 450 } else if (pkgInfo.getLongVersionCode() >= info.version) { in chooseRestorePolicy() 455 pkgInfo, in chooseRestorePolicy() [all …]
|
/frameworks/base/packages/CredentialManager/shared/src/com/android/credentialmanager/ktx/ |
D | PackageManagerKtx.kt | 26 val pkgInfo = this.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in PackageManager() constant 27 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in PackageManager()
|
D | CredentialKtx.kt | 365 val pkgInfo = if (Flags.instantAppsEnabled()) { in getServiceLabelAndIcon() constant 373 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in getServiceLabelAndIcon() 396 val pkgInfo = if (Flags.instantAppsEnabled()) { in getServiceLabelAndIcon() constant 404 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in getServiceLabelAndIcon()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/v2/model/ |
D | PackageUtil.kt | 249 fun getAppSnippet(context: Context, pkgInfo: PackageInfo): AppSnippet { in getAppSnippet() 250 return pkgInfo.applicationInfo?.let { getAppSnippet(context, it) } ?: run { in getAppSnippet() 251 AppSnippet(pkgInfo.packageName, context.packageManager.defaultActivityIcon) in getAppSnippet() 272 fun getAppSnippet(context: Context, pkgInfo: PackageInfo, sourceFile: File): AppSnippet { in getAppSnippet() 273 pkgInfo.applicationInfo?.let { in getAppSnippet() 279 return AppSnippet(pkgInfo.packageName, context.packageManager.defaultActivityIcon) in getAppSnippet()
|
D | InstallRepository.kt | 660 private fun getUpdateMessage(pkgInfo: PackageInfo, userActionReason: Int): String? { in <lambda>() 661 if (isAppUpdating(pkgInfo)) { in <lambda>() 662 val existingUpdateOwnerLabel = getExistingUpdateOwnerLabel(pkgInfo) in <lambda>() 681 private fun getExistingUpdateOwnerLabel(pkgInfo: PackageInfo): CharSequence? { in <lambda>() 682 return getApplicationLabel(getExistingUpdateOwner(pkgInfo)) in <lambda>() 685 private fun getExistingUpdateOwner(pkgInfo: PackageInfo): String? { in <lambda>() 687 val packageName = pkgInfo.packageName in <lambda>()
|
D | UninstallRepository.kt | 279 val pkgInfo = packageManager.getPackageInfo(targetPackageName!!, 0) in generateUninstallDetails() constant 281 pkgInfo.applicationInfo != null && pkgInfo.applicationInfo!!.hasFragileUserData() in generateUninstallDetails()
|
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/ |
D | MainActivity.java | 142 PackageRollbackInfo pkgInfo = rollbackInfo.getPackages().get(i); in getView() local 143 sb.append(pkgInfo.getPackageName() + ": " in getView() 144 + pkgInfo.getVersionRolledBackFrom().getLongVersionCode() + " -> " in getView() 145 + pkgInfo.getVersionRolledBackTo().getLongVersionCode() + ","); in getView()
|
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/ |
D | CarDisplayCompatScaleProviderUpdatableImpl.java | 490 PackageInfo pkgInfo = mCarCompatScaleProviderInterface in requiresDisplayCompatNotCachedLocked() local 494 if (pkgInfo != null && pkgInfo.reqFeatures != null) { in requiresDisplayCompatNotCachedLocked() 495 FeatureInfo[] features = pkgInfo.reqFeatures; in requiresDisplayCompatNotCachedLocked() 509 if (pkgInfo == null || pkgInfo.activities == null) { in requiresDisplayCompatNotCachedLocked() 519 for (ActivityInfo ai : pkgInfo.activities) { in requiresDisplayCompatNotCachedLocked()
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/ |
D | DataConverter.kt | 66 val pkgInfo = if (Flags.instantAppsEnabled()) { in <lambda>() constant 71 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in <lambda>() 93 val pkgInfo = if (Flags.instantAppsEnabled()) { in getServiceLabelAndIcon() constant 101 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in getServiceLabelAndIcon() 124 val pkgInfo = if (Flags.instantAppsEnabled()) { in getServiceLabelAndIcon() constant 132 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in getServiceLabelAndIcon()
|
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | Rollback.java | 739 for (PackageRollbackInfo pkgInfo : info.getPackages()) { in delete() 740 List<Integer> snapshottedUsers = pkgInfo.getSnapshottedUsers(); in delete() 741 if (pkgInfo.isApex()) { in delete() 749 dataHelper.destroyAppDataSnapshot(info.getRollbackId(), pkgInfo, userId); in delete() local 947 for (PackageRollbackInfo pkgInfo : info.getPackages()) { in containsApex() 948 if (pkgInfo.isApex()) { in containsApex()
|
D | RollbackManagerServiceImpl.java | 943 final PackageInfo pkgInfo; 945 pkgInfo = getPackageInfo(packageName); 984 ApplicationInfo appInfo = pkgInfo.applicationInfo; 986 pkgInfo.getLongVersionCode(), isApex, appInfo.sourceDir, 1122 PackageInfo pkgInfo; 1124 pkgInfo = getPackageInfo(packageName); 1129 return pkgInfo.getLongVersionCode();
|
/frameworks/base/services/core/java/com/android/server/ |
D | BinderCallsStatsService.java | 122 final PackageInfo pkgInfo = packages.get(i); in createAppidTrustlist() local 124 final int uid = pm.getPackageUid(pkgInfo.packageName, queryFlags); in createAppidTrustlist() 128 Slog.e(TAG, "Cannot find uid for package name " + pkgInfo.packageName, e); in createAppidTrustlist()
|
D | SensitiveContentProtectionManagerService.java | 216 mPackagesShowingSensitiveContent.removeIf(pkgInfo -> pkgInfo.getWindowToken() == token);
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 1055 final PackageInfo pkgInfo; in addPackage() local 1058 pkgInfo = mPackageManager.getPackageInfo(pkgName, GET_PERMISSIONS); in addPackage() 1064 if (pkgInfo == null || pkg == null || pkgInfo.applicationInfo == null in addPackage() 1065 || pkgInfo.requestedPermissions == null) { in addPackage() 1069 final int uid = pkgInfo.applicationInfo.uid; in addPackage() 1076 for (String permission : pkgInfo.requestedPermissions) { in addPackage() 1077 addAppOps(pkgInfo, pkg, permission); in addPackage()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | VerifyingSession.java | 735 private List<ComponentName> matchVerifiers(PackageInfoLite pkgInfo, in matchVerifiers() argument 737 if (pkgInfo.verifiers == null || pkgInfo.verifiers.length == 0) { in matchVerifiers() 741 final int n = pkgInfo.verifiers.length; in matchVerifiers() 744 final VerifierInfo verifierInfo = pkgInfo.verifiers[i]; in matchVerifiers()
|
D | PackageInstallerSession.java | 3429 final PackageInfo pkgInfo = mPm.snapshotComputer().getPackageInfo( 3435 && (pkgInfo == null || pkgInfo.applicationInfo == null)) { 3443 && VerityUtils.hasFsverity(pkgInfo.applicationInfo.getBaseCodePath()) 3445 pkgInfo.applicationInfo.getBaseCodePath()))).exists(); 3546 if (pkgInfo == null) { 3553 if (!ArrayUtils.contains(pkgInfo.splitNames, splitName)) { 3561 mPackageName = pkgInfo.packageName; 3562 mVersionCode = pkgInfo.getLongVersionCode(); 3566 pkgInfo.applicationInfo.sourceDir); 3669 final ApplicationInfo appInfo = pkgInfo.applicationInfo; [all …]
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/ |
D | UninstallAlertDialogFragment.java | 215 PackageInfo pkgInfo = pm.getPackageInfo(pkg, in onCreateDialog() local 218 suggestToKeepAppData = pkgInfo.applicationInfo.hasFragileUserData() && !isArchive; in onCreateDialog()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/ |
D | PackageManagerTests.java | 624 PackageInfo pkgInfo = null; in assertPermissions() local 632 pkgInfo = pm.getPackageInfo(pkg, in assertPermissions() 636 pkgInfo = null; in assertPermissions() 648 assertNotNull(pkgInfo); in assertPermissions() 650 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 651 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 667 if (pkgInfo != null) { in assertPermissions() 669 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 670 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 680 for (int j = 0; j < pkgInfo.requestedPermissions.length && !found; j++) { in assertPermissions() [all …]
|
/frameworks/base/services/core/java/com/android/server/apphibernation/ |
D | AppHibernationService.java | 615 PackageInfo pkgInfo = installedPackages.get(packageName); in initializeUserHibernationStates() local 617 if (pkgInfo == null) { in initializeUserHibernationStates() 623 if (pkgInfo.applicationInfo != null in initializeUserHibernationStates() 624 && (pkgInfo.applicationInfo.flags &= ApplicationInfo.FLAG_STOPPED) == 0 in initializeUserHibernationStates()
|
/frameworks/base/apex/jobscheduler/service/java/com/android/server/usage/ |
D | AppStandbyController.java | 2310 private boolean maybeUpdateHeadlessSystemAppCache(@Nullable PackageInfo pkgInfo) { in maybeUpdateHeadlessSystemAppCache() argument 2311 if (pkgInfo == null || pkgInfo.applicationInfo == null in maybeUpdateHeadlessSystemAppCache() 2312 || (!pkgInfo.applicationInfo.isSystemApp() in maybeUpdateHeadlessSystemAppCache() 2313 && !pkgInfo.applicationInfo.isUpdatedSystemApp())) { in maybeUpdateHeadlessSystemAppCache() 2318 .setPackage(pkgInfo.packageName); in maybeUpdateHeadlessSystemAppCache() 2321 return updateHeadlessSystemAppCache(pkgInfo.packageName, ArrayUtils.isEmpty(res)); in maybeUpdateHeadlessSystemAppCache() 2389 final PackageInfo pkgInfo = packages.get(i); in loadHeadlessSystemAppCache() local 2390 if (pkgInfo == null) { in loadHeadlessSystemAppCache() 2393 final String pkg = pkgInfo.packageName; in loadHeadlessSystemAppCache()
|
/frameworks/base/services/core/java/com/android/server/locales/ |
D | LocaleManagerBackupHelper.java | 398 PackageInfo pkgInfo = null; in isPackageInstalledForUser() local 400 pkgInfo = mContext.getPackageManager().getPackageInfoAsUser( in isPackageInstalledForUser() 407 return pkgInfo != null; in isPackageInstalledForUser()
|
/frameworks/base/core/java/android/permission/ |
D | PermissionControllerService.java | 480 PackageInfo pkgInfo = getPackageManager().getPackageInfo(callerPackageName, 0); in onBind() local 481 checkArgument(getCallingUid() == pkgInfo.applicationInfo.uid); in onBind()
|