tools/android/appstats.py
def IsFirstPidForUserId(self, search_pid):
    """Returns whether or not |search_pid| is the first pid in the |pids| with
    the associated application userId.  This is used to determine if network
    statistics should be shown for this pid or if they have already been shown
    for a pid associated with this application."""
    prev_userid = None
    for idx, (userid, pid, name) in enumerate(self.pids):
      if pid == search_pid:
        return prev_userid != userid
      prev_userid = userid
    return False
Returns whether or not |search_pid| is the first pid in the |pids| with
    the associated application userId.  This is used to determine if network
    statistics should be shown for this pid or if they have already been shown
    for a pid associated with this application.
Returns whether or not |search_pid| is the first pid in the |pids| with
the associated application userId.  This is used to determine if network
statistics should be shown for this pid or if they have already been shown
for a pid associated with this application.
Returns whether or not |search_pid| is the first pid in the |pids| with the associated application userId . This is used to determine if network statistics should be shown for this pid or if they have already been shown for a pid associated with this application .
def IsFirstPidForUserId(self, search_pid):
    prev_userid = None
    for idx, (userid, pid, name) in enumerate(self.pids):
      if pid == search_pid:
        return prev_userid != userid
      prev_userid = userid
    return False
def IsFirstPidForUserId ( self , search_pid ) : prev_userid = None for idx , ( userid , pid , name ) in enumerate ( self . pids ) : if pid == search_pid : return prev_userid != userid prev_userid = userid return False
Returns whether or not |search_pid| is the first pid in the |pids| with
the associated application userId.
Returns whether or not |search_pid| is the first pid in the |pids| with the associated application userId .
"""Returns whether or not |search_pid| is the first pid in the |pids| with
    the associated application userId.  This is used to determine if network
    statistics should be shown for this pid or if they have already been shown
    for a pid associated with this application."""
self
search_pid