Home
last modified time | relevance | path

Searched refs:requestedPermissions (Results 1 – 23 of 23) 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) { in hasPermission()
229 for (String p : app.requestedPermissions) { in hasPermission()
461 private static int getNetdPermissionMask(String[] requestedPermissions, in getNetdPermissionMask() argument
464 if (requestedPermissions == null || requestedPermissionsFlags == null) return permissions; in getNetdPermissionMask()
465 for (int i = 0; i < requestedPermissions.length; i++) { in getNetdPermissionMask()
466 if (requestedPermissions[i].equals(INTERNET) in getNetdPermissionMask()
470 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.java781 N = pkg.requestedPermissions.size(); in removeAllPermissions()
784 String perm = pkg.requestedPermissions.get(i); in removeAllPermissions()
928 final int N = pkg.requestedPermissions.size(); in restorePermissionState()
930 final String permName = pkg.requestedPermissions.get(i); in restorePermissionState()
1514 pkg.requestedPermissions.contains(READ_EXTERNAL_STORAGE) in checkIfLegacyStorageOpsNeedToBeUpdated()
1515 || pkg.requestedPermissions.contains(WRITE_EXTERNAL_STORAGE))) { in checkIfLegacyStorageOpsNeedToBeUpdated()
1935 final int permCount = pkg.requestedPermissions.size(); in isPackageRequestingPermission()
1937 String requestedPermission = pkg.requestedPermissions.get(j); in isPackageRequestingPermission()
1951 if (pkg.requestedPermissions == null) { in grantRuntimePermissionsGrantedToDisabledPackageLocked()
1963 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()
4712 && ps.pkg.requestedPermissions != null in dumpPackageLPr()
4713 && ps.pkg.requestedPermissions.size() > 0) { in dumpPackageLPr()
4714 final ArrayList<String> perms = ps.pkg.requestedPermissions; in dumpPackageLPr()
DLauncherAppsService.java459 if (ArrayUtils.isEmpty(pkg.requestedPermissions)) { in hasComponentsAndRequestsPermissions()
DPackageManagerService.java1509 ? parentRes.pkg.requestedPermissions in doHandleMessage()
4092 final Set<String> permissions = ArrayUtils.isEmpty(p.requestedPermissions) in generatePackageInfo()
8597 pi.requestedPermissions = permissions;
8599 pi.requestedPermissions = new String[numMatch];
8603 pi.requestedPermissions[numMatch] = permissions[i];
11467 if (isUnderFactoryTest && pkg.requestedPermissions.contains(
13551 whiteListedPermissions = pkgSetting.pkg.requestedPermissions;
19873 final int permissionCount = ps.pkg.requestedPermissions.size();
19875 final String permName = ps.pkg.requestedPermissions.get(i);
19893 && 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.java171 packageInfo.requestedPermissions = permissions; in packageInfoWithPermissions()
/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.java6531 packageInfo.requestedPermissions = new String[0]; in buildPackageInfo()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-28.jarMETA-INF/ META-INF/MANIFEST.MF javax/ javax/net/ javax/ ...