Searched refs:protectionLevel (Results 1 – 10 of 10) sorted by relevance
43 PermissionInfo.PROTECTION_NORMAL, (stealAudio1Permission1.protectionLevel in testCannotEscalateNonRuntimePermissionsToRuntime()50 PermissionInfo.PROTECTION_SIGNATURE, (stealAudio1Permission2.protectionLevel in testCannotEscalateNonRuntimePermissionsToRuntime()64 PermissionInfo.PROTECTION_DANGEROUS, (stealAudio1Permission1.protectionLevel in testRuntimePermissionsAreNotGranted()75 PermissionInfo.PROTECTION_DANGEROUS, (stealAudio1Permission2.protectionLevel in testRuntimePermissionsAreNotGranted()
67 assertEquals(expected.protectionLevel, actual.protectionLevel); in checkInfoSame()
1171 assertEquals(PermissionInfo.PROTECTION_NORMAL, declaredPermission.protectionLevel); in assertTestPackageInfo()1336 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in testAddPermission_cantAddOutsideRoot()1353 permissionInfo.protectionLevel = PermissionInfo.PROTECTION_NORMAL; in testAddPermission()1363 assertEquals(PermissionInfo.PROTECTION_NORMAL, savedInfo.protectionLevel); in testAddPermission()
467 String protectionLevel = "Permission not found";469 protectionLevel = Integer.toString(sPackageManager.getPermissionInfo(470 permission, /* flags= */ 0).protectionLevel);489 + protectionLevel543 if ((p.protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) > 0) {546 return (p.protectionLevel & PermissionInfo.PROTECTION_DANGEROUS) > 0;
39 protectionLevel = PermissionInfo.PROTECTION_NORMAL in <lambda>()
72 protectionLevel = PermissionInfo.PROTECTION_NORMAL in testRemovePermission_dynamicPermission_permissionRemoved()
456 if (!protectionIsDangerous(permissionInfo.protectionLevel) in checkCanGrantOrRevokePermission()457 && !protectionIsDevelopment(permissionInfo.protectionLevel)) { in checkCanGrantOrRevokePermission()459 + permission + ", protection level is " + permissionInfo.protectionLevel + in checkCanGrantOrRevokePermission()473 private boolean protectionIsDangerous(int protectionLevel) { in protectionIsDangerous() argument474 return (protectionLevel & PROTECTION_DANGEROUS) != 0; in protectionIsDangerous()477 private boolean protectionIsDevelopment(int protectionLevel) { in protectionIsDevelopment() argument478 return (protectionLevel & PROTECTION_FLAG_DEVELOPMENT) != 0; in protectionIsDevelopment()
305 pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()307 pi.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()
41 val isAppOp = (permissionInfo.protectionLevel and PROTECTION_FLAG_APPOP) != 0 in ensureRuntimeAppOpMappingIsCorrect()
1346 field public static final int protectionLevel = 16842761; // 0x101000913436 field @Deprecated public int protectionLevel;