Updates the saved jsRoot and resets the size tracking fields accordingly.
@param jsRoot
187245
void updateAfterDeserialize(Node jsRoot) {
    // TODO(bradfordcsmith): Restore line counts for inputs and externs.
    this.jsRoot = jsRoot;
    if (!tracksAstSize()) {
      return;
    }
    this.initAstSize = this.astSize = NodeUtil.countAstSize(this.jsRoot);
    if (!tracksSize()) {
      return;
    }
    PerformanceTrackerCodeSizeEstimator estimator =
        PerformanceTrackerCodeSizeEstimator.estimate(this.jsRoot, tracksGzSize());
    this.initCodeSize = this.codeSize = estimator.getCodeSize();
    if (tracksGzSize()) {
      this.initGzCodeSize = this.gzCodeSize = estimator.getZippedCodeSize();
    }
  }
57302
public void setLogFileSize(long newSize)
                    throws ObjectManagerException
    {
        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.entry(this, cclass
                        , "seLogFileSize"
                            );

        objectManagerState.logOutput.setLogFileSize(newSize);

        if (Tracing.isAnyTracingEnabled() && trace.isEntryEnabled())
            trace.exit(this, cclass
                       , "setLogFileSize"
                            );
    }
520008
public final void update(final float position) {
        if (reset) {
            reset = false;
            distance = 0;
            thresholdReachedPosition = -1;
            dragStartTime = -1;
            dragStartPosition = position;
            reachedThreshold = false;
            minDragDistance = 0;
            maxDragDistance = 0;
        }

        if (!reachedThreshold) {
            if (reachedThreshold(position - dragStartPosition)) {
                dragStartTime = System.currentTimeMillis();
                reachedThreshold = true;
                thresholdReachedPosition = position;
            }
        } else {
            float newDistance = position - thresholdReachedPosition;

            if (minDragDistance != 0 && minDragDistance > newDistance) {
                newDistance = minDragDistance;
                thresholdReachedPosition = position - minDragDistance;
            }

            if (maxDragDistance != 0 && maxDragDistance < newDistance) {
                newDistance = maxDragDistance;
                thresholdReachedPosition = position - maxDragDistance;
            }

            distance = newDistance;
        }
    }
1067065
public void update() {

        m_maxMemory = Runtime.getRuntime().maxMemory() / 1048576;
        m_totalMemory = Runtime.getRuntime().totalMemory() / 1048576;
        m_usedMemory = (Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory()) / 1048576;
        m_freeMemory = m_maxMemory - m_usedMemory;
        m_usage = (m_usedMemory * 100) / m_maxMemory;
    }
960425
public void update() {
        if (polyline != null) {
            if (isDeleted()) {
                remove();
            } else {
                List<LatLng> points = converter.getPointsFromMarkers(markers);
                polyline.setPoints(points);
            }
        }
    }
723193
@Override
    public synchronized void update(WSStats newStats, boolean keepOld, boolean recursiveUpdate) {
        if (newStats == null)
            return;

        StatsImpl newStats1 = (StatsImpl) newStats;
        // check if they are same Stats
        if (!name.equals(newStats1.getName()) || type != newStats1.getType())
            return;

        myupdate(newStats1, keepOld, recursiveUpdate);
    }
1008610
function(el, value) {
	        if (el.holderData) {
	            el.holderData.resizeUpdate = !!value;
	            if (el.holderData.resizeUpdate) {
	                updateResizableElements(el);
	            }
	        }
	    }
968448
public void update() {
        if (settings != null && getWidth() > 0 && getHeight() > 0) {
            // Updating finder area rectangle
            GravityUtils.getMovementAreaPosition(settings, tmpRect);
            rect.set(tmpRect);
            rect.offset(getPaddingLeft(), getPaddingTop());

            // We want to stroke outside of finder rectangle, while by default stroke is centered
            strokeRect.set(rect);
            float halfStroke = 0.5f * paintStroke.getStrokeWidth();
            strokeRect.inset(-halfStroke, -halfStroke);

            invalidate();
        }
    }
