/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 264 PackageInfo pkgInfo; in AppSecurityPermissions() local 266 pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in AppSecurityPermissions() 272 if((pkgInfo.applicationInfo != null) && (pkgInfo.applicationInfo.uid != -1)) { in AppSecurityPermissions() 273 getAllUsedPermissions(pkgInfo.applicationInfo.uid, permSet); in AppSecurityPermissions() 340 PackageInfo pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPermissionsForPackage() local 341 extractPerms(pkgInfo, permSet, pkgInfo); in getPermissionsForPackage()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageInstallerSession.java | 205 final PackageInfo pkgInfo = mPm.getPackageInfo( 216 commitLocked(pkgInfo, appInfo); 545 private void commitLocked(PackageInfo pkgInfo, ApplicationInfo appInfo) in commitLocked() argument 564 validateInstallLocked(pkgInfo, appInfo); in commitLocked() 676 private void validateInstallLocked(PackageInfo pkgInfo, ApplicationInfo appInfo) in validateInstallLocked() argument 757 if (!ArrayUtils.contains(pkgInfo.splitNames, splitName)) { in validateInstallLocked() 765 mPackageName = pkgInfo.packageName; in validateInstallLocked() 766 mVersionCode = pkgInfo.versionCode; in validateInstallLocked() 769 mSignatures = pkgInfo.signatures; in validateInstallLocked()
|
D | PackageManagerService.java | 9825 private static boolean hasPermission(PackageParser.Package pkgInfo, String perm) { in hasPermission() argument 9826 for (int i=pkgInfo.permissions.size()-1; i>=0; i--) { in hasPermission() 9827 if (pkgInfo.permissions.get(i).info.name.equals(perm)) { in hasPermission() 9849 private void updatePermissionsLPw(String changingPkg, PackageParser.Package pkgInfo, in updatePermissionsLPw() argument 9851 final String volumeUuid = (pkgInfo != null) ? getVolumeUuidForPackage(pkgInfo) : null; in updatePermissionsLPw() 9852 updatePermissionsLPw(changingPkg, pkgInfo, volumeUuid, flags); in updatePermissionsLPw() 9856 PackageParser.Package pkgInfo, String replaceVolumeUuid, int flags) { in updatePermissionsLPw() argument 9871 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw() 9911 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw() 9924 if (pkg != pkgInfo) { in updatePermissionsLPw() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 613 PackageInfo pkgInfo = null; in assertPermissions() local 621 pkgInfo = pm.getPackageInfo(pkg, in assertPermissions() 625 pkgInfo = null; in assertPermissions() 637 assertNotNull(pkgInfo); in assertPermissions() 639 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 640 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 656 if (pkgInfo != null) { in assertPermissions() 658 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 659 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 669 for (int j = 0; j < pkgInfo.requestedPermissions.length && !found; j++) { in assertPermissions() [all …]
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 442 public PackageInfo pkgInfo; field in BackupManagerService.RestoreParams 456 pkgInfo = _pkg; in RestoreParams() 471 pkgInfo = null; in RestoreParams() 487 pkgInfo = null; in RestoreParams() 503 pkgInfo = null; in RestoreParams() 872 params.observer, params.token, params.pkgInfo, params.pmToken, in handleMessage() 2087 void checkForTransportAndBind(PackageInfo pkgInfo) { in checkForTransportAndBind() argument 2089 .setPackage(pkgInfo.packageName); in checkForTransportAndBind() 6043 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in readAppManifest() local 6046 final int flags = pkgInfo.applicationInfo.flags; in readAppManifest() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | BaseActivity.java | 436 PackageInfo pkgInfo = getPackageManager().getPackageInfo(packageName, in getExcludedAuthorities() local 438 for (ProviderInfo provider: pkgInfo.providers) { in getExcludedAuthorities()
|
/frameworks/base/core/java/android/app/ |
D | ActivityThread.java | 1865 String[] libDirs, int displayId, LoadedApk pkgInfo) { in getTopLevelResources() argument 1867 displayId, null, pkgInfo.getCompatibilityInfo(), pkgInfo.getClassLoader()); in getTopLevelResources() 4934 LoadedApk pkgInfo = ref != null ? ref.get() : null; in handleDispatchPackageBroadcast() local 4935 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 4939 pkgInfo = ref != null ? ref.get() : null; in handleDispatchPackageBroadcast() 4940 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 4948 if (pkgInfo != null) { in handleDispatchPackageBroadcast() 4962 ar.packageInfo = pkgInfo; in handleDispatchPackageBroadcast() 4968 pkgInfo.updateApplicationInfo(aInfo, oldPaths); in handleDispatchPackageBroadcast()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 2488 PackageInfo pkgInfo = null; in getUidForPackage() local 2492 pkgInfo = mPackageManager.getPackageInfo(packageName, 0, userId); in getUidForPackage() 2499 if (pkgInfo == null || pkgInfo.applicationInfo == null) { in getUidForPackage() 2503 return pkgInfo.applicationInfo.uid; in getUidForPackage()
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 715 for (PackageInfo pkgInfo : pkgsWithData) { in getUidsOfInstalledOrUpdatedPackagesAsUser() 716 if (pkgInfo.applicationInfo != null in getUidsOfInstalledOrUpdatedPackagesAsUser() 717 && (pkgInfo.applicationInfo.flags & ApplicationInfo.FLAG_INSTALLED) != 0) { in getUidsOfInstalledOrUpdatedPackagesAsUser() 718 knownUids.put(pkgInfo.applicationInfo.uid, true); in getUidsOfInstalledOrUpdatedPackagesAsUser() 2536 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in calculatePackageSignatureDigest() local 2538 for (Signature sig : pkgInfo.signatures) { in calculatePackageSignatureDigest()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityManagerService.java | 11438 final PackageInfo pkgInfo = AppGlobals.getPackageManager() in installEncryptionUnawareProviders() local 11440 if (pkgInfo != null && !ArrayUtils.isEmpty(pkgInfo.providers)) { in installEncryptionUnawareProviders() 11441 for (ProviderInfo pi : pkgInfo.providers) { in installEncryptionUnawareProviders()
|