parameters: (self, package, timeout=None, retries=None)
docstring: Get the data directory on the device for the given package.
  
      Args:
        package: Name of the package.
  
      Returns:
        The package's data directory.
      Raises:
        CommandFailedError if the package's data directory can't be found,
          whether because it's not installed or otherwise.
docstring_summary: Get the data directory on the device for the given package.
docstring_tokens: Get the data directory on the device for the given package .
function: def GetApplicationDataDirectory(self, package, timeout=None, retries=None):
      """Get the data directory on the device for the given package.
  
      Args:
        package: Name of the package.
  
      Returns:
        The package's data directory.
      Raises:
        CommandFailedError if the package's data directory can't be found,
          whether because it's not installed or otherwise.
      """
      output = self._RunPipedShellCommand(
          'pm dump %s | grep dataDir=' % cmd_helper.SingleQuote(package))
      for line in output:
        _, _, dataDir = line.partition('dataDir=')
        if dataDir:
          return dataDir
      raise device_errors.CommandFailedError(
          'Could not find data directory for %s', package)
function_tokens: def GetApplicationDataDirectory ( self , package , timeout = None , retries = None ) : output = self . _RunPipedShellCommand ( 'pm dump %s | grep dataDir=' % cmd_helper . SingleQuote ( package ) ) for line in output : _ , _ , dataDir = line . partition ( 'dataDir=' ) if dataDir : return dataDir raise device_errors . CommandFailedError ( 'Could not find data directory for %s' , package )