tools/android/appstats.py
def GetUserIdForPid(self, search_pid):
    """Returns the application userId for an associated |pid|.  This only works
    if |search_pid| is tracked by this snapshot and the application userId is
    queryable."""
    for (userid, pid, name) in self.pids:
      if pid == search_pid:
        return userid
    return None
Returns the application userId for an associated |pid|.  This only works
    if |search_pid| is tracked by this snapshot and the application userId is
    queryable.
Returns the application userId for an associated |pid|.  This only works
if |search_pid| is tracked by this snapshot and the application userId is
queryable.
Returns the application userId for an associated |pid| . This only works if |search_pid| is tracked by this snapshot and the application userId is queryable .
def GetUserIdForPid(self, search_pid):
    for (userid, pid, name) in self.pids:
      if pid == search_pid:
        return userid
    return None
def GetUserIdForPid ( self , search_pid ) : for ( userid , pid , name ) in self . pids : if pid == search_pid : return userid return None
Returns the application userId for an associated |pid|.
Returns the application userId for an associated |pid| .
"""Returns the application userId for an associated |pid|.  This only works
    if |search_pid| is tracked by this snapshot and the application userId is
    queryable."""
self
search_pid