Searched refs:newRect (Results 1 – 2 of 2) sorted by relevance
236 RectF newRect = new RectF(rect); in adjustToFitInBounds() local237 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 …]
125 Rect newRect = getDrawRect(); in invalidateDirty() local126 if (newRect != null) { in invalidateDirty()127 mContainer.invalidate(newRect); in invalidateDirty()133 Rect newRect = getDrawRect(); in draw() local134 if (newRect != null) { in draw()135 mDirtyRect.set(newRect); in draw()