Searched refs:permissionInfo (Results 1 – 7 of 7) sorted by relevance
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PermissionInfoTest.java | 46 PermissionInfo permissionInfo = pm.getPermissionInfo(PERMISSION_NAME, 0); in testPermissionInfo() local 47 permissionInfo.knownCerts = TEST_CERTS; in testPermissionInfo() 48 PermissionInfo infoFromExisted = new PermissionInfo(permissionInfo); in testPermissionInfo() 49 checkInfoSame(permissionInfo, infoFromExisted); in testPermissionInfo() 52 assertNotNull(permissionInfo.toString()); in testPermissionInfo() 53 assertEquals(0, permissionInfo.describeContents()); in testPermissionInfo() 54 assertEquals(DEFAULT_DISCPRIPTION, permissionInfo.loadDescription(pm)); in testPermissionInfo() 56 permissionInfo.writeToParcel(p, 0); in testPermissionInfo() 59 checkInfoSame(permissionInfo, infoFromParcel); in testPermissionInfo()
|
D | PermissionMaxSdkVersionCreateTest.java | 46 PermissionInfo permissionInfo = mPm.getPermissionInfo(NO_MAX_SDK, 0); in testPermissionNoMaxSdkVersionCreated() local 47 assertEquals(permissionInfo.name, NO_MAX_SDK); in testPermissionNoMaxSdkVersionCreated() 56 PermissionInfo permissionInfo = mPm.getPermissionInfo(CURRENT_MAX_SDK, 0); in testPermissionCurrentMaxSdkVersionCreated() local 57 assertEquals(permissionInfo.name, CURRENT_MAX_SDK); in testPermissionCurrentMaxSdkVersionCreated() 66 PermissionInfo permissionInfo = mPm.getPermissionInfo(MAX_SDK_CREATE, 0); in testPermissionMaxSdkVersionCreated() local 67 assertEquals(permissionInfo.name, MAX_SDK_CREATE); in testPermissionMaxSdkVersionCreated()
|
D | PackageManagerTest.java | 1278 PermissionInfo permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() local 1279 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 1280 assertEquals(PermissionInfo.PROTECTION_NORMAL, permissionInfo.getProtection()); in testGetPermissionInfo() 1284 permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 1285 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 1286 assertEquals(PermissionInfo.PROTECTION_DANGEROUS, permissionInfo.getProtection()); in testGetPermissionInfo() 1287 assertNotNull(permissionInfo.group); in testGetPermissionInfo() 1291 permissionInfo = mPackageManager.getPermissionInfo(permissionName, 0); in testGetPermissionInfo() 1292 assertEquals(permissionName, permissionInfo.name); in testGetPermissionInfo() 1293 assertEquals(PermissionInfo.PROTECTION_SIGNATURE, permissionInfo.getProtection()); in testGetPermissionInfo() [all …]
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | PermissionUtils.java | 244 public static boolean isPrivilegedPerm(PermissionInfo permissionInfo) { in isPrivilegedPerm() argument 245 return permissionInfo != null in isPrivilegedPerm() 246 && ((permissionInfo.getProtection() & PermissionInfo.PROTECTION_SIGNATURE) != 0) in isPrivilegedPerm() 247 && ((permissionInfo.getProtectionFlags() in isPrivilegedPerm() 278 PermissionInfo permissionInfo = pm.getPermissionInfo( in isPkgHasPrivilegedPermGranted() local 280 if (permissionInfo != null) { in isPkgHasPrivilegedPermGranted() 281 return isPrivilegedPerm(permissionInfo); in isPkgHasPrivilegedPermGranted()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | DynamicPermissionsTest.kt | 69 val permissionInfo = PermissionInfo().apply { in testRemovePermission_dynamicPermission_permissionRemoved() constant 74 packageManager.addPermission(permissionInfo) in testRemovePermission_dynamicPermission_permissionRemoved()
|
/cts/tests/tests/appop/src/android/app/appops/cts/ |
D | AppOpDefinitionTest.kt | 40 val permissionInfo = context.packageManager.getPermissionInfo(permission, 0) in ensureRuntimeAppOpMappingIsCorrect() constant 41 val isAppOp = (permissionInfo.protectionLevel and PROTECTION_FLAG_APPOP) != 0 in ensureRuntimeAppOpMappingIsCorrect() 42 val isRuntime = permissionInfo.protection == PROTECTION_DANGEROUS in ensureRuntimeAppOpMappingIsCorrect()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/packages/ |
D | Package.java | 453 PermissionInfo permissionInfo = in checkCanGrantOrRevokePermission() local 456 if (!protectionIsDangerous(permissionInfo.protectionLevel) in checkCanGrantOrRevokePermission() 457 && !protectionIsDevelopment(permissionInfo.protectionLevel)) { in checkCanGrantOrRevokePermission() 459 + permission + ", protection level is " + permissionInfo.protectionLevel + in checkCanGrantOrRevokePermission()
|