tools/android/dependency_analysis/print_class_dependencies.py
def print_class_dependencies_for_key(
        class_graph: class_dependency.JavaClassDependencyGraph, key: str,
        print_mode: PrintMode,
        audited_classes: Set[str]) -> TargetDependencies:
    """Prints dependencies for a valid key into the class graph."""
    target_dependencies = TargetDependencies()
    node: class_dependency.JavaClass = class_graph.get_node_by_key(key)

    if print_mode.inbound:
        print_class_dependencies(graph.sorted_nodes_by_name(node.inbound),
                                 print_mode, node, INBOUND, audited_classes)

    if print_mode.outbound:
        target_dependencies = print_class_dependencies(
            graph.sorted_nodes_by_name(node.outbound), print_mode, node,
            OUTBOUND, audited_classes)
    return target_dependencies
Prints dependencies for a valid key into the class graph.
Prints dependencies for a valid key into the class graph.
Prints dependencies for a valid key into the class graph .
def print_class_dependencies_for_key(
        class_graph: class_dependency.JavaClassDependencyGraph, key: str,
        print_mode: PrintMode,
        audited_classes: Set[str]) -> TargetDependencies:
    target_dependencies = TargetDependencies()
    node: class_dependency.JavaClass = class_graph.get_node_by_key(key)
    if print_mode.inbound:
        print_class_dependencies(graph.sorted_nodes_by_name(node.inbound),
                                 print_mode, node, INBOUND, audited_classes)
    if print_mode.outbound:
        target_dependencies = print_class_dependencies(
            graph.sorted_nodes_by_name(node.outbound), print_mode, node,
            OUTBOUND, audited_classes)
    return target_dependencies
def print_class_dependencies_for_key ( class_graph : class_dependency . JavaClassDependencyGraph , key : str , print_mode : PrintMode , audited_classes : Set [ str ] ) -> TargetDependencies : target_dependencies = TargetDependencies ( ) node : class_dependency . JavaClass = class_graph . get_node_by_key ( key ) if print_mode . inbound : print_class_dependencies ( graph . sorted_nodes_by_name ( node . inbound ) , print_mode , node , INBOUND , audited_classes ) if print_mode . outbound : target_dependencies = print_class_dependencies ( graph . sorted_nodes_by_name ( node . outbound ) , print_mode , node , OUTBOUND , audited_classes ) return target_dependencies
Prints dependencies for a valid key into the class graph.
Prints dependencies for a valid key into the class graph .
"""Prints dependencies for a valid key into the class graph."""
class_graph
class_dependency.JavaClassDependencyGraph
key
str
print_mode
PrintMode
audited_classes
Set[str]