Searched refs:protectionLevel (Results 1 – 4 of 4) sorted by relevance
34 int protectionLevel = in createPackage_signatureOrPrivileged_shouldParseCorrectFlags() local36 .protectionLevel; in createPackage_signatureOrPrivileged_shouldParseCorrectFlags()37 assertThat(protectionLevel) in createPackage_signatureOrPrivileged_shouldParseCorrectFlags()44 int protectionLevel = in createPackage_protectionLevelNotDeclated_shouldParseToNormal() local46 .protectionLevel; in createPackage_protectionLevelNotDeclated_shouldParseToNormal()47 assertThat(protectionLevel).isEqualTo(PermissionInfo.PROTECTION_NORMAL); in createPackage_protectionLevelNotDeclated_shouldParseToNormal()53 int protectionLevel = in createPackage_protectionLevelVendorOrOem_shouldParseCorrectFlags() local55 .protectionLevel; in createPackage_protectionLevelVendorOrOem_shouldParseCorrectFlags()56 assertThat(protectionLevel) in createPackage_protectionLevelVendorOrOem_shouldParseCorrectFlags()64 int protectionLevel = in createPackage_protectionLevelDangerous_shouldParseCorrectFlags() local[all …]
432 assertThat(permission.protectionLevel).isEqualTo(PermissionInfo.PROTECTION_NORMAL); in getPermissionInfo_withMinimalFields()2152 assertThat(permission.protectionLevel).isEqualTo(PermissionInfo.PROTECTION_DANGEROUS); in getPermissionInfo_noMetaData()2170 assertThat(permission.protectionLevel).isEqualTo(PermissionInfo.PROTECTION_NORMAL); in getPermissionInfo_withLiteralLabel()
11 private final String protectionLevel; field in PermissionItemData14 String permissionGroup, String protectionLevel, MetaData metaData) { in PermissionItemData() argument20 this.protectionLevel = protectionLevel; in PermissionItemData()36 return protectionLevel; in getProtectionLevel()
422 permissionInfo.protectionLevel = decodeProtectionLevel(itemData.getProtectionLevel()); in createPermissionInfo()478 private static int decodeProtectionLevel(String protectionLevel) { in decodeProtectionLevel() argument479 if (protectionLevel == null) { in decodeProtectionLevel()484 String[] levels = protectionLevel.split("\\|", 0); in decodeProtectionLevel()543 throw new IllegalArgumentException("unknown protection level " + protectionLevel); in decodeProtectionLevel()