Searched refs:isPermissionGranted (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/permission/src/android/permission/cts/ |
D | SharedUidPermissionsTest.java | 23 import static android.permission.cts.PermissionUtils.isPermissionGranted; 67 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS)).isTrue(); in packageGainsRuntimePermissionsWhenJoiningSharedUid() 68 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS)).isTrue(); in packageGainsRuntimePermissionsWhenJoiningSharedUid() 76 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, INTERNET)).isTrue(); in packageGainsNormalPermissionsWhenJoiningSharedUid() 77 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, INTERNET)).isTrue(); in packageGainsNormalPermissionsWhenJoiningSharedUid() 86 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS)).isTrue(); in grantingRuntimePermissionAffectsAllPackageInSharedUid() 87 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS)).isTrue(); in grantingRuntimePermissionAffectsAllPackageInSharedUid() 97 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS)).isFalse(); in revokingRuntimePermissionAffectsAllPackageInSharedUid() 98 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_NO_PERMISSIONS, READ_CONTACTS)).isFalse(); in revokingRuntimePermissionAffectsAllPackageInSharedUid() 109 assertThat(isPermissionGranted(PKG_THAT_REQUESTS_PERMISSIONS, READ_CONTACTS)).isFalse(); in runtimePermissionsCanBeRevokedOnPackageThatDoesNotDeclarePermission() [all …]
|
D | PermissionControllerTest.java | 35 import static android.permission.cts.PermissionUtils.isPermissionGranted; 175 if (isPermissionGranted(app, permission)) { in assertRuntimePermissionLabelsAreValid() 452 assertThat(isPermissionGranted(APP2, CUSTOM_PERMISSION)).isEqualTo(false); in revokePermissionCustom()
|
/cts/tests/tests/permission/permissionTestUtilLib/src/android/permission/cts/ |
D | PermissionUtils.java | 149 public static boolean isPermissionGranted(@NonNull String packageName, in isPermissionGranted() method in PermissionUtils 170 if (!isPermissionGranted(packageName, permission)) { in isGranted() 201 if (isPermissionGranted(packageName, ACCESS_COARSE_LOCATION)) { in grantPermission() 208 if (isPermissionGranted(packageName, ACCESS_BACKGROUND_LOCATION)) { in grantPermission()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 23 import static android.permission.cts.PermissionUtils.isPermissionGranted; 526 if (isPermissionGranted(PKG, Manifest.permission.ACCESS_FINE_LOCATION)) { in assertRestrictedPermissionWhitelisted() 528 && isPermissionGranted(PKG, permission)) { in assertRestrictedPermissionWhitelisted() 543 if (!isPermissionGranted(PKG, permission)) { in assertRestrictedPermissionWhitelisted()
|
D | RestrictedStoragePermissionTest.java | 20 import static android.permission.cts.PermissionUtils.isPermissionGranted; 297 assertThat(isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)) in cannotGrantStorageTargetingSdk22NotWhitelisted() 313 assertThat(isPermissionGranted(PKG, Manifest.permission.READ_EXTERNAL_STORAGE)) in cannotGrantStorageTargetingSdk22OptInNotWhitelisted()
|