Sets if this device uses the default IOU image values.

        :param state: boolean
332896
def use_default_iou_values(self, state):
        

        self._use_default_iou_values = state
        if state:
            log.info('IOU "{name}" [{id}]: uses the default IOU image values'.format(name=self._name, id=self._id))
        else:
            log.info('IOU "{name}" [{id}]: does not use the default IOU image values'.format(name=self._name, id=self._id))
458171
boolean updateState(State state) {
        if (isResetRequired) {
            // Applying initial state
            state.set(0f, 0f, zoomBounds.set(state).getFitZoom(), 0f);
            GravityUtils.getImagePosition(state, settings, tmpRect);
            state.translateTo(tmpRect.left, tmpRect.top);

            // We can correctly reset state only when we have both image size and viewport size
            // but there can be a delay before we have all values properly set
            // (waiting for layout or waiting for image to be loaded)
            isResetRequired = !settings.hasImageSize() || !settings.hasViewportSize();
            return !isResetRequired;
        } else {
            // Restricts state's translation and zoom bounds, disallowing overscroll / overzoom.
            restrictStateBounds(state, state, Float.NaN, Float.NaN, false, false, true);
            return false;
        }
    }
325504
def set_state(self, color_hex):
        
        root_name = self.json_state.get('piggy_bank_id', self.name())
        response = self.api_interface.set_device_state(self, {
            "nose_color": color_hex
        }, root_name)
        self._update_state_from_response(response)
663976
def setInheritVisibility(self, state):
        
        if self._inheritVisibility == state:
            return False
            
        self._inheritVisibility = state
        self.sync()
        return True
203609
def setReadOnly( self, state ):
        
        if ( self._editor and hasattr(self._editor, 'setReadOnly') ):
            self._editor.setReadOnly(state)
            return True
        return False
1257974
def set_led(self, state):        
        """"""
        if self.connected:            
            reports = self.device.find_output_reports()
            for report in reports:
                if self.led_usage in report:
                    report[self.led_usage] = state
                    report.send()
923453
public int setData(Object state, boolean bDisplayOption, int iMoveMode)
    {       // Must be overidden
        m_bSetData = true;  // Make sure getNextConverter is called correctly (if it is called).
        int iErrorCode = super.setData(state, bDisplayOption, iMoveMode);
        m_bSetData = false;
        return iErrorCode;
    }
426678
private boolean  internalSetImageURI(Uri uri)
   {
      try
      {
         InputStream  is = getContext().getContentResolver().openInputStream(uri);
         new LoadURITask().execute(is);
         return true;
      }
      catch (FileNotFoundException e)
      {
         return false;
      }

   }
174520
public int setState(boolean bState, boolean bDisplayOption, int iMoveMode)
    {
        Boolean objData = new Boolean(bState);
        if (this.getDataClass() == Boolean.class)
            return this.setData(objData, bDisplayOption, iMoveMode);
        else if (Number.class.isAssignableFrom(this.getDataClass()))
            return this.setValue(objData.booleanValue() ? 1 : 0, bDisplayOption, iMoveMode);
        else if (this.getDataClass() == String.class)
            return this.setString(objData.booleanValue() ? Constants.TRUE : Constants.FALSE, bDisplayOption, iMoveMode);
        return super.setState(bState, bDisplayOption, iMoveMode);
    }
1227658
public int setState(boolean bState, boolean bDisplayOption, int iMoveMode)
    {
        int iFieldValue = (int)this.getValue();
        if (!m_bTrueIfMatch)
            bState = !bState; // Do opposite operation
        if (bState)
            iFieldValue |= (1 << m_iBitNumber);     // Set the bit
        else
            iFieldValue &= ~(1 << m_iBitNumber);    // Clear the bit
        return this.setValue(iFieldValue, bDisplayOption, iMoveMode);
    }
202437
function setCurrent (state, type, value) {
  let dest
  if (type === 'file') {
    dest = utils.getRefFilePath(value)
  }

  if (dest) {
    state.current = dest
  }
}
1337064
def setShowTerritory(self, state):
        
        if state == self._showTerritory:
            return
        
        self._showTerritory = state
        self.setDirty()
1031530
def set_beeper_mode(self, state):
        
        values = {"desired_state": {"beeper_enabled": state}}
        response = self.api_interface.set_device_state(self, values)
        self._update_state_from_response(response)
1211061
def set_state(self, state, speed=None):
        
        desired_state = {"powered": state}
        if state:
            brightness = self._to_brightness.get(speed or self.current_fan_speed(), 0.33)
            desired_state.update({'brightness': brightness})

        response = self.api_interface.set_device_state(self, {
            "desired_state": desired_state
        })

        self._update_state_from_response(response)
1294683
def setDirty(self, state=True):
        
        self._dirty = state

        # set if this connection should be visible
        if self._inputNode and self._outputNode:
            vis = self._inputNode.isVisible() and self._outputNode.isVisible()
            self.setVisible(vis)
420510
public void toggleState()
    {
        if (m_iCurrentState == ON)
            m_iCurrentState = NULL;
        else if (m_iCurrentState == OFF)
            m_iCurrentState = ON;
        else
            m_iCurrentState = OFF;
        this.updateImage();
    }
38641
def set_output(self, state):
        """"""
        if state:
            self.instr.write('OUTP ON')
        else:
            self.instr.write('OUTP OFF')