Searched refs:outPivot (Results 1 – 2 of 2) sorted by relevance
406 public float getFullScreenScaleAndPivot(Rect taskView, DeviceProfile dp, PointF outPivot) { in getFullScreenScaleAndPivot() argument407 getTaskDimension(mContext, dp, outPivot); in getFullScreenScaleAndPivot()408 float scale = Math.min(outPivot.x / taskView.width(), outPivot.y / taskView.height()); in getFullScreenScaleAndPivot()410 outPivot.set(taskView.centerX(), taskView.centerY()); in getFullScreenScaleAndPivot()413 outPivot.set(taskView.left * factor, taskView.top * factor); in getFullScreenScaleAndPivot()
375 public static void getPivotsForScalingRectToRect(Rect src, Rect dst, PointF outPivot) { in getPivotsForScalingRectToRect() argument377 outPivot.x = dst.left + dst.width() * pivotXPct; in getPivotsForScalingRectToRect()380 outPivot.y = dst.top + dst.height() * pivotYPct; in getPivotsForScalingRectToRect()