Searched refs:permissionTree (Results 1 – 7 of 7) sorted by relevance
370 @NonNull PermissionInfo permissionInfo, @NonNull Permission permissionTree) { in addToTree() argument374 || 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() local506 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 …]
84 public void addPermissionTree(@NonNull Permission permissionTree) { in addPermissionTree() argument85 mPermissionTrees.put(permissionTree.getName(), permissionTree); in addPermissionTree() local
94 final LegacyPermission permissionTree = permissionTrees.get(i); in replacePermissionTrees() local95 mPermissionTrees.put(permissionTree.getPermissionInfo().name, permissionTree); in replacePermissionTrees() local
4350 private int calculateCurrentPermissionFootprintLocked(@NonNull Permission permissionTree) {4353 size += permissionTree.calculateFootprint(permission);
302 val permissionTree = createSimplePermission(isTree = true) in testFindPermissionTree() constant304 oldState.mutateSystemState().mutatePermissionTrees()[PERMISSION_TREE_NAME] = permissionTree in testFindPermissionTree()312 assertThat(actualPermissionTree).isEqualTo(permissionTree) in testFindPermissionTree()317 val permissionTree = createSimplePermission(isTree = true) in testAddPermissionTree() constant321 addPermissionTree(permissionTree) in testAddPermissionTree()326 .isEqualTo(permissionTree) in testAddPermissionTree()
474 val permissionTree = findPermissionTree(permissionName) in <lambda>() constant476 if (permissionTree != null && newPackageName != permissionTree.packageName) { in <lambda>()620 permissionTree -> in <lambda>() method622 permissionTree.packageName == packageName && in <lambda>()674 val permissionTree = findPermissionTree(permission.name) ?: return permission in <lambda>() constant679 packageName = permissionTree.packageName in <lambda>()681 appId = permissionTree.appId, in <lambda>()1655 permissionTree -> in <lambda>() method1661 permissionTree in <lambda>()
382 val permissionTree = getAndEnforcePermissionTree(permissionName) in <lambda>() constant383 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>() constant429 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 …]