Home
last modified time | relevance | path

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

/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DPermissionUtils.java121 return appInfo.requestedPermissions == null in getPermissions()
123 : Arrays.asList(appInfo.requestedPermissions); in getPermissions()
261 if (pkgInfo.requestedPermissions == null || pkgInfo.requestedPermissionsFlags == null) { in isPkgHasPrivilegedPermGranted()
270 pkgInfo.requestedPermissions.length, in isPkgHasPrivilegedPermGranted()
272 pkgInfo.requestedPermissions.length, in isPkgHasPrivilegedPermGranted()
274 for (int i = 0; i < pkgInfo.requestedPermissions.length; i++) { in isPkgHasPrivilegedPermGranted()
279 pkgInfo.requestedPermissions[i], 0); in isPkgHasPrivilegedPermGranted()
285 pkgInfo.requestedPermissions[i]), e); in isPkgHasPrivilegedPermGranted()
DBaseDefaultPermissionGrantPolicyTest.java246 if (packageInfo.requestedPermissions == null) { in getMsdkTargetingPackagesUsingRuntimePerms()
252 for (String requestedPermission : packageInfo.requestedPermissions) { in getMsdkTargetingPackagesUsingRuntimePerms()
387 List<String> requestedPermissions = Arrays.asList(packageInfo.requestedPermissions); in addException() local
391 if (!requestedPermissions.contains(permission)) { in addException()
491 for (String permission : pkg.requestedPermissions) { in addSplitFromNonDangerousPermissions()
543 for (String perm: pkg.requestedPermissions) { in addImplicitlyGrantedPermission()
576 for (String requestedPermission : packageInfo.requestedPermissions) { in appendPackagePregrantedPerms()
607 List<String> requestedPermissions = new ArrayList<>( in checkDefaultGrantsInCorrectState() local
608 Arrays.asList(packageInfo.requestedPermissions)); in checkDefaultGrantsInCorrectState()
614 if (!requestedPermissions.contains(permission)) { in checkDefaultGrantsInCorrectState()
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DAdbPackage.java66 if (packageInfo.requestedPermissions != null) { in AdbPackage()
67 mRequestedPermissions.addAll(Arrays.asList(packageInfo.requestedPermissions)); in AdbPackage()
101 public Set<String> requestedPermissions() { in requestedPermissions() method in AdbPackage
DProcessReference.java115 Set<String> permissions = mPackage.requestedPermissions(); in getGrantablePermission()
DPackage.java464 if (!requestedPermissions().contains(permission)) { in checkCanGrantOrRevokePermission()
568 public Set<String> requestedPermissions() { in requestedPermissions() method in Package
580 if (packageInfo.requestedPermissions == null) { in requestedPermissions()
584 return new HashSet<>(Arrays.asList(packageInfo.requestedPermissions)); in requestedPermissions()
648 packageInfo.requestedPermissions = pkg.requestedPermissions().toArray(new String[]{}); in packageInfoForUserPreS()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/services/
DCtsMainVoiceInteractionService.java55 List<String> requestedPermissions = new ArrayList<String>( in createAlwaysOnHotwordDetector() local
61 }, requestedPermissions.toArray(new String[0]))); in createAlwaysOnHotwordDetector()
DCtsBasicVoiceInteractionService.java1062 List<String> requestedPermissions = new ArrayList<String>(Arrays.asList(permissions));
1067 requestedPermissions.toArray(new String[0]));
1080 List<String> requestedPermissions = new ArrayList<String>(Arrays.asList(permissions));
1085 requestedPermissions.toArray(new String[0]));
/cts/tests/tests/security/src/android/security/cts/
DCVE_2021_0922.java56 for (int i = 0; i < packageInfo.requestedPermissions.length; ++i) { in testPocCVE_2021_0922()
59 String permission = packageInfo.requestedPermissions[i]; in testPocCVE_2021_0922()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java191 if (pkg.requestedPermissions != null && pkg.requestedPermissions.length > 0) { in collectRequestedPermissions()
192 for (String permission : pkg.requestedPermissions) { in collectRequestedPermissions()
269 if (info.requestedPermissions == null) { in sharesUidWithInstallerPackage()
273 for (String p : info.requestedPermissions) { in sharesUidWithInstallerPackage()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/
DUSBRestrictRecordAActivity.java111 if (packageInfo.requestedPermissions != null) { in hasRecordPermission()
112 for (String permission : packageInfo.requestedPermissions) { in hasRecordPermission()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java138 assertTrue(Arrays.equals(expected.requestedPermissions, actual.requestedPermissions)); in checkPkgInfoSame()
DPackageManagerTest.java1128 List<String> requestedPermissions = Arrays.asList(pkgInfo.requestedPermissions); in assertTestPackageInfo() local
1129 assertThat(requestedPermissions).containsAtLeast( in assertTestPackageInfo()
1137 for (int i = 0; i < pkgInfo.requestedPermissions.length; i++) { in assertTestPackageInfo()
1138 final String name = pkgInfo.requestedPermissions[i]; in assertTestPackageInfo()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40126/src/android/security/cts/CVE_2023_40126/
DDeviceTest.java81 if (Arrays.asList(info.requestedPermissions).contains(READ_EXTERNAL_STORAGE) in testPocCVE_2023_40126()
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissions.java110 mShellPermissions = sShellPackage.requestedPermissions();
114 mInstrumentedRequestedPermissions = sInstrumentedPackage.requestedPermissions();
495 + sInstrumentedPackage.requestedPermissions()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DSessionParamsPermissionStateTest.kt252 val permissionIndex = packageInfo.requestedPermissions!!.indexOfFirst { it == name } in <lambda>()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestListActivity.java103 mRequestedPermissions = packageInfo.requestedPermissions; in onCreate()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/
DClientTest.java1193 final int permissionIndex = Arrays.asList(packageInfo.requestedPermissions).indexOf( in isPermissionGrantedInPackageInfo()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt12624 field @Nullable public String[] requestedPermissions;