/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PermissionUtils.java | 121 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()
|
D | BaseDefaultPermissionGrantPolicyTest.java | 246 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/ |
D | AdbPackage.java | 66 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
|
D | ProcessReference.java | 115 Set<String> permissions = mPackage.requestedPermissions(); in getGrantablePermission()
|
D | Package.java | 464 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/ |
D | CtsMainVoiceInteractionService.java | 55 List<String> requestedPermissions = new ArrayList<String>( in createAlwaysOnHotwordDetector() local 61 }, requestedPermissions.toArray(new String[0]))); in createAlwaysOnHotwordDetector()
|
D | CtsBasicVoiceInteractionService.java | 1062 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/ |
D | CVE_2021_0922.java | 56 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/ |
D | PackageDeviceInfo.java | 191 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/ |
D | USBRestrictRecordAActivity.java | 111 if (packageInfo.requestedPermissions != null) { in hasRecordPermission() 112 for (String permission : packageInfo.requestedPermissions) { in hasRecordPermission()
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInfoTest.java | 138 assertTrue(Arrays.equals(expected.requestedPermissions, actual.requestedPermissions)); in checkPkgInfoSame()
|
D | PackageManagerTest.java | 1128 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/ |
D | DeviceTest.java | 81 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/ |
D | Permissions.java | 110 mShellPermissions = sShellPackage.requestedPermissions(); 114 mInstrumentedRequestedPermissions = sInstrumentedPackage.requestedPermissions(); 495 + sInstrumentedPackage.requestedPermissions()
|
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
D | SessionParamsPermissionStateTest.kt | 252 val permissionIndex = packageInfo.requestedPermissions!!.indexOfFirst { it == name } in <lambda>()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestListActivity.java | 103 mRequestedPermissions = packageInfo.requestedPermissions; in onCreate()
|
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/EphemeralApp1/src/com/android/cts/ephemeralapp1/ |
D | ClientTest.java | 1193 final int permissionIndex = Arrays.asList(packageInfo.requestedPermissions).indexOf( in isPermissionGrantedInPackageInfo()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 12624 field @Nullable public String[] requestedPermissions;
|