third_party/android_platform/development/scripts/symbol.py
def GetCandidateLibraries(library_name):
  """Returns a list of candidate library filenames.

  Args:
    library_name: basename of the library to match.

  Returns:
    A list of matching library filenames for library_name.
  """
  def extant_library(filename):
    if (os.path.exists(filename)
        and elf_symbolizer.ContainsElfMagic(filename)):
      return [filename]
    return []

  candidates = GetCandidates(
      GetLibrarySearchPaths(), library_name,
      extant_library)
  # For GN, candidates includes both stripped an unstripped libraries. Stripped
  # libraries are always newer. Explicitly look for .unstripped and sort them
  # ahead.
  candidates.sort(key=lambda c: int('unstripped' not in c))
  return candidates
Returns a list of candidate library filenames.

  Args:
    library_name: basename of the library to match.

  Returns:
    A list of matching library filenames for library_name.
  
Returns a list of candidate library filenames.
Returns a list of candidate library filenames .
def GetCandidateLibraries(library_name):
  def extant_library(filename):
    if (os.path.exists(filename)
        and elf_symbolizer.ContainsElfMagic(filename)):
      return [filename]
    return []
  candidates = GetCandidates(
      GetLibrarySearchPaths(), library_name,
      extant_library)
  candidates.sort(key=lambda c: int('unstripped' not in c))
  return candidates
def GetCandidateLibraries ( library_name ) : def extant_library ( filename ) : if ( os . path . exists ( filename ) and elf_symbolizer . ContainsElfMagic ( filename ) ) : return [ filename ] return [ ] candidates = GetCandidates ( GetLibrarySearchPaths ( ) , library_name , extant_library ) candidates . sort ( key = lambda c : int ( 'unstripped' not in c ) ) return candidates
Returns a list of candidate library filenames.
Returns a list of candidate library filenames .
"""Returns a list of candidate library filenames.

  Args:
    library_name: basename of the library to match.

  Returns:
    A list of matching library filenames for library_name.
  """ # For GN, candidates includes both stripped an unstripped libraries. Stripped # libraries are always newer. Explicitly look for .unstripped and sort them # ahead.
A list of matching library filenames for library_name.
A list of matching library filenames for library_name .
library_name
basename of the library to match.
basename of the library to match .