Home
last modified time | relevance | path

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

/cts/hostsidetests/appsecurity/test-apps/EscalateToRuntimePermissions/src/com/android/cts/escalatepermission/
DPermissionEscalationTest.java43 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()
/cts/tests/tests/content/src/android/content/pm/cts/
DPermissionInfoTest.java67 assertEquals(expected.protectionLevel, actual.protectionLevel); in checkInfoSame()
DPackageManagerTest.java1171 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()
/cts/common/device-side/bedstead/modules/permissions/src/main/kotlin/com/android/bedstead/permissions/
DPermissions.java467 String protectionLevel = "Permission not found";
469 protectionLevel = Integer.toString(sPackageManager.getPermissionInfo(
470 permission, /* flags= */ 0).protectionLevel);
489 + protectionLevel
543 if ((p.protectionLevel & PermissionInfo.PROTECTION_FLAG_DEVELOPMENT) > 0) {
546 return (p.protectionLevel & PermissionInfo.PROTECTION_DANGEROUS) > 0;
/cts/tests/tests/security/src/android/security/cts/
DPermissionMemoryFootprintTest.kt39 protectionLevel = PermissionInfo.PROTECTION_NORMAL in <lambda>()
DDynamicPermissionsTest.kt72 protectionLevel = PermissionInfo.PROTECTION_NORMAL in testRemovePermission_dynamicPermission_permissionRemoved()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/
DPackage.java456 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() argument
474 return (protectionLevel & PROTECTION_DANGEROUS) != 0; in protectionIsDangerous()
477 private boolean protectionIsDevelopment(int protectionLevel) { in protectionIsDevelopment() argument
478 return (protectionLevel & PROTECTION_FLAG_DEVELOPMENT) != 0; in protectionIsDevelopment()
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DPackageDeviceInfo.java305 pi.protectionLevel & PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()
307 pi.protectionLevel & ~PermissionInfo.PROTECTION_MASK_BASE); in writePermissionsDetails()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpDefinitionTest.kt41 val isAppOp = (permissionInfo.protectionLevel and PROTECTION_FLAG_APPOP) != 0 in ensureRuntimeAppOpMappingIsCorrect()
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt1346 field public static final int protectionLevel = 16842761; // 0x1010009
13436 field @Deprecated public int protectionLevel;