tools/android/appstats.py
def GetNameForPid(self, search_pid):
    """Returns the process name of a tracked |search_pid|.  This only works if
    |search_pid| is tracked by this snapshot."""
    for (userid, pid, name) in self.pids:
      if pid == search_pid:
        return name
    return None
Returns the process name of a tracked |search_pid|.  This only works if
    |search_pid| is tracked by this snapshot.
Returns the process name of a tracked |search_pid|.  This only works if
|search_pid| is tracked by this snapshot.
Returns the process name of a tracked |search_pid| . This only works if |search_pid| is tracked by this snapshot .
def GetNameForPid(self, search_pid):
    for (userid, pid, name) in self.pids:
      if pid == search_pid:
        return name
    return None
def GetNameForPid ( self , search_pid ) : for ( userid , pid , name ) in self . pids : if pid == search_pid : return name return None
Returns the process name of a tracked |search_pid|.
Returns the process name of a tracked |search_pid| .
"""Returns the process name of a tracked |search_pid|.  This only works if
    |search_pid| is tracked by this snapshot."""
self
search_pid