Searched refs:protectionLevel (Results 1 – 8 of 8) sorted by relevance
45 final int protectionLevel = permissionInfo.protectionLevel in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() local49 final int protectionFlags = permissionInfo.protectionLevel & ~protectionLevel; in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()50 if (protectionLevel == PermissionInfo.PROTECTION_NORMAL && protectionFlags != 0) { in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()52 + protectionFlagsToString(permissionInfo.protectionLevel) in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()55 if (protectionLevel == PermissionInfo.PROTECTION_DANGEROUS && protectionFlags != 0) { in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()57 + protectionFlagsToString(permissionInfo.protectionLevel) in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()66 private static String protectionFlagsToString(int protectionLevel) { in protectionFlagsToString() argument68 if ((protectionLevel & PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY) != 0) { in protectionFlagsToString()70 protectionLevel &= ~PermissionInfo.PROTECTION_FLAG_RUNTIME_ONLY; in protectionFlagsToString()72 if ((protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0) { in protectionFlagsToString()[all …]
141 final int expectedProtection = expectedPermission.protectionLevel in platformPermissionPolicyIsUnaltered()143 final int declaredProtection = declaredPermission.protectionLevel in platformPermissionPolicyIsUnaltered()166 expectedPermission.protectionLevel & ~PROTECTION_MASK_BASE; in platformPermissionPolicyIsUnaltered()178 if ((declaredPermission.protectionLevel & PermissionInfo.PROTECTION_DANGEROUS) != 0) { in platformPermissionPolicyIsUnaltered()234 if ((info.protectionLevel & PermissionInfo.PROTECTION_FLAG_INSTANT) != 0) { in platformPermissionPolicyIsUnaltered()342 int protectionLevel = 0; in parseProtectionLevel() local347 protectionLevel |= PermissionInfo.PROTECTION_NORMAL; in parseProtectionLevel()350 protectionLevel |= PermissionInfo.PROTECTION_DANGEROUS; in parseProtectionLevel()353 protectionLevel |= PermissionInfo.PROTECTION_SIGNATURE; in parseProtectionLevel()356 protectionLevel |= PermissionInfo.PROTECTION_SIGNATURE; in parseProtectionLevel()[all …]
92 int protectionLevel = permission.protectionLevel; in privappPermissionsNeedToBeWhitelisted() local93 if ((protectionLevel & PermissionInfo.PROTECTION_FLAG_PRIVILEGED) != 0) { in privappPermissionsNeedToBeWhitelisted()
42 PermissionInfo.PROTECTION_NORMAL, (stealAudio1Permission1.protectionLevel in testCannotEscalateNonRuntimePermissionsToRuntime()49 PermissionInfo.PROTECTION_SIGNATURE, (stealAudio1Permission2.protectionLevel in testCannotEscalateNonRuntimePermissionsToRuntime()
60 assertEquals(expected.protectionLevel, actual.protectionLevel); in checkInfoSame()
674 assertEquals(PermissionInfo.PROTECTION_NORMAL, declaredPermission.protectionLevel); in assertTestPackageInfo()834 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in testAddPermission_cantAddOutsideRoot()851 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in testAddPermission()861 assertEquals(PermissionInfo.PROTECTION_NORMAL, savedInfo.protectionLevel); in testAddPermission()
207 pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()209 pi.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()
62 if ((info.protectionLevel & PermissionInfo.PROTECTION_DANGEROUS) == 0) { in onCreate()