Home
last modified time | relevance | path

Searched refs:permissionTree (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/permission/
DPermission.java370 @NonNull PermissionInfo permissionInfo, @NonNull Permission permissionTree) { in addToTree() argument
374 || mUid != permissionTree.mUid in addToTree()
376 permissionTree.mPermissionInfo.packageName) in addToTree()
379 mPermissionInfo.packageName = permissionTree.mPermissionInfo.packageName; in addToTree()
382 mUid = permissionTree.mUid; in addToTree()
504 final Permission permissionTree = Permission.findPermissionTree(permissionTrees, in enforcePermissionTree() local
506 if (permissionTree != null) { in enforcePermissionTree()
507 if (permissionTree.getUid() == UserHandle.getAppId(callingUid)) { in enforcePermissionTree()
508 return permissionTree; in enforcePermissionTree()
519 for (final Permission permissionTree : permissionTrees) { in findPermissionTree()
[all …]
DPermissionRegistry.java84 public void addPermissionTree(@NonNull Permission permissionTree) { in addPermissionTree() argument
85 mPermissionTrees.put(permissionTree.getName(), permissionTree); in addPermissionTree() local
DLegacyPermissionSettings.java94 final LegacyPermission permissionTree = permissionTrees.get(i); in replacePermissionTrees() local
95 mPermissionTrees.put(permissionTree.getPermissionInfo().name, permissionTree); in replacePermissionTrees() local
DPermissionManagerServiceImpl.java4350 private int calculateCurrentPermissionFootprintLocked(@NonNull Permission permissionTree) {
4353 size += permissionTree.calculateFootprint(permission);
/frameworks/base/services/tests/PermissionServiceMockingTests/src/com/android/server/permission/test/
DAppIdPermissionPolicyTest.kt302 val permissionTree = createSimplePermission(isTree = true) in testFindPermissionTree() constant
304 oldState.mutateSystemState().mutatePermissionTrees()[PERMISSION_TREE_NAME] = permissionTree in testFindPermissionTree()
312 assertThat(actualPermissionTree).isEqualTo(permissionTree) in testFindPermissionTree()
317 val permissionTree = createSimplePermission(isTree = true) in testAddPermissionTree() constant
321 addPermissionTree(permissionTree) in testAddPermissionTree()
326 .isEqualTo(permissionTree) in testAddPermissionTree()
/frameworks/base/services/permission/java/com/android/server/permission/access/permission/
DAppIdPermissionPolicy.kt474 val permissionTree = findPermissionTree(permissionName) in <lambda>() constant
476 if (permissionTree != null && newPackageName != permissionTree.packageName) { in <lambda>()
620 permissionTree -> in <lambda>() method
622 permissionTree.packageName == packageName && in <lambda>()
674 val permissionTree = findPermissionTree(permission.name) ?: return permission in <lambda>() constant
679 packageName = permissionTree.packageName in <lambda>()
681 appId = permissionTree.appId, in <lambda>()
1655 permissionTree -> in <lambda>() method
1661 permissionTree in <lambda>()
DPermissionService.kt382 val permissionTree = getAndEnforcePermissionTree(permissionName) in <lambda>() constant
383 enforcePermissionTreeSize(permissionInfo, permissionTree) in <lambda>()
392 permissionInfo.packageName = permissionTree.permissionInfo.packageName in <lambda>()
398 Permission(permissionInfo, true, Permission.TYPE_DYNAMIC, permissionTree.appId) in <lambda>()
428 val permissionTree = with(policy) { findPermissionTree(permissionName) } in <lambda>() constant
429 if (permissionTree != null && permissionTree.appId == UserHandle.getAppId(callingUid)) { in <lambda>()
430 return permissionTree in <lambda>()
440 permissionTree: Permission in <lambda>()
444 if (permissionTree.appId != Process.SYSTEM_UID) { in <lambda>()
445 val permissionTreeFootprint = calculatePermissionTreeFootprint(permissionTree) in <lambda>()
[all …]