Home
last modified time | relevance | path

Searched refs:declaredPermission (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/permission2/src/android/permission2/cts/
DPermissionPolicyTest.java120 PermissionInfo declaredPermission = declaredPermissionsMap.get(expectedPermissionName); in platformPermissionPolicyIsUnaltered() local
121 if (declaredPermission == null) { in platformPermissionPolicyIsUnaltered()
132 final int declaredProtection = declaredPermission.protectionLevel in platformPermissionPolicyIsUnaltered()
143 final int declaredFlags = (declaredPermission.flags & ~FLAG_INSTALLED); in platformPermissionPolicyIsUnaltered()
156 final int declaredProtectionFlags = declaredPermission.getProtectionFlags(); in platformPermissionPolicyIsUnaltered()
167 if ((declaredPermission.protectionLevel & PermissionInfo.PROTECTION_DANGEROUS) != 0) { in platformPermissionPolicyIsUnaltered()
168 if (!Objects.equals(expectedPermission.group, declaredPermission.group)) { in platformPermissionPolicyIsUnaltered()
172 + declaredPermission.group); in platformPermissionPolicyIsUnaltered()
175 if (declaredPermission.group != null in platformPermissionPolicyIsUnaltered()
176 && !declaredGroupsSet.contains(declaredPermission.group)) { in platformPermissionPolicyIsUnaltered()
[all …]
/cts/hostsidetests/appsecurity/test-apps/PermissionPolicy25/src/com/android/cts/permission/policy/
DPermissionPolicyTest25.java42 for (PermissionInfo declaredPermission : platformPackage.permissions) { in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()
44 .getPermissionInfo(declaredPermission.name, 0); in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java670 PermissionInfo declaredPermission = (PermissionInfo) findPackageItemOrFail( in assertTestPackageInfo() local
672 assertEquals("Call abroad", declaredPermission.loadLabel(mPackageManager)); in assertTestPackageInfo()
673 assertEquals(PERMISSIONGROUP_NAME, declaredPermission.group); in assertTestPackageInfo()
674 assertEquals(PermissionInfo.PROTECTION_NORMAL, declaredPermission.protectionLevel); in assertTestPackageInfo()