1311345
@Override
  protected void updateLocations(final NumberedSplit<InputSplit> numberedSplit) {
    final String location = numberedSplit.getLocation();
    addLocationMapping(locationToSplits, numberedSplit, location);
    final String normalizedLocation = normalize(location);
    addLocationMapping(partialLocationsToSplits, numberedSplit, normalizedLocation);
    normalizedLocations.add(normalizedLocation);
  }
503411
public void save(Map<String, Object> changedValues) {
        operationDelegate.onSaveResource(IIOP_OPENJDK_SUBSYSTEM_TEMPLATE, null, changedValues,
                new CrudOperationDelegate.Callback() {
                    @Override
                    public void onSuccess(final AddressTemplate addressTemplate, final String name) {
                        Console.info(Console.MESSAGES.modified("IIOP Subsystem"));
                        refresh();
                    }

                    @Override
                    public void onFailure(final AddressTemplate addressTemplate, final String name, final Throwable t) {
                        Console.error(Console.MESSAGES.modificationFailed("IIOP Subsystem"), t.getMessage());
                        refresh();
                    }
                });
    }
1212674
public final void updateTotal(int oldSizeInBytes, int newSizeInBytes) throws SevereMessageStoreException
    {
        boolean doCallback = false;

        synchronized(this)
        {
            // We're only replacing an old size estimation
            // with a new one so we do not need to change
            // or inspect the count total and watermark
            
            // Check whether we were between our limits before
            // before this update.
            boolean wasBelowHighLimit = (_countTotalBytes < _watermarkBytesHigh);
            boolean wasAboveLowLimit  = (_countTotalBytes >= _watermarkBytesLow);

            // Update our count to the new value by adding the
            // difference between the old and new sizes
            _countTotalBytes = _countTotalBytes + (newSizeInBytes - oldSizeInBytes);

            if ((wasBelowHighLimit && _countTotalBytes >= _watermarkBytesHigh)  // Was below the HIGH watermark but now isn't
                || (wasAboveLowLimit && _countTotalBytes < _watermarkBytesLow)) // OR was above LOW watermark but now isn't
            {
                doCallback = true;
            }
        }

        if (doCallback)
        {
            _owningStreamLink.eventWatermarkBreached();
        }
    }
1274746
private void updateFdMetrics() {
    if (osMbean instanceof com.sun.management.UnixOperatingSystemMXBean) {
      final com.sun.management.UnixOperatingSystemMXBean unix =
          (com.sun.management.UnixOperatingSystemMXBean) osMbean;

      fdCount.setValue(unix.getOpenFileDescriptorCount());
      fdLimit.setValue(unix.getMaxFileDescriptorCount());
    }
  }
488729
protected void updateFoundCount() {
		SpiderScan sc = this.getSelectedScanner();
		if (sc != null) {
			this.getFoundCountValueLabel().setText(Integer.toString(sc.getNumberOfURIsFound()));
		} else {
			this.getFoundCountValueLabel().setText(ZERO_REQUESTS_LABEL_TEXT);
		}
	}
639886
public void updateAssociations(JMFType type) {
    super.updateAssociations(type);
    if (getFieldCount() != ((JSTuple)type).getFieldCount())
      throw new IllegalStateException();
    if (fields != null)
      for (int i = 0; i < fields.length; i++)
         fields[i].updateAssociations(((JSTuple)type).getField(i));
  }
772037
public final void updateObjectInUse(T object, boolean inUse) {
    int origSize = inUseObjects.size();
    if (inUse) {
      inUseObjects.add(object);
      if (origSize == 0) {
        handleInUse();
      }
    } else {
      boolean removed = inUseObjects.remove(object);
      if (removed && origSize == 1) {
        handleNotInUse();
      }
    }
  }
16623
void update() {
        Application.update(filter, list, main, footer, toggleAll, count, clearCompleted);
    }
1180727
@Override // Storage  
  protected void setFields(Properties props, StorageDirectory sd)
      throws IOException {
    super.setFields(props, sd);
    boolean uState = getDistributedUpgradeState();
    int uVersion = getDistributedUpgradeVersion();
    if (uState && uVersion != getLayoutVersion()) {
      props.setProperty("distributedUpgradeState", Boolean.toString(uState));
      props
          .setProperty("distributedUpgradeVersion", Integer.toString(uVersion));
    }
  }