Home
last modified time | relevance | path

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

/packages/apps/WallpaperPicker2/tests/robotests/src/com/android/wallpaper/picker/preview/ui/util/
DCropSizeUtilTest.kt7 import com.android.wallpaper.picker.preview.ui.util.CropSizeUtil.findMaxRectWithRatioIn
23 assertThat(testRect.findMaxRectWithRatioIn(targetRect)).isEqualTo(result) in testFiveByFive_findMaxRectWithRatioIn_FiveByTen()
32 assertThat(testRect.findMaxRectWithRatioIn(targetRect)).isEqualTo(result) in testThreeByNine_findMaxRectWithRatioIn_SixByThree()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/util/
DCropSizeUtil.kt32 fun Rect.findMaxRectWithRatioIn(rect: Rect): PointF = in Rect() method
33 Point(width(), height()).findMaxRectWithRatioIn(Point(rect.width(), rect.height())) in Rect()
42 fun Point.findMaxRectWithRatioIn(point: Point): PointF { in Rect() method
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DFullPreviewFrameLayout.kt22 import com.android.wallpaper.picker.preview.ui.util.CropSizeUtil.findMaxRectWithRatioIn
52 val maxRect = targetSize.findMaxRectWithRatioIn(currentSize) in onMeasure()