Home
last modified time | relevance | path

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

/packages/apps/Camera2/src/com/android/camera/ui/
DZoomView.java236 RectF newRect = new RectF(rect); in adjustToFitInBounds() local
237 if (newRect.width() < viewportWidth) { in adjustToFitInBounds()
238 dx = viewportWidth / 2 - (newRect.left + newRect.right) / 2; in adjustToFitInBounds()
240 if (newRect.left > 0) { in adjustToFitInBounds()
241 dx = -newRect.left; in adjustToFitInBounds()
242 } else if (newRect.right < viewportWidth) { in adjustToFitInBounds()
243 dx = viewportWidth - newRect.right; in adjustToFitInBounds()
247 if (newRect.height() < viewportHeight) { in adjustToFitInBounds()
248 dy = viewportHeight / 2 - (newRect.top + newRect.bottom) / 2; in adjustToFitInBounds()
250 if (newRect.top > 0) { in adjustToFitInBounds()
[all …]