Home
last modified time | relevance | path

Searched refs:getRequestedPermissions (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DUnarchiveActivity.java78 boolean hasRequestInstallPermission = Arrays.asList(getRequestedPermissions(callingPackage)) in onCreate()
127 private String[] getRequestedPermissions(String callingPackage) { in getRequestedPermissions() method in UnarchiveActivity
/frameworks/base/core/java/android/content/pm/
DInstantAppInfo.java114 public @Nullable String[] getRequestedPermissions() { in getRequestedPermissions() method in InstantAppInfo
/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermissionManagerServiceImpl.java830 if (pkg.getRequestedPermissions().contains(permName)) { in updatePermissionFlagsInternal()
841 && sharedUserPkg.getRequestedPermissions().contains(permName)) { in updatePermissionFlagsInternal()
1156 for (final String permissionName : pkg.getRequestedPermissions()) { in getAllowlistedRestrictedPermissionsInternal()
1424 || pkg.getRequestedPermissions().contains(permName))) { in grantRuntimePermissionInternal()
1611 || pkg.getRequestedPermissions().contains(permName))) { in revokeRuntimePermissionInternal()
1785 for (final String permName : pkg.getRequestedPermissions()) { in resetRuntimePermissionsInternal()
1812 && sharedPkg.getRequestedPermissions().contains(permName)) { in resetRuntimePermissionsInternal()
2086 for (final String permName : newPackage.getRequestedPermissions()) { in revokeStoragePermissionsIfScopeExpandedInternal()
2136 || !newPackage.getRequestedPermissions()
2428 for (final String permissionName : pkg.getRequestedPermissions()) {
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPackageParserTest.java262 assertSame(deserialized.getRequestedPermissions().iterator().next(), in test_stringInterning()
263 deserialized2.getRequestedPermissions().iterator().next()); in test_stringInterning()
746 .that(pkg.getRequestedPermissions()).containsNoneIn(compatPermissions); in testParseModernPackageHasNoCompatPermissions()
771 .allMatch(pkg.getRequestedPermissions()::contains)) in testParseLegacyPackageHasCompatPermissions()
988 assertEquals(a.getRequestedPermissions(), b.getRequestedPermissions()); in assertPackagesEqual()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppRegistry.java974 String[] requestedPermissions = new String[pkg.getRequestedPermissions().size()];
975 pkg.getRequestedPermissions().toArray(requestedPermissions);
1032 if (propagatePermission && pkg.getRequestedPermissions().contains(
1265 for (String permission : instantApp.getRequestedPermissions()) {
DAppsFilterUtils.java54 return pkg.getRequestedPermissions().contains( in requestsQueryAllPackages()
DScanPackageUtils.java433 parsedPackage.setFactoryTest(isUnderFactoryTest && parsedPackage.getRequestedPermissions() in scanPackageOnlyLI()
DInstallPackageHelper.java753 new ArrayList<>(pkgSetting.getPkg().getRequestedPermissions())); in installExistingPackageAsUser()
2466 for (var permissionName : pkg.getRequestedPermissions()) { in updateSettingsInternalLI()
2483 ? new ArrayList<>(pkg.getRequestedPermissions()) in updateSettingsInternalLI()
DPackageArchiver.java790 boolean hasRequestInstallPackages = callerPs.getAndroidPackage().getRequestedPermissions() in requestUnarchive()
DSettings.java5336 && pkg.getRequestedPermissions() != null
5337 && pkg.getRequestedPermissions().size() > 0) {
5338 final Set<String> perms = pkg.getRequestedPermissions();
DLauncherAppsService.java776 return !ArrayUtils.isEmpty(pkg.getRequestedPermissions()); in requestsPermissions()
DComputerEngine.java1518 || ArrayUtils.isEmpty(p.getRequestedPermissions())) ? Collections.emptySet() in generatePackageInfo()
3928 if (!pkg.getRequestedPermissions().contains( in canRequestPackageInstalls()
/frameworks/base/core/java/com/android/server/pm/pkg/
DAndroidPackage.java1133 Set<String> getRequestedPermissions(); in getRequestedPermissions() method
/frameworks/base/services/core/java/com/android/server/policy/role/
DRoleServicePlatformHelperImpl.java320 final Set<String> requestedPermissions = pkg.getRequestedPermissions(); in computePackageStateHash()
/frameworks/base/core/java/com/android/internal/pm/pkg/parsing/
DParsingPackage.java473 Set<String> getRequestedPermissions(); in getRequestedPermissions() method
DParsingPackageUtils.java3092 if (!pkg.getRequestedPermissions().contains(info.getName())) {
3102 Set<String> requestedPermissions = pkg.getRequestedPermissions();
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DPackageArchiverTest.java169 when(androidPackage.getRequestedPermissions()).thenReturn(Set.of()); in setUp()
/frameworks/base/services/core/java/com/android/server/policy/
DPermissionPolicyService.java1424 if (!pkg.getRequestedPermissions().contains(POST_NOTIFICATIONS) in shouldForceShowNotificationPermissionRequest()
/frameworks/base/core/java/com/android/internal/pm/parsing/pkg/
DPackageImpl.java1249 public Set<String> getRequestedPermissions() { in getRequestedPermissions() method in PackageImpl
/frameworks/base/core/api/
Dsystem-current.txt4049 method @Nullable public String[] getRequestedPermissions();