Searched refs:parsedPermission (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/ |
D | BasePermissionPolicyTest.kt | 98 val parsedPermission = invocation.getArgument<ParsedPermission>(0) in <lambda>() constant 100 PermissionInfo(parsedPermission.backgroundPermission).apply { in <lambda>() 101 name = parsedPermission.name in <lambda>() 102 packageName = parsedPermission.packageName in <lambda>() 104 parsedPermission.metaData in <lambda>() 109 protectionLevel = parsedPermission.protectionLevel in <lambda>() 110 group = parsedPermission.group in <lambda>() 111 flags = parsedPermission.flags in <lambda>() 150 val parsedPermission = if (isTree) { defaultPermissionTree } else { defaultPermission } in <lambda>() constant 152 parsedPermission, in <lambda>() [all …]
|
D | AppIdPermissionPolicyPermissionResetTest.kt | 61 val parsedPermission = mockParsedPermission( in testResetRuntimePermissions() constant 68 mockAndroidPackage(PACKAGE_NAME_0, permissions = listOf(parsedPermission)) in testResetRuntimePermissions() 81 addPermission(parsedPermission) in testResetRuntimePermissions()
|
D | AppIdPermissionPolicyPermissionDefinitionsTest.kt | 89 val parsedPermission = mockParsedPermission(PERMISSION_NAME_0, PACKAGE_NAME_1) in testAdoptPermissions() constant 97 permissions = listOf(parsedPermission) in testAdoptPermissions() 103 addPermission(parsedPermission) in testAdoptPermissions() 424 val parsedPermission = mockParsedPermission( in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked() constant 433 permissions = listOf(parsedPermission), in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked() 438 addPermission(parsedPermission) in testTrimPermissionStates_permissionsNoLongerRequested_getsFlagsRevoked() 560 val parsedPermission = mockParsedPermission( in testRevokePermissionsOnPackageUpdate() constant 575 permissions = listOf(parsedPermission) in testRevokePermissionsOnPackageUpdate() 580 addPermission(parsedPermission) in testRevokePermissionsOnPackageUpdate() 591 permissions = listOf(parsedPermission) in testRevokePermissionsOnPackageUpdate()
|
D | AppIdPermissionPolicyTest.kt | 36 val parsedPermission = mockParsedPermission(PERMISSION_NAME_0, PACKAGE_NAME_0) in testOnAppIdRemoved_appIdIsRemoved_permissionFlagsCleared() constant 39 mockAndroidPackage(PACKAGE_NAME_0, permissions = listOf(parsedPermission)) in testOnAppIdRemoved_appIdIsRemoved_permissionFlagsCleared() 47 addPermission(parsedPermission) in testOnAppIdRemoved_appIdIsRemoved_permissionFlagsCleared() 242 val parsedPermission = mockParsedPermission( in testOnPackageInstalled() constant 250 mockAndroidPackage(PACKAGE_NAME_0, permissions = listOf(parsedPermission)) in testOnPackageInstalled() 253 addPermission(parsedPermission) in testOnPackageInstalled()
|
D | AppIdPermissionPolicyPermissionStatesTest.kt | 815 val parsedPermission = mockParsedPermission( in testEvaluatePermissionState() constant 823 mockAndroidPackage(PACKAGE_NAME_0, permissions = listOf(parsedPermission)) in testEvaluatePermissionState() 844 addPermission(parsedPermission) in testEvaluatePermissionState()
|
/frameworks/base/core/java/com/android/internal/pm/pkg/component/ |
D | ParsedPermissionUtils.java | 314 final ParsedPermission parsedPermission = permissions.get(i); in declareDuplicatePermission() local 315 final String name = parsedPermission.getName(); in declareDuplicatePermission() 317 if (isMalformedDuplicate(parsedPermission, perm)) { in declareDuplicatePermission() 322 checkDuplicatePerm.put(name, parsedPermission); in declareDuplicatePermission()
|
/frameworks/base/services/core/java/com/android/server/pm/permission/ |
D | Permission.java | 205 public boolean isPermission(@NonNull ParsedPermission parsedPermission) { in isPermission() argument 209 return Objects.equals(mPermissionInfo.packageName, parsedPermission.getPackageName()) in isPermission() 210 && Objects.equals(mPermissionInfo.name, parsedPermission.getName()); in isPermission()
|
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/ |
D | AppIdPermissionPolicy.kt | 457 androidPackage.permissions.forEachIndexed { _, parsedPermission -> in <lambda>() method 460 parsedPermission, in <lambda>() 465 if (parsedPermission.isTree) { in <lambda>() 561 if (!parsedPermission.isTree && packageState.isSystem) { in <lambda>() 582 if (parsedPermission.isTree) { in <lambda>()
|