parameters: (self, property_name, value, check=False, timeout=None,
                retries=None)
docstring: Sets a property on the device.
  
      Args:
        property_name: A string containing the name of the property to set on
                       the device.
        value: A string containing the value to set to the property on the
               device.
        check: A boolean indicating whether to check that the property was
               successfully set on the device.
        timeout: timeout in seconds
        retries: number of retries
  
      Raises:
        CommandFailedError if check is true and the property was not correctly
          set on the device (e.g. because it is not rooted).
        CommandTimeoutError on timeout.
docstring_summary: Sets a property on the device.
docstring_tokens: Sets a property on the device .
function: def SetProp(self, property_name, value, check=False, timeout=None,
                retries=None):
      """Sets a property on the device.
  
      Args:
        property_name: A string containing the name of the property to set on
                       the device.
        value: A string containing the value to set to the property on the
               device.
        check: A boolean indicating whether to check that the property was
               successfully set on the device.
        timeout: timeout in seconds
        retries: number of retries
  
      Raises:
        CommandFailedError if check is true and the property was not correctly
          set on the device (e.g. because it is not rooted).
        CommandTimeoutError on timeout.
      """
      assert isinstance(property_name, basestring), (
          "property_name is not a string: %r" % property_name)
      assert isinstance(value, basestring), "value is not a string: %r" % value
  
      self.RunShellCommand(['setprop', property_name, value], check_return=True)
      prop_cache = self._cache['getprop']
      if property_name in prop_cache:
        del prop_cache[property_name]
      # TODO(perezju) remove the option and make the check mandatory, but using a
      # single shell script to both set- and getprop.
      if check and value != self.GetProp(property_name, cache=False):
        raise device_errors.CommandFailedError(
            'Unable to set property %r on the device to %r'
            % (property_name, value), str(self))
function_tokens: def SetProp ( self , property_name , value , check = False , timeout = None , retries = None ) : assert isinstance ( property_name , basestring ) , ( "property_name is not a string: %r" % property_name ) assert isinstance ( value , basestring ) , "value is not a string: %r" % value self . RunShellCommand ( [ 'setprop' , property_name , value ] , check_return = True ) prop_cache = self . _cache [ 'getprop' ] if property_name in prop_cache : del prop_cache [ property_name ] # TODO(perezju) remove the option and make the check mandatory, but using a # single shell script to both set- and getprop. if check and value != self . GetProp ( property_name , cache = False ) : raise device_errors . CommandFailedError ( 'Unable to set property %r on the device to %r' % ( property_name , value ) , str ( self ) )