Searched refs:findMaxRectWithRatioIn (Results 1 – 3 of 3) sorted by relevance
7 import com.android.wallpaper.picker.preview.ui.util.CropSizeUtil.findMaxRectWithRatioIn23 assertThat(testRect.findMaxRectWithRatioIn(targetRect)).isEqualTo(result) in testFiveByFive_findMaxRectWithRatioIn_FiveByTen()32 assertThat(testRect.findMaxRectWithRatioIn(targetRect)).isEqualTo(result) in testThreeByNine_findMaxRectWithRatioIn_SixByThree()
32 fun Rect.findMaxRectWithRatioIn(rect: Rect): PointF = in Rect() method33 Point(width(), height()).findMaxRectWithRatioIn(Point(rect.width(), rect.height())) in Rect()42 fun Point.findMaxRectWithRatioIn(point: Point): PointF { in Rect() method
22 import com.android.wallpaper.picker.preview.ui.util.CropSizeUtil.findMaxRectWithRatioIn52 val maxRect = targetSize.findMaxRectWithRatioIn(currentSize) in onMeasure()