Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DInstantAppInfo.java44 String[] requestedPermissions, String[] grantedPermissions) { in InstantAppInfo() argument
48 mRequestedPermissions = requestedPermissions; in InstantAppInfo()
53 String[] requestedPermissions, String[] grantedPermissions) { in InstantAppInfo() argument
57 mRequestedPermissions = requestedPermissions; in InstantAppInfo()
DPackageInfo.java162 public String[] requestedPermissions; field in PackageInfo
320 dest.writeStringArray(requestedPermissions); in writeToParcel()
371 requestedPermissions = source.createStringArray(); in PackageInfo()
DPackageParser.java748 N = p.requestedPermissions.size(); in generatePackageInfo()
750 pi.requestedPermissions = new String[N]; in generatePackageInfo()
753 final String perm = p.requestedPermissions.get(i); in generatePackageInfo()
754 pi.requestedPermissions[i] = perm; in generatePackageInfo()
2517 if (!pkg.requestedPermissions.contains(npi.name)) { in parseBaseApkCommon()
2526 pkg.requestedPermissions.add(npi.name); in parseBaseApkCommon()
2538 || !pkg.requestedPermissions.contains(spi.rootPerm)) { in parseBaseApkCommon()
2543 if (!pkg.requestedPermissions.contains(perm)) { in parseBaseApkCommon()
2544 pkg.requestedPermissions.add(perm); in parseBaseApkCommon()
2867 int index = pkg.requestedPermissions.indexOf(name); in parseUsesPermission()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageManagerPresubmitTest.java85 if (ArrayUtils.isEmpty(packageInfo.requestedPermissions)) { in testPackagePrivAppPermission()
88 for (int i = 0; i < packageInfo.requestedPermissions.length; i++) { in testPackagePrivAppPermission()
89 String pName = packageInfo.requestedPermissions[i]; in testPackagePrivAppPermission()
DPackageParserTest.java159 assertSame(deserialized.requestedPermissions.get(0), in test_stringInterning()
160 deserialized2.requestedPermissions.get(0)); in test_stringInterning()
249 assertEquals(a.requestedPermissions, b.requestedPermissions); in assertPackagesEqual()
456 pkg.requestedPermissions.add("foo7"); in setKnownFields()
/frameworks/base/services/core/java/com/android/server/pm/
DDefaultPermissionGrantPolicy.java222 for (String permission : pkg.requestedPermissions) { in grantRuntimePermissionsForPackageLocked()
253 || pkg.requestedPermissions.isEmpty()) { in grantPermissionsToSysComponentsAndPrivApps()
924 if (pkg.requestedPermissions.isEmpty()) { in grantRuntimePermissionsLPw()
928 List<String> requestedPermissions = pkg.requestedPermissions; in grantRuntimePermissionsLPw() local
940 if (sysPs.pkg.requestedPermissions.isEmpty()) { in grantRuntimePermissionsLPw()
943 if (!requestedPermissions.equals(sysPs.pkg.requestedPermissions)) { in grantRuntimePermissionsLPw()
944 grantablePermissions = new ArraySet<>(requestedPermissions); in grantRuntimePermissionsLPw()
945 requestedPermissions = sysPs.pkg.requestedPermissions; in grantRuntimePermissionsLPw()
950 final int grantablePermissionCount = requestedPermissions.size(); in grantRuntimePermissionsLPw()
952 String permission = requestedPermissions.get(i); in grantRuntimePermissionsLPw()
DInstantAppRegistry.java778 String[] requestedPermissions = new String[pkg.requestedPermissions.size()]; in createInstantAppInfoForPackage() local
779 pkg.requestedPermissions.toArray(requestedPermissions); in createInstantAppInfoForPackage()
787 requestedPermissions, grantedPermissions); in createInstantAppInfoForPackage()
791 requestedPermissions, grantedPermissions); in createInstantAppInfoForPackage()
995 String[] requestedPermissions = new String[outRequestedPermissions.size()]; in parsePackage() local
996 outRequestedPermissions.toArray(requestedPermissions); in parsePackage()
1002 requestedPermissions, grantedPermissions); in parsePackage()
DSettings.java1071 for (String eachPerm : deletedPs.pkg.requestedPermissions) { in updateSharedUserPermsLPw()
1082 && pkg.pkg.requestedPermissions.contains(eachPerm)) { in updateSharedUserPermsLPw()
1098 for (String permission : disabledPs.pkg.requestedPermissions) { in updateSharedUserPermsLPw()
4824 && ps.pkg.requestedPermissions != null in dumpPackageLPr()
4825 && ps.pkg.requestedPermissions.size() > 0) { in dumpPackageLPr()
4826 final ArrayList<String> perms = ps.pkg.requestedPermissions; in dumpPackageLPr()
/frameworks/base/core/java/android/widget/
DAppSecurityPermissions.java289 if (info.requestedPermissions != null) { in AppSecurityPermissions()
348 String[] strList = info.requestedPermissions; in extractPerms()
362 && installedPkgInfo.requestedPermissions != null) { in extractPerms()
363 for (int j=0; j<installedPkgInfo.requestedPermissions.length; j++) { in extractPerms()
364 if (permName.equals(installedPkgInfo.requestedPermissions[j])) { in extractPerms()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPermissionMonitor.java154 if (app.requestedPermissions != null) { in hasPermission()
155 for (String p : app.requestedPermissions) { in hasPermission()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java443 if (containsEither(packageInfo.requestedPermissions,
455 if (containsEither(packageInfo.requestedPermissions,
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageManagerTests.java669 for (int j = 0; j < pkgInfo.requestedPermissions.length && !found; j++) { in assertPermissions()
670 if (pkgInfo.requestedPermissions[j].equals(cmd)) { in assertPermissions()
/frameworks/base/services/core/java/com/android/server/am/
DActivityStackSupervisor.java1798 if (!ArrayUtils.contains(packageInfo.requestedPermissions, permission)) { in getActionRestrictionForCallingPackage()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt8563 field public java.lang.String[] requestedPermissions;
/frameworks/base/api/
Dcurrent.txt10413 field public java.lang.String[] requestedPermissions;
Dsystem-current.txt11084 field public java.lang.String[] requestedPermissions;