(self, package, timeout=None, retries=None)
Close the application.

    Args:
      package: A string containing the name of the package to stop.
      timeout: timeout in seconds
      retries: number of retries

    Raises:
      CommandTimeoutError on timeout.
      DeviceUnreachableError on missing device.
Close the application.
Close the application .
def ForceStop(self, package, timeout=None, retries=None):
    """Close the application.

    Args:
      package: A string containing the name of the package to stop.
      timeout: timeout in seconds
      retries: number of retries

    Raises:
      CommandTimeoutError on timeout.
      DeviceUnreachableError on missing device.
    """
    if self.GetPids(package):
      self.RunShellCommand(['am', 'force-stop', package], check_return=True)
def ForceStop ( self , package , timeout = None , retries = None ) : if self . GetPids ( package ) : self . RunShellCommand ( [ 'am' , 'force-stop' , package ] , check_return = True )