Home
last modified time | relevance | path

Searched refs:requestedPermissions (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DInstantAppInfo.java46 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()
DPackageInfo.java208 public String[] requestedPermissions; field in PackageInfo
465 dest.writeStringArray(requestedPermissions); in writeToParcel()
529 requestedPermissions = source.createStringArray(); in PackageInfo()
DPackageParser.java794 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/
DPermissionMonitor.java115 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/
DDefaultPermissionGrantPolicy.java304 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 …]
DPermissionManagerService.java782 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 …]
DBasePermission.java423 int index = pkg.requestedPermissions.indexOf(name); in enforceDeclaredUsedAndRuntimeOrDevelopment()
/frameworks/base/services/core/java/com/android/server/timezone/
DPackageTrackerHelperImpl.java96 if (packageInfo.requestedPermissions == null) { in usesPermission()
99 for (String requestedPermission : packageInfo.requestedPermissions) { in usesPermission()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java264 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/
DInstantAppRegistry.java853 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()
DSettings.java950 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()
DLauncherAppsService.java459 if (ArrayUtils.isEmpty(pkg.requestedPermissions)) { in hasComponentsAndRequestsPermissions()
DPackageManagerService.java1502 ? 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/
DPackageParserTest.java477 parent.requestedPermissions); in testMultiPackageComponents()
485 firstChild.requestedPermissions); in testMultiPackageComponents()
496 secondChild.requestedPermissions); in testMultiPackageComponents()
DPackageManagerTests.java662 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/
DPackageParserTest.java169 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/
DCompanionDeviceManagerService.java474 if (containsEither(packageInfo.requestedPermissions,
486 if (containsEither(packageInfo.requestedPermissions,
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java720 if (pkg.requestedPermissions == null) { in addPackage()
724 for (String permission : pkg.requestedPermissions) { in addPackage()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DPermissionMonitorTest.java175 packageInfo.requestedPermissions = permissions; in packageInfoWithPermissions()
236 app.requestedPermissions = null; in testHasPermission()
/frameworks/base/services/core/java/com/android/server/stats/
DStatsCompanionService.java1991 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/
DActivityStackSupervisor.java1196 if (!ArrayUtils.contains(packageInfo.requestedPermissions, permission)) { in getActionRestrictionForCallingPackage()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java6545 packageInfo.requestedPermissions = new String[] { in buildPackageInfo()
6550 packageInfo.requestedPermissions = new String[0]; in buildPackageInfo()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8563 field public java.lang.String[] requestedPermissions;
/frameworks/base/api/
Dcurrent.txt11381 field public String[] requestedPermissions;