tools/android/appstats.py
def __PrintPidLabelStats(self, pid, snapshot):
    """Returns a string that includes the columns pid and process name for
    the specified |pid|.  This lines up with the associated header."""
    if not snapshot or not snapshot.HasResults():
      return

    name_length = max(8, snapshot.GetLongestNameLength())
    name = snapshot.GetNameForPid(pid)

    output = self.__PadAndColor(pid, 8, True, 'DARK_YELLOW') + ' '
    output += self.__PadAndColor(name, name_length, False, None)
    return output
Returns a string that includes the columns pid and process name for
    the specified |pid|.  This lines up with the associated header.
Returns a string that includes the columns pid and process name for
the specified |pid|.  This lines up with the associated header.
Returns a string that includes the columns pid and process name for the specified |pid| . This lines up with the associated header .
def __PrintPidLabelStats(self, pid, snapshot):
    if not snapshot or not snapshot.HasResults():
      return
    name_length = max(8, snapshot.GetLongestNameLength())
    name = snapshot.GetNameForPid(pid)
    output = self.__PadAndColor(pid, 8, True, 'DARK_YELLOW') + ' '
    output += self.__PadAndColor(name, name_length, False, None)
    return output
def __PrintPidLabelStats ( self , pid , snapshot ) : if not snapshot or not snapshot . HasResults ( ) : return name_length = max ( 8 , snapshot . GetLongestNameLength ( ) ) name = snapshot . GetNameForPid ( pid ) output = self . __PadAndColor ( pid , 8 , True , 'DARK_YELLOW' ) + ' ' output += self . __PadAndColor ( name , name_length , False , None ) return output
Returns a string that includes the columns pid and process name for
the specified |pid|.
Returns a string that includes the columns pid and process name for the specified |pid| .
"""Returns a string that includes the columns pid and process name for
    the specified |pid|.  This lines up with the associated header."""
self
pid
snapshot