Home
last modified time | relevance | path

Searched refs:pkgInfo (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/grammaticalinflection/
DGrammaticalInflectionBackupHelper.java98 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/
DWearPackageInstallerService.java262 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 …]
DWearPackageIconProvider.java187 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/
DTarBackupReader.java424 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/
DPackageManagerKtx.kt26 val pkgInfo = this.getPackageInfo(appPackageName, PackageManager.PackageInfoFlags.of(0)) in PackageManager() constant
27 val applicationInfo = checkNotNull(pkgInfo.applicationInfo) in PackageManager()
DCredentialKtx.kt365 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/
DPackageUtil.kt249 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()
DInstallRepository.kt660 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>()
DUninstallRepository.kt279 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/
DMainActivity.java142 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/
DCarDisplayCompatScaleProviderUpdatableImpl.java490 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/
DDataConverter.kt66 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/
DRollback.java739 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()
DRollbackManagerServiceImpl.java943 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/
DBinderCallsStatsService.java122 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()
DSensitiveContentProtectionManagerService.java216 mPackagesShowingSensitiveContent.removeIf(pkgInfo -> pkgInfo.getWindowToken() == token);
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java1055 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/
DVerifyingSession.java735 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()
DPackageInstallerSession.java3429 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/
DUninstallAlertDialogFragment.java215 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/
DPackageManagerTests.java624 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/
DAppHibernationService.java615 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/
DAppStandbyController.java2310 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/
DLocaleManagerBackupHelper.java398 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/
DPermissionControllerService.java480 PackageInfo pkgInfo = getPackageManager().getPackageInfo(callerPackageName, 0); in onBind() local
481 checkArgument(getCallingUid() == pkgInfo.applicationInfo.uid); in onBind()

12