Home
last modified time | relevance | path

Searched refs:mTranslateRect (Results 1 – 1 of 1) sorted by relevance

/frameworks/opt/photoviewer/src/com/android/ex/photo/views/
DPhotoView.java172 private RectF mTranslateRect = new RectF(); field in PhotoView
286 centerX = (getWidth() / 2 - relativeScale * mTranslateRect.centerX()) / in scale()
288 centerY = (getHeight() / 2 - relativeScale * mTranslateRect.centerY()) / in scale()
296 float widthBuffer = (getWidth() - mTranslateRect.width()) / relativeScale; in scale()
297 float heightBuffer = (getHeight() - mTranslateRect.height()) / relativeScale; in scale()
299 if (mTranslateRect.width() <= widthBuffer * 2) { in scale()
300 centerX = mTranslateRect.centerX(); in scale()
302 centerX = Math.min(Math.max(mTranslateRect.left + widthBuffer, in scale()
303 e.getX()), mTranslateRect.right - widthBuffer); in scale()
305 if (mTranslateRect.height() <= heightBuffer * 2) { in scale()
[all …]