(self, device, enable_device_files_cache=False,
               default_timeout=_DEFAULT_TIMEOUT,
               default_retries=_DEFAULT_RETRIES)
DeviceUtils constructor.

    Args:
      device: Either a device serial, an existing AdbWrapper instance, or an
        an existing AndroidCommands instance.
      enable_device_files_cache: For PushChangedFiles(), cache checksums of
        pushed files rather than recomputing them on a subsequent call.
      default_timeout: An integer containing the default number of seconds to
        wait for an operation to complete if no explicit value is provided.
      default_retries: An integer containing the default number or times an
        operation should be retried on failure if no explicit value is provided.
DeviceUtils constructor.
DeviceUtils constructor .
def __init__(self, device, enable_device_files_cache=False,
               default_timeout=_DEFAULT_TIMEOUT,
               default_retries=_DEFAULT_RETRIES):
    """DeviceUtils constructor.

    Args:
      device: Either a device serial, an existing AdbWrapper instance, or an
        an existing AndroidCommands instance.
      enable_device_files_cache: For PushChangedFiles(), cache checksums of
        pushed files rather than recomputing them on a subsequent call.
      default_timeout: An integer containing the default number of seconds to
        wait for an operation to complete if no explicit value is provided.
      default_retries: An integer containing the default number or times an
        operation should be retried on failure if no explicit value is provided.
    """
    self.adb = None
    if isinstance(device, basestring):
      self.adb = _CreateAdbWrapper(device)
    elif isinstance(device, adb_wrapper.AdbWrapper):
      self.adb = device
    else:
      raise ValueError('Unsupported device value: %r' % device)
    self._commands_installed = None
    self._default_timeout = default_timeout
    self._default_retries = default_retries
    self._enable_device_files_cache = enable_device_files_cache
    self._cache = {}
    self._client_caches = {}
    self._cache_lock = threading.RLock()
    assert hasattr(self, decorators.DEFAULT_TIMEOUT_ATTR)
    assert hasattr(self, decorators.DEFAULT_RETRIES_ATTR)

    self._ClearCache()
def __init__ ( self , device , enable_device_files_cache = False , default_timeout = _DEFAULT_TIMEOUT , default_retries = _DEFAULT_RETRIES ) : self . adb = None if isinstance ( device , basestring ) : self . adb = _CreateAdbWrapper ( device ) elif isinstance ( device , adb_wrapper . AdbWrapper ) : self . adb = device else : raise ValueError ( 'Unsupported device value: %r' % device ) self . _commands_installed = None self . _default_timeout = default_timeout self . _default_retries = default_retries self . _enable_device_files_cache = enable_device_files_cache self . _cache = { } self . _client_caches = { } self . _cache_lock = threading . RLock ( ) assert hasattr ( self , decorators . DEFAULT_TIMEOUT_ATTR ) assert hasattr ( self , decorators . DEFAULT_RETRIES_ATTR ) self . _ClearCache ( )