Flicks screen up.

@param int $x
@param int $y
@param int $distance
@param int $duration
@return $this
174108
public function flickUp($x, $y, $distance, $duration)
    {
        return $this
            ->flick($x, $y, WebDriver_Server_Selendroid::DIRECTION_UP, $distance, $duration);
    }
812729
public function slowFlick(array $elementRef = null, $x, $y, $direction, $distance)
    {
        // Step size is empiric, it probably can depend on screen resolution or size.
        $stepSize = 30;
        $stepCount = (int) ($distance - $distance % $stepSize) / $stepSize;
        $this
            ->down($elementRef, $x, $y);
        list($xMultiplier, $yMultiplier) = $this->getDirectionMultipliers($direction);
        // Moving by small steps with zero pauses.
        for ($i = 1; $i <= $stepCount; $i++) {
            $offset = $stepSize * $i;
            $this
                ->move($elementRef, $x + $offset * $xMultiplier, $y + $offset * $yMultiplier)
                ->pause();
        }
        // Pause lengths before and after final step are empiric, too.
        $this
            ->pause(100)
            ->move($elementRef, $x + $distance * $xMultiplier, $y + $distance * $yMultiplier)
            ->pause(100)
            ->up();
        // Precision of scrolling is not perfect, errors of several pixels are possible.
        return $this;
    }
1070514
def click(self, x, y):
        '''
        
        '''
        self._run_nowait('target.tap({x: %d, y: %d})' % (x/self._scale, y/self._scale))
        return self
1187488
public function setPixelRgb($x, $y, $rgb) {
		imagesetpixel($this->image, $x, $y, $rgb);
		return $this;
	}
412544
public function translate($x, $y)
    {
        if(!$x && !$y)
        {
            return $this;
        }
        
        for($i=0; $i<$this->numberOfPoints; $i++)
        {
            $this->points[$i] = $this->points[$i]->translate($x, $y);
        }

        return $this;
    }
224736
public function draw($im, $x, $y) {
        $drawingPosition = $this->getDrawingPosition($x, $y);
        imagettftext($im, $this->size, $this->rotationAngle, $drawingPosition[0], $drawingPosition[1], $this->foregroundColor->allocate($im), $this->path, $this->text);
    }
827035
public TouchActions up(int x, int y) {
    if (touchScreen != null) {
      action.addAction(new UpAction(touchScreen, x, y));
    }
    return this;
  }
525751
public function mouseUp(WebDriverCoordinates $where = null)
    {
        $this->moveIfNeeded($where);
        $this->executor->execute(DriverCommand::MOUSE_UP);

        return $this;
    }
72240
public static function eye(int $x, int $y, int $k = 0): \CArray
    {
        return parent::eye($x, $y, $k);
    }
684720
public function dragOffset($selector, $x = 0, $y = 0)
    {
        (new WebDriverActions($this->driver))->dragAndDropBy(
            $this->resolver->findOrFail($selector), $x, $y
        )->perform();

        return $this;
    }
86323
public void setLocation(int x, int y)
    {
        screenX = UtilMath.clamp(x, minX, maxX);
        screenY = UtilMath.clamp(y, minY, maxY);
    }
445313
public function flick($xOffset, $yOffset, $speed = WebDriver::SPEED_NORMAL)
    {
        $command = $this->webDriver->getDriver()->factoryCommand(
            'touch/flick',
            WebDriver_Command::METHOD_POST,
            [
                'element' => $this->element->getElementId(),
                'xoffset' => (int) $xOffset,
                'yoffset' => (int) $yOffset,
                'speed' => (int) $speed,
            ]
        );
        $this->webDriver->getDriver()->curl($command);
        return $this;
    }
1235623
public function setDuration($duration)
    {
        // get dom element
        $durationDomElement = $this->getDomElement()->getElementsByTagName('Duration')->item(0);
        if (!$durationDomElement) {
            $durationDomElement = $this->getDomElement()->ownerDocument->createElement('Duration');
            $this->getDomElement()->firstChild->appendChild($durationDomElement);
        }

        // set value
        if (is_numeric($duration)) {
            // in seconds
            $duration = $this->secondsToString($duration);
        }

        $durationDomElement->nodeValue = $duration;

        return $this;
    }
998709
public function pointTranslate($pointIndex, $x, $y)
    {
        if($x || $y)
        {
            $this->points[$pointIndex] = $this->points[$pointIndex]->translate($x, $y);
        }

        return $this;
    }
512705
public function setPosition($x, $y)
    {
        $this->posX = $x;
        $this->posy = $y;

        return $this;
    }
759448
public function crop($x, $y, $width, $height)
    {
        $oCanvas = imagecreatetruecolor($width, $height);
        imagecopyresampled($oCanvas, $this->oImg, 0, 0, $x, $y, $width, $height, $width, $height);
        $this->oImg = $oCanvas;
        return $this;
    }
930689
@Override
    public void animateTo(int x, int y) {
        // If no layout, delay this call
        if (!mMapView.isLayoutOccurred()) {
            mReplayController.animateTo(x, y);
            return;
        }

        if (!mMapView.isAnimating()) {
            mMapView.mIsFlinging = false;
            final int xStart = (int)mMapView.getMapScrollX();
            final int yStart = (int)mMapView.getMapScrollY();

            final int dx = x - mMapView.getWidth() / 2;
            final int dy = y - mMapView.getHeight() / 2;

            if (dx != xStart || dy != yStart) {
                mMapView.getScroller().startScroll(xStart, yStart, dx, dy, Configuration.getInstance().getAnimationSpeedDefault());
                mMapView.postInvalidate();
            }
        }
    }