tools/android/dependency_analysis/print_class_dependencies.py
def categorize_dependency(from_class: class_dependency.JavaClass,
                          to_class: class_dependency.JavaClass,
                          ignore_modularized: bool, print_mode: PrintMode,
                          audited_classes: Set[str]) -> str:
    """Decides if a class dependency should be printed, cleared, or ignored."""
    if is_ignored_class_dependency(to_class.name):
        return IGNORE
    if ignore_modularized and all(
            is_allowed_target_dependency(target)
            for target in to_class.build_targets):
        return CLEAR
    if (print_mode.ignore_same_package
            and to_class.package == from_class.package):
        return IGNORE
    if print_mode.ignore_audited_here and to_class.name in audited_classes:
        return IGNORE
    return PRINT
Decides if a class dependency should be printed, cleared, or ignored.
Decides if a class dependency should be printed, cleared, or ignored.
Decides if a class dependency should be printed cleared or ignored .
def categorize_dependency(from_class: class_dependency.JavaClass,
                          to_class: class_dependency.JavaClass,
                          ignore_modularized: bool, print_mode: PrintMode,
                          audited_classes: Set[str]) -> str:
    if is_ignored_class_dependency(to_class.name):
        return IGNORE
    if ignore_modularized and all(
            is_allowed_target_dependency(target)
            for target in to_class.build_targets):
        return CLEAR
    if (print_mode.ignore_same_package
            and to_class.package == from_class.package):
        return IGNORE
    if print_mode.ignore_audited_here and to_class.name in audited_classes:
        return IGNORE
    return PRINT
def categorize_dependency ( from_class : class_dependency . JavaClass , to_class : class_dependency . JavaClass , ignore_modularized : bool , print_mode : PrintMode , audited_classes : Set [ str ] ) -> str : if is_ignored_class_dependency ( to_class . name ) : return IGNORE if ignore_modularized and all ( is_allowed_target_dependency ( target ) for target in to_class . build_targets ) : return CLEAR if ( print_mode . ignore_same_package and to_class . package == from_class . package ) : return IGNORE if print_mode . ignore_audited_here and to_class . name in audited_classes : return IGNORE return PRINT
Decides if a class dependency should be printed, cleared, or ignored.
Decides if a class dependency should be printed cleared or ignored .
"""Decides if a class dependency should be printed, cleared, or ignored."""
from_class
class_dependency.JavaClass
to_class
class_dependency.JavaClass
ignore_modularized
bool
print_mode
PrintMode
audited_classes
Set[str]