tools/android/bitmap_to_reached.py
def _ReachedSymbols(offsets, offset_to_symbol):
  """Returns a list of reached symbols from offsets in .text.

  Args:
    offsets: ([int]) List of reached offsets.
    offset_to_symbol: [symbol_extractor.SymbolInfo or None] as returned by
      |SymbolOffsetProcessor.GetDumpOffsetToSymbolInfo()|

  Returns:
    ([symbol_extractor.SymbolInfo])
  """
  symbol_infos = set()
  missing = 0
  for offset in offsets:
    # |offset_to_symbol| has one entry per BYTES_GRANULARITY bytes.
    index = offset / BYTES_GRANULARITY
    if index > len(offset_to_symbol):
      missing += 1
      continue
    symbol_infos.add(offset_to_symbol[index])
  if missing:
    logging.warning('Couldn\'t match %d symbols', missing)
  return symbol_infos
Returns a list of reached symbols from offsets in .text.

  Args:
    offsets: ([int]) List of reached offsets.
    offset_to_symbol: [symbol_extractor.SymbolInfo or None] as returned by
      |SymbolOffsetProcessor.GetDumpOffsetToSymbolInfo()|

  Returns:
    ([symbol_extractor.SymbolInfo])
  
Returns a list of reached symbols from offsets in .text.
Returns a list of reached symbols from offsets in . text .
def _ReachedSymbols(offsets, offset_to_symbol):
  symbol_infos = set()
  missing = 0
  for offset in offsets:
    index = offset / BYTES_GRANULARITY
    if index > len(offset_to_symbol):
      missing += 1
      continue
    symbol_infos.add(offset_to_symbol[index])
  if missing:
    logging.warning('Couldn\'t match %d symbols', missing)
  return symbol_infos
def _ReachedSymbols ( offsets , offset_to_symbol ) : symbol_infos = set ( ) missing = 0 for offset in offsets : index = offset / BYTES_GRANULARITY if index > len ( offset_to_symbol ) : missing += 1 continue symbol_infos . add ( offset_to_symbol [ index ] ) if missing : logging . warning ( 'Couldn\'t match %d symbols' , missing ) return symbol_infos
Returns a list of reached symbols from offsets in .text.
Returns a list of reached symbols from offsets in . text .
"""Returns a list of reached symbols from offsets in .text.

  Args:
    offsets: ([int]) List of reached offsets.
    offset_to_symbol: [symbol_extractor.SymbolInfo or None] as returned by
      |SymbolOffsetProcessor.GetDumpOffsetToSymbolInfo()|

  Returns:
    ([symbol_extractor.SymbolInfo])
  """ # |offset_to_symbol| has one entry per BYTES_GRANULARITY bytes.
None
offsets
([int]) List of reached offsets.
( [ int ] ) List of reached offsets .
offset_to_symbol
[symbol_extractor.SymbolInfo or None] as returned by
|SymbolOffsetProcessor.GetDumpOffsetToSymbolInfo()|
[ symbol_extractor . SymbolInfo or None ] as returned by |SymbolOffsetProcessor . GetDumpOffsetToSymbolInfo () |