Home
last modified time | relevance | path

Searched refs:protectionLevel (Results 1 – 4 of 4) sorted by relevance

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DLegacyManifestParserTest.java34 int protectionLevel = in createPackage_signatureOrPrivileged_shouldParseCorrectFlags() local
36 .protectionLevel; in createPackage_signatureOrPrivileged_shouldParseCorrectFlags()
37 assertThat(protectionLevel) in createPackage_signatureOrPrivileged_shouldParseCorrectFlags()
44 int protectionLevel = in createPackage_protectionLevelNotDeclated_shouldParseToNormal() local
46 .protectionLevel; in createPackage_protectionLevelNotDeclated_shouldParseToNormal()
47 assertThat(protectionLevel).isEqualTo(PermissionInfo.PROTECTION_NORMAL); in createPackage_protectionLevelNotDeclated_shouldParseToNormal()
53 int protectionLevel = in createPackage_protectionLevelVendorOrOem_shouldParseCorrectFlags() local
55 .protectionLevel; in createPackage_protectionLevelVendorOrOem_shouldParseCorrectFlags()
56 assertThat(protectionLevel) in createPackage_protectionLevelVendorOrOem_shouldParseCorrectFlags()
64 int protectionLevel = in createPackage_protectionLevelDangerous_shouldParseCorrectFlags() local
[all …]
DShadowPackageManagerTest.java432 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()
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/
DPermissionItemData.java11 private final String protectionLevel; field in PermissionItemData
14 String permissionGroup, String protectionLevel, MetaData metaData) { in PermissionItemData() argument
20 this.protectionLevel = protectionLevel; in PermissionItemData()
36 return protectionLevel; in getProtectionLevel()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DLegacyManifestParser.java422 permissionInfo.protectionLevel = decodeProtectionLevel(itemData.getProtectionLevel()); in createPermissionInfo()
478 private static int decodeProtectionLevel(String protectionLevel) { in decodeProtectionLevel() argument
479 if (protectionLevel == null) { in decodeProtectionLevel()
484 String[] levels = protectionLevel.split("\\|", 0); in decodeProtectionLevel()
543 throw new IllegalArgumentException("unknown protection level " + protectionLevel); in decodeProtectionLevel()