/frameworks/base/core/java/android/widget/ |
D | AppSecurityPermissions.java | 260 PackageInfo pkgInfo; in AppSecurityPermissions() local 262 pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in AppSecurityPermissions() 268 if((pkgInfo.applicationInfo != null) && (pkgInfo.applicationInfo.uid != -1)) { in AppSecurityPermissions() 269 getAllUsedPermissions(pkgInfo.applicationInfo.uid, permSet); in AppSecurityPermissions() 336 PackageInfo pkgInfo = mPm.getPackageInfo(packageName, PackageManager.GET_PERMISSIONS); in getPermissionsForPackage() local 337 extractPerms(pkgInfo, permSet, pkgInfo); in getPermissionsForPackage()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 620 PackageInfo pkgInfo = null; in assertPermissions() local 628 pkgInfo = pm.getPackageInfo(pkg, in assertPermissions() 632 pkgInfo = null; in assertPermissions() 644 assertNotNull(pkgInfo); in assertPermissions() 646 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 647 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 663 if (pkgInfo != null) { in assertPermissions() 665 for (int j = 0; j < pkgInfo.permissions.length && !found; j++) { in assertPermissions() 666 if (pkgInfo.permissions[j].name.equals(cmd)) { in assertPermissions() 676 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 | 399 public PackageInfo pkgInfo; field in BackupManagerService.RestoreParams 413 pkgInfo = _pkg; in RestoreParams() 428 pkgInfo = null; in RestoreParams() 444 pkgInfo = null; in RestoreParams() 460 pkgInfo = null; in RestoreParams() 791 params.observer, params.token, params.pkgInfo, params.pmToken, in handleMessage() 1953 void checkForTransportAndBind(PackageInfo pkgInfo) { in checkForTransportAndBind() argument 1955 .setPackage(pkgInfo.packageName); in checkForTransportAndBind() 5383 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in readAppManifest() local 5386 final int flags = pkgInfo.applicationInfo.flags; in readAppManifest() [all …]
|
/frameworks/base/packages/DocumentsUI/src/com/android/documentsui/ |
D | BaseActivity.java | 261 PackageInfo pkgInfo = getPackageManager().getPackageInfo(packageName, in getExcludedAuthorities() local 263 for (ProviderInfo provider: pkgInfo.providers) { in getExcludedAuthorities()
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 2185 PackageInfo pkgInfo = null; in getUidForPackage() local 2189 pkgInfo = mPackageManager.getPackageInfo(packageName, 0, userId); in getUidForPackage() 2196 if (pkgInfo == null || pkgInfo.applicationInfo == null) { in getUidForPackage() 2200 return pkgInfo.applicationInfo.uid; in getUidForPackage()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | PackageManagerService.java | 8244 private static boolean hasPermission(PackageParser.Package pkgInfo, String perm) { in hasPermission() argument 8245 for (int i=pkgInfo.permissions.size()-1; i>=0; i--) { in hasPermission() 8246 if (pkgInfo.permissions.get(i).info.name.equals(perm)) { in hasPermission() 8258 PackageParser.Package pkgInfo, int flags) { in updatePermissionsLPw() argument 8273 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw() 8313 if (pkgInfo == null || !hasPermission(pkgInfo, bp.name)) { in updatePermissionsLPw() 8326 if (pkg != pkgInfo) { in updatePermissionsLPw() 8333 if (pkgInfo != null) { in updatePermissionsLPw() 8334 grantPermissionsLPw(pkgInfo, (flags&UPDATE_PERMISSIONS_REPLACE_PKG) != 0, changingPkg); in updatePermissionsLPw() 9828 private List<ComponentName> matchVerifiers(PackageInfoLite pkgInfo, in matchVerifiers() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/accounts/ |
D | AccountManagerService.java | 2020 PackageInfo pkgInfo = mPackageManager.getPackageInfo( in calculatePackageSignatureDigest() local 2022 for (Signature sig : pkgInfo.signatures) { in calculatePackageSignatureDigest()
|
/frameworks/base/core/java/android/app/ |
D | ActivityThread.java | 1700 LoadedApk pkgInfo) { in getTopLevelResources() argument 1702 displayId, overrideConfiguration, pkgInfo.getCompatibilityInfo()); in getTopLevelResources()
|