parameters: (cls, target, _)
docstring: Kill all running processes for a target.
docstring_summary: Kill all running processes for a target.
docstring_tokens: Kill all running processes for a target .
function: def Kill(cls, target, _):
      """Kill all running processes for a target."""
      target_name = target.build_target
      if target_name in cls._kills:
        # already killed this target, do nothing
        return
      pids = cls.GetPids(target)
      if pids:
        cr.Host.Execute(target, '{CR_ADB}', 'shell', 'kill', *pids)
      elif target.verbose:
        print target.Substitute('{CR_TARGET_NAME} not running')
      cls._kills[target_name] = True
function_tokens: def Kill ( cls , target , _ ) : target_name = target . build_target if target_name in cls . _kills : # already killed this target, do nothing return pids = cls . GetPids ( target ) if pids : cr . Host . Execute ( target , '{CR_ADB}' , 'shell' , 'kill' , * pids ) elif target . verbose : print target . Substitute ( '{CR_TARGET_NAME} not running' ) cls . _kills [ target_name ] = True