Home
last modified time | relevance | path

Searched refs:newRect (Results 1 – 2 of 2) 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 …]
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DFocusIndicatorHelper.java125 Rect newRect = getDrawRect(); in invalidateDirty() local
126 if (newRect != null) { in invalidateDirty()
127 mContainer.invalidate(newRect); in invalidateDirty()
133 Rect newRect = getDrawRect(); in draw() local
134 if (newRect != null) { in draw()
135 mDirtyRect.set(newRect); in draw()