Searched refs:permissionInfo (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionInfoTest.java | 40 PermissionInfo permissionInfo = pm.getPermissionInfo(PERMISSION_NAME, 0); in testPermissionInfo() local 41 PermissionInfo infoFromExisted = new PermissionInfo(permissionInfo); in testPermissionInfo() 42 checkInfoSame(permissionInfo, infoFromExisted); in testPermissionInfo() 45 assertNotNull(permissionInfo.toString()); in testPermissionInfo() 46 assertEquals(0, permissionInfo.describeContents()); in testPermissionInfo() 47 assertEquals(DEFAULT_DISCPRIPTION, permissionInfo.loadDescription(pm)); in testPermissionInfo() 49 permissionInfo.writeToParcel(p, 0); in testPermissionInfo() 52 checkInfoSame(permissionInfo, infoFromParcel); in testPermissionInfo()
|
D | PackageManagerTest.java | 776 PermissionInfo permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() local 777 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 778 assertEquals(PermissionInfo.PROTECTION_NORMAL, permissionInfo.getProtection()); in testGetPermissionInfo() 782 permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 783 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 784 assertEquals(PermissionInfo.PROTECTION_DANGEROUS, permissionInfo.getProtection()); in testGetPermissionInfo() 785 assertNotNull(permissionInfo.group); in testGetPermissionInfo() 789 permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 790 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 791 assertEquals(PermissionInfo.PROTECTION_SIGNATURE, permissionInfo.getProtection()); in testGetPermissionInfo() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/PermissionPolicy25/src/com/android/cts/permission/policy/ |
D | PermissionPolicyTest25.java | 43 PermissionInfo permissionInfo = context.getPackageManager() in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() local 45 final int protectionLevel = permissionInfo.protectionLevel in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 49 final int protectionFlags = permissionInfo.protectionLevel & ~protectionLevel; in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 52 + protectionFlagsToString(permissionInfo.protectionLevel) in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 53 + " to a normal protection permission: " + permissionInfo.name; in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 57 + protectionFlagsToString(permissionInfo.protectionLevel) in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions() 58 + " to a dangerous protection permission: " + permissionInfo.name; in testNoProtectionFlagsAddedToNonSignatureProtectionPermissions()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | PermissionControllerTest.java | 367 for (RuntimePermissionPresentationInfo permissionInfo : permissionInfos) { in assertRuntimePermissionLabelsAreValid() 368 CharSequence permissionGroupLabel = permissionInfo.getLabel(); in assertRuntimePermissionLabelsAreValid() 372 if (permissionInfo.isStandard()) { in assertRuntimePermissionLabelsAreValid() 377 if (permissionInfo.isGranted()) { in assertRuntimePermissionLabelsAreValid()
|
/cts/tests/tests/role/src/android/app/role/cts/ |
D | RoleManagerTest.java | 546 PermissionInfo permissionInfo = sPackageManager.getPermissionInfo( in manageRoleFromsFromControllerPermissionShouldBeDeclaredByPermissionController() local 549 assertThat(permissionInfo.packageName).isEqualTo( in manageRoleFromsFromControllerPermissionShouldBeDeclaredByPermissionController() 551 assertThat(permissionInfo.getProtection()).isEqualTo(PermissionInfo.PROTECTION_SIGNATURE); in manageRoleFromsFromControllerPermissionShouldBeDeclaredByPermissionController() 552 assertThat(permissionInfo.getProtectionFlags()).isEqualTo(0); in manageRoleFromsFromControllerPermissionShouldBeDeclaredByPermissionController()
|
/cts/tests/tests/permission2/src/android/permission2/cts/ |
D | RestrictedPermissionsTest.java | 1021 final PermissionInfo permissionInfo = packageManager.getPermissionInfo( in assertAllRestrictedPermissionGranted() local 1023 if ((permissionInfo.flags & PermissionInfo.FLAG_HARD_RESTRICTED) != 0) { in assertAllRestrictedPermissionGranted() 1044 final PermissionInfo permissionInfo = packageManager.getPermissionInfo( in assertRestrictedPermissionGranted() local 1046 if ((permissionInfo.flags & PermissionInfo.FLAG_HARD_RESTRICTED) != 0 in assertRestrictedPermissionGranted() 1047 || (permissionInfo.flags & PermissionInfo.FLAG_SOFT_RESTRICTED) != 0) { in assertRestrictedPermissionGranted()
|
D | PermissionPolicyTest.java | 246 ExpectedPermissionInfo permissionInfo = new ExpectedPermissionInfo( in loadExpectedPermissions() local 254 permissions.add(permissionInfo); in loadExpectedPermissions()
|