/*
(non-Javadoc)

@see javax.slee.Sbb#sbbRemove()
165668
public void sbbRemove() {
		// terminate the xcap activity, if exists
		ActivityContextInterface[] activities = sbbContext.getActivities();
		if (activities.length != 0) {
			activities[0].detach(sbbContext.getSbbLocalObject());
			((AsyncActivity) activities[0].getActivity()).endActivity();
		}
	}
764082
private void handleMove(NativeEvent nativeEvent) {

        Element imageElem = m_image.getElement();
        int offsetX = ((int)pageX(nativeEvent)) - imageElem.getParentElement().getAbsoluteLeft();
        int offsetY = ((int)pageY(nativeEvent)) - imageElem.getParentElement().getAbsoluteTop();
        if (m_coordinateTransform != null) {
            CmsPoint screenPoint = new CmsPoint(offsetX, offsetY);
            screenPoint = m_region.constrain(screenPoint); // make sure we remain in the screen region corresponding to original image (or crop).
            m_pointWidget.setCenterCoordsRelativeToParent((int)screenPoint.getX(), (int)screenPoint.getY());
            CmsPoint logicalPoint = m_coordinateTransform.transformForward(screenPoint);
            m_focalPoint = logicalPoint;
        }
    }
980423
public void remove (SteeringBehavior<T> behavior) {
		for (int i = 0; i < list.size; i++) {
			if(list.get(i).behavior == behavior) {
				list.removeIndex(i);
				return;
			}
		}
	}
98354
protected final void doRemove(final Collection<K> toRemove) {
        apply(toRemove.isEmpty() ? Nop.instance() : new Remove<>(toRemove));
    }
53599
@Override
	public void setSbbContext(SbbContext context) {
		// SLEE
		this.tracer = context.getTracer("SipRegistrar");
		this.sbbContextExt = (SbbContextExt) context;
		this.nullActivityContextInterfaceFactory = this.sbbContextExt
				.getNullActivityContextInterfaceFactory();
		this.activityContextNamingFacility = this.sbbContextExt
				.getActivityContextNamingFacility();
		this.nullActivityFactory = this.sbbContextExt.getNullActivityFactory();
		this.timerFacility = this.sbbContextExt.getTimerFacility();

		// get SIP stuff
		this.sipRA = (SleeSipProvider) this.sbbContextExt
				.getResourceAdaptorInterface(sipRATypeID, sipRALink);

		this.messageFactory = this.sipRA.getMessageFactory();
		this.headerFactory = this.sipRA.getHeaderFactory();
		this.addressFactory = this.sipRA.getAddressFactory();

	}
1087308
@Override
    protected void entryRemoved(boolean evicted, String key,
                                Bitmap oldValue, Bitmap newValue) {
        if (Utils.hasHoneycomb()) {
            // We're running on Honeycomb or later, so add the bitmap
            // to the pool set for possible use with inBitmap later
            addToPool(oldValue);
        } else {
        }

    }
1241409
public static final long move(ByteBuffer bb, ByteBuffer[] bbArray, int offset, int length)
    {
        return move(new ByteBuffer[]{bb}, 0, 1, bbArray, offset, length);
    }
351346
protected void checkBuf (int pointCount, boolean checkMove) {
        if (checkMove && typeSize == 0) {
            throw new IllegalPathStateException("First segment must be a SEG_MOVETO");
        }
        if (typeSize == types.length) {
            byte[] tmp = new byte[typeSize + BUFFER_CAPACITY];
            System.arraycopy(types, 0, tmp, 0, typeSize);
            types = tmp;
        }
        if (pointSize + pointCount > points.length) {
            float[] tmp = new float[pointSize + Math.max(BUFFER_CAPACITY * 2, pointCount)];
            System.arraycopy(points, 0, tmp, 0, pointSize);
            points = tmp;
        }
    }
984160
private void moveFromTempToPerm() throws IOException {
    try {
      FileStatus[] fileStatus =
          localFs.listStatus(temp, LuceneIndexFileNameFilter.getFilter());
      Path segmentsPath = null;
      Path segmentsGenPath = null;

      // move the files created in temp dir except segments_N and segments.gen
      for (int i = 0; i < fileStatus.length; i++) {
        Path path = fileStatus[i].getPath();
        String name = path.getName();

        if (LuceneUtil.isSegmentsGenFile(name)) {
          assert (segmentsGenPath == null);
          segmentsGenPath = path;
        } else if (LuceneUtil.isSegmentsFile(name)) {
          assert (segmentsPath == null);
          segmentsPath = path;
        } else {
          fs.completeLocalOutput(new Path(perm, name), path);
        }
      }

      // move the segments_N file
      if (segmentsPath != null) {
        fs.completeLocalOutput(new Path(perm, segmentsPath.getName()),
            segmentsPath);
      }

      // move the segments.gen file
      if (segmentsGenPath != null) {
        fs.completeLocalOutput(new Path(perm, segmentsGenPath.getName()),
            segmentsGenPath);
      }
    } finally {
      // finally delete the temp dir (files should have been deleted)
      localFs.delete(temp);
    }
  }
1214075
protected void entryRemoved (V entry)
    {
        if (entry != null) {
            _size -= _sizer.computeSize(entry);
            if (_remobs != null) {
                _remobs.removedFromMap(this, entry);
            }
        }
    }
1041867
@SuppressWarnings("unchecked")
    @Override
    public T moveUp()
    {
        final Node<?> parent = getParent();

        if (null != parent)
        {
            final IContainer<?, IPrimitive<?>> container = (IContainer<?, IPrimitive<?>>) parent.asContainer();

            if (null != container)
            {
                container.moveUp(this);
            }
        }
        return cast();
    }
852846
@Override
	public void relocate()
	{

		int w = 480, h = 245;
		int x = (this.getWidth() - w) / 2, y = (this.getHeight() - h) / 2;

		diffToolLabel.setLocation(x, y);
		diffToolField.setLocation(x + 160, y);
		diffToolLogLevelComboBox.setLocation(x + 380, y);

	}
913295
@Override
  public synchronized void relocate(int oldPosition, int newPosition, ByteBuffer oldBuffer, ByteBuffer newBuffer)
  {
    DoublesUnion union = unions.get(oldBuffer).get(oldPosition);
    final WritableMemory oldMem = getMemory(oldBuffer).writableRegion(oldPosition, maxIntermediateSize);
    if (union.isSameResource(oldMem)) { // union was not relocated on heap
      final WritableMemory newMem = getMemory(newBuffer).writableRegion(newPosition, maxIntermediateSize);
      union = DoublesUnion.wrap(newMem);
    }
    putUnion(newBuffer, newPosition, union);

    Int2ObjectMap<DoublesUnion> map = unions.get(oldBuffer);
    map.remove(oldPosition);
    if (map.isEmpty()) {
      unions.remove(oldBuffer);
      memCache.remove(oldBuffer);
    }
  }
953911
private void standardMove(KernelPoint destination, KernelPoint source)
    {
        destination.InvK = source.InvK;
        destination.InvKExpanded = source.InvKExpanded;
        destination.K = source.K;
        destination.KExpanded = source.KExpanded;
    }
255203
@Override
    public void busReloaded(Object newBus, boolean busChanged,
                            boolean destChg, boolean medChg)
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())
        {
            SibTr.entry(this, tc, "busReloaded");
            SibTr.exit(this, tc, "busReloaded");
        }
    }
936056
public Blob moveTo(String destBucket, String destBlob) {
    // [START storageMoveFile]
    CopyWriter copyWriter = blob.copyTo(destBucket, destBlob);
    Blob copiedBlob = copyWriter.getResult();
    boolean deleted = blob.delete();
    // [END storageMoveFile]
    if (deleted) {
      return copiedBlob;
    } else {
      return null;
    }
  }
691324
void moveIfNecessary(ViewHolder viewHolder) {
        if (mRecyclerView.isLayoutRequested()) {
            return;
        }
        if (mActionState != ACTION_STATE_DRAG) {
            return;
        }
        final float threshold = mCallback.getMoveThreshold(viewHolder);
        final int x = (int) (mSelectedStartX + mDx);
        final int y = (int) (mSelectedStartY + mDy);
        if (Math.abs(y - viewHolder.itemView.getTop()) < viewHolder.itemView.getHeight() * threshold
                && Math.abs(x - viewHolder.itemView.getLeft())
                < viewHolder.itemView.getWidth() * threshold) {
            return;
        }
        List<ViewHolder> swapTargets = findSwapTargets(viewHolder);
        if (swapTargets.size() == 0) {
            return;
        }
        // may swap.
        ViewHolder target = mCallback.chooseDropTarget(viewHolder, swapTargets, x, y);
        if (target == null) {
            mSwapTargets.clear();
            mDistances.clear();
            return;
        }
        final int toPosition = target.getAdapterPosition();
        final int fromPosition = viewHolder.getAdapterPosition();
        if (mCallback.onMove(mRecyclerView, viewHolder, target)) {
            // keep target visible
            mCallback.onMoved(mRecyclerView, viewHolder, fromPosition,
                    target, toPosition, x, y);
        }
    }