Searched refs:declaredPermission (Results 1 – 3 of 3) sorted by relevance
120 PermissionInfo declaredPermission = declaredPermissionsMap.get(expectedPermissionName); in platformPermissionPolicyIsUnaltered() local121 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 …]
42 for (PermissionInfo declaredPermission : platformPackage.permissions) { in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()44 .getPermissionInfo(declaredPermission.name, 0); in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()
670 PermissionInfo declaredPermission = (PermissionInfo) findPackageItemOrFail( in assertTestPackageInfo() local672 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()