/frameworks/base/core/java/android/content/pm/ |
D | InstantAppInfo.java | 46 String[] requestedPermissions, String[] grantedPermissions) { in InstantAppInfo() argument 50 mRequestedPermissions = requestedPermissions; in InstantAppInfo() 55 String[] requestedPermissions, String[] grantedPermissions) { in InstantAppInfo() argument 59 mRequestedPermissions = requestedPermissions; in InstantAppInfo()
|
D | PackageInfo.java | 208 public String[] requestedPermissions; field in PackageInfo 465 dest.writeStringArray(requestedPermissions); in writeToParcel() 529 requestedPermissions = source.createStringArray(); in PackageInfo()
|
D | PackageParser.java | 794 N = p.requestedPermissions.size(); in generatePackageInfo() 796 pi.requestedPermissions = new String[N]; in generatePackageInfo() 799 final String perm = p.requestedPermissions.get(i); in generatePackageInfo() 800 pi.requestedPermissions[i] = perm; in generatePackageInfo() 2468 if (!pkg.requestedPermissions.contains(npi.name)) { in parseBaseApkCommon() 2477 pkg.requestedPermissions.add(npi.name); in parseBaseApkCommon() 2491 || !pkg.requestedPermissions.contains(spi.getSplitPermission())) { in parseBaseApkCommon() 2497 if (!pkg.requestedPermissions.contains(perm)) { in parseBaseApkCommon() 2498 pkg.requestedPermissions.add(perm); in parseBaseApkCommon() 2897 int index = pkg.requestedPermissions.indexOf(name); in parseUsesPermission() [all …]
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | PermissionMonitor.java | 115 if (app != null && app.requestedPermissions != null) { in getPermissionForUid() 116 permission |= getNetdPermissionMask(app.requestedPermissions, in getPermissionForUid() 184 int otherNetdPerms = getNetdPermissionMask(app.requestedPermissions, in startMonitoring() 228 if (app.requestedPermissions == null || app.requestedPermissionsFlags == null) { in hasPermission() 231 final int index = ArrayUtils.indexOf(app.requestedPermissions, permission); in hasPermission() 446 private static int getNetdPermissionMask(String[] requestedPermissions, in getNetdPermissionMask() argument 449 if (requestedPermissions == null || requestedPermissionsFlags == null) return permissions; in getNetdPermissionMask() 450 for (int i = 0; i < requestedPermissions.length; i++) { in getNetdPermissionMask() 451 if (requestedPermissions[i].equals(INTERNET) in getNetdPermissionMask() 455 if (requestedPermissions[i].equals(UPDATE_DEVICE_STATS) in getNetdPermissionMask()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | DefaultPermissionGrantPolicy.java | 304 for (String permission : pkg.requestedPermissions) { in grantRuntimePermissionsForSystemPackage() 332 || ArrayUtils.isEmpty(pkg.requestedPermissions)) { in grantPermissionsToSysComponentsAndPrivApps() 982 if (ArrayUtils.isEmpty(pkg.requestedPermissions)) { in revokeRuntimePermissions() 985 Set<String> revokablePermissions = new ArraySet<>(Arrays.asList(pkg.requestedPermissions)); in revokeRuntimePermissions() 1069 String[] requestedPermissions = pkg.requestedPermissions; in grantRuntimePermissions() local 1070 if (ArrayUtils.isEmpty(requestedPermissions)) { in grantRuntimePermissions() 1076 String[] requestedByNonSystemPackage = getPackageInfo(pkg.packageName).requestedPermissions; in grantRuntimePermissions() 1077 int size = requestedPermissions.length; in grantRuntimePermissions() 1079 if (!ArrayUtils.contains(requestedByNonSystemPackage, requestedPermissions[i])) { in grantRuntimePermissions() 1080 requestedPermissions[i] = null; in grantRuntimePermissions() [all …]
|
D | PermissionManagerService.java | 782 N = pkg.requestedPermissions.size(); in removeAllPermissions() 785 String perm = pkg.requestedPermissions.get(i); in removeAllPermissions() 929 final int N = pkg.requestedPermissions.size(); in restorePermissionState() 931 final String permName = pkg.requestedPermissions.get(i); in restorePermissionState() 1515 pkg.requestedPermissions.contains(READ_EXTERNAL_STORAGE) in checkIfLegacyStorageOpsNeedToBeUpdated() 1516 || pkg.requestedPermissions.contains(WRITE_EXTERNAL_STORAGE))) { in checkIfLegacyStorageOpsNeedToBeUpdated() 1936 final int permCount = pkg.requestedPermissions.size(); in isPackageRequestingPermission() 1938 String requestedPermission = pkg.requestedPermissions.get(j); in isPackageRequestingPermission() 1952 if (pkg.requestedPermissions == null) { in grantRuntimePermissionsGrantedToDisabledPackageLocked() 1964 final int permCount = pkg.requestedPermissions.size(); in grantRuntimePermissionsGrantedToDisabledPackageLocked() [all …]
|
D | BasePermission.java | 423 int index = pkg.requestedPermissions.indexOf(name); in enforceDeclaredUsedAndRuntimeOrDevelopment()
|
/frameworks/base/services/core/java/com/android/server/timezone/ |
D | PackageTrackerHelperImpl.java | 96 if (packageInfo.requestedPermissions == null) { in usesPermission() 99 for (String requestedPermission : packageInfo.requestedPermissions) { in usesPermission()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 264 List<String> wearablePerms = pkg.requestedPermissions; in installPackage() 295 if (existingPkgInfo.requestedPermissions != null) { in installPackage() 296 for (int i = 0; i < existingPkgInfo.requestedPermissions.length; ++i) { in installPackage() 301 Log.d(TAG, existingPkgInfo.requestedPermissions[i] + in installPackage() 304 wearablePerms.remove(existingPkgInfo.requestedPermissions[i]); in installPackage()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | InstantAppRegistry.java | 853 String[] requestedPermissions = new String[pkg.requestedPermissions.size()]; in createInstantAppInfoForPackage() local 854 pkg.requestedPermissions.toArray(requestedPermissions); in createInstantAppInfoForPackage() 862 requestedPermissions, grantedPermissions); in createInstantAppInfoForPackage() 866 requestedPermissions, grantedPermissions); in createInstantAppInfoForPackage() 906 if (propagatePermission && pkg.requestedPermissions.contains(grantedPermission)) { in propagateInstantAppPermissionsIfNeeded() 1073 String[] requestedPermissions = new String[outRequestedPermissions.size()]; in parsePackage() local 1074 outRequestedPermissions.toArray(requestedPermissions); in parsePackage() 1080 requestedPermissions, grantedPermissions); in parsePackage()
|
D | Settings.java | 950 for (String eachPerm : deletedPs.pkg.requestedPermissions) { in updateSharedUserPermsLPw() 961 && pkg.pkg.requestedPermissions.contains(eachPerm)) { in updateSharedUserPermsLPw() 977 for (String permission : disabledPs.pkg.requestedPermissions) { in updateSharedUserPermsLPw() 4716 && ps.pkg.requestedPermissions != null in dumpPackageLPr() 4717 && ps.pkg.requestedPermissions.size() > 0) { in dumpPackageLPr() 4718 final ArrayList<String> perms = ps.pkg.requestedPermissions; in dumpPackageLPr()
|
D | LauncherAppsService.java | 459 if (ArrayUtils.isEmpty(pkg.requestedPermissions)) { in hasComponentsAndRequestsPermissions()
|
D | PackageManagerService.java | 1502 ? parentRes.pkg.requestedPermissions in doHandleMessage() 4084 final Set<String> permissions = ArrayUtils.isEmpty(p.requestedPermissions) in generatePackageInfo() 8589 pi.requestedPermissions = permissions; 8591 pi.requestedPermissions = new String[numMatch]; 8595 pi.requestedPermissions[numMatch] = permissions[i]; 11459 if (isUnderFactoryTest && pkg.requestedPermissions.contains( 13543 whiteListedPermissions = pkgSetting.pkg.requestedPermissions; 19938 final int permissionCount = ps.pkg.requestedPermissions.size(); 19940 final String permName = ps.pkg.requestedPermissions.get(i); 19958 && pkg.pkg.requestedPermissions.contains(permName)) {
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageParserTest.java | 477 parent.requestedPermissions); in testMultiPackageComponents() 485 firstChild.requestedPermissions); in testMultiPackageComponents() 496 secondChild.requestedPermissions); in testMultiPackageComponents()
|
D | PackageManagerTests.java | 662 for (int j = 0; j < pkgInfo.requestedPermissions.length && !found; j++) { in assertPermissions() 663 if (pkgInfo.requestedPermissions[j].equals(cmd)) { in assertPermissions()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageParserTest.java | 169 assertSame(deserialized.requestedPermissions.get(0), in test_stringInterning() 170 deserialized2.requestedPermissions.get(0)); in test_stringInterning() 260 assertEquals(a.requestedPermissions, b.requestedPermissions); in assertPackagesEqual() 469 pkg.requestedPermissions.add("foo7"); in setKnownFields()
|
/frameworks/base/services/companion/java/com/android/server/companion/ |
D | CompanionDeviceManagerService.java | 474 if (containsEither(packageInfo.requestedPermissions, 486 if (containsEither(packageInfo.requestedPermissions,
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | PermissionPolicyService.java | 720 if (pkg.requestedPermissions == null) { in addPackage() 724 for (String permission : pkg.requestedPermissions) { in addPackage()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | PermissionMonitorTest.java | 175 packageInfo.requestedPermissions = permissions; in packageInfoWithPermissions() 236 app.requestedPermissions = null; in testHasPermission()
|
/frameworks/base/services/core/java/com/android/server/stats/ |
D | StatsCompanionService.java | 1991 if (pkg.requestedPermissions == null) { in pullDangerousPermissionState() 1995 int numPerms = pkg.requestedPermissions.length; in pullDangerousPermissionState() 1997 String permName = pkg.requestedPermissions[permNum]; in pullDangerousPermissionState()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStackSupervisor.java | 1196 if (!ArrayUtils.contains(packageInfo.requestedPermissions, permission)) { in getActionRestrictionForCallingPackage()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 6545 packageInfo.requestedPermissions = new String[] { in buildPackageInfo() 6550 packageInfo.requestedPermissions = new String[0]; in buildPackageInfo()
|
/frameworks/opt/setupwizard/tools/docs/ |
D | android-22.txt | 8563 field public java.lang.String[] requestedPermissions;
|
/frameworks/base/api/ |
D | current.txt | 11381 field public String[] requestedPermissions;
|