tools/android/appstats.py
def __PrintPidLabelHeader(self, snapshot):
    """Returns a header string with columns Pid and Name."""
    if not snapshot or not snapshot.HasResults():
      return

    name_length = max(8, snapshot.GetLongestNameLength())

    header = self.__PadString('Pid', 8, True) + ' '
    header += self.__PadString('Name', name_length, False)
    header = self.__ColorString(header, 'BOLD')
    return header
Returns a header string with columns Pid and Name.
Returns a header string with columns Pid and Name.
Returns a header string with columns Pid and Name .
def __PrintPidLabelHeader(self, snapshot):
    if not snapshot or not snapshot.HasResults():
      return
    name_length = max(8, snapshot.GetLongestNameLength())
    header = self.__PadString('Pid', 8, True) + ' '
    header += self.__PadString('Name', name_length, False)
    header = self.__ColorString(header, 'BOLD')
    return header
def __PrintPidLabelHeader ( self , snapshot ) : if not snapshot or not snapshot . HasResults ( ) : return name_length = max ( 8 , snapshot . GetLongestNameLength ( ) ) header = self . __PadString ( 'Pid' , 8 , True ) + ' ' header += self . __PadString ( 'Name' , name_length , False ) header = self . __ColorString ( header , 'BOLD' ) return header
Returns a header string with columns Pid and Name.
Returns a header string with columns Pid and Name .
"""Returns a header string with columns Pid and Name."""
self
snapshot