Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java234 public static RectF adjustToFitInBounds(RectF rect, int viewportWidth, int viewportHeight) { in adjustToFitInBounds() argument
237 if (newRect.width() < viewportWidth) { in adjustToFitInBounds()
238 dx = viewportWidth / 2 - (newRect.left + newRect.right) / 2; in adjustToFitInBounds()
242 } else if (newRect.right < viewportWidth) { in adjustToFitInBounds()
243 dx = viewportWidth - newRect.right; in adjustToFitInBounds()
/packages/apps/Camera2/src/com/android/camera/widget/
DFilmstripView.java543 void postScale(float focusX, float focusY, float postScale, int viewportWidth, in postScale() argument
553 updateTransform(transX, transY, scaleX, scaleY, viewportWidth, in postScale()
558 int viewportWidth, int viewportHeight) { in updateTransform() argument
564 viewportWidth, viewportHeight); in updateTransform()